53 uint32_t rawid = gen.
rawId();
54 if (rawid ==
id_)
return true;
56 unpackId(rawid, zsid, eta, phi, dep);
63 uint32_t rawid = gen.
rawId();
64 if (rawid ==
id_)
return false;
66 unpackId(rawid, zsid, eta, phi, dep);
73 uint32_t rawid = gen.
rawId();
78 unpackId(rawid, zsid, eta, phi, dep);
116 if (dep > 2) dep -= 2;
147 uint32_t rawid(inpid);
150 unpackId(rawid, zsid, eta, phi, dep);
160 uint32_t rawid = gen.
rawId();
161 if (rawid ==
id_)
return true;
164 unpackId(rawid, zsid, eta, phi, dep);
202 int simple_iphi=((
iphi()-1)*5)+1;
204 return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
208 int simple_iphi=((
iphi()-1)*5)+5;
210 return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
234 case(
HcalBarrel) :
return s <<
"(HB " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
235 case(
HcalEndcap) :
return s <<
"(HE " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
236 case(
HcalForward) :
return s <<
"(HF " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
237 case(
HcalOuter) :
return s <<
"(HO " <<
id.ieta() <<
',' <<
id.iphi() <<
')';
238 case(
HcalTriggerTower) :
return s <<
"(HT " <<
id.ieta() <<
',' <<
id.iphi() <<
')';
239 default :
return s <<
id.rawId();
static const HcalDetId Undefined
HcalDetId & operator=(const DetId &id)
bool sameBaseDetId(const DetId &) const
base detId for HF dual channels
HcalSubdetector subdet() const
get the subdetector
int zside() const
get the z-side of the cell (1/-1)
int crystal_iphi_low() const
get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) ...
static const int kHcalDepthMask1
static const int kHcalDepthSet2
static const int kHcalDepthSet1
uint32_t maskDepth() const
get the tower depth
bool operator!=(DetId id) const
int hfdepth() const
get full depth information for HF
static const int kHcalDepthMask2
uint32_t rawId() const
get the raw id
int depth() const
get the tower depth
bool operator<(DetId id) const
int ieta() const
get the cell ieta
HcalDetId baseDetId() const
static const int kHcalDepthOffset1
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void newFromOld(const uint32_t &)
static const int kHcalIdMask
int ietaAbs() const
get the absolute value of the cell ieta
int iphi() const
get the cell iphi
static const int kHcalPhiMask2
uint32_t otherForm() const
change format
static const int kHcalIdFormat2
bool null() const
is this a null id ?
static const int kHcalZsideMask1
static const int kHcalEtaOffset2
bool operator==(DetId id) const
std::ostream & operator<<(std::ostream &s, const HcalDetId &id)
static const int kHcalZsideMask2
static const int kHcalEtaMask2
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
static void unpackId(const uint32_t &, int &, int &, int &, int &)
HcalDetId secondAnodeId() const
second PMT anode detId for HF dual channels
static const int kHcalEtaMask1
static const int kHcalPhiMask1
static const int kHcalDepthOffset2
static const int kHcalEtaOffset1