CbmRoot
CbmRichUrqmdTest.h
Go to the documentation of this file.
1 
10 #ifndef CBM_RICH_URQMD_TEST
11 #define CBM_RICH_URQMD_TEST
12 
13 #include "FairTask.h"
14 class TClonesArray;
15 class CbmRichRing;
16 class TCanvas;
17 class CbmHistManager;
18 class CbmMCDataArray;
19 class CbmMCEventList;
20 class CbmDigiManager;
21 
22 #include <map>
23 #include <vector>
24 
25 using namespace std;
26 
35 class CbmRichUrqmdTest : public FairTask {
36 
37 public:
42 
46  virtual ~CbmRichUrqmdTest();
47 
51  virtual InitStatus Init();
52 
56  virtual void Exec(Option_t* option);
57 
61  virtual void Finish();
62 
63 
68  void SetOutputDir(const string& dir) { fOutputDir = dir; }
69 
70 
71 private:
75  void InitHistograms();
76 
80  void FillRichRingNofHits();
81 
85  void NofRings();
86 
90  void NofHitsAndPoints();
91 
95  void NofProjections();
96 
100  void Vertex();
101 
102 
106  void DrawHist();
107 
108  void PmtXYSource();
109 
114 
119 
121 
122  string fOutputDir; // output dir for results
123 
124  TClonesArray* fRichHits;
125  TClonesArray* fRichRings;
128  TClonesArray* fRichRingMatches;
129  TClonesArray* fRichProjections;
132 
133  Int_t fEventNum;
134  Int_t
135  fMinNofHits; // Min number of hits in ring for detector acceptance calculation.
136 
137  // Number of hits in the MC RICH ring
138  std::map<pair<Int_t, Int_t>, Int_t> fNofHitsInRingMap;
139 
140  ClassDef(CbmRichUrqmdTest, 1)
141 };
142 
143 #endif
CbmRichUrqmdTest::fDigiMan
CbmDigiManager * fDigiMan
Definition: CbmRichUrqmdTest.h:130
CbmMCDataArray
Access to a MC data branch for time-based analysis.
Definition: CbmMCDataArray.h:35
CbmRichRing
Definition: CbmRichRing.h:17
CbmRichUrqmdTest::fRichRingMatches
TClonesArray * fRichRingMatches
Definition: CbmRichUrqmdTest.h:128
CbmRichUrqmdTest::fRichPoints
CbmMCDataArray * fRichPoints
Definition: CbmRichUrqmdTest.h:126
CbmRichUrqmdTest::fRichRings
TClonesArray * fRichRings
Definition: CbmRichUrqmdTest.h:125
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
CbmRichUrqmdTest::fRichHits
TClonesArray * fRichHits
Definition: CbmRichUrqmdTest.h:124
CbmRichUrqmdTest::fEventList
CbmMCEventList * fEventList
Definition: CbmRichUrqmdTest.h:131
CbmRichUrqmdTest::fHM
CbmHistManager * fHM
Definition: CbmRichUrqmdTest.h:120
CbmRichUrqmdTest::fEventNum
Int_t fEventNum
Definition: CbmRichUrqmdTest.h:133
CbmDigiManager
CbmDigiManager.
Definition: CbmDigiManager.h:37
CbmMCEventList
Container class for MC events with number, file and start time.
Definition: CbmMCEventList.h:38
CbmRichUrqmdTest::fNofHitsInRingMap
std::map< pair< Int_t, Int_t >, Int_t > fNofHitsInRingMap
Definition: CbmRichUrqmdTest.h:138
CbmRichUrqmdTest::CbmRichUrqmdTest
CbmRichUrqmdTest(const CbmRichUrqmdTest &)
Copy constructor.
CbmRichUrqmdTest
RICH geometry testing in Urqmd collisions.
Definition: CbmRichUrqmdTest.h:35
CbmRichUrqmdTest::SetOutputDir
void SetOutputDir(const string &dir)
Set output directory where you want to write results (figures and json).
Definition: CbmRichUrqmdTest.h:68
CbmRichUrqmdTest::fOutputDir
string fOutputDir
Definition: CbmRichUrqmdTest.h:122
CbmRichUrqmdTest::fMinNofHits
Int_t fMinNofHits
Definition: CbmRichUrqmdTest.h:135
CbmRichUrqmdTest::fRichProjections
TClonesArray * fRichProjections
Definition: CbmRichUrqmdTest.h:129
CbmRichUrqmdTest::fMcTracks
CbmMCDataArray * fMcTracks
Definition: CbmRichUrqmdTest.h:127
CbmRichUrqmdTest::operator=
CbmRichUrqmdTest & operator=(const CbmRichUrqmdTest &)
Assignment operator.