BmnRoot
Loading...
Searching...
No Matches
BmnSiProfDigitizer.h
Go to the documentation of this file.
1#ifndef BMNSiProfDIGITIZER_H
2#define BMNSiProfDIGITIZER_H 1
3
5#include "BmnSiProfDigit.h"
6#include "BmnSiProfHit.h"
9#include "FairMCPoint.h"
10#include "FairTask.h"
11#include "Rtypes.h"
12#include "TClonesArray.h"
13
14#include <iostream>
15
16using namespace std;
17
18class BmnSiProfDigitizer : public FairTask
19{
20 public:
22
23 BmnSiProfDigitizer(UInt_t run_period);
24
25 virtual ~BmnSiProfDigitizer();
26
27 virtual InitStatus Init();
28
29 virtual void Exec(Option_t* opt);
30
31 virtual void Finish();
32
33 void ProcessMCPoints();
34
35 void SetOnlyPrimary(Bool_t opt = kFALSE) { fOnlyPrimary = opt; }
36
37 void SetStripMatching(Bool_t opt = kTRUE) { fStripMatching = opt; }
38
40
41 void SetXMLConfig(TString xml_file)
42 {
43 fCurrentConfig = BmnSiProfConfiguration::None;
44 XMLConfigFile = xml_file;
45 }
46
47 private:
48 TString fInputBranchName;
49 TString fOutputDigitsBranchName;
50 TString fOutputDigitMatchesBranchName;
51
53 TClonesArray* fBmnSiProfPointsArray;
54
56 TClonesArray* fMCTracksArray;
57
59 TClonesArray* fBmnSiProfDigitsArray;
60
62 TClonesArray* fBmnSiProfDigitMatchesArray;
63
64 Bool_t fOnlyPrimary;
65 Bool_t fStripMatching;
66
68 TString XMLConfigFile;
69 BmnSiProfStationSet* StationSet; // Entire SiProf detector
70 BmnSiProfTransform* TransfSet; // Transformations for each module of the detector
71
72 ClassDef(BmnSiProfDigitizer, 1);
73};
74
75#endif
void SetOnlyPrimary(Bool_t opt=kFALSE)
virtual InitStatus Init()
void SetXMLConfig(TString xml_file)
void SetStripMatching(Bool_t opt=kTRUE)
virtual void Exec(Option_t *opt)
void SetCurrentConfig(BmnSiProfConfiguration::SiProf_CONFIG config)
STL namespace.