1 #ifndef DataFormats_ForwardDetId_HGCHEDetId_H 2 #define DataFormats_ForwardDetId_HGCHEDetId_H 1 46 int subsector()
const {
return ((
id_ >> kHGCHESubSectorOffset) & kHGCHESubSectorMask ? 1 : -1); }
52 int zside()
const {
return ((
id_ >> kHGCHEZsideOffset) & kHGCHEZsideMask ? 1 : -1); }
55 bool isHE()
const {
return true; }
static const int kHGCHESubSectorOffset
static const int kHGCHELayerOffset
static const int kHGCHESubSectorMask
int cell() const
get the absolute value of the cell #'s in x and y
static const int kHGCHESectorOffset
int layer() const
get the layer #
static const int kHGCHECellOffset
bool isHE() const
consistency check
HGCHEDetId geometryCell() const
int subsector() const
get the degree subsector
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static const int kHGCHELayerMask
static const int kHGCHEZsideOffset
static const int kHGCHEZsideMask
int zside() const
get the z-side of the cell (1/-1)
static const int kHGCHECellMask
static const int kHGCHESectorMask
int sector() const
get the sector #
T mod(const T &a, const T &b)
ForwardSubdetector subdet() const
get the subdetector
static const HGCHEDetId Undefined
HGCHEDetId & operator=(const DetId &id)
std::ostream & operator<<(std::ostream &, const HGCHEDetId &id)