1 #ifndef DATAFORMATS_HCALDETID_HCALDETID_H 2 #define DATAFORMATS_HCALDETID_HCALDETID_H 1 63 <<
"Cannot initialize HcalDetId from " << std::hex <<
gen.rawId() <<
std::dec;
95 uint32_t rawid =
gen.rawId();
98 int zsid{0},
eta{0},
phi{0}, dep{0};
106 uint32_t rawid =
gen.rawId();
109 int zsid{0},
eta{0},
phi{0}, dep{0};
117 uint32_t rawid =
gen.rawId();
121 int zsid{0},
eta{0},
phi{0}, dep{0};
133 return (
id_ < rawid);
200 constexpr
static int32_t
newForm(
const uint32_t& inpid) {
201 uint32_t rawid(inpid);
203 int zsid{0},
eta{0},
phi{0}, dep{0};
214 uint32_t rawid =
gen.rawId();
217 int zsid{0},
eta{0},
phi{0}, dep{0};
230 int zsid{0},
eta{0},
phi{0}, dep{0};
245 int zsid{0},
eta{0},
phi{0}, dep{0};
262 int simple_iphi = ((
iphi() - 1) * 5) + 1;
264 return ((simple_iphi > 360) ? (simple_iphi - 360) : (simple_iphi));
268 int simple_iphi = ((
iphi() - 1) * 5) + 5;
270 return ((simple_iphi > 360) ? (simple_iphi - 360) : (simple_iphi));
278 constexpr
static void unpackId(
const uint32_t& rawid,
int& zsid,
int&
eta,
int&
phi,
int& dep) {
static const HcalDetId Undefined
static constexpr uint32_t kHcalPhiMask2
static constexpr uint32_t kHcalZsideMask1
constexpr bool oldFormat() const
constexpr HcalDetId baseDetId() const
constexpr uint32_t maskDepth() const
get the tower depth
constexpr HcalDetId(const DetId &gen)
constexpr int zside() const
get the z-side of the cell (1/-1)
constexpr int ietaAbs() const
get the absolute value of the cell ieta
constexpr bool sameBaseDetId(const DetId &gen) const
base detId for HF dual channels
static constexpr void unpackId(const uint32_t &rawid, int &zsid, int &eta, int &phi, int &dep)
constexpr HcalDetId(uint32_t rawid)
static constexpr uint32_t kHcalPhiMask1
constexpr int hfdepth() const
get full depth information for HF
constexpr int crystal_iphi_high() const
get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) ...
constexpr HcalDetId & operator=(const DetId &gen)
static const int kSubdetOffset
constexpr void newFromOld(const uint32_t &rawid)
constexpr HcalDetId secondAnodeId() const
second PMT anode detId for HF dual channels
constexpr bool operator==(DetId gen) const
constexpr uint32_t newForm() const
static constexpr uint32_t kHcalZsideMask2
constexpr HcalSubdetector subdet() const
get the subdetector
static constexpr uint32_t kHcalDepthSet1
constexpr void changeForm()
static const int kSubdetMask
std::ostream & operator<<(std::ostream &, const HcalDetId &id)
constexpr int ieta() const
get the cell ieta
static constexpr uint32_t kHcalDepthSet2
constexpr HcalDetId(HcalSubdetector subdet, int tower_ieta, int tower_iphi, int depth)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr uint32_t kHcalDepthMask1
static constexpr uint32_t kHcalEtaMask2
constexpr int crystal_ieta_high() const
get the largest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only) ...
static constexpr uint32_t kHcalIdMask
constexpr int crystal_ieta_low() const
get the smallest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only) ...
static constexpr int32_t newForm(const uint32_t &inpid)
static constexpr uint32_t kHcalDepthOffset2
static constexpr uint32_t kHcalIdFormat2
static const int kDetMask
static constexpr uint32_t kHcalEtaOffset1
constexpr bool operator<(DetId gen) const
static const int kDetOffset
constexpr bool operator!=(DetId gen) const
static constexpr uint32_t kHcalEtaOffset2
static constexpr uint32_t kHcalEtaMask1
constexpr uint32_t otherForm() const
change format
constexpr int iphi() const
get the cell iphi
constexpr 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 constexpr uint32_t kHcalDepthMask2
static constexpr uint32_t kHcalDepthOffset1
constexpr int depth() const
get the tower depth