15 id_ |= ((depth&0x1F)<<14) |
16 ((tower_ieta>0)?(0x2000|(tower_ieta<<7)):((-tower_ieta)<<7)) |
47 int simple_iphi=((
iphi()-1)*5)+1;
49 return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
53 int simple_iphi=((
iphi()-1)*5)+5;
55 return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
59 switch (
id.subdet()) {
60 case(
HcalBarrel) :
return s <<
"(HB " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
61 case(
HcalEndcap) :
return s <<
"(HE " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
62 case(
HcalForward) :
return s <<
"(HF " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
63 case(
HcalOuter) :
return s <<
"(HO " <<
id.ieta() <<
',' <<
id.iphi() <<
')';
64 default :
return s <<
id.rawId();
static const HcalDetId Undefined
HcalDetId & operator=(const DetId &id)
HcalSubdetector subdet() const
get the subdetector
int crystal_iphi_low() const
get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) ...
std::ostream & operator<<(std::ostream &out, const ALILine &li)
uint32_t rawId() const
get the raw id
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int iphi() const
get the cell iphi
bool null() const
is this a null id ?
int crystal_iphi_high() const
get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) ...
Detector det() const
get the detector field from this detid