Logo ROOT  
Reference Guide
REveCalo.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_REveCalo
13 #define ROOT_REveCalo
14 
15 #include "ROOT/REveElement.hxx"
18 
19 #include "TAtt3D.h"
20 #include "TAttBBox.h"
21 #include "ROOT/REveCaloData.hxx"
22 
23 class TClass;
24 
25 namespace ROOT {
26 namespace Experimental {
27 
28 class REveRGBAPalette;
29 class REveCaloViz : public REveElement,
30  public TAtt3D,
31  public TAttBBox,
32  public REveProjectable
33 {
34 
35 private:
36  REveCaloViz& operator=(const REveCaloViz&) = delete;
37 
38 protected:
39  REveCaloData* fData; // event data reference
40  Bool_t fCellIdCacheOK; // data cell ids cache state
41 
44 
46  Double_t fPhiOffset; // phi range +/- offset
47 
48  Bool_t fAutoRange; // set eta phi limits on DataChanged()
49 
50  Float_t fBarrelRadius; // barrel raidus in cm
51  Float_t fEndCapPosF; // forward end cap z coordinate in cm
52  Float_t fEndCapPosB; // backward end cap z coordinate in cm (should be < 0)
53 
54  Float_t fPlotEt; // plot E or Et.
55 
56  Float_t fMaxTowerH; // bounding box z dimesion
59 
60  Bool_t fValueIsColor; // Interpret signal value as RGBA color.
61  REveRGBAPalette* fPalette; // Pointer to signal-color palette.
62 
63 
65 
66  void SetupHeight(Float_t value, Int_t slice, Float_t& height) const;
67 
68  virtual void BuildCellIdCache() = 0;
69 
70 public:
71  REveCaloViz(REveCaloData* data=0, const char* n="REveCaloViz", const char* t="");
72 
73  virtual ~REveCaloViz();
74 
75  virtual REveElement* ForwardSelection();
76  virtual REveElement* ForwardEdit();
77 
78  TClass* ProjectedClass(const REveProjection* p) const override;
79  virtual Float_t GetValToHeight() const;
80  // virtual void CellSelectionChanged() {}
81 
82  virtual void SetScaleAbs(Bool_t x) { fScaleAbs = x; }
83 
84  REveCaloData* GetData() const { return fData; }
85  void SetData(REveCaloData* d);
86  void DataChanged();
87  Float_t GetMaxVal() const;
88 
89  Bool_t AssertCellIdCache() const;
91 
92  Float_t GetDataSliceThreshold(Int_t slice) const;
93  void SetDataSliceThreshold(Int_t slice, Float_t val);
94  Color_t GetDataSliceColor(Int_t slice) const;
95  void SetDataSliceColor(Int_t slice, Color_t col);
96 
99  Float_t GetEndCapPos () const { return fEndCapPosF; } // get end cap position, assuming fEndCapPosF = -fEndCapPosB
105 
106  Bool_t GetPlotEt() const { return fPlotEt; }
107  void SetPlotEt(Bool_t x);
108 
110  Float_t GetMaxTowerH() const { return fMaxTowerH; }
111  Bool_t GetScaleAbs() const { return fScaleAbs; }
113  Float_t GetMaxValAbs() const { return fMaxValAbs; }
114 
115  Float_t GetTransitionEta() const;
118  Float_t GetTransitionTheta() const;
121 
122  REveRGBAPalette* GetPalette() const { return fPalette; }
123  void SetPalette(REveRGBAPalette* p);
124 
128 
129  Bool_t GetAutoRange() const { return fAutoRange; }
131 
132  void SetEta(Float_t l, Float_t u);
133  Float_t GetEta() const { return 0.5f*(fEtaMin+fEtaMax); }
134  Float_t GetEtaMin() const { return fEtaMin; }
135  Float_t GetEtaMax() const { return fEtaMax; }
136  Float_t GetEtaRng() const { return fEtaMax-fEtaMin; }
137 
138  void SetPhi(Float_t phi) { SetPhiWithRng(phi, fPhiOffset); }
139  void SetPhiRng(Float_t rng) { SetPhiWithRng(fPhi, rng); }
141  Float_t GetPhi() const { return fPhi; }
142  Float_t GetPhiMin() const { return fPhi-fPhiOffset; }
143  Float_t GetPhiMax() const { return fPhi+fPhiOffset; }
144  Float_t GetPhiRng() const { return 2.0f*fPhiOffset; }
145 
147 
148  Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override;
149  virtual void WriteCoreJsonSelection(nlohmann::json &j, REveCaloData::vCellId_t) = 0;
150 };
151 
152 /**************************************************************************/
153 /**************************************************************************/
154 
155 class REveCalo3D : public REveCaloViz
156 {
157 private:
158  REveCalo3D& operator=(const REveCalo3D&) = delete;
159 
160  void MakeBarrelCell(const REveCaloData::CellGeom_t &cellData, float towerH, Float_t& offset, float *pnts) const;
161  void MakeEndCapCell(const REveCaloData::CellGeom_t &cellData, float towerH, Float_t& offset, float *pnts) const;
162 
163 protected:
165 
168 
172 
173  void BuildCellIdCache() override;
174 
175 public:
176  REveCalo3D(REveCaloData* d=0, const char* n="REveCalo3D", const char* t="");
177  virtual ~REveCalo3D() {}
178  void ComputeBBox() override;
179 
180  Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override;
181  void WriteCoreJsonSelection(nlohmann::json &j, REveCaloData::vCellId_t) override;
182  void BuildRenderData() override;
183 
185  Float_t GetFrameWidth() const { return fFrameWidth; }
186 
193 
196 
197  void NewTowerPicked(Int_t tower, Int_t slice, Int_t selectionId, Bool_t multi);
198 };
199 
200 /**************************************************************************/
201 /**************************************************************************/
202 
203 class REveCalo2D : public REveCaloViz,
204  public REveProjected
205 {
206 public:
207  typedef std::vector<REveCaloData::vCellId_t*> vBinCells_t;
208  typedef std::vector<REveCaloData::vCellId_t*>::iterator vBinCells_i;
209 
210 private:
211  REveCalo2D& operator=(const REveCalo2D&) = delete;
212 
214  void CellSelectionChangedInternal(REveCaloData::vCellId_t& cells, std::vector<REveCaloData::vCellId_t*>& cellLists);
215 
216  void MakeRPhiCell(Float_t phiMin, Float_t phiMax,
217  Float_t towerH, Float_t offset, float* pntsOut) const;
218 
219  void MakeRhoZCell(Float_t thetaMin, Float_t thetaMax,
220  Float_t& offset, Bool_t isBarrel, Bool_t phiPlus, Float_t towerH, float *pntsOut) const;
221 
222  void BuildRenderDataRPhi();
223  void BuildRenderDataRhoZ();
224 
225 protected:
226  std::vector<REveCaloData::vCellId_t*> fCellLists;
227 
228  std::vector<REveCaloData::vCellId_t*> fCellListsSelected;
229  std::vector<REveCaloData::vCellId_t*> fCellListsHighlighted;
230 
233 
234  void BuildCellIdCache() override;
235 
236  void SetDepthLocal(Float_t x) override { fDepth = x; }
237 
238  bool IsRPhi() const;
239 
240 public:
241  REveCalo2D(const char* n="REveCalo2D", const char* t="");
242  virtual ~REveCalo2D();
243 
245  void UpdateProjection() override;
246  void ComputeBBox() override;
247 
248  void SetScaleAbs(Bool_t) override;
249 
250  Float_t GetValToHeight() const override;
251 
252  Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override;
253  void WriteCoreJsonSelection(nlohmann::json &j, REveCaloData::vCellId_t) override;
254  void BuildRenderData() override;
255 
256  void NewBinPicked(Int_t bin, Int_t slice, Int_t selectionId, Bool_t multi);
257 
258  const REveCalo2D::vBinCells_t& GetBinLists() const { return fCellLists; }
259 };
260 
261 /**************************************************************************/
262 /**************************************************************************/
263 
264 class REveCaloLego : public REveCaloViz
265 {
266 public:
270 
271 private:
273 
274 protected:
276 
281 
282  Int_t fNZSteps; // Z axis label step in GeV
284 
288 
291  EBoxMode_e fBoxMode; // additional scale info
292 
295 
297  Float_t fFixedHeightValIn2DMode; // 1% of whole height
298 
301 
302  void BuildCellIdCache() override;
303 
304 public:
305  REveCaloLego(REveCaloData* data=0, const char* n="REveCaloLego", const char* t="");
306  virtual ~REveCaloLego(){}
307 
308  void ComputeBBox() override;
309  virtual void SetData(REveCaloData* d);
310 
311  Color_t GetFontColor() const { return fFontColor; }
312  void SetFontColor(Color_t ci) { fFontColor=ci; }
313 
314  Color_t GetGridColor() const { return fGridColor; }
315  void SetGridColor(Color_t ci) { fGridColor=ci; }
316 
317  Color_t GetPlaneColor() const { return fPlaneColor; }
319 
322 
323  Int_t GetNZSteps() const { return fNZSteps; }
325 
326  Int_t GetPixelsPerBin() const { return fPixelsPerBin; }
328 
329  Bool_t GetAutoRebin() const { return fAutoRebin; }
331 
334 
337 
338  void Set2DMode(E2DMode_e p) { f2DMode = p; }
340 
343 
346 
347  void SetBoxMode(EBoxMode_e p) { fBoxMode = p; }
349 
350  Bool_t GetDrawHPlane() const { return fDrawHPlane; }
352 
353  Float_t GetHPlaneVal() const { return fHPlaneVal; }
355 
360 };
361 
362 } // namespace Experimental
363 } // namespace ROOT
364 
365 #endif
ROOT::Experimental::REveCaloViz::GetBarrelRadius
Float_t GetBarrelRadius() const
Definition: REveCalo.hxx:97
ROOT::Experimental::REveCaloViz::GetTransitionTheta
Float_t GetTransitionTheta() const
Get transition angle between barrel and end-cap cells, assuming fEndCapPosF = -fEndCapPosB.
Definition: REveCalo.cxx:185
l
auto * l
Definition: textangle.C:4
ROOT::Experimental::REveCaloViz::fMaxTowerH
Float_t fMaxTowerH
Definition: REveCalo.hxx:56
ROOT::Experimental::REveCaloLego::GetHasFixedHeightIn2DMode
bool GetHasFixedHeightIn2DMode() const
Definition: REveCalo.hxx:341
ROOT::Experimental::REveCaloViz::fPalette
REveRGBAPalette * fPalette
Definition: REveCalo.hxx:61
ROOT::Experimental::REveCaloViz::ForwardEdit
virtual REveElement * ForwardEdit()
Management of selection state and ownership of selected cell list is done in REveCaloData.
Definition: REveCalo.cxx:107
ROOT::Experimental::REveCalo2D::WriteCoreJson
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
Definition: REveCalo.cxx:1018
ROOT::Experimental::REveCaloLego::fHPlaneVal
Float_t fHPlaneVal
Definition: REveCalo.hxx:294
ROOT::Experimental::REveCaloViz::GetEtaMin
Float_t GetEtaMin() const
Definition: REveCalo.hxx:134
ROOT::Experimental::REveProjected
Definition: REveProjectionBases.hxx:81
ROOT::Experimental::REveCaloViz::GetMaxVal
Float_t GetMaxVal() const
Definition: REveCalo.cxx:161
n
const Int_t n
Definition: legend1.C:16
ROOT::Experimental::REveCaloLego::fProjection
EProjection_e fProjection
Definition: REveCalo.hxx:289
ROOT::Experimental::REveCalo2D::NewBinPicked
void NewBinPicked(Int_t bin, Int_t slice, Int_t selectionId, Bool_t multi)
Client callback.
Definition: REveCalo.cxx:1401
ROOT::Experimental::REveCaloLego::operator=
REveCaloLego & operator=(const REveCaloLego &)=delete
ROOT::Experimental::REveCaloViz::~REveCaloViz
virtual ~REveCaloViz()
Destructor.
Definition: REveCalo.cxx:80
ROOT::Experimental::REveCaloLego::fFontColor
Color_t fFontColor
Definition: REveCalo.hxx:277
ROOT::Experimental::REveCaloViz::GetMaxTowerH
Float_t GetMaxTowerH() const
Definition: REveCalo.hxx:110
ROOT::Experimental::REveCalo3D::fFrameColor
Color_t fFrameColor
Definition: REveCalo.hxx:170
e
#define e(i)
Definition: RSha256.hxx:103
ROOT::Experimental::REveCalo2D::fCellListsHighlighted
std::vector< REveCaloData::vCellId_t * > fCellListsHighlighted
Definition: REveCalo.hxx:229
ROOT::Experimental::REveCaloViz::GetEndCapPos
Float_t GetEndCapPos() const
Definition: REveCalo.hxx:99
ROOT::Experimental::REveCalo2D::fCellLists
std::vector< REveCaloData::vCellId_t * > fCellLists
Definition: REveCalo.hxx:226
ROOT::Experimental::REveCaloViz::AssertPalette
REveRGBAPalette * AssertPalette()
Make sure the REveRGBAPalette pointer is not null.
Definition: REveCalo.cxx:381
ROOT::Experimental::REveCalo3D::ComputeBBox
void ComputeBBox() override
Fill bounding-box information of the base-class TAttBBox (virtual method).
Definition: REveCalo.cxx:706
ROOT::Experimental::REveCaloLego::kAuto
@ kAuto
Definition: REveCalo.hxx:267
ROOT::Experimental::REveCaloViz::ProjectedClass
TClass * ProjectedClass(const REveProjection *p) const override
Virtual from REveProjectable, returns REveCalo2D class.
Definition: REveCalo.cxx:400
ROOT::Experimental::REveCaloViz::WriteCoreJsonSelection
virtual void WriteCoreJsonSelection(nlohmann::json &j, REveCaloData::vCellId_t)=0
ROOT::Experimental::REveCaloLego::SetHPlaneVal
void SetHPlaneVal(Float_t s)
Definition: REveCalo.hxx:354
ROOT::Experimental::REveCaloLego::GetPixelsPerBin
Int_t GetPixelsPerBin() const
Definition: REveCalo.hxx:326
ROOT::Experimental::REveCalo2D::BuildRenderDataRhoZ
void BuildRenderDataRhoZ()
Creates 2D point array in RhoZ projection.
Definition: REveCalo.cxx:1189
ROOT::Experimental::REveCaloLego::REveCaloLego
REveCaloLego(REveCaloData *data=0, const char *n="REveCaloLego", const char *t="")
Constructor.
Definition: REveCalo.cxx:1436
ROOT::Experimental::REveCaloViz::REveCaloViz
REveCaloViz(REveCaloData *data=0, const char *n="REveCaloViz", const char *t="")
Definition: REveCalo.cxx:42
ROOT::Experimental::REveCalo2D::CellSelectionChangedInternal
void CellSelectionChangedInternal(REveCaloData::vCellId_t &cells, std::vector< REveCaloData::vCellId_t * > &cellLists)
s////////////////////////////////// Sort selected cells in eta or phi bins.
Definition: REveCalo.cxx:906
ROOT::Experimental::REveCaloViz::SetAutoRange
void SetAutoRange(Bool_t x)
Definition: REveCalo.hxx:130
ROOT::Experimental::REveCalo3D::WriteCoreJson
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
Definition: REveCalo.cxx:657
ROOT::Experimental::REveCalo3D::WriteCoreJsonSelection
void WriteCoreJsonSelection(nlohmann::json &j, REveCaloData::vCellId_t) override
Fill core part of JSON representation for selection.
Definition: REveCalo.cxx:665
ROOT::Experimental::REveCaloLego::fDrawNumberCellPixels
Int_t fDrawNumberCellPixels
Definition: REveCalo.hxx:299
REveProjectionBases.hxx
ROOT::Experimental::REveCaloViz::SetPhiWithRng
void SetPhiWithRng(Float_t x, Float_t r)
Set phi range.
Definition: REveCalo.cxx:172
ROOT::Experimental::REveCaloLego::GetNZSteps
Int_t GetNZSteps() const
Definition: REveCalo.hxx:323
ROOT::Experimental::REveCaloLego::SetBoxMode
void SetBoxMode(EBoxMode_e p)
Definition: REveCalo.hxx:347
ROOT::Experimental::REveCalo3D::SetRnrBarrelFrame
void SetRnrBarrelFrame(Bool_t r)
Definition: REveCalo.hxx:190
ROOT::Experimental::REveCaloLego::SetDrawNumberCellPixels
void SetDrawNumberCellPixels(Int_t x)
Definition: REveCalo.hxx:357
ROOT::Experimental::REveCaloViz
Definition: REveCalo.hxx:33
ROOT::Experimental::REveCalo3D::SetRnrEndCapFrame
void SetRnrEndCapFrame(Bool_t r)
Definition: REveCalo.hxx:189
ROOT::Experimental::REveProjected::fDepth
Float_t fDepth
Definition: REveProjectionBases.hxx:89
ROOT::Experimental::REveCaloViz::GetTransitionThetaForward
Float_t GetTransitionThetaForward() const
Get transition angle between barrel and forward end-cap cells.
Definition: REveCalo.cxx:203
ROOT::Experimental::REveCaloViz::SetScaleAbs
virtual void SetScaleAbs(Bool_t x)
Definition: REveCalo.hxx:82
ROOT::Experimental::REveCaloLego::GetHPlaneVal
Float_t GetHPlaneVal() const
Definition: REveCalo.hxx:353
ROOT::Experimental::REveCaloViz::GetData
REveCaloData * GetData() const
Definition: REveCalo.hxx:84
r
ROOT::R::TRInterface & r
Definition: Object.C:4
ROOT::Experimental::REveCaloLego::fNZSteps
Int_t fNZSteps
Definition: REveCalo.hxx:282
ROOT::Experimental::REveCalo2D::~REveCalo2D
virtual ~REveCalo2D()
Destructor.
Definition: REveCalo.cxx:753
ROOT::Experimental::REveCalo3D
Definition: REveCalo.hxx:156
ROOT::Experimental::REveCalo3D::fFrameTransparency
Char_t fFrameTransparency
Definition: REveCalo.hxx:171
ROOT::Experimental::REveCalo2D::IsRPhi
bool IsRPhi() const
Is current projection type RPhi.
Definition: REveCalo.cxx:805
Float_t
float Float_t
Definition: RtypesCore.h:57
ROOT::Experimental::REveCalo2D::fOldProjectionType
REveProjection::EPType_e fOldProjectionType
Definition: REveCalo.hxx:213
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
ROOT::Experimental::REveProjection::EPType_e
EPType_e
Definition: REveProjections.hxx:32
ROOT::Experimental::REveCaloViz::ForwardSelection
virtual REveElement * ForwardSelection()
Management of selection state and ownership of selected cell list is done in REveCaloData.
Definition: REveCalo.cxx:97
Int_t
int Int_t
Definition: RtypesCore.h:45
ROOT::Experimental::REveCaloViz::SetDataSliceColor
void SetDataSliceColor(Int_t slice, Color_t col)
Set slice color in data.
Definition: REveCalo.cxx:131
ROOT::Experimental::REveCaloLego::E2DMode_e
E2DMode_e
Definition: REveCalo.hxx:268
ROOT::Experimental::REveCaloLego::SetFixedHeightValIn2DMode
void SetFixedHeightValIn2DMode(float x)
Definition: REveCalo.hxx:345
ROOT::Experimental::REveCaloLego::fGridColor
Color_t fGridColor
Definition: REveCalo.hxx:278
ROOT::Experimental::REveCaloLego::kFrontBack
@ kFrontBack
Definition: REveCalo.hxx:269
ROOT::Experimental::REveCaloLego::fPixelsPerBin
Int_t fPixelsPerBin
Definition: REveCalo.hxx:286
ROOT::Experimental::REveCaloViz::SetPhi
void SetPhi(Float_t phi)
Definition: REveCalo.hxx:138
ROOT::Experimental::REveCalo3D::MakeEndCapCell
void MakeEndCapCell(const REveCaloData::CellGeom_t &cellData, float towerH, Float_t &offset, float *pnts) const
Make endcap cell.
Definition: REveCalo.cxx:471
ROOT::Experimental::REveCalo2D::WriteCoreJsonSelection
void WriteCoreJsonSelection(nlohmann::json &j, REveCaloData::vCellId_t) override
Fill core part of JSON representation for selection.
Definition: REveCalo.cxx:1028
x
Double_t x[n]
Definition: legend1.C:17
ROOT::Experimental::REveCalo3D::fRnrEndCapFrame
Bool_t fRnrEndCapFrame
Definition: REveCalo.hxx:166
ROOT::Experimental::REveCaloLego::Get2DMode
E2DMode_e Get2DMode()
Definition: REveCalo.hxx:339
ROOT::Experimental::REveCaloLego::GetAutoRebin
Bool_t GetAutoRebin() const
Definition: REveCalo.hxx:329
ROOT::Experimental::REveCaloViz::fData
REveCaloData * fData
Definition: REveCalo.hxx:39
ROOT::Experimental::REveCalo2D::MakeRPhiCell
void MakeRPhiCell(Float_t phiMin, Float_t phiMax, Float_t towerH, Float_t offset, float *pntsOut) const
Calculate vertices for the calorimeter cell in RPhi projection.
Definition: REveCalo.cxx:1374
ROOT::Experimental::REveCalo2D::operator=
REveCalo2D & operator=(const REveCalo2D &)=delete
ROOT::Experimental::REveCaloViz::GetValueIsColor
Bool_t GetValueIsColor() const
Definition: REveCalo.hxx:126
ROOT::Experimental::REveCaloLego::SetCellPixelFontSize
void SetCellPixelFontSize(Int_t x)
Definition: REveCalo.hxx:359
ROOT::Experimental::REveCaloLego::BuildCellIdCache
void BuildCellIdCache() override
Build list of drawn cell IDs. For more information see REveCaloLegoGL:DirectDraw().
Definition: REveCalo.cxx:1480
ROOT::Experimental::REveCaloViz::GetAutoRange
Bool_t GetAutoRange() const
Definition: REveCalo.hxx:129
REveCaloData.hxx
ROOT::Experimental::REveElement
Definition: REveElement.hxx:41
TAtt3D
Use this attribute class when an object should have 3D capabilities.
Definition: TAtt3D.h:19
ROOT::Experimental::REveCaloViz::GetValToHeight
virtual Float_t GetValToHeight() const
Get transformation factor from E/Et to height.
Definition: REveCalo.cxx:360
ROOT::Experimental::REveCaloViz::GetDataSliceThreshold
Float_t GetDataSliceThreshold(Int_t slice) const
Get threshold for given slice.
Definition: REveCalo.cxx:88
ROOT::Experimental::REveCaloViz::GetTransitionEtaBackward
Float_t GetTransitionEtaBackward() const
Get transition eta between barrel and backward end-cap cells.
Definition: REveCalo.cxx:229
ROOT::Experimental::REveCalo2D::GetBinLists
const REveCalo2D::vBinCells_t & GetBinLists() const
Definition: REveCalo.hxx:258
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
ROOT::Experimental::REveCaloViz::AssignCaloVizParameters
void AssignCaloVizParameters(REveCaloViz *cv)
Assign parameters from given model.
Definition: REveCalo.cxx:323
Color_t
short Color_t
Definition: RtypesCore.h:83
ROOT::Experimental::REveCaloViz::WriteCoreJson
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
Definition: REveCalo.cxx:428
ROOT::Experimental::REveCaloViz::fPlotEt
Float_t fPlotEt
Definition: REveCalo.hxx:54
ROOT::Experimental::REveCalo2D::ComputeBBox
void ComputeBBox() override
Fill bounding-box information of the base-class TAttBBox (virtual method).
Definition: REveCalo.cxx:985
b
#define b(i)
Definition: RSha256.hxx:100
ROOT::Experimental::REveCaloLego::SetDrawHPlane
void SetDrawHPlane(Bool_t s)
Definition: REveCalo.hxx:351
ROOT::Experimental::REveCaloLego::fCellList
REveCaloData::vCellId_t fCellList
Definition: REveCalo.hxx:275
ROOT::Experimental::REveCaloViz::GetTransitionThetaBackward
Float_t GetTransitionThetaBackward() const
Get transition angle between barrel and backward end-cap cells.
Definition: REveCalo.cxx:221
ROOT::Experimental::REveCaloViz::fScaleAbs
Bool_t fScaleAbs
Definition: REveCalo.hxx:57
bool
ROOT::Experimental::REveCaloLego::SetPixelsPerBin
void SetPixelsPerBin(Int_t bw)
Definition: REveCalo.hxx:327
ROOT::Experimental::REveCaloViz::AssertCellIdCache
Bool_t AssertCellIdCache() const
Assert cell id cache is ok.
Definition: REveCalo.cxx:295
ROOT::Experimental::REveCaloViz::SetMaxValAbs
void SetMaxValAbs(Float_t x)
Definition: REveCalo.hxx:112
ROOT::Experimental::REveCaloViz::fAutoRange
Bool_t fAutoRange
Definition: REveCalo.hxx:48
ROOT::Experimental::REveCaloViz::operator=
REveCaloViz & operator=(const REveCaloViz &)=delete
ROOT::Experimental::REveProjection
REveProjection Base for specific classes that implement non-linear projections.
Definition: REveProjections.hxx:30
ROOT::Experimental::REveCaloViz::CellInEtaPhiRng
Bool_t CellInEtaPhiRng(REveCaloData::CellData_t &) const
Returns true if given cell is in the ceta phi range.
Definition: REveCalo.cxx:309
ROOT::Experimental::REveCaloViz::DataChanged
void DataChanged()
Update setting and cache on data changed.
Definition: REveCalo.cxx:258
ROOT::Experimental::REveCaloLego::GetDrawNumberCellPixels
Int_t GetDrawNumberCellPixels()
Definition: REveCalo.hxx:356
TAttBBox
Helper for management of bounding-box information.
Definition: TAttBBox.h:18
ROOT::Experimental::REveCalo2D::SetDepthLocal
void SetDepthLocal(Float_t x) override
Base-class implementation – just sets fDepth.
Definition: REveCalo.hxx:236
ROOT::Experimental::REveCaloLego::k3D
@ k3D
Definition: REveCalo.hxx:267
ROOT::Experimental::REveCaloViz::GetMaxValAbs
Float_t GetMaxValAbs() const
Definition: REveCalo.hxx:113
ROOT::Experimental::REveCaloViz::SetPlotEt
void SetPlotEt(Bool_t x)
Set E/Et plot.
Definition: REveCalo.cxx:150
ROOT::Experimental::REveCaloLego::kBack
@ kBack
Definition: REveCalo.hxx:269
ROOT::Experimental::REveCaloViz::SetBarrelRadius
void SetBarrelRadius(Float_t r)
Definition: REveCalo.hxx:98
ROOT::Experimental::REveCalo3D::NewTowerPicked
void NewTowerPicked(Int_t tower, Int_t slice, Int_t selectionId, Bool_t multi)
Client selection callback.
Definition: REveCalo.cxx:728
ROOT::Experimental::REveCaloLego::kValSizeOutline
@ kValSizeOutline
Definition: REveCalo.hxx:268
ROOT::Experimental::REveCaloData::vCellId_t
std::vector< CellId_t > vCellId_t
Definition: REveCaloData.hxx:150
ROOT::Experimental::REveCalo2D::vBinCells_i
std::vector< REveCaloData::vCellId_t * >::iterator vBinCells_i
Definition: REveCalo.hxx:208
ROOT::Experimental::REveCalo3D::~REveCalo3D
virtual ~REveCalo3D()
Definition: REveCalo.hxx:177
ROOT::Experimental::REveCaloViz::SetupHeight
void SetupHeight(Float_t value, Int_t slice, Float_t &height) const
Set color and height for a given value and slice using slice color or REveRGBAPalette.
Definition: REveCalo.cxx:408
ROOT::Experimental::REveCaloViz::GetPhiMax
Float_t GetPhiMax() const
Definition: REveCalo.hxx:143
ROOT::Experimental::REveCaloLego::GetProjection
EProjection_e GetProjection() const
Definition: REveCalo.hxx:335
ROOT::Experimental::REveCalo3D::GetRnrBarrelFrame
Bool_t GetRnrBarrelFrame() const
Definition: REveCalo.hxx:192
ROOT::Experimental::REveCaloLego::f2DMode
E2DMode_e f2DMode
Definition: REveCalo.hxx:290
ROOT::Experimental::REveCaloData::CellData_t
Definition: REveCaloData.hxx:119
ROOT::Experimental::REveCaloViz::SetEndCapPos
void SetEndCapPos(Float_t z)
Definition: REveCalo.hxx:102
ROOT::Experimental::REveCaloViz::fMaxValAbs
Float_t fMaxValAbs
Definition: REveCalo.hxx:58
ROOT::Experimental::REveCaloViz::GetEtaMax
Float_t GetEtaMax() const
Definition: REveCalo.hxx:135
ROOT::Experimental::REveCaloLego::SetNZSteps
void SetNZSteps(Int_t s)
Definition: REveCalo.hxx:324
ROOT::Experimental::REveCaloViz::GetBackwardEndCapPos
Float_t GetBackwardEndCapPos() const
Definition: REveCalo.hxx:101
ROOT::Experimental::REveCaloData::CellGeom_t
Definition: REveCaloData.hxx:77
ROOT::Experimental::REveCaloViz::InvalidateCellIdCache
void InvalidateCellIdCache()
Definition: REveCalo.hxx:90
TAtt3D.h
ROOT::Experimental::REveCaloLego::SetHasFixedHeightIn2DMode
void SetHasFixedHeightIn2DMode(bool x)
Definition: REveCalo.hxx:342
ROOT::Experimental::REveCaloLego::SetData
virtual void SetData(REveCaloData *d)
Definition: REveCalo.cxx:1472
ROOT::Experimental::REveCaloLego::fHasFixedHeightIn2DMode
Bool_t fHasFixedHeightIn2DMode
Definition: REveCalo.hxx:296
REveElement.hxx
ROOT::Experimental::REveCaloViz::fEtaMin
Double_t fEtaMin
Definition: REveCalo.hxx:42
ROOT::Experimental::REveCaloLego::fCellPixelFontSize
Int_t fCellPixelFontSize
Definition: REveCalo.hxx:300
TAttBBox.h
ROOT::Experimental::REveCalo3D::GetFrameWidth
Float_t GetFrameWidth() const
Definition: REveCalo.hxx:185
ROOT::Experimental::REveCaloViz::GetScaleAbs
Bool_t GetScaleAbs() const
Definition: REveCalo.hxx:111
ROOT::Experimental::REveCaloLego::fBoxMode
EBoxMode_e fBoxMode
Definition: REveCalo.hxx:291
ROOT::Experimental::REveCaloLego::fFixedHeightValIn2DMode
Float_t fFixedHeightValIn2DMode
Definition: REveCalo.hxx:297
TAttBBox::ResetBBox
void ResetBBox()
Definition: TAttBBox.h:46
ROOT::Experimental::REveCaloViz::GetPalette
REveRGBAPalette * GetPalette() const
Definition: REveCalo.hxx:122
ROOT::Experimental::REveCaloLego::fPlaneColor
Color_t fPlaneColor
Definition: REveCalo.hxx:279
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
ROOT::Experimental::REveCaloViz::BuildCellIdCache
virtual void BuildCellIdCache()=0
ROOT::Experimental::REveProjectable
Definition: REveProjectionBases.hxx:38
ROOT::Experimental::REveCaloViz::fCellIdCacheOK
Bool_t fCellIdCacheOK
Definition: REveCalo.hxx:40
ROOT::Experimental::REveCaloViz::GetPlotEt
Bool_t GetPlotEt() const
Definition: REveCalo.hxx:106
ROOT::Experimental::REveCaloLego::GetGridColor
Color_t GetGridColor() const
Definition: REveCalo.hxx:314
ROOT::Experimental::REveCaloViz::SetValueIsColor
void SetValueIsColor(Bool_t x)
Definition: REveCalo.hxx:127
ROOT::Experimental::REveCaloLego::kValColor
@ kValColor
Definition: REveCalo.hxx:268
ROOT::Experimental::REveCaloViz::GetEta
Float_t GetEta() const
Definition: REveCalo.hxx:133
ROOT::Experimental::REveCaloLego::EBoxMode_e
EBoxMode_e
Definition: REveCalo.hxx:269
ROOT::Experimental::REveCalo3D::SetFrameWidth
void SetFrameWidth(Float_t w)
Definition: REveCalo.hxx:184
ROOT::Experimental::REveCaloLego::GetFontColor
Color_t GetFontColor() const
Definition: REveCalo.hxx:311
ROOT::Experimental::REveCalo2D::SetScaleAbs
void SetScaleAbs(Bool_t) override
Set absolute scale in projected calorimeter.
Definition: REveCalo.cxx:951
ROOT::Experimental::REveCaloLego::GetCellPixelFontSize
Int_t GetCellPixelFontSize()
Definition: REveCalo.hxx:358
ROOT::Experimental::REveCalo3D::fRnrBarrelFrame
Bool_t fRnrBarrelFrame
Definition: REveCalo.hxx:167
ROOT::Experimental::REveCaloViz::fEndCapPosB
Float_t fEndCapPosB
Definition: REveCalo.hxx:52
ROOT::Experimental::REveCalo2D::REveCalo2D
REveCalo2D(const char *n="REveCalo2D", const char *t="")
Constructor.
Definition: REveCalo.cxx:741
ROOT::Experimental::REveCalo2D::fCellListsSelected
std::vector< REveCaloData::vCellId_t * > fCellListsSelected
Definition: REveCalo.hxx:228
ROOT::Experimental::REveCaloViz::GetEtaRng
Float_t GetEtaRng() const
Definition: REveCalo.hxx:136
ROOT::Experimental::REveCaloLego::GetPlaneColor
Color_t GetPlaneColor() const
Definition: REveCalo.hxx:317
ROOT::Experimental::REveCaloLego::fPlaneTransparency
Char_t fPlaneTransparency
Definition: REveCalo.hxx:280
ROOT::Experimental::REveCaloViz::SetForwardEndCapPos
void SetForwardEndCapPos(Float_t z)
Definition: REveCalo.hxx:103
ROOT::Experimental::REveCaloData
Definition: REveCaloData.hxx:33
ROOT::Experimental::REveCaloViz::SetBackwardEndCapPos
void SetBackwardEndCapPos(Float_t z)
Definition: REveCalo.hxx:104
ROOT::Experimental::REveCalo2D::BuildRenderDataRPhi
void BuildRenderDataRPhi()
Creates 2D point array in RPhi() projection.
Definition: REveCalo.cxx:1327
ROOT::Experimental::REveCaloLego::GetNormalizeRebin
Bool_t GetNormalizeRebin() const
Definition: REveCalo.hxx:332
ROOT::Experimental::REveCaloLego::kValSize
@ kValSize
Definition: REveCalo.hxx:268
ROOT::Experimental::REveCaloViz::GetPhiMin
Float_t GetPhiMin() const
Definition: REveCalo.hxx:142
REveProjectionManager.hxx
ROOT::Experimental::REveCalo2D::GetValToHeight
Float_t GetValToHeight() const override
Virtual function of REveCaloViz.
Definition: REveCalo.cxx:961
ROOT::Experimental::REveCalo3D::REveCalo3D
REveCalo3D(REveCaloData *d=0, const char *n="REveCalo3D", const char *t="")
Constructor.
Definition: REveCalo.cxx:453
ROOT::Experimental::REveCalo3D::MakeBarrelCell
void MakeBarrelCell(const REveCaloData::CellGeom_t &cellData, float towerH, Float_t &offset, float *pnts) const
Make endcap cell.
Definition: REveCalo.cxx:536
ROOT::Experimental::REveCaloLego::GetDrawHPlane
Bool_t GetDrawHPlane() const
Definition: REveCalo.hxx:350
ROOT::Experimental::REveCaloViz::SetPhiRng
void SetPhiRng(Float_t rng)
Definition: REveCalo.hxx:139
ROOT::Experimental::REveCaloLego::kNone
@ kNone
Definition: REveCalo.hxx:269
ROOT::Experimental::REveCalo2D::MakeRhoZCell
void MakeRhoZCell(Float_t thetaMin, Float_t thetaMax, Float_t &offset, Bool_t isBarrel, Bool_t phiPlus, Float_t towerH, float *pntsOut) const
Get cell vertices in RhoZ projection.
Definition: REveCalo.cxx:1270
ROOT::Experimental::REveCaloLego::fZAxisStep
Float_t fZAxisStep
Definition: REveCalo.hxx:283
ROOT::Experimental::REveCalo2D::vBinCells_t
std::vector< REveCaloData::vCellId_t * > vBinCells_t
Definition: REveCalo.hxx:207
ROOT::Experimental::REveRGBAPalette
Definition: REveRGBAPalette.hxx:26
ROOT::Experimental::REveCaloLego::GetFixedHeightValIn2DMode
float GetFixedHeightValIn2DMode() const
Definition: REveCalo.hxx:344
Double_t
double Double_t
Definition: RtypesCore.h:59
ROOT::Experimental::REveCalo2D::BuildCellIdCache
void BuildCellIdCache() override
Build lists of drawn cell IDs. See REveCalo2DGL::DirecDraw().
Definition: REveCalo.cxx:813
ROOT::Experimental::REveCalo2D
Definition: REveCalo.hxx:205
ROOT::Experimental::REveCaloLego::~REveCaloLego
virtual ~REveCaloLego()
Definition: REveCalo.hxx:306
ROOT::Experimental::REveCalo2D::fMaxESumBin
Float_t fMaxESumBin
Definition: REveCalo.hxx:231
ROOT::Experimental::REveCalo3D::GetRnrEndCapFrame
Bool_t GetRnrEndCapFrame() const
Definition: REveCalo.hxx:191
TClass
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
ROOT::Experimental::REveCalo3D::SetFrameTransparency
void SetFrameTransparency(Char_t x)
Definition: REveCalo.hxx:194
ROOT::Experimental::REveCaloLego::ComputeBBox
void ComputeBBox() override
Fill bounding-box information of the base-class TAttBBox (virtual method).
Definition: REveCalo.cxx:1492
ROOT::Experimental::REveCaloViz::GetPhiRng
Float_t GetPhiRng() const
Definition: REveCalo.hxx:144
ROOT::Experimental::REveCaloLego::SetPlaneColor
void SetPlaneColor(Color_t ci)
Definition: REveCalo.hxx:318
ROOT::Experimental::REveCaloViz::SetEta
void SetEta(Float_t l, Float_t u)
Set eta range.
Definition: REveCalo.cxx:139
ROOT::Experimental::REveCalo2D::BuildRenderData
void BuildRenderData() override
Creates 2D point array for rendering.
Definition: REveCalo.cxx:1175
ROOT::Experimental::REveCaloLego::SetPlaneTransparency
void SetPlaneTransparency(Char_t t)
Definition: REveCalo.hxx:321
ROOT::Experimental::REveCaloViz::SetMaxTowerH
void SetMaxTowerH(Float_t x)
Definition: REveCalo.hxx:109
ROOT::Experimental::REveCalo3D::GetRnrFrame
void GetRnrFrame(Bool_t &e, Bool_t &b) const
Definition: REveCalo.hxx:188
ROOT::Experimental::REveCaloViz::SetData
void SetData(REveCaloData *d)
Set calorimeter event data.
Definition: REveCalo.cxx:241
ROOT::Experimental::REveCaloViz::GetTransitionEtaForward
Float_t GetTransitionEtaForward() const
Get transition eta between barrel and forward end-cap cells.
Definition: REveCalo.cxx:211
ROOT::Experimental::REveCaloLego::SetGridColor
void SetGridColor(Color_t ci)
Definition: REveCalo.hxx:315
ROOT::Experimental::REveCaloViz::GetDataSliceColor
Color_t GetDataSliceColor(Int_t slice) const
Get slice color from data.
Definition: REveCalo.cxx:123
ROOT::Experimental::REveCaloViz::fPhi
Double_t fPhi
Definition: REveCalo.hxx:45
d
#define d(i)
Definition: RSha256.hxx:102
ROOT::Experimental::REveCaloViz::fValueIsColor
Bool_t fValueIsColor
Definition: REveCalo.hxx:60
ROOT::Experimental::REveCalo3D::fCellList
REveCaloData::vCellId_t fCellList
Definition: REveCalo.hxx:164
ROOT::Experimental::REveCaloViz::fEndCapPosF
Float_t fEndCapPosF
Definition: REveCalo.hxx:51
ROOT::Experimental::REveCaloLego::fDrawHPlane
Bool_t fDrawHPlane
Definition: REveCalo.hxx:293
ROOT::Experimental::REveCalo2D::fMaxEtSumBin
Float_t fMaxEtSumBin
Definition: REveCalo.hxx:232
ROOT::Experimental::REveCalo3D::BuildRenderData
void BuildRenderData() override
Crates 3D point array for rendering.
Definition: REveCalo.cxx:603
make_cnn_model.model
model
Definition: make_cnn_model.py:6
ROOT::Experimental::REveCaloViz::fBarrelRadius
Float_t fBarrelRadius
Definition: REveCalo.hxx:50
ROOT::Experimental::REveCaloLego::SetProjection
void SetProjection(EProjection_e p)
Definition: REveCalo.hxx:336
ROOT::Experimental::REveCaloViz::fEtaMax
Double_t fEtaMax
Definition: REveCalo.hxx:43
ROOT::Experimental::REveCaloViz::SetPalette
void SetPalette(REveRGBAPalette *p)
Set REveRGBAPalette object pointer.
Definition: REveCalo.cxx:349
ROOT::Experimental::REveCalo3D::operator=
REveCalo3D & operator=(const REveCalo3D &)=delete
ROOT::Experimental::REveCaloLego::SetFontColor
void SetFontColor(Color_t ci)
Definition: REveCalo.hxx:312
ROOT::Experimental::REveCalo2D::UpdateProjection
void UpdateProjection() override
This is virtual method from base-class REveProjected.
Definition: REveCalo.cxx:782
ROOT::Experimental::REveCaloLego::SetNormalizeRebin
void SetNormalizeRebin(Bool_t s)
Definition: REveCalo.hxx:333
ROOT::Experimental::REveCalo3D::GetFrameTransparency
Char_t GetFrameTransparency() const
Definition: REveCalo.hxx:195
ROOT::Experimental::REveProjectionManager
REveProjectionManager Manager class for steering of projections and managing projected objects.
Definition: REveProjectionManager.hxx:30
ROOT::Experimental::REveCaloLego::GetPlaneTransparency
Char_t GetPlaneTransparency() const
Definition: REveCalo.hxx:320
ROOT::Experimental::REveCaloViz::GetTransitionEta
Float_t GetTransitionEta() const
Get transition eta between barrel and end-cap cells, assuming fEndCapPosF = -fEndCapPosB.
Definition: REveCalo.cxx:193
ROOT::Experimental::REveCaloViz::GetPhi
Float_t GetPhi() const
Definition: REveCalo.hxx:141
ROOT::Experimental::REveCalo3D::fFrameWidth
Float_t fFrameWidth
Definition: REveCalo.hxx:169
Char_t
char Char_t
Definition: RtypesCore.h:33
ROOT::Experimental::REveCalo2D::SetProjection
void SetProjection(REveProjectionManager *proj, REveProjectable *model) override
Set projection manager and model object.
Definition: REveCalo.cxx:795
ROOT::Experimental::REveCaloLego::k2D
@ k2D
Definition: REveCalo.hxx:267
ROOT::Experimental::REveCaloViz::GetForwardEndCapPos
Float_t GetForwardEndCapPos() const
Definition: REveCalo.hxx:100
ROOT::Experimental::REveCaloLego
Definition: REveCalo.hxx:265
ROOT::Experimental::REveCaloLego::fNormalizeRebin
Bool_t fNormalizeRebin
Definition: REveCalo.hxx:287
ROOT::Experimental::REveCaloLego::fAutoRebin
Bool_t fAutoRebin
Definition: REveCalo.hxx:285
ROOT::Experimental::REveCaloLego::Set2DMode
void Set2DMode(E2DMode_e p)
Definition: REveCalo.hxx:338
ROOT::Experimental::REveCaloLego::GetBoxMode
EBoxMode_e GetBoxMode()
Definition: REveCalo.hxx:348
ROOT
VSD Structures.
Definition: StringConv.hxx:21
ROOT::Experimental::REveCalo3D::SetRnrFrame
void SetRnrFrame(Bool_t e, Bool_t b)
Definition: REveCalo.hxx:187
ROOT::Experimental::REveCaloLego::EProjection_e
EProjection_e
Definition: REveCalo.hxx:267
ROOT::Experimental::REveCaloViz::fPhiOffset
Double_t fPhiOffset
Definition: REveCalo.hxx:46
ROOT::Experimental::REveCalo3D::BuildCellIdCache
void BuildCellIdCache() override
Build list of drawn cell IDs. See REveCalo3DGL::DirectDraw().
Definition: REveCalo.cxx:694
int
ROOT::Experimental::REveCaloLego::SetAutoRebin
void SetAutoRebin(Bool_t s)
Definition: REveCalo.hxx:330
ROOT::Experimental::REveCaloViz::SetDataSliceThreshold
void SetDataSliceThreshold(Int_t slice, Float_t val)
Set threshold for given slice.
Definition: REveCalo.cxx:115