1 #ifndef DataFormats_ForwardDetId_HGCScintillatorDetId_H 2 #define DataFormats_ForwardDetId_HGCScintillatorDetId_H 1 47 <<
"Cannot initialize HGCScintillatorDetId from " << std::hex <<
gen.rawId() <<
std::dec;
58 <<
"Cannot assign HGCScintillatorDetId from " << std::hex <<
gen.rawId() <<
std::dec;
157 return ((
ring() + 1) / 2);
164 return ((
iphi() + 1) / 2);
constexpr int iradiusTrigger() const
constexpr int ieta() const
constexpr HGCScintillatorDetId(uint32_t rawid)
constexpr int iphi() const
get the phi index
constexpr DetId::Detector subdet() const
get the subdetector
static constexpr int kHGCalTypeMask
constexpr int iradiusTriggerAbs() const
constexpr int ietaAbs() const
constexpr int iphiTrigger() const
static constexpr int kHGCalPhiMask
static constexpr int kHGCalZsideOffset
constexpr std::pair< int, int > ringphi() const
constexpr bool isEE() const
consistency check : no bits left => no overhead
static constexpr int kHGCalRadiusOffset
constexpr int zside() const
get the z-side of the cell (1/-1)
constexpr int sipm() const
get/set the sipm size
static constexpr int kHGCalLayerOffset
constexpr Detector det() const
get the detector field from this detid
static constexpr int kHGCalRadiusMask
constexpr bool isForward() const
constexpr HGCScintillatorDetId geometryCell() const
constexpr std::pair< int, int > ietaphi() const
static constexpr int kHGCalLayerMask
Abs< T >::type abs(const T &t)
constexpr bool trigger() const
static constexpr int kHGCalSiPMMask
static constexpr int kHGCalPhiOffset
constexpr int type() const
get/set the type
static const HGCScintillatorDetId Undefined
std::vector< HGCScintillatorDetId > detectorCells() const
trigger or detector cell
std::ostream & operator<<(std::ostream &, const HGCScintillatorDetId &id)
static constexpr int kHGCalZsideMask
constexpr HGCScintillatorDetId(const DetId &gen)
constexpr HGCScintillatorDetId(int type, int layer, int ring, int phi, bool trigger=false, int sipm=0)
static constexpr int kHGCalSiPMOffset
static constexpr int kHGCalTypeMask0
static constexpr int kHGCalTypeOffset
constexpr void setType(int type)
constexpr int layer() const
get the layer #
constexpr int iradius() const
static constexpr int kHGCalTriggerOffset
constexpr void setSiPM(int sipm)
constexpr int ring() const
get the eta index
constexpr bool isHE() const
constexpr HGCScintillatorDetId triggerCell() const
constexpr HGCScintillatorDetId & operator=(const DetId &gen)
constexpr int iradiusAbs() const
static constexpr int kHGCalSiPMMask0
constexpr HGCScintillatorDetId()
static constexpr int kHGCalTriggerMask