14 int zside = (ring < 0) ? 1 : 0;
15 int itrig = trigger ? 1 : 0;
27 <<
"Cannot initialize HGCScintillatorDetId from " << std::hex << gen.
rawId() <<
std::dec;
37 <<
"Cannot assign HGCScintillatorDetId from " << std::hex << gen.
rawId() <<
std::dec;
53 return ((
ring() + 1) / 2);
67 return ((
iphi() + 1) / 2);
83 std::vector<HGCScintillatorDetId>
cells;
114 return s <<
" HGCScintillatorDetId::EE:HE= " <<
id.isEE() <<
":" <<
id.isHE() <<
" trigger= " <<
id.trigger()
115 <<
" type= " <<
id.type() <<
" SiPM= " <<
id.sipm() <<
" layer= " <<
id.layer() <<
" ring= " <<
id.iradius()
116 <<
":" <<
id.iradiusTrigger() <<
" phi= " <<
id.iphi() <<
":" <<
id.iphiTrigger();
static const int kHGCalTriggerOffset
constexpr bool null() const
is this a null id ?
int iradiusTrigger() const
static const int kHGCalTypeOffset
constexpr uint32_t rawId() const
get the raw id
int type() const
get/set the type
std::ostream & operator<<(std::ostream &out, const ALILine &li)
constexpr std::array< uint8_t, layerIndexSize > layer
static const int kHGCalSiPMOffset
HGCScintillatorDetId & operator=(const DetId &id)
int iradiusTriggerAbs() const
static const int kHGCalSiPMMask0
static const int kHGCalLayerMask
static const int kHGCalRadiusOffset
Abs< T >::type abs(const T &t)
int iphi() const
get the phi index
static const int kHGCalTriggerMask
HGCScintillatorDetId geometryCell() const
int ring() const
get the eta index
std::vector< HGCScintillatorDetId > detectorCells() const
trigger or detector cell
static const HGCScintillatorDetId Undefined
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ cells
static const int kHGCalRadiusMask
static const int kHGCalTypeMask0
static const int kHGCalPhiMask
int layer() const
get the layer #
int zside() const
get the z-side of the cell (1/-1)
static const int kHGCalSiPMMask
static const int kHGCalZsideMask
static const int kHGCalZsideOffset
static const int kHGCalLayerOffset
static const int kHGCalTypeMask
static const int kHGCalPhiOffset
HGCScintillatorDetId triggerCell() const
constexpr Detector det() const
get the detector field from this detid