Logo ROOT  
Reference Guide
TEveCaloData.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEveCaloData
13 #define ROOT_TEveCaloData
14 
15 #include <vector>
16 #include "TEveElement.h"
17 
18 #include "TMath.h"
19 
20 class TGLSelectRecord;
21 
22 class TH2F;
23 class TAxis;
24 class THStack;
25 
26 class TEveCaloData: public TEveElement,
27  public TNamed
28 {
29 public:
30  struct SliceInfo_t
31  {
32  TString fName; // Name of the slice, eg. ECAL, HCAL.
33  Float_t fThreshold; // Only display towers with higher energy.
34  Color_t fColor; // Color used to draw this longitudinal slice.
35  Color_t fTransparency; // Transparency used to draw this longitudinal slice.
36 
38 
39  virtual ~SliceInfo_t() {}
40 
41  void Setup(const char* name, Float_t threshold, Color_t col, Char_t transp = 101)
42  {
43  fName = name;
44  fThreshold = threshold;
45  fColor = col;
46  if (transp <= 100) fTransparency = transp;
47  };
48 
49  ClassDef(SliceInfo_t, 0); // Slice info for histogram stack.
50  };
51 
52  typedef std::vector<SliceInfo_t> vSliceInfo_t;
53  typedef std::vector<SliceInfo_t>::iterator vSliceInfo_i;
54 
55  /**************************************************************************/
56 
57  struct CellId_t
58  {
59  // Cell ID inner structure.
60 
63 
65 
67 
68  bool operator<(const CellId_t& o) const
69  { return (fTower == o.fTower) ? fSlice < o.fSlice : fTower < o.fTower; }
70  };
71 
72  struct CellGeom_t
73  {
74  // Cell geometry inner structure.
75 
80 
81  Float_t fThetaMin; // cached
82  Float_t fThetaMax; // cached
83 
85  CellGeom_t(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax) {Configure(etaMin, etaMax, phiMin, phiMax);}
86  virtual ~CellGeom_t() {}
87 
88  void Configure(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax);
89 
90  Float_t EtaMin() const { return fEtaMin; }
91  Float_t EtaMax() const { return fEtaMax; }
92  Float_t Eta() const { return (fEtaMin+fEtaMax)*0.5f; }
93  Float_t EtaDelta() const { return fEtaMax-fEtaMin; }
94 
95  Float_t PhiMin() const { return fPhiMin; }
96  Float_t PhiMax() const { return fPhiMax; }
97  Float_t Phi() const { return (fPhiMin+fPhiMax)*0.5f; }
98  Float_t PhiDelta() const { return fPhiMax-fPhiMin; }
99 
100  Float_t ThetaMin() const { return fThetaMin; }
101  Float_t ThetaMax() const { return fThetaMax; }
102  Float_t Theta() const { return (fThetaMax+fThetaMin)*0.5f; }
103  Float_t ThetaDelta() const { return fThetaMax-fThetaMin; }
104 
106  {
107  const Float_t phi = Phi();
108  return ((phi > 0 && phi <= TMath::Pi()) || phi < - TMath::Pi());
109  }
110 
111  virtual void Dump() const;
112  };
113 
114  struct CellData_t : public CellGeom_t
115  {
116  // Cell data inner structure.
117 
119 
121  virtual ~CellData_t() {}
122 
123  Float_t Value(Bool_t) const;
124  virtual void Dump() const;
125  };
126 
127 
128  struct RebinData_t
129  {
131 
132  std::vector<Float_t> fSliceData;
133  std::vector<Int_t> fBinData;
134 
135  Float_t* GetSliceVals(Int_t bin);
136 
137  void Clear()
138  {
139  fSliceData.clear();
140  fBinData.clear();
141  }
142  };
143 
144  /**************************************************************************/
145 
146  typedef std::vector<CellId_t> vCellId_t;
147  typedef std::vector<CellId_t>::iterator vCellId_i;
148 
149  typedef std::vector<CellGeom_t> vCellGeom_t;
150  typedef std::vector<CellGeom_t>::iterator vCellGeom_i;
151  typedef std::vector<CellGeom_t>::const_iterator vCellGeom_ci;
152 
153 private:
154  TEveCaloData(const TEveCaloData&); // Not implemented
155  TEveCaloData& operator=(const TEveCaloData&); // Not implemented
156 
157 protected:
159 
162 
164 
165  Float_t fMaxValEt; // cached
166  Float_t fMaxValE; // cached
167 
169 
172 
173 public:
174  TEveCaloData(const char* n="TEveCalData", const char* t="");
175  virtual ~TEveCaloData() {}
176 
177  virtual void UnSelected();
178  virtual void UnHighlighted();
179 
180  virtual TString GetHighlightTooltip();
181 
182  virtual void FillImpliedSelectedSet(Set_t& impSelSet);
183 
184  virtual void GetCellList(Float_t etaMin, Float_t etaMax,
185  Float_t phi, Float_t phiRng,
186  vCellId_t &out) const = 0;
187 
190  void PrintCellsSelected();
191  void ProcessSelection(vCellId_t& sel_cells, TGLSelectRecord& rec);
192 
193  virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const = 0;
194 
195 
196  virtual void GetCellData(const CellId_t &id, CellData_t& data) const = 0;
197 
198  virtual void InvalidateUsersCellIdCache();
199  virtual void DataChanged();
200  virtual void CellSelectionChanged();
201 
202  Int_t GetNSlices() const { return fSliceInfos.size(); }
204  void SetSliceThreshold(Int_t slice, Float_t threshold);
205  Float_t GetSliceThreshold(Int_t slice) const;
206  void SetSliceColor(Int_t slice, Color_t col);
207  Color_t GetSliceColor(Int_t slice) const;
208  void SetSliceTransparency(Int_t slice, Char_t t);
209  Char_t GetSliceTransparency(Int_t slice) const;
210 
211  virtual void GetEtaLimits(Double_t &min, Double_t &max) const = 0;
212 
213  virtual void GetPhiLimits(Double_t &min, Double_t &max) const = 0;
214 
215  virtual Float_t GetMaxVal(Bool_t et) const { return et ? fMaxValEt : fMaxValE; }
216  Bool_t Empty() const { return fMaxValEt < 1e-5; }
217 
218  virtual TAxis* GetEtaBins() const { return fEtaAxis; }
219  virtual void SetEtaBins(TAxis* ax) { fEtaAxis=ax; }
220 
221  virtual TAxis* GetPhiBins() const { return fPhiAxis; }
222  virtual void SetPhiBins(TAxis* ax) { fPhiAxis=ax; }
223 
224  virtual Float_t GetEps() const { return fEps; }
225  virtual void SetEps(Float_t eps) { fEps=eps; }
226 
227  Bool_t GetWrapTwoPi() const { return fWrapTwoPi; }
229 
230  static Float_t EtaToTheta(Float_t eta);
231 
232 
233  ClassDef(TEveCaloData, 0); // Manages calorimeter event data.
234 };
235 
236 /**************************************************************************/
237 /**************************************************************************/
238 
240 {
241 
242 private:
243  TEveCaloDataVec(const TEveCaloDataVec&); // Not implemented
244  TEveCaloDataVec& operator=(const TEveCaloDataVec&); // Not implemented
245 
246 protected:
247  typedef std::vector<Float_t> vFloat_t;
248  typedef std::vector<Float_t>::iterator vFloat_i;
249 
250  typedef std::vector<vFloat_t> vvFloat_t;
251  typedef std::vector<vFloat_t>::iterator vvFloat_i;
252 
255 
256  Int_t fTower; // current tower
257 
260 
263 
264 public:
265  TEveCaloDataVec(Int_t nslices);
266  virtual ~TEveCaloDataVec();
267 
268  Int_t AddSlice();
269  Int_t AddTower(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax);
270  void FillSlice(Int_t slice, Float_t value);
271  void FillSlice(Int_t slice, Int_t tower, Float_t value);
272 
273  Int_t GetNCells() { return fGeomVec.size(); }
274  std::vector<Float_t>& GetSliceVals(Int_t slice) { return fSliceVec[slice]; }
275  std::vector<TEveCaloData::CellGeom_t>& GetCellGeom() { return fGeomVec; }
276 
277  virtual void GetCellList(Float_t etaMin, Float_t etaMax,
278  Float_t phi, Float_t phiRng,
279  vCellId_t &out) const;
280 
281  virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const;
282 
283  virtual void GetCellData(const TEveCaloData::CellId_t &id, TEveCaloData::CellData_t& data) const;
284  virtual void GetEtaLimits(Double_t &min, Double_t &max) const { min=fEtaMin, max=fEtaMax;}
285  virtual void GetPhiLimits(Double_t &min, Double_t &max) const { min=fPhiMin; max=fPhiMax;}
286 
287 
288  virtual void DataChanged();
289  void SetAxisFromBins(Double_t epsX=0.001, Double_t epsY=0.001);
290 
291  ClassDef(TEveCaloDataVec, 0); // Manages calorimeter event data.
292 };
293 
294 /**************************************************************************/
295 /**************************************************************************/
296 
298 {
299 private:
300  TEveCaloDataHist(const TEveCaloDataHist&); // Not implemented
301  TEveCaloDataHist& operator=(const TEveCaloDataHist&); // Not implemented
302 
303 protected:
305 
306 public:
308  virtual ~TEveCaloDataHist();
309 
310  virtual void GetCellList( Float_t etaMin, Float_t etaMax,
311  Float_t phi, Float_t phiRng, vCellId_t &out) const;
312 
313  virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const;
314 
315  virtual void GetCellData(const TEveCaloData::CellId_t &id, TEveCaloData::CellData_t& data) const;
316 
317  virtual void GetEtaLimits(Double_t &min, Double_t &max) const;
318  virtual void GetPhiLimits(Double_t &min, Double_t &max) const;
319 
320 
321  virtual void DataChanged();
322 
323  THStack* GetStack() { return fHStack; }
324 
325  TH2F* GetHist(Int_t slice) const;
326 
327  Int_t AddHistogram(TH2F* hist);
328 
329  ClassDef(TEveCaloDataHist, 0); // Manages calorimeter TH2F event data.
330 };
331 
332 #endif
333 
TEveCaloDataVec::FillSlice
void FillSlice(Int_t slice, Float_t value)
Fill given slice in the current tower.
Definition: TEveCaloData.cxx:494
TEveCaloData::CellGeom_t::fEtaMax
Float_t fEtaMax
Definition: TEveCaloData.h:79
n
const Int_t n
Definition: legend1.C:16
TEveCaloData::RebinData_t
Definition: TEveCaloData.h:128
TAxis
Class to manage histogram axis.
Definition: TAxis.h:30
TEveCaloData::RebinData_t::GetSliceVals
Float_t * GetSliceVals(Int_t bin)
Definition: TEveCaloData.cxx:89
TEveCaloDataHist::Rebin
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const
Rebin.
Definition: TEveCaloData.cxx:852
TEveCaloData::CellData_t
Definition: TEveCaloData.h:114
TEveCaloDataVec::vFloat_i
std::vector< Float_t >::iterator vFloat_i
Definition: TEveCaloData.h:248
ROOT::Math::etaMax
T etaMax()
Function providing the maximum possible value of pseudorapidity for a non-zero rho,...
Definition: etaMax.h:60
TEveCaloData::CellSelectionChanged
virtual void CellSelectionChanged()
Tell users (TEveCaloViz instances using this data) that cell selection has changed and they should up...
Definition: TEveCaloData.cxx:398
TEveElement
Definition: TEveElement.h:35
e
#define e(i)
Definition: RSha256.hxx:121
TEveCaloDataHist::GetCellData
virtual void GetCellData(const TEveCaloData::CellId_t &id, TEveCaloData::CellData_t &data) const
Get cell geometry and value from cell ID.
Definition: TEveCaloData.cxx:880
TEveCaloData::CellId_t::fFraction
Float_t fFraction
Definition: TEveCaloData.h:64
TEveCaloData::vCellGeom_ci
std::vector< CellGeom_t >::const_iterator vCellGeom_ci
Definition: TEveCaloData.h:151
f
#define f(i)
Definition: RSha256.hxx:122
TEveCaloDataHist::TEveCaloDataHist
TEveCaloDataHist()
Constructor.
Definition: TEveCaloData.cxx:739
TEveCaloDataVec::SetAxisFromBins
void SetAxisFromBins(Double_t epsX=0.001, Double_t epsY=0.001)
Set XY axis from cells geometry.
Definition: TEveCaloData.cxx:648
TEveCaloDataVec
Definition: TEveCaloData.h:239
TEveCaloData::CellGeom_t::fEtaMin
Float_t fEtaMin
Definition: TEveCaloData.h:78
TEveCaloData::SliceInfo_t::~SliceInfo_t
virtual ~SliceInfo_t()
Definition: TEveCaloData.h:39
TEveCaloData::FillImpliedSelectedSet
virtual void FillImpliedSelectedSet(Set_t &impSelSet)
Populate set impSelSet with derived / dependant elements.
Definition: TEveCaloData.cxx:178
TEveCaloData::ProcessSelection
void ProcessSelection(vCellId_t &sel_cells, TGLSelectRecord &rec)
Process newly selected cells with given select-record.
Definition: TEveCaloData.cxx:207
TEveCaloDataVec::operator=
TEveCaloDataVec & operator=(const TEveCaloDataVec &)
TEveCaloData::Rebin
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const =0
TH2F
2-D histogram with a float per channel (see TH1 documentation)}
Definition: TH2.h:251
TEveCaloData::~TEveCaloData
virtual ~TEveCaloData()
Definition: TEveCaloData.h:175
TEveCaloData::SetEps
virtual void SetEps(Float_t eps)
Definition: TEveCaloData.h:225
THStack
Definition: THStack.h:38
TEveCaloData::SetPhiBins
virtual void SetPhiBins(TAxis *ax)
Definition: TEveCaloData.h:222
TEveCaloData::CellId_t::operator<
bool operator<(const CellId_t &o) const
Definition: TEveCaloData.h:68
TEveCaloData::RebinData_t::fBinData
std::vector< Int_t > fBinData
Definition: TEveCaloData.h:133
TEveCaloDataHist::DataChanged
virtual void DataChanged()
Update limits and notify data users.
Definition: TEveCaloData.cxx:759
TEveCaloData::CellGeom_t::Configure
void Configure(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
Definition: TEveCaloData.cxx:42
TEveCaloData::CellGeom_t::PhiMin
Float_t PhiMin() const
Definition: TEveCaloData.h:95
TEveCaloData::CellGeom_t
Definition: TEveCaloData.h:72
TEveCaloData::RebinData_t::Clear
void Clear()
Definition: TEveCaloData.h:137
TEveCaloDataVec::fPhiMax
Float_t fPhiMax
Definition: TEveCaloData.h:262
Float_t
float Float_t
Definition: RtypesCore.h:57
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:168
Int_t
int Int_t
Definition: RtypesCore.h:45
TEveCaloData::vCellId_t
std::vector< CellId_t > vCellId_t
Definition: TEveCaloData.h:146
TEveCaloData::CellGeom_t::fPhiMax
Float_t fPhiMax
Definition: TEveCaloData.h:77
TEveCaloDataVec::fPhiMin
Float_t fPhiMin
Definition: TEveCaloData.h:261
TEveCaloDataVec::fEtaMax
Float_t fEtaMax
Definition: TEveCaloData.h:259
TEveCaloData::PrintCellsSelected
void PrintCellsSelected()
Print selected cells info.
Definition: TEveCaloData.cxx:189
TEveCaloDataVec::fGeomVec
vCellGeom_t fGeomVec
Definition: TEveCaloData.h:254
TEveCaloData::CellGeom_t::fThetaMin
Float_t fThetaMin
Definition: TEveCaloData.h:81
TEveCaloData::GetSliceTransparency
Char_t GetSliceTransparency(Int_t slice) const
Get transparency for given slice.
Definition: TEveCaloData.cxx:358
TEveCaloDataHist::operator=
TEveCaloDataHist & operator=(const TEveCaloDataHist &)
TEveCaloDataVec::GetNCells
Int_t GetNCells()
Definition: TEveCaloData.h:273
TEveCaloDataVec::vvFloat_i
std::vector< vFloat_t >::iterator vvFloat_i
Definition: TEveCaloData.h:251
TEveCaloData::CellGeom_t::EtaMax
Float_t EtaMax() const
Definition: TEveCaloData.h:91
TEveCaloData::GetEps
virtual Float_t GetEps() const
Definition: TEveCaloData.h:224
TEveCaloData::Empty
Bool_t Empty() const
Definition: TEveCaloData.h:216
TEveElement.h
TEveCaloData::SetSliceColor
void SetSliceColor(Int_t slice, Color_t col)
Set color for given slice.
Definition: TEveCaloData.cxx:326
TEveCaloDataVec::fTower
Int_t fTower
Definition: TEveCaloData.h:256
TEveCaloData::SetWrapTwoPi
void SetWrapTwoPi(Bool_t w)
Definition: TEveCaloData.h:228
TEveCaloData::CellGeom_t::PhiMax
Float_t PhiMax() const
Definition: TEveCaloData.h:96
TEveCaloData::SliceInfo_t
Definition: TEveCaloData.h:30
TEveCaloData::CellGeom_t::fPhiMin
Float_t fPhiMin
Definition: TEveCaloData.h:76
TEveCaloDataHist::GetPhiLimits
virtual void GetPhiLimits(Double_t &min, Double_t &max) const
Get phi limits.
Definition: TEveCaloData.cxx:933
TEveCaloDataHist::GetStack
THStack * GetStack()
Definition: TEveCaloData.h:323
TString
Definition: TString.h:136
TEveCaloData::fCellsHighlighted
vCellId_t fCellsHighlighted
Definition: TEveCaloData.h:171
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
Color_t
short Color_t
Definition: RtypesCore.h:83
TEveCaloData::GetEtaLimits
virtual void GetEtaLimits(Double_t &min, Double_t &max) const =0
TEveCaloData::CellGeom_t::ThetaMin
Float_t ThetaMin() const
Definition: TEveCaloData.h:100
TEveCaloDataHist
Definition: TEveCaloData.h:297
bool
TEveCaloData::CellData_t::Dump
virtual void Dump() const
Print member data.
Definition: TEveCaloData.cxx:82
TEveCaloDataVec::fSliceVec
vvFloat_t fSliceVec
Definition: TEveCaloData.h:253
TEveCaloDataVec::vFloat_t
std::vector< Float_t > vFloat_t
Definition: TEveCaloData.h:247
TEveCaloData::SliceInfo_t::fTransparency
Color_t fTransparency
Definition: TEveCaloData.h:35
TEveCaloDataHist::fHStack
THStack * fHStack
Definition: TEveCaloData.h:304
TEveCaloDataVec::GetCellGeom
std::vector< TEveCaloData::CellGeom_t > & GetCellGeom()
Definition: TEveCaloData.h:275
TEveCaloData::GetHighlightTooltip
virtual TString GetHighlightTooltip()
Definition: TEveCaloData.cxx:149
TEveCaloData::CellId_t::CellId_t
CellId_t(Int_t t, Int_t s, Float_t f=1.0f)
Definition: TEveCaloData.h:66
TEveCaloDataVec::GetPhiLimits
virtual void GetPhiLimits(Double_t &min, Double_t &max) const
Definition: TEveCaloData.h:285
TEveCaloDataVec::Rebin
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const
Rebin cells.
Definition: TEveCaloData.cxx:571
TMath::Pi
constexpr Double_t Pi()
Definition: TMath.h:43
TEveCaloData::UnHighlighted
virtual void UnHighlighted()
Virtual method TEveElement::UnHighlighted.
Definition: TEveCaloData.cxx:142
TEveCaloData::fMaxValE
Float_t fMaxValE
Definition: TEveCaloData.h:166
TEveCaloData::CellData_t::Value
Float_t Value(Bool_t) const
Return energy value associated with the cell, usually Et.
Definition: TEveCaloData.cxx:71
TEveCaloData::vCellGeom_t
std::vector< CellGeom_t > vCellGeom_t
Definition: TEveCaloData.h:149
TEveCaloData::CellGeom_t::EtaDelta
Float_t EtaDelta() const
Definition: TEveCaloData.h:93
TEveCaloData::operator=
TEveCaloData & operator=(const TEveCaloData &)
TEveCaloData::TEveCaloData
TEveCaloData(const TEveCaloData &)
TEveCaloData::RefSliceInfo
SliceInfo_t & RefSliceInfo(Int_t s)
Definition: TEveCaloData.h:203
TEveCaloData::GetSliceColor
Color_t GetSliceColor(Int_t slice) const
Get color for given slice.
Definition: TEveCaloData.cxx:338
TEveCaloDataVec::GetEtaLimits
virtual void GetEtaLimits(Double_t &min, Double_t &max) const
Definition: TEveCaloData.h:284
TEveCaloData::SetSliceThreshold
void SetSliceThreshold(Int_t slice, Float_t threshold)
Set threshold for given slice.
Definition: TEveCaloData.cxx:309
TEveCaloData::CellGeom_t::Theta
Float_t Theta() const
Definition: TEveCaloData.h:102
TEveCaloData::CellGeom_t::PhiDelta
Float_t PhiDelta() const
Definition: TEveCaloData.h:98
TEveCaloData::GetPhiLimits
virtual void GetPhiLimits(Double_t &min, Double_t &max) const =0
TGLSelectRecord
Definition: TGLSelectRecord.h:74
TEveCaloData::SliceInfo_t::fThreshold
Float_t fThreshold
Definition: TEveCaloData.h:33
TEveCaloData::EtaToTheta
static Float_t EtaToTheta(Float_t eta)
Definition: TEveCaloData.cxx:411
TEveCaloData::CellGeom_t::Phi
Float_t Phi() const
Definition: TEveCaloData.h:97
TEveCaloData::UnSelected
virtual void UnSelected()
Virtual method TEveElement::UnSelect.
Definition: TEveCaloData.cxx:134
TNamed
Definition: TNamed.h:29
TEveCaloData::CellGeom_t::CellGeom_t
CellGeom_t(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
Definition: TEveCaloData.h:85
TEveCaloDataVec::AddSlice
Int_t AddSlice()
Add new slice.
Definition: TEveCaloData.cxx:459
TEveCaloData::fPhiAxis
TAxis * fPhiAxis
Definition: TEveCaloData.h:161
TEveCaloData::CellGeom_t::Dump
virtual void Dump() const
Print member data.
Definition: TEveCaloData.cxx:35
TEveCaloData::CellData_t::fValue
Float_t fValue
Definition: TEveCaloData.h:118
TEveCaloData::CellGeom_t::ThetaDelta
Float_t ThetaDelta() const
Definition: TEveCaloData.h:103
TEveCaloData::fCellsSelected
vCellId_t fCellsSelected
Definition: TEveCaloData.h:170
TEveCaloDataHist::GetCellList
virtual void GetCellList(Float_t etaMin, Float_t etaMax, Float_t phi, Float_t phiRng, vCellId_t &out) const
Get list of cell IDs in given eta and phi range.
Definition: TEveCaloData.cxx:798
TEveCaloDataVec::~TEveCaloDataVec
virtual ~TEveCaloDataVec()
Destructor.
Definition: TEveCaloData.cxx:450
TEveCaloData::SetSliceTransparency
void SetSliceTransparency(Int_t slice, Char_t t)
Set transparency for given slice.
Definition: TEveCaloData.cxx:346
TEveCaloData::fEtaAxis
TAxis * fEtaAxis
Definition: TEveCaloData.h:160
TEveCaloData::SetEtaBins
virtual void SetEtaBins(TAxis *ax)
Definition: TEveCaloData.h:219
TEveCaloData::CellId_t::fTower
Int_t fTower
Definition: TEveCaloData.h:61
kRed
@ kRed
Definition: Rtypes.h:66
TEveCaloData::fEps
Float_t fEps
Definition: TEveCaloData.h:168
TEveCaloDataVec::AddTower
Int_t AddTower(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
Add tower within eta/phi range.
Definition: TEveCaloData.cxx:471
TEveCaloData
Definition: TEveCaloData.h:26
TEveCaloDataVec::vvFloat_t
std::vector< vFloat_t > vvFloat_t
Definition: TEveCaloData.h:250
TEveCaloData::CellGeom_t::IsUpperRho
Bool_t IsUpperRho() const
Definition: TEveCaloData.h:105
TEveCaloData::fSliceInfos
vSliceInfo_t fSliceInfos
Definition: TEveCaloData.h:158
TEveCaloData::GetCellsSelected
vCellId_t & GetCellsSelected()
Definition: TEveCaloData.h:188
TEveCaloData::GetPhiBins
virtual TAxis * GetPhiBins() const
Definition: TEveCaloData.h:221
TEveCaloDataVec::TEveCaloDataVec
TEveCaloDataVec(const TEveCaloDataVec &)
TEveCaloData::CellData_t::CellData_t
CellData_t()
Definition: TEveCaloData.h:120
TEveCaloData::SliceInfo_t::SliceInfo_t
SliceInfo_t()
Definition: TEveCaloData.h:37
TEveCaloData::CellGeom_t::CellGeom_t
CellGeom_t()
Definition: TEveCaloData.h:84
TEveCaloData::GetNSlices
Int_t GetNSlices() const
Definition: TEveCaloData.h:202
TEveCaloData::SliceInfo_t::fColor
Color_t fColor
Definition: TEveCaloData.h:34
TEveCaloData::GetEtaBins
virtual TAxis * GetEtaBins() const
Definition: TEveCaloData.h:218
Double_t
double Double_t
Definition: RtypesCore.h:59
TEveCaloData::vSliceInfo_i
std::vector< SliceInfo_t >::iterator vSliceInfo_i
Definition: TEveCaloData.h:53
TEveCaloDataVec::GetCellData
virtual void GetCellData(const TEveCaloData::CellId_t &id, TEveCaloData::CellData_t &data) const
Get cell geometry and value from cell ID.
Definition: TEveCaloData.cxx:607
TEveCaloData::SliceInfo_t::fName
TString fName
Definition: TEveCaloData.h:32
TEveCaloData::CellId_t::fSlice
Int_t fSlice
Definition: TEveCaloData.h:62
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TEveCaloData::DataChanged
virtual void DataChanged()
Tell users (TEveCaloViz instances using this data) that data has changed and they should update the l...
Definition: TEveCaloData.cxx:382
TEveCaloDataHist::GetEtaLimits
virtual void GetEtaLimits(Double_t &min, Double_t &max) const
Get eta limits.
Definition: TEveCaloData.cxx:924
TEveCaloData::GetWrapTwoPi
Bool_t GetWrapTwoPi() const
Definition: TEveCaloData.h:227
TEveCaloDataHist::AddHistogram
Int_t AddHistogram(TH2F *hist)
Add new slice to calo tower.
Definition: TEveCaloData.cxx:900
name
char name[80]
Definition: TGX11.cxx:110
TEveCaloData::CellGeom_t::ThetaMax
Float_t ThetaMax() const
Definition: TEveCaloData.h:101
TEveCaloData::GetMaxVal
virtual Float_t GetMaxVal(Bool_t et) const
Definition: TEveCaloData.h:215
TEveCaloData::vSliceInfo_t
std::vector< SliceInfo_t > vSliceInfo_t
Definition: TEveCaloData.h:52
TEveCaloData::InvalidateUsersCellIdCache
virtual void InvalidateUsersCellIdCache()
Invalidate cell ids cache on back ptr references.
Definition: TEveCaloData.cxx:366
TEveCaloDataVec::fEtaMin
Float_t fEtaMin
Definition: TEveCaloData.h:258
TEveCaloData::CellGeom_t::~CellGeom_t
virtual ~CellGeom_t()
Definition: TEveCaloData.h:86
TEveCaloDataVec::GetCellList
virtual void GetCellList(Float_t etaMin, Float_t etaMax, Float_t phi, Float_t phiRng, vCellId_t &out) const
Get list of cell-ids for given eta/phi range.
Definition: TEveCaloData.cxx:511
TEveCaloData::GetCellData
virtual void GetCellData(const CellId_t &id, CellData_t &data) const =0
TEveCaloData::vCellGeom_i
std::vector< CellGeom_t >::iterator vCellGeom_i
Definition: TEveCaloData.h:150
TEveCaloData::CellGeom_t::EtaMin
Float_t EtaMin() const
Definition: TEveCaloData.h:90
TEveCaloData::GetCellsHighlighted
vCellId_t & GetCellsHighlighted()
Definition: TEveCaloData.h:189
TEveCaloData::CellGeom_t::Eta
Float_t Eta() const
Definition: TEveCaloData.h:92
TEveCaloDataHist::~TEveCaloDataHist
virtual ~TEveCaloDataHist()
Destructor.
Definition: TEveCaloData.cxx:751
TEveCaloData::GetCellList
virtual void GetCellList(Float_t etaMin, Float_t etaMax, Float_t phi, Float_t phiRng, vCellId_t &out) const =0
TEveCaloData::CellGeom_t::fThetaMax
Float_t fThetaMax
Definition: TEveCaloData.h:82
TEveCaloData::SliceInfo_t::Setup
void Setup(const char *name, Float_t threshold, Color_t col, Char_t transp=101)
Definition: TEveCaloData.h:41
Char_t
char Char_t
Definition: RtypesCore.h:33
TEveCaloData::fMaxValEt
Float_t fMaxValEt
Definition: TEveCaloData.h:165
TEveCaloDataVec::GetSliceVals
std::vector< Float_t > & GetSliceVals(Int_t slice)
Definition: TEveCaloData.h:274
TEveCaloData::CellData_t::~CellData_t
virtual ~CellData_t()
Definition: TEveCaloData.h:121
TEveCaloData::vCellId_i
std::vector< CellId_t >::iterator vCellId_i
Definition: TEveCaloData.h:147
TEveCaloData::RebinData_t::fNSlices
Int_t fNSlices
Definition: TEveCaloData.h:130
TEveCaloData::GetSliceThreshold
Float_t GetSliceThreshold(Int_t slice) const
Get threshold for given slice.
Definition: TEveCaloData.cxx:318
TEveElement::Set_t
std::set< TEveElement * > Set_t
Definition: TEveElement.h:75
TEveCaloData::RebinData_t::fSliceData
std::vector< Float_t > fSliceData
Definition: TEveCaloData.h:132
TEveCaloData::CellId_t
Definition: TEveCaloData.h:57
TEveCaloData::fWrapTwoPi
Bool_t fWrapTwoPi
Definition: TEveCaloData.h:163
TMath.h
TEveCaloDataVec::DataChanged
virtual void DataChanged()
Update limits and notify data users.
Definition: TEveCaloData.cxx:617
TEveCaloDataHist::GetHist
TH2F * GetHist(Int_t slice) const
Get histogram in given slice.
Definition: TEveCaloData.cxx:915
int