BmnRoot
Loading...
Searching...
No Matches
BmnSiliconDigitizer.h
Go to the documentation of this file.
1#ifndef BMNSILICONDIGITIZER_H
2#define BMNSILICONDIGITIZER_H
3
5#include "BmnSiliconDigit.h"
8#include "FairField.h"
9#include "FairMCPoint.h"
10#include "FairRunSim.h"
11#include "FairTask.h"
12#include "Rtypes.h"
13#include "TClonesArray.h"
14
15#include <iostream>
16
17using namespace std;
18
19class BmnSiliconDigitizer : public FairTask
20{
21 public:
23
24 BmnSiliconDigitizer(UInt_t run_period);
25
26 virtual ~BmnSiliconDigitizer();
27
28 virtual InitStatus Init();
29
30 virtual void Exec(Option_t* opt);
31
32 virtual void Finish();
33
34 void ProcessMCPoints();
35
36 void SetOnlyPrimary(Bool_t opt = kFALSE) { fOnlyPrimary = opt; }
37
38 void SetStripMatching(Bool_t opt = kTRUE) { fStripMatching = opt; }
39
40 void SetUseRealEffects(Bool_t opt = kTRUE) { fUseRealEffects = opt; }
41
43
44 void SetXMLConfig(TString xml_file)
45 {
46 fCurrentConfig = BmnSiliconConfiguration::None;
47 XMLConfigFile = xml_file;
48 }
49
50 void SetNoise(Double_t sigma, Double_t thresh)
51 {
52 fSigma = sigma;
53 fThresh = thresh;
54 } // AZ-240823 - set noise sigma and threshold
55
56 private:
57 TString fInputBranchName;
58 TString fOutputDigitsBranchName;
59 TString fOutputDigitMatchesBranchName;
60
62 TClonesArray* fBmnSiliconPointsArray;
63
65 TClonesArray* fMCTracksArray;
66
68 TClonesArray* fBmnSiliconDigitsArray;
69
71 TClonesArray* fBmnSiliconDigitMatchesArray;
72
73 Bool_t fOnlyPrimary;
74 Bool_t fStripMatching;
75 Bool_t fUseRealEffects;
76
77 FairField* fField;
78
80 TString XMLConfigFile;
81 BmnSiliconStationSet* StationSet; // Entire detector
82 BmnSiliconTransform* TransfSet; // Transformations for detector modules
83
84 Double_t fSigma; // AZ-240823
85 Double_t fThresh; // AZ-240823
86
87 ClassDef(BmnSiliconDigitizer, 1);
88};
89
90#endif /* BMNSILICONDIGITIZER_H */
void SetXMLConfig(TString xml_file)
void SetCurrentConfig(BmnSiliconConfiguration::SILICON_CONFIG config)
void SetNoise(Double_t sigma, Double_t thresh)
void SetStripMatching(Bool_t opt=kTRUE)
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
void SetOnlyPrimary(Bool_t opt=kFALSE)
void SetUseRealEffects(Bool_t opt=kTRUE)
STL namespace.