CbmRoot
CbmPsdMCbmQaReal.h
Go to the documentation of this file.
1 #ifndef MCBM_PSD_QA_REAL
2 #define MCBM_PSD_QA_REAL
3 
4 #include "CbmEvent.h"
5 #include "CbmHistManager.h"
6 #include "FairTask.h"
7 
8 class TClonesArray;
9 class CbmPsdMCbmHit;
10 class CbmTofTracklet;
11 class TVector3;
12 class CbmDigiManager;
13 
14 #include <map>
15 #include <vector>
16 
17 using namespace std;
18 
19 
20 class CbmPsdMCbmQaReal : public FairTask {
21 
22 public:
27 
31  virtual ~CbmPsdMCbmQaReal() {};
32 
36  virtual InitStatus Init();
37 
41  virtual void Exec(Option_t* option);
42 
46  virtual void Finish();
47 
52  void SetOutputDir(const string& dir) { fOutputDir = dir; }
53 
54 
58  void DrawFromFile(const string& fileName, const string& outputDir);
59 
63  void DoDrawCanvas(bool val = true) { fDoDrawCanvas = val; }
64 
68  void DoWriteHistToFile(bool val = true) { fDoWriteHistToFile = val; }
69 
70 
71 private:
73 
74  TClonesArray* fT0Digis;
75  TClonesArray* fPsdHits;
76  TClonesArray* fTofHits;
77  TClonesArray* fTofTracks;
78  TClonesArray* fCbmEvent;
79 
81 
82  Int_t fEntryNum;
83  string fOutputDir; // output dir for results
84 
85  bool fDoWriteHistToFile = true;
86  bool fDoDrawCanvas = true;
87 
88  bool fDigiHitsInitialized = false;
89 
90 
91  Double_t fCbmEventStartTime = 0.;
92 
96  void InitHistograms();
97 
101  void DrawHist();
102 
107 
112 
113 
114  ClassDef(CbmPsdMCbmQaReal, 1)
115 };
116 
117 #endif
CbmPsdMCbmQaReal::fPsdHits
TClonesArray * fPsdHits
Definition: CbmPsdMCbmQaReal.h:75
CbmPsdMCbmQaReal::~CbmPsdMCbmQaReal
virtual ~CbmPsdMCbmQaReal()
Standard destructor.
Definition: CbmPsdMCbmQaReal.h:31
CbmPsdMCbmQaReal::fHM
CbmHistManager * fHM
Definition: CbmPsdMCbmQaReal.h:80
CbmPsdMCbmQaReal::operator=
CbmPsdMCbmQaReal & operator=(const CbmPsdMCbmQaReal &)
Assignment operator.
CbmPsdMCbmQaReal::fCbmEvent
TClonesArray * fCbmEvent
Definition: CbmPsdMCbmQaReal.h:78
CbmTofTracklet
Provides information on attaching a TofHit to a TofTrack.
Definition: CbmTofTracklet.h:25
CbmPsdMCbmQaReal::fT0Digis
TClonesArray * fT0Digis
Definition: CbmPsdMCbmQaReal.h:74
CbmHistManager.h
Histogram manager.
CbmPsdMCbmQaReal::CbmPsdMCbmQaReal
CbmPsdMCbmQaReal(const CbmPsdMCbmQaReal &)
Copy constructor.
CbmEvent.h
CbmPsdMCbmQaReal::fEntryNum
Int_t fEntryNum
Definition: CbmPsdMCbmQaReal.h:82
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
CbmPsdMCbmQaReal::fOutputDir
string fOutputDir
Definition: CbmPsdMCbmQaReal.h:83
CbmPsdMCbmQaReal
Definition: CbmPsdMCbmQaReal.h:20
CbmDigiManager
CbmDigiManager.
Definition: CbmDigiManager.h:37
CbmPsdMCbmQaReal::DoWriteHistToFile
void DoWriteHistToFile(bool val=true)
Definition: CbmPsdMCbmQaReal.h:68
fDigiMan
CbmDigiManager * fDigiMan
Definition: CbmTofAnaTestbeam.cxx:88
CbmPsdMCbmQaReal::fTofTracks
TClonesArray * fTofTracks
Definition: CbmPsdMCbmQaReal.h:77
CbmPsdMCbmHit
data class for hit information in PSD
Definition: CbmPsdMCbmHit.h:24
CbmPsdMCbmQaReal::SetOutputDir
void SetOutputDir(const string &dir)
Set output directory where you want to write results (figures and json).
Definition: CbmPsdMCbmQaReal.h:52
CbmPsdMCbmQaReal::fTofHits
TClonesArray * fTofHits
Definition: CbmPsdMCbmQaReal.h:76
CbmPsdMCbmQaReal::DoDrawCanvas
void DoDrawCanvas(bool val=true)
Definition: CbmPsdMCbmQaReal.h:63