CbmRoot
CbmRichMCbmAerogelAna.h
Go to the documentation of this file.
1 #ifndef MCBM_RICH_Aerogel
2 #define MCBM_RICH_Aerogel
3 
4 #include "CbmEvent.h"
6 #include "FairTask.h"
7 class TClonesArray;
8 class CbmRichRing;
9 class CbmRichHit;
10 class CbmTofTracklet;
11 class CbmHistManager;
12 class TVector3;
13 class CbmDigiManager;
14 
15 #include <map>
16 #include <vector>
17 
18 using namespace std;
19 
20 
21 class CbmRichMCbmAerogelAna : public FairTask {
22 
23 public:
28 
32  virtual ~CbmRichMCbmAerogelAna() {};
33 
37  virtual InitStatus Init();
38 
42  virtual void Exec(Option_t* option);
43 
47  virtual void Finish();
48 
53  void SetOutputDir(const string& dir) { fOutputDir = dir; }
54 
55 
59  void DrawFromFile(const string& fileName, const string& outputDir);
60 
61 
65  void DoDrawCanvas(bool val = true) { fDoDrawCanvas = val; }
66 
70  void DoWriteHistToFile(bool val = true) { fDoWriteHistToFile = val; }
71 
72 
76  void XOffsetHistos(Double_t offset = 0.) { fXOffsetHisto = offset; }
77 
78 private:
80 
81  TClonesArray* fRichHits;
82 
83  TClonesArray* fRichRings;
84 
85  TClonesArray* fCbmEvent;
86 
88 
89  Double_t fXOffsetHisto;
90 
91  Int_t fEventNum;
92 
94 
96 
98 
99 
100  string fOutputDir; // output dir for results
101 
102  bool fDoWriteHistToFile = true;
103  bool fDoDrawCanvas = true;
104 
108  void InitHistograms();
109 
113  void DrawHist();
114 
115  void RichRings();
116  ;
117 
118  bool doToT(CbmRichHit* hit);
119 
120  Bool_t cutRadius(CbmRichRing* ring);
121 
122 
127 
132 
133 
134  ClassDef(CbmRichMCbmAerogelAna, 1)
135 };
136 
137 #endif
CbmRichMCbmAerogelAna::fOutputDir
string fOutputDir
Definition: CbmRichMCbmAerogelAna.h:100
CbmRichRingFinderHoughImpl.h
Ring finder implementation based on Hough Transform method.
CbmRichMCbmAerogelAna::fCbmEvent
TClonesArray * fCbmEvent
Definition: CbmRichMCbmAerogelAna.h:85
CbmRichMCbmAerogelAna::XOffsetHistos
void XOffsetHistos(Double_t offset=0.)
Definition: CbmRichMCbmAerogelAna.h:76
CbmRichMCbmAerogelAna::fRichHits
TClonesArray * fRichHits
Definition: CbmRichMCbmAerogelAna.h:81
CbmRichMCbmAerogelAna::DoWriteHistToFile
void DoWriteHistToFile(bool val=true)
Definition: CbmRichMCbmAerogelAna.h:70
CbmRichMCbmAerogelAna
Definition: CbmRichMCbmAerogelAna.h:21
CbmTofTracklet
Provides information on attaching a TofHit to a TofTrack.
Definition: CbmTofTracklet.h:25
CbmRichMCbmAerogelAna::DoDrawCanvas
void DoDrawCanvas(bool val=true)
Definition: CbmRichMCbmAerogelAna.h:65
CbmRichRing
Definition: CbmRichRing.h:17
CbmRichMCbmAerogelAna::SetOutputDir
void SetOutputDir(const string &dir)
Set output directory where you want to write results (figures and json).
Definition: CbmRichMCbmAerogelAna.h:53
CbmRichMCbmAerogelAna::fHM
CbmHistManager * fHM
Definition: CbmRichMCbmAerogelAna.h:87
CbmRichMCbmAerogelAna::operator=
CbmRichMCbmAerogelAna & operator=(const CbmRichMCbmAerogelAna &)
Assignment operator.
CbmEvent.h
CbmRichMCbmAerogelAna::fEventNum
Int_t fEventNum
Definition: CbmRichMCbmAerogelAna.h:91
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
CbmRichMCbmAerogelAna::fNofDrawnRings
Int_t fNofDrawnRings
Definition: CbmRichMCbmAerogelAna.h:93
CbmDigiManager
CbmDigiManager.
Definition: CbmDigiManager.h:37
CbmRichMCbmAerogelAna::fRichRings
TClonesArray * fRichRings
Definition: CbmRichMCbmAerogelAna.h:83
fDigiMan
CbmDigiManager * fDigiMan
Definition: CbmTofAnaTestbeam.cxx:88
CbmRichMCbmAerogelAna::fNofDrawnRichTofEv
Int_t fNofDrawnRichTofEv
Definition: CbmRichMCbmAerogelAna.h:95
CbmRichMCbmAerogelAna::~CbmRichMCbmAerogelAna
virtual ~CbmRichMCbmAerogelAna()
Standard destructor.
Definition: CbmRichMCbmAerogelAna.h:32
CbmRichMCbmAerogelAna::fNofDrawnEvents
Int_t fNofDrawnEvents
Definition: CbmRichMCbmAerogelAna.h:97
CbmRichMCbmAerogelAna::fXOffsetHisto
Double_t fXOffsetHisto
Definition: CbmRichMCbmAerogelAna.h:89
CbmRichMCbmAerogelAna::CbmRichMCbmAerogelAna
CbmRichMCbmAerogelAna(const CbmRichMCbmAerogelAna &)
Copy constructor.
CbmRichHit
Definition: CbmRichHit.h:19