CbmRoot
CbmRichEventDisplay.h
Go to the documentation of this file.
1 
10 #ifndef CBM_RICH_EVENT_DISPLAY
11 #define CBM_RICH_EVENT_DISPLAY
12 
13 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
14 #include <RtypesCore.h> // for Option_t
15 #include <TClonesArray.h> // IWYU pragma: keep needed by RootCling
16 
17 #include <string> // for string
18 
19 #include "FairTask.h" // for FairTask, InitStatus
20 
21 #include "CbmHistManager.h" // IWYU pragma: keep needed by RootCling
22 
23 class CbmRichRing;
24 class TClonesArray;
25 class TMemberInspector;
26 
35 class CbmRichEventDisplay : public FairTask {
36 public:
41 
45  virtual ~CbmRichEventDisplay();
46 
50  virtual InitStatus Init();
51 
55  virtual void Exec(Option_t* opt);
56 
60  virtual void Finish();
61 
62  void SetDrawRings(bool b) { fDrawRings = b; }
63  void SetDrawHits(bool b) { fDrawHits = b; }
64  void SetDrawPoints(bool b) { fDrawPoints = b; }
65  void SetDrawProjections(bool b) { fDrawProjections = b; }
66 
71  void SetOutputDir(const std::string& dir) { fOutputDir = dir; }
72 
73 private:
74  TClonesArray* fRichRings;
75  TClonesArray* fRichHits;
76  TClonesArray* fRichPoints;
77  TClonesArray* fRichMatches;
78  TClonesArray* fRichProjections;
79 
80  TClonesArray* fMcTracks;
81 
82  std::string fOutputDir; // output dir for results
84 
85  int fEventNum;
86 
87  bool fDrawRings;
88  bool fDrawHits;
91 
92  void DrawOneEvent();
93 
94  void DrawOnePmtPlane(const std::string& plane);
95 
96  void DrawCircle(CbmRichRing* ring);
97 
98 
103 
108 
110 };
111 
112 #endif
CbmRichEventDisplay::DrawOnePmtPlane
void DrawOnePmtPlane(const std::string &plane)
Definition: CbmRichEventDisplay.cxx:124
CbmRichEventDisplay::DrawCircle
void DrawCircle(CbmRichRing *ring)
Definition: CbmRichEventDisplay.cxx:186
CbmRichEventDisplay::fRichProjections
TClonesArray * fRichProjections
Definition: CbmRichEventDisplay.h:78
CbmRichEventDisplay::fRichHits
TClonesArray * fRichHits
Definition: CbmRichEventDisplay.h:75
CbmRichEventDisplay::fRichRings
TClonesArray * fRichRings
Definition: CbmRichEventDisplay.h:74
CbmRichEventDisplay::CbmRichEventDisplay
CbmRichEventDisplay(const CbmRichEventDisplay &)
Copy constructor.
CbmRichEventDisplay::operator=
CbmRichEventDisplay & operator=(const CbmRichEventDisplay &)
Assignment operator.
CbmRichEventDisplay::fOutputDir
std::string fOutputDir
Definition: CbmRichEventDisplay.h:82
CbmRichRing
Definition: CbmRichRing.h:17
CbmRichEventDisplay::SetOutputDir
void SetOutputDir(const std::string &dir)
Set output directory where you want to write results (figures and json).
Definition: CbmRichEventDisplay.h:71
CbmRichEventDisplay::ClassDef
ClassDef(CbmRichEventDisplay, 1)
CbmRichEventDisplay::CbmRichEventDisplay
CbmRichEventDisplay()
Default constructor.
Definition: CbmRichEventDisplay.cxx:33
CbmHistManager.h
Histogram manager.
CbmRichEventDisplay::fDrawHits
bool fDrawHits
Definition: CbmRichEventDisplay.h:88
CbmRichEventDisplay::DrawOneEvent
void DrawOneEvent()
Definition: CbmRichEventDisplay.cxx:101
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
CbmRichEventDisplay::fDrawRings
bool fDrawRings
Definition: CbmRichEventDisplay.h:87
CbmRichEventDisplay::Finish
virtual void Finish()
Inherited from FairTask.
Definition: CbmRichEventDisplay.cxx:199
CbmRichEventDisplay::fHM
CbmHistManager * fHM
Definition: CbmRichEventDisplay.h:83
CbmRichEventDisplay::SetDrawProjections
void SetDrawProjections(bool b)
Definition: CbmRichEventDisplay.h:65
CbmRichEventDisplay::Init
virtual InitStatus Init()
Inherited from FairTask.
Definition: CbmRichEventDisplay.cxx:54
CbmRichEventDisplay::SetDrawRings
void SetDrawRings(bool b)
Definition: CbmRichEventDisplay.h:62
CbmRichEventDisplay::fRichPoints
TClonesArray * fRichPoints
Definition: CbmRichEventDisplay.h:76
CbmRichEventDisplay::Exec
virtual void Exec(Option_t *opt)
Inherited from FairTask.
Definition: CbmRichEventDisplay.cxx:95
CbmRichEventDisplay::SetDrawPoints
void SetDrawPoints(bool b)
Definition: CbmRichEventDisplay.h:64
CbmRichEventDisplay::fDrawProjections
bool fDrawProjections
Definition: CbmRichEventDisplay.h:90
CbmRichEventDisplay::fEventNum
int fEventNum
Definition: CbmRichEventDisplay.h:85
CbmRichEventDisplay::fMcTracks
TClonesArray * fMcTracks
Definition: CbmRichEventDisplay.h:80
CbmRichEventDisplay::fDrawPoints
bool fDrawPoints
Definition: CbmRichEventDisplay.h:89
CbmRichEventDisplay
Event display for the RICH detector.
Definition: CbmRichEventDisplay.h:35
CbmRichEventDisplay::fRichMatches
TClonesArray * fRichMatches
Definition: CbmRichEventDisplay.h:77
CbmRichEventDisplay::~CbmRichEventDisplay
virtual ~CbmRichEventDisplay()
Destructor.
Definition: CbmRichEventDisplay.cxx:51
CbmRichEventDisplay::SetDrawHits
void SetDrawHits(bool b)
Definition: CbmRichEventDisplay.h:63