74 uint32_t rawid = gen.
rawId();
75 if (rawid ==
id_)
return true;
77 unpackId(rawid, zsid, eta, phi, dep);
84 uint32_t rawid = gen.
rawId();
85 if (rawid ==
id_)
return false;
87 unpackId(rawid, zsid, eta, phi, dep);
94 uint32_t rawid = gen.
rawId();
99 unpackId(rawid, zsid, eta, phi, dep);
137 if (dep > 2) dep -= 2;
168 uint32_t rawid(inpid);
171 unpackId(rawid, zsid, eta, phi, dep);
181 uint32_t rawid = gen.
rawId();
182 if (rawid ==
id_)
return true;
185 unpackId(rawid, zsid, eta, phi, dep);
223 int simple_iphi=((
iphi()-1)*5)+1;
225 return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
229 int simple_iphi=((
iphi()-1)*5)+5;
231 return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
255 case(
HcalBarrel) :
return s <<
"(HB " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
256 case(
HcalEndcap) :
return s <<
"(HE " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
257 case(
HcalForward) :
return s <<
"(HF " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
258 case(
HcalOuter) :
return s <<
"(HO " <<
id.ieta() <<
',' <<
id.iphi() <<
')';
259 case(
HcalTriggerTower) :
return s <<
"(HT " <<
id.ieta() <<
',' <<
id.iphi() <<
')';
260 default :
return s << std::hex <<
id.rawId() <<
std::dec;
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
static const int kSubdetOffset
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 kDetOffset
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