12 #ifndef ROOT_TEveCaloData
13 #define ROOT_TEveCaloData
111 virtual void Dump()
const;
124 virtual void Dump()
const;
196 virtual void GetCellData(
const CellId_t &
id, CellData_t& data)
const = 0;
Float_t GetSliceThreshold(Int_t slice) const
Get threshold for given slice.
ClassDef(TEveCaloDataVec, 0)
Bool_t IsUpperRho() const
vCellId_t & GetCellsSelected()
virtual TAxis * GetPhiBins() const
A central manager for calorimeter event data.
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
std::vector< CellId_t >::iterator vCellId_i
The Histogram stack class.
SliceInfo_t & RefSliceInfo(Int_t s)
TEveCaloDataVec(const TEveCaloDataVec &)
void Setup(const char *name, Float_t threshold, Color_t col, Char_t transp=101)
vCellId_t fCellsHighlighted
virtual Float_t GetMaxVal(Bool_t et) const
virtual Float_t GetEps() const
Color_t GetSliceColor(Int_t slice) const
Get color for given slice.
std::set< TEveElement * > Set_t
void Configure(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
std::vector< Int_t > fBinData
ClassDef(TEveCaloDataHist, 0)
virtual void DataChanged()
Tell users (TEveCaloViz instances using this data) that data has changed and they should update the l...
virtual void GetEtaLimits(Double_t &min, Double_t &max) const
Get eta limits.
Char_t GetSliceTransparency(Int_t slice) const
Get transparency for given slice.
std::vector< vFloat_t > vvFloat_t
virtual TString GetHighlightTooltip()
std::vector< vFloat_t >::iterator vvFloat_i
Calo data for universal cell geometry.
virtual void GetCellData(const TEveCaloData::CellId_t &id, TEveCaloData::CellData_t &data) const
Get cell geometry and value from cell ID.
Bool_t GetWrapTwoPi() const
TEveCaloData(const TEveCaloData &)
void FillSlice(Int_t slice, Float_t value)
Fill given slice in the current tower.
T etaMax()
Function providing the maximum possible value of pseudorapidity for a non-zero rho, in the Scalar type with the largest dynamic range.
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const
Rebin.
void SetSliceColor(Int_t slice, Color_t col)
Set color for given slice.
std::vector< Float_t > & GetSliceVals(Int_t slice)
virtual void UnHighlighted()
Virtual method TEveElement::UnHighlighted.
virtual void FillImpliedSelectedSet(Set_t &impSelSet)
Populate set impSelSet with derived / dependant elements.
virtual void GetCellList(Float_t etaMin, Float_t etaMax, Float_t phi, Float_t phiRng, vCellId_t &out) const =0
std::vector< SliceInfo_t >::iterator vSliceInfo_i
static Float_t EtaToTheta(Float_t eta)
The TNamed class is the base class for all named ROOT classes.
std::vector< CellGeom_t >::iterator vCellGeom_i
virtual ~TEveCaloDataHist()
Destructor.
virtual void InvalidateUsersCellIdCache()
Invalidate cell ids cache on back ptr references.
std::vector< SliceInfo_t > vSliceInfo_t
std::vector< CellId_t > vCellId_t
virtual void GetPhiLimits(Double_t &min, Double_t &max) const =0
std::vector< Float_t > vFloat_t
virtual void UnSelected()
Virtual method TEveElement::UnSelect.
Int_t AddHistogram(TH2F *hist)
Add new slice to calo tower.
virtual void SetEps(Float_t eps)
CellId_t(Int_t t, Int_t s, Float_t f=1.0f)
std::vector< CellGeom_t > vCellGeom_t
Class to manage histogram axis.
virtual void DataChanged()
Update limits and notify data users.
void ProcessSelection(vCellId_t &sel_cells, TGLSelectRecord &rec)
Process newly selected cells with given select-record.
TEveCaloDataHist()
Constructor.
virtual void GetCellData(const TEveCaloData::CellId_t &id, TEveCaloData::CellData_t &data) const
Get cell geometry and value from cell ID.
std::vector< Float_t >::iterator vFloat_i
2-D histogram with a float per channel (see TH1 documentation)}
Standard selection record including information about containing scene and details ob out selected ob...
bool operator<(const CellId_t &o) const
Cell geometry inner structure.
virtual void GetCellData(const CellId_t &id, CellData_t &data) const =0
virtual void CellSelectionChanged()
Tell users (TEveCaloViz instances using this data) that cell selection has changed and they should up...
virtual void Dump() const
Print member data.
CellGeom_t(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
TEveCaloDataHist & operator=(const TEveCaloDataHist &)
void SetAxisFromBins(Double_t epsX=0.001, Double_t epsY=0.001)
Set XY axis from cells geometry.
vCellId_t & GetCellsHighlighted()
std::vector< TEveCaloData::CellGeom_t > & GetCellGeom()
virtual void GetEtaLimits(Double_t &min, Double_t &max) const
Float_t Value(Bool_t) const
Return energy value associated with the cell, usually Et.
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.
TEveCaloData & operator=(const TEveCaloData &)
Int_t AddTower(Float_t etaMin, Float_t etaMax, Float_t phiMin, Float_t phiMax)
Add tower within eta/phi range.
ClassDef(TEveCaloData, 0)
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.
void SetWrapTwoPi(Bool_t w)
virtual void DataChanged()
Update limits and notify data users.
void SetSliceTransparency(Int_t slice, Char_t t)
Set transparency for given slice.
TH2F * GetHist(Int_t slice) const
Get histogram in given slice.
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const
Rebin cells.
std::vector< Float_t > fSliceData
std::vector< CellGeom_t >::const_iterator vCellGeom_ci
virtual void GetEtaLimits(Double_t &min, Double_t &max) const =0
Float_t ThetaDelta() const
virtual TAxis * GetEtaBins() const
virtual void GetPhiLimits(Double_t &min, Double_t &max) const
Get phi limits.
virtual ~TEveCaloDataVec()
Destructor.
TEveCaloDataVec & operator=(const TEveCaloDataVec &)
virtual void GetPhiLimits(Double_t &min, Double_t &max) const
Cell data inner structure.
void PrintCellsSelected()
Print selected cells info.
virtual void Dump() const
Print member data.
void SetSliceThreshold(Int_t slice, Float_t threshold)
Set threshold for given slice.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual void SetEtaBins(TAxis *ax)
virtual void Rebin(TAxis *ax, TAxis *ay, vCellId_t &in, Bool_t et, RebinData_t &out) const =0
virtual void SetPhiBins(TAxis *ax)
Float_t * GetSliceVals(Int_t bin)
A central manager for calorimeter data of an event written in TH2F.
Int_t AddSlice()
Add new slice.