CbmRoot
CbmRichMCbmQa.h
Go to the documentation of this file.
1 #ifndef MCBM_RICH_QA
2 #define MCBM_RICH_QA
3 
4 #include "FairTask.h"
5 
6 #include "CbmHistManager.h" // for ROOTCLING
7 
8 class TClonesArray;
9 class CbmRichRing;
10 
11 #include <map>
12 #include <vector>
13 
14 using namespace std;
15 
16 class CbmRichMCbmQa : public FairTask {
17 
18 public:
22  CbmRichMCbmQa();
23 
27  virtual ~CbmRichMCbmQa() {};
28 
32  virtual InitStatus Init();
33 
37  virtual void Exec(Option_t* option);
38 
42  virtual void Finish();
43 
48  void SetOutputDir(const string& dir) { fOutputDir = dir; }
49 
50 
54  void DrawFromFile(const string& fileName, const string& outputDir);
55 
56 private:
60  void InitHistograms();
61 
65  void DrawHist();
66 
70  vector<Double_t> GetHistBins(Bool_t isX);
71 
72  void DrawCircle(CbmRichRing* ring);
73 
74  void DrawEvent();
75 
76 
81 
86 
87 
89 
90 
91  Int_t fEventNum;
92 
93 
94  string fOutputDir; // output dir for results
95 
96 
97  TClonesArray* fMCTracks;
98  TClonesArray* fRichPoints;
99  TClonesArray* fRichDigis;
100  TClonesArray* fRichHits;
101  TClonesArray* fRichRings;
102  TClonesArray* fRichRingMatches;
103  TClonesArray* fRefPlanePoints;
104  TClonesArray* fGlobalTracks;
105  TClonesArray* fTrdTracks;
106  TClonesArray* fTofHits;
107  TClonesArray* fTofPoints;
108  TClonesArray* fTofHitMatches;
109 
110  ClassDef(CbmRichMCbmQa, 1)
111 };
112 
113 #endif
CbmRichMCbmQa::fGlobalTracks
TClonesArray * fGlobalTracks
Definition: CbmRichMCbmQa.h:104
CbmRichMCbmQa::fMCTracks
TClonesArray * fMCTracks
Definition: CbmRichMCbmQa.h:97
CbmRichMCbmQa::fRichDigis
TClonesArray * fRichDigis
Definition: CbmRichMCbmQa.h:99
CbmRichMCbmQa::fRefPlanePoints
TClonesArray * fRefPlanePoints
Definition: CbmRichMCbmQa.h:103
CbmRichMCbmQa::fEventNum
Int_t fEventNum
Definition: CbmRichMCbmQa.h:91
CbmRichRing
Definition: CbmRichRing.h:17
CbmRichMCbmQa::GetHistBins
vector< Double_t > GetHistBins(Bool_t isX)
CbmRichMCbmQa::fTofHitMatches
TClonesArray * fTofHitMatches
Definition: CbmRichMCbmQa.h:108
CbmHistManager.h
Histogram manager.
CbmRichMCbmQa
Definition: CbmRichMCbmQa.h:16
CbmRichMCbmQa::SetOutputDir
void SetOutputDir(const string &dir)
Set output directory where you want to write results (figures and json).
Definition: CbmRichMCbmQa.h:48
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
CbmRichMCbmQa::~CbmRichMCbmQa
virtual ~CbmRichMCbmQa()
Standard destructor.
Definition: CbmRichMCbmQa.h:27
CbmRichMCbmQa::fHM
CbmHistManager * fHM
Definition: CbmRichMCbmQa.h:88
CbmRichMCbmQa::fOutputDir
string fOutputDir
Definition: CbmRichMCbmQa.h:94
CbmRichMCbmQa::fRichRingMatches
TClonesArray * fRichRingMatches
Definition: CbmRichMCbmQa.h:102
CbmRichMCbmQa::operator=
CbmRichMCbmQa & operator=(const CbmRichMCbmQa &)
Assignment operator.
CbmRichMCbmQa::CbmRichMCbmQa
CbmRichMCbmQa(const CbmRichMCbmQa &)
Copy constructor.
CbmRichMCbmQa::fRichPoints
TClonesArray * fRichPoints
Definition: CbmRichMCbmQa.h:98
CbmRichMCbmQa::fTrdTracks
TClonesArray * fTrdTracks
Definition: CbmRichMCbmQa.h:105
CbmRichMCbmQa::fTofPoints
TClonesArray * fTofPoints
Definition: CbmRichMCbmQa.h:107
CbmRichMCbmQa::fRichHits
TClonesArray * fRichHits
Definition: CbmRichMCbmQa.h:100
CbmRichMCbmQa::fRichRings
TClonesArray * fRichRings
Definition: CbmRichMCbmQa.h:101
CbmRichMCbmQa::fTofHits
TClonesArray * fTofHits
Definition: CbmRichMCbmQa.h:106