Logo ROOT  
Reference Guide
REveCaloData.hxx
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_REveCaloData
13 #define ROOT_REveCaloData
14 
15 #include <vector>
16 #include "ROOT/REveElement.hxx"
17 
18 #include "TMath.h"
19 
20 class TH2F;
21 class TAxis;
22 class THStack;
23 
24 namespace ROOT {
25 namespace Experimental {
26 
27 class REveCaloData: public REveElement,
28  public REveAuntAsList
29 {
30 public:
31  struct SliceInfo_t
32  {
33  TString fName; // Name of the slice, eg. ECAL, HCAL.
34  Float_t fThreshold; // Only display towers with higher energy.
35  Color_t fColor; // Color used to draw this longitudinal slice.
36  Color_t fTransparency; // Transparency used to draw this longitudinal slice.
37 
39 
40  virtual ~SliceInfo_t() {}
41 
42  void Setup(const char* name, Float_t threshold, Color_t col, Char_t transp = 101)
43  {
44  fName = name;
45  fThreshold = threshold;
46  fColor = col;
47  if (transp <= 100) fTransparency = transp;
48  };
49  };
50 
51  typedef std::vector<SliceInfo_t> vSliceInfo_t;
52  typedef std::vector<SliceInfo_t>::iterator vSliceInfo_i;
53 
54  /**************************************************************************/
55 
56  struct CellId_t
57  {
58  // Cell ID inner structure.
59 
62 
64 
65  CellId_t() : fTower(0), fSlice(0), fFraction(0) {}
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:
155 
156 protected:
158 
161 
163 
164  Float_t fMaxValEt; // cached
165  Float_t fMaxValE; // cached
166 
168 
171 
174 
175 public:
176  REveCaloData(const char* n="REveCaloData", const char* t="");
177  virtual ~REveCaloData() {}
178 
179  virtual void UnSelected();
180  virtual void UnHighlighted();
181 
182  std::string GetHighlightTooltip() const override;
183 
184  void FillImpliedSelectedSet(Set_t& impSelSet) override;
185 
186  virtual void GetCellList(Float_t etaMin, Float_t etaMax,
187  Float_t phi, Float_t phiRng,
188  vCellId_t &out) const = 0;
189 
192  void PrintCellsSelected();
193  void ProcessSelection(vCellId_t& sel_cells, UInt_t selectionId, Bool_t multi);
194 
195  virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const = 0;
196 
197 
198  virtual void GetCellData(const CellId_t &id, CellData_t& data) const = 0;
199 
200  virtual void InvalidateUsersCellIdCache();
201  virtual void DataChanged();
202  virtual void CellSelectionChanged(UInt_t selectionId, Int_t secSel);
203 
204  Int_t GetNSlices() const { return fSliceInfos.size(); }
206  void SetSliceThreshold(Int_t slice, Float_t threshold);
207  Float_t GetSliceThreshold(Int_t slice) const;
208  void SetSliceColor(Int_t slice, Color_t col);
209  Color_t GetSliceColor(Int_t slice) const;
210  void SetSliceTransparency(Int_t slice, Char_t t);
211  Char_t GetSliceTransparency(Int_t slice) const;
212 
213  virtual void GetEtaLimits(Double_t &min, Double_t &max) const = 0;
214 
215  virtual void GetPhiLimits(Double_t &min, Double_t &max) const = 0;
216 
217  virtual Float_t GetMaxVal(Bool_t et) const { return et ? fMaxValEt : fMaxValE; }
218  Bool_t Empty() const { return fMaxValEt < 1e-5; }
219 
220  virtual TAxis* GetEtaBins() const { return fEtaAxis; }
221  virtual void SetEtaBins(TAxis* ax) { fEtaAxis=ax; }
222 
223  virtual TAxis* GetPhiBins() const { return fPhiAxis; }
224  virtual void SetPhiBins(TAxis* ax) { fPhiAxis=ax; }
225 
226  virtual Float_t GetEps() const { return fEps; }
227  virtual void SetEps(Float_t eps) { fEps=eps; }
228 
229  Bool_t GetWrapTwoPi() const { return fWrapTwoPi; }
231 
232  Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override;
233 
234  static Float_t EtaToTheta(Float_t eta);
235 };
236 
237 /**************************************************************************/
238 /**************************************************************************/
239 
241 {
242 
243 private:
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  REveCaloDataVec(Int_t nslices);
266  virtual ~REveCaloDataVec();
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<REveCaloData::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 REveCaloData::CellId_t &id, REveCaloData::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 
292 /**************************************************************************/
293 /**************************************************************************/
294 
296 {
297 private:
299 
300 protected:
302 
303 public:
305  virtual ~REveCaloDataHist();
306 
307  virtual void GetCellList( Float_t etaMin, Float_t etaMax,
308  Float_t phi, Float_t phiRng, vCellId_t &out) const;
309 
310  virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const;
311 
312  virtual void GetCellData(const REveCaloData::CellId_t &id, REveCaloData::CellData_t& data) const;
313 
314  virtual void GetEtaLimits(Double_t &min, Double_t &max) const;
315  virtual void GetPhiLimits(Double_t &min, Double_t &max) const;
316 
317 
318  virtual void DataChanged();
319 
320  THStack* GetStack() { return fHStack; }
321 
322  TH2F* GetHist(Int_t slice) const;
323 
324  Int_t AddHistogram(TH2F* hist);
325 };
326 
327 } // namespace Experimental
328 } // namespace ROOT
329 #endif
330 
ROOT::Experimental::REveCaloDataVec::SetAxisFromBins
void SetAxisFromBins(Double_t epsX=0.001, Double_t epsY=0.001)
Set XY axis from cells geometry.
Definition: REveCaloData.cxx:711
ROOT::Experimental::REveCaloData::DataChanged
virtual void DataChanged()
Tell users (REveCaloViz instances using this data) that data has changed and they should update the l...
Definition: REveCaloData.cxx:399
ROOT::Experimental::REveCaloData::CellGeom_t::Configure
void Configure(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
Definition: REveCaloData.cxx:50
ROOT::Experimental::REveCaloData::vSliceInfo_i
std::vector< SliceInfo_t >::iterator vSliceInfo_i
Definition: REveCaloData.hxx:52
ROOT::Experimental::REveCaloData::SliceInfo_t
Definition: REveCaloData.hxx:32
ROOT::Experimental::REveCaloDataVec::REveCaloDataVec
REveCaloDataVec(Int_t nslices)
Definition: REveCaloData.cxx:494
n
const Int_t n
Definition: legend1.C:16
ROOT::Experimental::REveCaloData::CellId_t::fTower
Int_t fTower
Definition: REveCaloData.hxx:60
ROOT::Experimental::REveCaloDataHist::operator=
REveCaloDataHist & operator=(const REveCaloDataHist &)=delete
TAxis
Class to manage histogram axis.
Definition: TAxis.h:30
ROOT::Experimental::REveCaloData::fPhiAxis
TAxis * fPhiAxis
Definition: REveCaloData.hxx:160
ROOT::Experimental::REveCaloDataVec::GetSliceVals
std::vector< Float_t > & GetSliceVals(Int_t slice)
Definition: REveCaloData.hxx:274
ROOT::Experimental::REveCaloData::CellData_t::CellData_t
CellData_t()
Definition: REveCaloData.hxx:120
ROOT::Math::etaMax
T etaMax()
Function providing the maximum possible value of pseudorapidity for a non-zero rho,...
Definition: etaMax.h:50
e
#define e(i)
Definition: RSha256.hxx:103
ROOT::Experimental::REveCaloData::CellGeom_t::ThetaMax
Float_t ThetaMax() const
Definition: REveCaloData.hxx:101
ROOT::Experimental::REveCaloData::fCellsSelected
vCellId_t fCellsSelected
Definition: REveCaloData.hxx:169
ROOT::Experimental::REveCaloDataVec::GetCellData
virtual void GetCellData(const REveCaloData::CellId_t &id, REveCaloData::CellData_t &data) const
Get cell geometry and value from cell ID.
Definition: REveCaloData.cxx:670
f
#define f(i)
Definition: RSha256.hxx:104
ROOT::Experimental::REveCaloDataVec::vFloat_i
std::vector< Float_t >::iterator vFloat_i
Definition: REveCaloData.hxx:248
ROOT::Experimental::REveCaloDataVec::DataChanged
virtual void DataChanged()
Update limits and notify data users.
Definition: REveCaloData.cxx:680
ROOT::Experimental::REveCaloData::CellGeom_t::fPhiMax
Float_t fPhiMax
Definition: REveCaloData.hxx:77
nlohmann::json
basic_json<> json
Definition: REveElement.hxx:58
ROOT::Experimental::REveCaloDataVec::~REveCaloDataVec
virtual ~REveCaloDataVec()
Destructor.
Definition: REveCaloData.cxx:513
ROOT::Experimental::REveCaloData::SliceInfo_t::fTransparency
Color_t fTransparency
Definition: REveCaloData.hxx:36
ROOT::Experimental::REveCaloDataHist::~REveCaloDataHist
virtual ~REveCaloDataHist()
Destructor.
Definition: REveCaloData.cxx:813
TH2F
2-D histogram with a float per channel (see TH1 documentation)}
Definition: TH2.h:251
ROOT::Experimental::REveCaloData::RebinData_t::Clear
void Clear()
Definition: REveCaloData.hxx:137
ROOT::Experimental::REveCaloData::CellGeom_t::Dump
virtual void Dump() const
Print member data.
Definition: REveCaloData.cxx:43
ROOT::Experimental::REveCaloData::CellData_t::fValue
Float_t fValue
Definition: REveCaloData.hxx:118
ROOT::Experimental::REveCaloData::CellGeom_t::ThetaDelta
Float_t ThetaDelta() const
Definition: REveCaloData.hxx:103
THStack
The Histogram stack class.
Definition: THStack.h:38
ROOT::Experimental::REveCaloData::fSelectionSecondarySelectIdx
int fSelectionSecondarySelectIdx
Definition: REveCaloData.hxx:172
ROOT::Experimental::REveCaloDataVec::FillSlice
void FillSlice(Int_t slice, Float_t value)
Fill given slice in the current tower.
Definition: REveCaloData.cxx:557
ROOT::Experimental::REveCaloDataHist::REveCaloDataHist
REveCaloDataHist()
Constructor.
Definition: REveCaloData.cxx:801
ROOT::Experimental::REveCaloData::SetEps
virtual void SetEps(Float_t eps)
Definition: REveCaloData.hxx:227
ROOT::Experimental::REveCaloData::ProcessSelection
void ProcessSelection(vCellId_t &sel_cells, UInt_t selectionId, Bool_t multi)
Process newly selected cells with given select-record.
Definition: REveCaloData.cxx:216
ROOT::Experimental::REveCaloData::SetSliceColor
void SetSliceColor(Int_t slice, Color_t col)
Set color for given slice.
Definition: REveCaloData.cxx:340
ROOT::Experimental::REveCaloData::GetCellList
virtual void GetCellList(Float_t etaMin, Float_t etaMax, Float_t phi, Float_t phiRng, vCellId_t &out) const =0
ROOT::Experimental::REveCaloData::GetPhiLimits
virtual void GetPhiLimits(Double_t &min, Double_t &max) const =0
ROOT::Experimental::REveCaloData::GetPhiBins
virtual TAxis * GetPhiBins() const
Definition: REveCaloData.hxx:223
ROOT::Experimental::REveCaloData::CellGeom_t::EtaMin
Float_t EtaMin() const
Definition: REveCaloData.hxx:90
ROOT::Experimental::REveCaloData::SetSliceThreshold
void SetSliceThreshold(Int_t slice, Float_t threshold)
Set threshold for given slice.
Definition: REveCaloData.cxx:323
ROOT::Experimental::REveCaloData::CellGeom_t::PhiMax
Float_t PhiMax() const
Definition: REveCaloData.hxx:96
ROOT::Experimental::REveCaloDataVec::AddSlice
Int_t AddSlice()
Add new slice.
Definition: REveCaloData.cxx:522
ROOT::Experimental::REveCaloData::SetSliceTransparency
void SetSliceTransparency(Int_t slice, Char_t t)
Set transparency for given slice.
Definition: REveCaloData.cxx:361
Float_t
float Float_t
Definition: RtypesCore.h:57
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
ROOT::Experimental::REveCaloData::vSliceInfo_t
std::vector< SliceInfo_t > vSliceInfo_t
Definition: REveCaloData.hxx:51
Int_t
int Int_t
Definition: RtypesCore.h:45
ROOT::Experimental::REveCaloData::CellId_t::CellId_t
CellId_t()
Definition: REveCaloData.hxx:65
ROOT::Experimental::REveCaloData::CellId_t
Definition: REveCaloData.hxx:57
ROOT::Experimental::REveCaloData::fMaxValE
Float_t fMaxValE
Definition: REveCaloData.hxx:165
ROOT::Experimental::REveCaloDataVec::vvFloat_i
std::vector< vFloat_t >::iterator vvFloat_i
Definition: REveCaloData.hxx:251
ROOT::Experimental::REveCaloDataHist::AddHistogram
Int_t AddHistogram(TH2F *hist)
Add new slice to calo tower.
Definition: REveCaloData.cxx:962
ROOT::Experimental::REveCaloData::fWrapTwoPi
Bool_t fWrapTwoPi
Definition: REveCaloData.hxx:162
ROOT::Experimental::REveCaloData::CellData_t::~CellData_t
virtual ~CellData_t()
Definition: REveCaloData.hxx:121
ROOT::Experimental::REveCaloDataHist::GetStack
THStack * GetStack()
Definition: REveCaloData.hxx:320
ROOT::Experimental::REveCaloData::CellGeom_t::fThetaMin
Float_t fThetaMin
Definition: REveCaloData.hxx:81
ROOT::Experimental::REveCaloData::fEtaAxis
TAxis * fEtaAxis
Definition: REveCaloData.hxx:159
ROOT::Experimental::REveCaloData::Empty
Bool_t Empty() const
Definition: REveCaloData.hxx:218
TString
Basic string class.
Definition: TString.h:136
ROOT::Experimental::REveCaloDataHist::fHStack
THStack * fHStack
Definition: REveCaloData.hxx:301
ROOT::Experimental::REveElement
Definition: REveElement.hxx:80
ROOT::Experimental::REveCaloDataVec::GetCellGeom
std::vector< REveCaloData::CellGeom_t > & GetCellGeom()
Definition: REveCaloData.hxx:275
ROOT::Experimental::REveCaloDataHist
Definition: REveCaloData.hxx:296
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
Color_t
short Color_t
Definition: RtypesCore.h:83
ROOT::Experimental::REveCaloData::Rebin
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const =0
ROOT::Experimental::REveCaloDataVec::AddTower
Int_t AddTower(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
Add tower within eta/phi range.
Definition: REveCaloData.cxx:534
ROOT::Experimental::REveCaloData::vCellGeom_t
std::vector< CellGeom_t > vCellGeom_t
Definition: REveCaloData.hxx:149
bool
ROOT::Experimental::REveCaloData::GetMaxVal
virtual Float_t GetMaxVal(Bool_t et) const
Definition: REveCaloData.hxx:217
ROOT::Experimental::REveCaloDataVec::fSliceVec
vvFloat_t fSliceVec
Definition: REveCaloData.hxx:253
ROOT::Experimental::REveCaloData::CellGeom_t::Phi
Float_t Phi() const
Definition: REveCaloData.hxx:97
ROOT::Experimental::REveCaloDataHist::GetPhiLimits
virtual void GetPhiLimits(Double_t &min, Double_t &max) const
Get phi limits.
Definition: REveCaloData.cxx:995
ROOT::Experimental::REveCaloData::CellData_t::Dump
virtual void Dump() const
Print member data.
Definition: REveCaloData.cxx:90
ROOT::Experimental::REveCaloData::GetNSlices
Int_t GetNSlices() const
Definition: REveCaloData.hxx:204
ROOT::Experimental::REveCaloData::SliceInfo_t::~SliceInfo_t
virtual ~SliceInfo_t()
Definition: REveCaloData.hxx:40
ROOT::Experimental::REveCaloData::SliceInfo_t::Setup
void Setup(const char *name, Float_t threshold, Color_t col, Char_t transp=101)
Definition: REveCaloData.hxx:42
ROOT::Experimental::REveCaloDataHist::GetHist
TH2F * GetHist(Int_t slice) const
Get histogram in given slice.
Definition: REveCaloData.cxx:977
ROOT::Experimental::REveCaloData::GetCellsHighlighted
vCellId_t & GetCellsHighlighted()
Definition: REveCaloData.hxx:191
ROOT::Experimental::REveCaloData::vCellId_t
std::vector< CellId_t > vCellId_t
Definition: REveCaloData.hxx:146
ROOT::Experimental::REveCaloDataHist::DataChanged
virtual void DataChanged()
Update limits and notify data users.
Definition: REveCaloData.cxx:821
ROOT::Experimental::REveCaloData::CellGeom_t::fPhiMin
Float_t fPhiMin
Definition: REveCaloData.hxx:76
ROOT::Experimental::REveCaloDataHist::GetCellData
virtual void GetCellData(const REveCaloData::CellId_t &id, REveCaloData::CellData_t &data) const
Get cell geometry and value from cell ID.
Definition: REveCaloData.cxx:942
TMath::Pi
constexpr Double_t Pi()
Definition: TMath.h:37
ROOT::Experimental::REveCaloData::RefSliceInfo
SliceInfo_t & RefSliceInfo(Int_t s)
Definition: REveCaloData.hxx:205
ROOT::Experimental::REveCaloData::CellId_t::CellId_t
CellId_t(Int_t t, Int_t s, Float_t f=1.0f)
Definition: REveCaloData.hxx:66
ROOT::Experimental::REveCaloData::CellData_t
Definition: REveCaloData.hxx:115
ROOT::Experimental::REveCaloDataVec::vFloat_t
std::vector< Float_t > vFloat_t
Definition: REveCaloData.hxx:247
ROOT::Experimental::REveCaloData::operator=
REveCaloData & operator=(const REveCaloData &)=delete
ROOT::Experimental::REveCaloData::CellGeom_t
Definition: REveCaloData.hxx:73
ROOT::Experimental::REveCaloData::SetWrapTwoPi
void SetWrapTwoPi(Bool_t w)
Definition: REveCaloData.hxx:230
ROOT::Experimental::REveCaloDataHist::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: REveCaloData.cxx:860
ROOT::Experimental::REveCaloData::UnSelected
virtual void UnSelected()
Virtual method REveElement::UnSelect.
Definition: REveCaloData.cxx:141
REveElement.hxx
ROOT::Experimental::REveCaloData::GetSliceColor
Color_t GetSliceColor(Int_t slice) const
Get color for given slice.
Definition: REveCaloData.cxx:353
ROOT::Experimental::REveCaloData::CellGeom_t::CellGeom_t
CellGeom_t(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
Definition: REveCaloData.hxx:85
ROOT::Experimental::REveCaloData::SliceInfo_t::fName
TString fName
Definition: REveCaloData.hxx:33
ROOT::Experimental::REveCaloData::SliceInfo_t::fColor
Color_t fColor
Definition: REveCaloData.hxx:35
ROOT::Experimental::REveCaloDataVec::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: REveCaloData.cxx:574
ROOT::Experimental::REveCaloData::REveCaloData
REveCaloData(const char *n="REveCaloData", const char *t="")
Definition: REveCaloData.cxx:120
ROOT::Experimental::REveCaloDataVec::GetEtaLimits
virtual void GetEtaLimits(Double_t &min, Double_t &max) const
Definition: REveCaloData.hxx:284
ROOT::Experimental::REveCaloData::fHighlightSecondarySelectIdx
int fHighlightSecondarySelectIdx
Definition: REveCaloData.hxx:173
ROOT::Experimental::REveCaloData::fCellsHighlighted
vCellId_t fCellsHighlighted
Definition: REveCaloData.hxx:170
ROOT::Experimental::REveCaloData::RebinData_t
Definition: REveCaloData.hxx:129
ROOT::Experimental::REveCaloData::InvalidateUsersCellIdCache
virtual void InvalidateUsersCellIdCache()
Invalidate cell ids cache on back ptr references.
Definition: REveCaloData.cxx:382
ROOT::Experimental::REveCaloDataVec::vvFloat_t
std::vector< vFloat_t > vvFloat_t
Definition: REveCaloData.hxx:250
ROOT::Experimental::REveCaloDataVec::fPhiMax
Float_t fPhiMax
Definition: REveCaloData.hxx:262
ROOT::Experimental::REveCaloData::SliceInfo_t::SliceInfo_t
SliceInfo_t()
Definition: REveCaloData.hxx:38
ROOT::Experimental::REveElement::Set_t
std::set< REveElement * > Set_t
Definition: REveElement.hxx:89
kRed
@ kRed
Definition: Rtypes.h:66
ROOT::Experimental::REveCaloData::CellId_t::operator<
bool operator<(const CellId_t &o) const
Definition: REveCaloData.hxx:68
ROOT::Experimental::REveCaloData::CellGeom_t::EtaDelta
Float_t EtaDelta() const
Definition: REveCaloData.hxx:93
ROOT::Experimental::REveCaloDataVec::fPhiMin
Float_t fPhiMin
Definition: REveCaloData.hxx:261
ROOT::Experimental::REveCaloData
Definition: REveCaloData.hxx:29
ROOT::Experimental::REveCaloData::RebinData_t::fBinData
std::vector< Int_t > fBinData
Definition: REveCaloData.hxx:133
unsigned int
ROOT::Experimental::REveCaloDataHist::GetEtaLimits
virtual void GetEtaLimits(Double_t &min, Double_t &max) const
Get eta limits.
Definition: REveCaloData.cxx:986
ROOT::Experimental::REveCaloData::vCellGeom_ci
std::vector< CellGeom_t >::const_iterator vCellGeom_ci
Definition: REveCaloData.hxx:151
ROOT::Experimental::REveCaloDataHist::Rebin
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const
Rebin.
Definition: REveCaloData.cxx:914
ROOT::Experimental::REveCaloData::CellGeom_t::fThetaMax
Float_t fThetaMax
Definition: REveCaloData.hxx:82
ROOT::Experimental::REveCaloData::CellId_t::fSlice
Int_t fSlice
Definition: REveCaloData.hxx:61
ROOT::Experimental::REveCaloData::CellGeom_t::Eta
Float_t Eta() const
Definition: REveCaloData.hxx:92
ROOT::Experimental::REveCaloData::CellData_t::Value
Float_t Value(Bool_t) const
Return energy value associated with the cell, usually Et.
Definition: REveCaloData.cxx:79
ROOT::Experimental::REveCaloData::SetPhiBins
virtual void SetPhiBins(TAxis *ax)
Definition: REveCaloData.hxx:224
ROOT::Experimental::REveCaloDataVec::fTower
Int_t fTower
Definition: REveCaloData.hxx:256
ROOT::Experimental::REveCaloData::GetEtaLimits
virtual void GetEtaLimits(Double_t &min, Double_t &max) const =0
ROOT::Experimental::REveCaloData::CellGeom_t::Theta
Float_t Theta() const
Definition: REveCaloData.hxx:102
ROOT::Experimental::REveCaloData::UnHighlighted
virtual void UnHighlighted()
Virtual method REveElement::UnHighlighted.
Definition: REveCaloData.cxx:149
ROOT::Experimental::REveCaloData::RebinData_t::fNSlices
Int_t fNSlices
Definition: REveCaloData.hxx:130
Double_t
double Double_t
Definition: RtypesCore.h:59
ROOT::Experimental::REveCaloDataVec::GetPhiLimits
virtual void GetPhiLimits(Double_t &min, Double_t &max) const
Definition: REveCaloData.hxx:285
ROOT::Experimental::REveCaloData::CellGeom_t::CellGeom_t
CellGeom_t()
Definition: REveCaloData.hxx:84
ROOT::Experimental::REveCaloData::RebinData_t::GetSliceVals
Float_t * GetSliceVals(Int_t bin)
Definition: REveCaloData.cxx:97
ROOT::Experimental::REveCaloDataVec::fEtaMin
Float_t fEtaMin
Definition: REveCaloData.hxx:258
ROOT::Experimental::REveCaloData::CellId_t::fFraction
Float_t fFraction
Definition: REveCaloData.hxx:63
ROOT::Experimental::REveCaloDataVec::fGeomVec
vCellGeom_t fGeomVec
Definition: REveCaloData.hxx:254
ROOT::Experimental::REveCaloData::GetCellData
virtual void GetCellData(const CellId_t &id, CellData_t &data) const =0
ROOT::Experimental::REveCaloData::PrintCellsSelected
void PrintCellsSelected()
Print selected cells info.
Definition: REveCaloData.cxx:198
ROOT::Experimental::REveCaloData::GetCellsSelected
vCellId_t & GetCellsSelected()
Definition: REveCaloData.hxx:190
ROOT::Experimental::REveCaloData::fEps
Float_t fEps
Definition: REveCaloData.hxx:167
ROOT::Experimental::REveCaloData::fMaxValEt
Float_t fMaxValEt
Definition: REveCaloData.hxx:164
ROOT::Experimental::REveCaloData::GetSliceTransparency
Char_t GetSliceTransparency(Int_t slice) const
Get transparency for given slice.
Definition: REveCaloData.cxx:374
name
char name[80]
Definition: TGX11.cxx:110
ROOT::Experimental::REveCaloData::GetWrapTwoPi
Bool_t GetWrapTwoPi() const
Definition: REveCaloData.hxx:229
ROOT::Experimental::REveCaloData::CellGeom_t::PhiMin
Float_t PhiMin() const
Definition: REveCaloData.hxx:95
ROOT::Experimental::REveCaloData::WriteCoreJson
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Write core json.
Definition: REveCaloData.cxx:438
ROOT::Experimental::REveCaloData::CellGeom_t::EtaMax
Float_t EtaMax() const
Definition: REveCaloData.hxx:91
ROOT::Experimental::REveCaloData::FillImpliedSelectedSet
void FillImpliedSelectedSet(Set_t &impSelSet) override
Populate set impSelSet with derived / dependant elements.
Definition: REveCaloData.cxx:185
ROOT::Experimental::REveCaloDataVec::fEtaMax
Float_t fEtaMax
Definition: REveCaloData.hxx:259
ROOT::Experimental::REveAuntAsList
Definition: REveElement.hxx:435
ROOT::Experimental::REveCaloDataVec::GetNCells
Int_t GetNCells()
Definition: REveCaloData.hxx:273
ROOT::Experimental::REveCaloData::SliceInfo_t::fThreshold
Float_t fThreshold
Definition: REveCaloData.hxx:34
ROOT::Experimental::REveCaloData::CellGeom_t::PhiDelta
Float_t PhiDelta() const
Definition: REveCaloData.hxx:98
ROOT::Experimental::REveCaloData::EtaToTheta
static Float_t EtaToTheta(Float_t eta)
Definition: REveCaloData.cxx:476
ROOT::Experimental::REveCaloData::CellGeom_t::fEtaMin
Float_t fEtaMin
Definition: REveCaloData.hxx:78
ROOT::Experimental::REveCaloData::SetEtaBins
virtual void SetEtaBins(TAxis *ax)
Definition: REveCaloData.hxx:221
ROOT::Experimental::REveCaloData::RebinData_t::fSliceData
std::vector< Float_t > fSliceData
Definition: REveCaloData.hxx:132
ROOT::Experimental::REveCaloData::GetHighlightTooltip
std::string GetHighlightTooltip() const override
Definition: REveCaloData.cxx:156
ROOT::Experimental::REveCaloData::vCellId_i
std::vector< CellId_t >::iterator vCellId_i
Definition: REveCaloData.hxx:147
ROOT::Experimental::REveCaloData::GetSliceThreshold
Float_t GetSliceThreshold(Int_t slice) const
Get threshold for given slice.
Definition: REveCaloData.cxx:332
Char_t
char Char_t
Definition: RtypesCore.h:33
ROOT::Experimental::REveCaloData::CellGeom_t::fEtaMax
Float_t fEtaMax
Definition: REveCaloData.hxx:79
ROOT::Experimental::REveCaloData::CellGeom_t::IsUpperRho
Bool_t IsUpperRho() const
Definition: REveCaloData.hxx:105
ROOT
VSD Structures.
Definition: StringConv.hxx:21
ROOT::Experimental::REveCaloData::fSliceInfos
vSliceInfo_t fSliceInfos
Definition: REveCaloData.hxx:157
ROOT::Experimental::REveCaloData::CellGeom_t::ThetaMin
Float_t ThetaMin() const
Definition: REveCaloData.hxx:100
ROOT::Experimental::REveCaloData::GetEps
virtual Float_t GetEps() const
Definition: REveCaloData.hxx:226
ROOT::Experimental::REveCaloDataVec
Definition: REveCaloData.hxx:241
ROOT::Experimental::REveCaloDataVec::Rebin
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const
Rebin cells.
Definition: REveCaloData.cxx:634
ROOT::Experimental::REveCaloData::~REveCaloData
virtual ~REveCaloData()
Definition: REveCaloData.hxx:177
ROOT::Experimental::REveCaloData::CellGeom_t::~CellGeom_t
virtual ~CellGeom_t()
Definition: REveCaloData.hxx:86
TMath.h
ROOT::Experimental::REveCaloData::vCellGeom_i
std::vector< CellGeom_t >::iterator vCellGeom_i
Definition: REveCaloData.hxx:150
int
ROOT::Experimental::REveCaloData::CellSelectionChanged
virtual void CellSelectionChanged(UInt_t selectionId, Int_t secSel)
Tell users (REveCaloViz instances using this data) that cell selection has changed and they should up...
Definition: REveCaloData.cxx:415
ROOT::Experimental::REveCaloData::GetEtaBins
virtual TAxis * GetEtaBins() const
Definition: REveCaloData.hxx:220
ROOT::Experimental::REveCaloDataVec::operator=
REveCaloDataVec & operator=(const REveCaloDataVec &)=delete