1 #ifndef CondFormats_HcalObjects_HBHELinearMap_h_ 2 #define CondFormats_HcalObjects_HBHELinearMap_h_ 31 bool isValidTriple(
unsigned depth,
int ieta,
unsigned iphi)
const;
37 int* ieta,
unsigned* iphi)
const;
50 const unsigned i_iphi)
71 {
return !(*
this ==
r);}
79 typedef std::pair<HBHEChannelId,unsigned>
MapPair;
82 unsigned find(
unsigned depth,
int ieta,
unsigned iphi)
const;
91 #endif // CondFormats_HcalObjects_HBHELinearMap_h_
HBHEChannelId lookup_[ChannelCount]
static HcalSubdetector getSubdetector(unsigned depth, int ieta)
void getChannelTriple(unsigned index, unsigned *depth, int *ieta, unsigned *iphi) const
bool operator==(const HBHEChannelId &r) const
std::vector< MapPair > ChannelMap
unsigned find(unsigned depth, int ieta, unsigned iphi) const
bool isValidTriple(unsigned depth, int ieta, unsigned iphi) const
std::pair< HBHEChannelId, unsigned > MapPair
bool operator<(const HBHEChannelId &r) const
bool operator!=(const HBHEChannelId &r) const
HBHEChannelId(const unsigned i_depth, const int i_ieta, const unsigned i_iphi)
const HBHELinearMap & hbheChannelMap()
unsigned linearIndex(unsigned depth, int ieta, unsigned iphi) const