5#ifndef HIEVENTUTILS_HIEVENTSHAPEINDEX_H
6#define HIEVENTUTILS_HIEVENTSHAPEINDEX_H
25 unsigned int setBinning(
const TH2* h2,
bool asMask);
41 std::string
print()
const;
53 if(
eta==this->eta_min)
return true;
58 std::map<int,std::vector<range_index_t> >
m_edges;
65 inline float roundToTenth(
float d)
const {
return std::floor(d)+std::floor((d-std::floor(d))*10.0+0.5)/10.0;};
Scalar eta() const
pseudorapidity method
unsigned int getIndex(float eta, int layer) const
unsigned int getNumBins() const
std::map< int, std::vector< range_index_t > >::const_iterator getLayer(int layer) const
std::map< int, std::vector< range_index_t > > m_edges
void initializeEventShapeContainer(std::unique_ptr< xAOD::HIEventShapeContainer > &shape_container, unsigned int num_harmonics) const
std::string print() const
xAOD::HIEventShape * getShape(float eta, int layer, xAOD::HIEventShapeContainer *shape_container) const
unsigned int getEtaBin(float eta, int layer) const
float roundToTenth(float d) const
unsigned int getIndex_Internal(float eta, int layer, bool etaIndex) const
unsigned int getIndexFromBin(unsigned int ebin, int layer) const
unsigned int setBinning(const TH2 *h2, bool asMask)
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.
HIEventShape_v2 HIEventShape
Definition of the latest event info version.
bool operator()(float eta) const
bool operator<(const range_index_t &rhs) const
range_index_t(float emin, float emax, unsigned int ii)