CbmRoot
Loading...
Searching...
No Matches
CbmRichMCbmSEDisplay.h
Go to the documentation of this file.
1/* Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef MCBM_RICH_SE_DISPLAY
6#define MCBM_RICH_SE_DISPLAY
7
8#include "CbmEvent.h"
9#include "CbmHistManager.h" // for ROOTCLING
10
11class TClonesArray;
12class CbmRichHit;
13class CbmRichRing;
14class CbmTofTracklet;
15
16#include <vector>
17
18using namespace std;
19
20
22
23 public:
28
33
38
39
43 void DrawEvent(CbmEvent* ev, std::vector<int>& ringIndx, bool full);
44
45
49 void XOffsetHistos(Double_t val = 0.) { fXOffsetHisto = val; }
50
54 void SetTotRich(Double_t min, Double_t max)
55 {
58 }
59
63 void SetLELimits(Double_t min, Double_t max)
64 {
65 fLEMin = min;
66 fLEMax = max;
67 }
68
72 void SetRichHits(TClonesArray* hits = nullptr) { fRichHits = hits; }
73
77 void SetRichRings(TClonesArray* ring = nullptr) { fRichRings = ring; }
78
82 void SetTofTracks(TClonesArray* track = nullptr) { fTofTracks = track; }
83
87 void SetMaxNofDrawnEvents(Int_t val = 100) { fMaxNofDrawnEvents = val; }
88
89
93 void SetHistmanager(CbmHistManager* manager) { fHM = manager; }
94
95
99 void SetOutDir(std::string dir) { fOutputDir = dir; }
100
105 void SetCanvasDir(std::string dir) { fFileName = dir; }
106
107 private:
108 TClonesArray* fRichHits;
109
110 TClonesArray* fRichRings;
111
112 TClonesArray* fTofTracks;
113
115
116 Double_t fTotRichMin;
117
118 Double_t fTotRichMax;
119
121
123
124
125 std::string fOutputDir; // output dir for results
126
127 std::string fFileName = "Ev";
128
129 Double_t fLEMin;
130
131 Double_t fLEMax;
132
134
135
136 template<typename T = CbmRichHit>
137 bool doToT(T* hit)
138 {
139 bool check = false;
140 if ((hit->GetToT() > 23.7) && (hit->GetToT() < 30.0)) check = true;
141
142 return check;
143 }
144
145
150
155
156
157 ClassDef(CbmRichMCbmSEDisplay, 1)
158};
159
160#endif
Histogram manager.
static vector< vector< QAHit > > hits
friend fscal max(fscal x, fscal y)
friend fscal min(fscal x, fscal y)
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
Histogram manager.
void SetOutDir(std::string dir)
CbmRichMCbmSEDisplay(const CbmRichMCbmSEDisplay &)
Copy constructor.
void DrawEvent(CbmEvent *ev, std::vector< int > &ringIndx, bool full)
Draw histograms.
CbmRichMCbmSEDisplay & operator=(const CbmRichMCbmSEDisplay &)
Assignment operator.
void SetRichRings(TClonesArray *ring=nullptr)
void SetMaxNofDrawnEvents(Int_t val=100)
void SetCanvasDir(std::string dir)
void SetTofTracks(TClonesArray *track=nullptr)
virtual ~CbmRichMCbmSEDisplay()
Standard destructor.
void SetRichHits(TClonesArray *hits=nullptr)
CbmRichMCbmSEDisplay()
Standard constructor.
void SetTotRich(Double_t min, Double_t max)
void SetHistmanager(CbmHistManager *manager)
void SetLELimits(Double_t min, Double_t max)
void XOffsetHistos(Double_t val=0.)
Provides information on attaching a TofHit to a TofTrack.
Hash for CbmL1LinkKey.