53 uint32_t rawid = gen.
rawId();
54 if (rawid ==
id_)
return true;
56 unpackId(rawid, zsid, eta, phi, dep);
62 uint32_t rawid = gen.
rawId();
63 if (rawid ==
id_)
return false;
65 unpackId(rawid, zsid, eta, phi, dep);
71 uint32_t rawid = gen.
rawId();
76 unpackId(rawid, zsid, eta, phi, dep);
114 if (dep > 2) dep -= 2;
145 uint32_t rawid(inpid);
148 unpackId(rawid, zsid, eta, phi, dep);
158 int simple_iphi=((
iphi()-1)*5)+1;
160 return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
164 int simple_iphi=((
iphi()-1)*5)+5;
166 return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi));
189 switch (
id.subdet()) {
190 case(
HcalBarrel) :
return s <<
"(HB " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
191 case(
HcalEndcap) :
return s <<
"(HE " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
192 case(
HcalForward) :
return s <<
"(HF " <<
id.ieta() <<
',' <<
id.iphi() <<
',' <<
id.depth() <<
')';
193 case(
HcalOuter) :
return s <<
"(HO " <<
id.ieta() <<
',' <<
id.iphi() <<
')';
194 case(
HcalTriggerTower) :
return s <<
"(HT " <<
id.ieta() <<
',' <<
id.iphi() <<
')';
195 default :
return s <<
id.rawId();
static const HcalDetId Undefined
HcalDetId & operator=(const DetId &id)
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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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
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
Geom::Phi< T > phi() const
static const int kHcalEtaOffset2
bool operator==(DetId id) const
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 &)
static const int kHcalEtaMask1
static const int kHcalPhiMask1
static const int kHcalDepthOffset2
static const int kHcalEtaOffset1