CbmRoot
CbmRichMCbmSEDisplay.h
Go to the documentation of this file.
1 #ifndef MCBM_RICH_SE_DISPLAY
2 #define MCBM_RICH_SE_DISPLAY
3 
4 #include "CbmEvent.h"
5 #include "CbmHistManager.h" // for ROOTCLING
6 
7 class TClonesArray;
8 class CbmRichHit;
9 class CbmRichRing;
10 class CbmTofTracklet;
11 
12 #include <vector>
13 
14 using namespace std;
15 
16 
18 
19 public:
24 
29 
33  virtual ~CbmRichMCbmSEDisplay() {};
34 
35 
39  void DrawEvent(CbmEvent* ev, std::vector<int>& ringIndx, bool full);
40 
41 
45  void XOffsetHistos(Double_t val = 0.) { fXOffsetHisto = val; }
46 
50  void SetTotRich(Double_t min, Double_t max) {
51  fTotRichMin = min;
52  fTotRichMax = max;
53  }
54 
58  void SetRichHits(TClonesArray* hits = nullptr) { fRichHits = hits; }
59 
63  void SetRichRings(TClonesArray* ring = nullptr) { fRichRings = ring; }
64 
68  void SetTofTracks(TClonesArray* track = nullptr) { fTofTracks = track; }
69 
73  void SetMaxNofDrawnEvents(Int_t val = 100) { fMaxNofDrawnEvents = val; }
74 
75 
79  void SetHistmanager(CbmHistManager* manager) { fHM = manager; }
80 
81 
85  void SetOutDir(std::string dir) { fOutputDir = dir; }
86 
91  void SetCanvasDir(std::string dir) { fFileName = dir; }
92 
93 private:
94  TClonesArray* fRichHits;
95 
96  TClonesArray* fRichRings;
97 
98  TClonesArray* fTofTracks;
99 
100  Double_t fXOffsetHisto;
101 
102  Double_t fTotRichMin;
103 
104  Double_t fTotRichMax;
105 
107 
109 
110 
111  std::string fOutputDir; // output dir for results
112 
113  std::string fFileName = "Ev";
114 
116 
117 
118  template<typename T = CbmRichHit>
119  bool doToT(T* hit) {
120  bool check = false;
121  if ((hit->GetToT() > 23.7) && (hit->GetToT() < 30.0)) check = true;
122 
123  return check;
124  }
125 
126 
131 
136 
137 
138  ClassDef(CbmRichMCbmSEDisplay, 1)
139 };
140 
141 #endif
CbmRichMCbmSEDisplay::fOutputDir
std::string fOutputDir
Definition: CbmRichMCbmSEDisplay.h:111
CbmRichMCbmSEDisplay::operator=
CbmRichMCbmSEDisplay & operator=(const CbmRichMCbmSEDisplay &)
Assignment operator.
CbmRichMCbmSEDisplay::XOffsetHistos
void XOffsetHistos(Double_t val=0.)
Definition: CbmRichMCbmSEDisplay.h:45
CbmRichMCbmSEDisplay::fMaxNofDrawnEvents
Int_t fMaxNofDrawnEvents
Definition: CbmRichMCbmSEDisplay.h:108
CbmRichMCbmSEDisplay
Definition: CbmRichMCbmSEDisplay.h:17
CbmTofTracklet
Provides information on attaching a TofHit to a TofTrack.
Definition: CbmTofTracklet.h:25
CbmRichMCbmSEDisplay::fHM
CbmHistManager * fHM
Definition: CbmRichMCbmSEDisplay.h:115
CbmRichMCbmSEDisplay::SetRichRings
void SetRichRings(TClonesArray *ring=nullptr)
Definition: CbmRichMCbmSEDisplay.h:63
CbmRichMCbmSEDisplay::SetHistmanager
void SetHistmanager(CbmHistManager *manager)
Definition: CbmRichMCbmSEDisplay.h:79
CbmRichRing
Definition: CbmRichRing.h:17
CbmRichMCbmSEDisplay::doToT
bool doToT(T *hit)
Definition: CbmRichMCbmSEDisplay.h:119
CbmHistManager.h
Histogram manager.
CbmRichMCbmSEDisplay::fTotRichMax
Double_t fTotRichMax
Definition: CbmRichMCbmSEDisplay.h:104
CbmRichMCbmSEDisplay::fRichRings
TClonesArray * fRichRings
Definition: CbmRichMCbmSEDisplay.h:96
min
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:33
fTofTracks
TClonesArray * fTofTracks
Definition: CbmHadronAnalysis.cxx:51
CbmEvent.h
CbmRichMCbmSEDisplay::SetOutDir
void SetOutDir(std::string dir)
Definition: CbmRichMCbmSEDisplay.h:85
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
CbmRichMCbmSEDisplay::fNofDrawnEvents
Int_t fNofDrawnEvents
Definition: CbmRichMCbmSEDisplay.h:106
CbmRichMCbmSEDisplay::CbmRichMCbmSEDisplay
CbmRichMCbmSEDisplay(const CbmRichMCbmSEDisplay &)
Copy constructor.
CbmRichMCbmSEDisplay::SetTofTracks
void SetTofTracks(TClonesArray *track=nullptr)
Definition: CbmRichMCbmSEDisplay.h:68
CbmRichMCbmSEDisplay::SetCanvasDir
void SetCanvasDir(std::string dir)
Definition: CbmRichMCbmSEDisplay.h:91
CbmRichMCbmSEDisplay::fXOffsetHisto
Double_t fXOffsetHisto
Definition: CbmRichMCbmSEDisplay.h:100
CbmRichMCbmSEDisplay::~CbmRichMCbmSEDisplay
virtual ~CbmRichMCbmSEDisplay()
Standard destructor.
Definition: CbmRichMCbmSEDisplay.h:33
CbmRichMCbmSEDisplay::fTotRichMin
Double_t fTotRichMin
Definition: CbmRichMCbmSEDisplay.h:102
CbmRichMCbmSEDisplay::SetMaxNofDrawnEvents
void SetMaxNofDrawnEvents(Int_t val=100)
Definition: CbmRichMCbmSEDisplay.h:73
CbmRichMCbmSEDisplay::fRichHits
TClonesArray * fRichHits
Definition: CbmRichMCbmSEDisplay.h:94
hits
static vector< vector< QAHit > > hits
Definition: CbmTofHitFinderTBQA.cxx:114
CbmEvent
Class characterising one event by a collection of links (indices) to data objects,...
Definition: CbmEvent.h:30
max
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:36
CbmRichMCbmSEDisplay::SetRichHits
void SetRichHits(TClonesArray *hits=nullptr)
Definition: CbmRichMCbmSEDisplay.h:58
CbmRichMCbmSEDisplay::SetTotRich
void SetTotRich(Double_t min, Double_t max)
Definition: CbmRichMCbmSEDisplay.h:50
CbmRichHit
Definition: CbmRichHit.h:19
CbmRichMCbmSEDisplay::fTofTracks
TClonesArray * fTofTracks
Definition: CbmRichMCbmSEDisplay.h:98