BmnRoot
Loading...
Searching...
No Matches
BmnSiBTDigitizer.h
Go to the documentation of this file.
1#ifndef BMNSiBTDIGITIZER_H
2#define BMNSiBTDIGITIZER_H 1
3
5#include "BmnSiBTDigit.h"
6#include "BmnSiBTHit.h"
7#include "BmnSiBTStationSet.h"
8#include "BmnSiBTTransform.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 BmnSiBTDigitizer : public FairTask
19{
20 public:
22
23 BmnSiBTDigitizer(UInt_t run_period);
24
26
27 virtual InitStatus Init();
28
29 virtual void Exec(Option_t* opt);
30
31 virtual void Finish();
32
34
35 // Setters
36
37 void SetOnlyPrimary(Bool_t opt = kFALSE) { fOnlyPrimary = opt; }
38
39 void SetStripMatching(Bool_t opt = kTRUE) { fStripMatching = opt; }
40
42
43 void SetXMLConfig(TString xml_file)
44 {
45 fCurrentConfig = BmnSiBTConfiguration::None;
46 XMLConfigFile = xml_file;
47 }
48
49 private:
50 TString fInputBranchName;
51 TString fOutputDigitsBranchName;
52 TString fOutputDigitMatchesBranchName;
53
55 TClonesArray* fBmnSiBTPointsArray;
56
58 TClonesArray* fMCTracksArray;
59
61 TClonesArray* fBmnSiBTDigitsArray;
62
64 TClonesArray* fBmnSiBTDigitMatchesArray;
65
66 Bool_t fOnlyPrimary;
67 Bool_t fStripMatching;
68
70 TString XMLConfigFile;
71 BmnSiBTStationSet* StationSet; // Entire SiBT detector
72 BmnSiBTTransform* TransfSet; // Transformations for each module of the detector
73
74 ClassDef(BmnSiBTDigitizer, 1);
75};
76
77#endif
BmnSiBTDigitizer(UInt_t run_period)
void SetOnlyPrimary(Bool_t opt=kFALSE)
virtual ~BmnSiBTDigitizer()
virtual void Exec(Option_t *opt)
void ProcessMCPoints()
virtual InitStatus Init()
void SetStripMatching(Bool_t opt=kTRUE)
void SetCurrentConfig(BmnSiBTConfiguration::SiBT_CONFIG config)
void SetXMLConfig(TString xml_file)
virtual void Finish()
STL namespace.