CbmRoot
Loading...
Searching...
No Matches
CbmRichMCbmQa.h
Go to the documentation of this file.
1/* Copyright (C) 2017-2020 Justus-Liebig-Universitaet Giessen, Giessen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Semen Lebedev, Gregor Pitsch [committer] */
4
5#ifndef MCBM_RICH_QA
6#define MCBM_RICH_QA
7
8#include "CbmHistManager.h" // for ROOTCLING
9#include "FairTask.h"
10
11class TClonesArray;
12class CbmRichRing;
13
14#include <map>
15#include <vector>
16
17using namespace std;
18
19class CbmRichMCbmQa : public FairTask {
20
21 public:
26
30 virtual ~CbmRichMCbmQa(){};
31
35 virtual InitStatus Init();
36
40 virtual void Exec(Option_t* option);
41
45 virtual void Finish();
46
51 void SetOutputDir(const string& dir) { fOutputDir = dir; }
52
53
57 void DrawFromFile(const string& fileName, const string& outputDir);
58
59 private:
63 void InitHistograms();
64
68 void DrawHist();
69
73 vector<Double_t> GetHistBins(Bool_t isX);
74
75 void DrawCircle(CbmRichRing* ring);
76
77 void DrawEvent();
78
79
84
89
90
92
93
94 Int_t fEventNum;
95
96
97 string fOutputDir; // output dir for results
98
99
100 TClonesArray* fMCTracks;
101 TClonesArray* fRichPoints;
102 TClonesArray* fRichDigis;
103 TClonesArray* fRichHits;
104 TClonesArray* fRichRings;
105 TClonesArray* fRichRingMatches;
106 TClonesArray* fRefPlanePoints;
107 TClonesArray* fGlobalTracks;
108 TClonesArray* fTrdTracks;
109 TClonesArray* fTofHits;
110 TClonesArray* fTofPoints;
111 TClonesArray* fTofHitMatches;
112
113 ClassDef(CbmRichMCbmQa, 1)
114};
115
116#endif
Histogram manager.
Histogram manager.
TClonesArray * fTrdTracks
virtual ~CbmRichMCbmQa()
Standard destructor.
void SetOutputDir(const string &dir)
Set output directory where you want to write results (figures and json).
TClonesArray * fRichPoints
CbmRichMCbmQa & operator=(const CbmRichMCbmQa &)
Assignment operator.
TClonesArray * fRichHits
TClonesArray * fTofPoints
CbmRichMCbmQa(const CbmRichMCbmQa &)
Copy constructor.
void DrawCircle(CbmRichRing *ring)
TClonesArray * fGlobalTracks
virtual void Finish()
Inherited from FairTask.
void InitHistograms()
Initialize histograms.
virtual InitStatus Init()
Inherited from FairTask.
void DrawFromFile(const string &fileName, const string &outputDir)
Draw histogram from file.
virtual void Exec(Option_t *option)
Inherited from FairTask.
CbmHistManager * fHM
void DrawHist()
Draw histograms.
TClonesArray * fRichDigis
TClonesArray * fMCTracks
TClonesArray * fTofHits
TClonesArray * fRefPlanePoints
vector< Double_t > GetHistBins(Bool_t isX)
TClonesArray * fRichRings
CbmRichMCbmQa()
Standard constructor.
TClonesArray * fTofHitMatches
TClonesArray * fRichRingMatches
Hash for CbmL1LinkKey.