BmnRoot
Loading...
Searching...
No Matches
BmnGemStripDigitizer.h
Go to the documentation of this file.
1#ifndef BMNGEMSTRIPDIGITIZER_H
2#define BMNGEMSTRIPDIGITIZER_H 1
3
5#include "BmnGemStripDigit.h"
6#include "BmnGemStripHit.h"
9#include "FairField.h"
10#include "FairMCPoint.h"
11#include "FairRunSim.h"
12#include "FairTask.h"
13#include "Rtypes.h"
14#include "TClonesArray.h"
15
16#include <iostream>
17
18using namespace std;
19
20class BmnGemStripDigitizer : public FairTask
21{
22 public:
24
25 BmnGemStripDigitizer(UInt_t run_period);
26
27 virtual ~BmnGemStripDigitizer();
28
29 virtual InitStatus Init();
30
31 virtual void Exec(Option_t* opt);
32
33 virtual void Finish();
34
35 void ProcessMCPoints();
36
37 // Setters
38
39 void SetOnlyPrimary(Bool_t opt = kFALSE) { fOnlyPrimary = opt; }
40
41 void SetStripMatching(Bool_t opt = kTRUE) { fStripMatching = opt; }
42
43 void SetUseRealEffects(Bool_t opt = kTRUE) { fUseRealEffects = opt; }
44
46
47 void SetXMLConfig(TString xml_file)
48 {
49 fCurrentConfig = BmnGemStripConfiguration::None;
50 XMLConfigFile = xml_file;
51 }
52
53 void SetNoise(Double_t sigma, Double_t thresh)
54 {
55 fSigma = sigma;
56 fThresh = thresh;
57 } // AZ-240823 - set noise sigma and threshold
58 TClonesArray* GetMCPoints() { return fBmnGemStripPointsArray; } // AZ-110124
59 TClonesArray* GetMCTracks() { return fMCTracksArray; } // AZ-110124
60
61 private:
62 TString fInputBranchName;
63 TString fOutputDigitsBranchName;
64 TString fOutputDigitMatchesBranchName;
65
67 TClonesArray* fBmnGemStripPointsArray;
68
70 TClonesArray* fMCTracksArray;
71
73 TClonesArray* fBmnGemStripDigitsArray;
74
76 TClonesArray* fBmnGemStripDigitMatchesArray;
77
78 Bool_t fOnlyPrimary;
79 Bool_t fStripMatching;
80 Bool_t fUseRealEffects;
81
82 FairField* fField;
83
85
86 TString XMLConfigFile;
87
88 BmnGemStripStationSet* StationSet; // Entire GEM detector
89
90 BmnGemStripTransform* TransfSet; // Transformations for each module of the detector
91
92 Double_t fSigma; // AZ-240823
93 Double_t fThresh; // AZ-240823
94
95 ClassDef(BmnGemStripDigitizer, 1);
96};
97
98#endif
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
void SetCurrentConfig(BmnGemStripConfiguration::GEM_CONFIG config)
void SetXMLConfig(TString xml_file)
void SetStripMatching(Bool_t opt=kTRUE)
TClonesArray * GetMCTracks()
void SetOnlyPrimary(Bool_t opt=kFALSE)
void SetNoise(Double_t sigma, Double_t thresh)
TClonesArray * GetMCPoints()
void SetUseRealEffects(Bool_t opt=kTRUE)
STL namespace.