#include <HGCScintillatorDetId.h>
Public Member Functions | |
std::vector< HGCScintillatorDetId > | detectorCells () const |
trigger or detector cell More... | |
HGCScintillatorDetId | geometryCell () const |
HGCScintillatorDetId () | |
HGCScintillatorDetId (const DetId &id) | |
HGCScintillatorDetId (int type, int layer, int iradius, int iphi, bool trigger=false, int sipm=0) | |
HGCScintillatorDetId (uint32_t rawid) | |
int | ieta () const |
int | ietaAbs () const |
std::pair< int, int > | ietaphi () const |
int | iphi () const |
get the phi index More... | |
int | iphiTrigger () const |
int | iradius () const |
int | iradiusAbs () const |
get the eta index More... | |
std::pair< int, int > | iradiusphi () const |
int | iradiusTrigger () const |
int | iradiusTriggerAbs () const |
bool | isEE () const |
consistency check : no bits left => no overhead More... | |
bool | isForward () const |
bool | isHE () const |
int | layer () const |
get the layer # More... | |
HGCScintillatorDetId & | operator= (const DetId &id) |
void | setSiPM (int sipm) |
void | setType (int type) |
int | sipm () const |
get/set the sipm size More... | |
DetId::Detector | subdet () const |
get the subdetector More... | |
bool | trigger () const |
HGCScintillatorDetId | triggerCell () const |
int | type () const |
get/set the type More... | |
int | zside () const |
get the z-side of the cell (1/-1) More... | |
Public Member Functions inherited from DetId | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Attributes | |
static const int | kHGCalLayerMask = 0x1F |
static const int | kHGCalLayerOffset = 17 |
static const int | kHGCalPhiMask = 0x1FF |
static const int | kHGCalPhiOffset = 0 |
static const int | kHGCalRadiusMask = 0xFF |
static const int | kHGCalRadiusOffset = 9 |
static const int | kHGCalSiPMMask = 0x1 |
static const int | kHGCalSiPMMask0 = 0xFF7FFFFF |
static const int | kHGCalSiPMOffset = 23 |
static const int | kHGCalTriggerMask = 0x1 |
static const int | kHGCalTriggerOffset = 22 |
static const int | kHGCalTypeMask = 0x3 |
static const int | kHGCalTypeMask0 = 0xF3FFFFFF |
static const int | kHGCalTypeOffset = 26 |
static const int | kHGCalZsideMask = 0x1 |
static const int | kHGCalZsideOffset = 25 |
static const HGCScintillatorDetId | Undefined |
Static Public Attributes inherited from DetId | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Public Types inherited from DetId | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 23 of file HGCScintillatorDetId.h.
HGCScintillatorDetId::HGCScintillatorDetId | ( | ) |
Create a null cellid
Definition at line 8 of file HGCScintillatorDetId.cc.
Referenced by detectorCells(), geometryCell(), and triggerCell().
HGCScintillatorDetId::HGCScintillatorDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 10 of file HGCScintillatorDetId.cc.
HGCScintillatorDetId::HGCScintillatorDetId | ( | int | type, |
int | layer, | ||
int | iradius, | ||
int | iphi, | ||
bool | trigger = false , |
||
int | sipm = 0 |
||
) |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 12 of file HGCScintillatorDetId.cc.
References funct::abs(), DetId::id_, kHGCalLayerMask, kHGCalLayerOffset, kHGCalPhiMask, kHGCalPhiOffset, kHGCalRadiusMask, kHGCalRadiusOffset, kHGCalSiPMMask, kHGCalSiPMOffset, kHGCalTriggerMask, kHGCalTriggerOffset, kHGCalTypeMask, kHGCalTypeOffset, kHGCalZsideMask, kHGCalZsideOffset, layer(), phi, CosmicsPD_Skims::radius, sipm(), and zside().
HGCScintillatorDetId::HGCScintillatorDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 23 of file HGCScintillatorDetId.cc.
References TauDecayModes::dec, Exception, DetId::HGCalHSc, and DetId::id_.
std::vector< HGCScintillatorDetId > HGCScintillatorDetId::detectorCells | ( | ) | const |
trigger or detector cell
Definition at line 82 of file HGCScintillatorDetId.cc.
References postprocess-scan-build::cells, HGCScintillatorDetId(), iphi(), iradiusAbs(), layer(), trigger(), type(), and zside().
HGCScintillatorDetId HGCScintillatorDetId::geometryCell | ( | ) | const |
Converter for a geometry cell id
Definition at line 98 of file HGCScintillatorDetId.cc.
References HGCScintillatorDetId(), iphi(), iphiTrigger(), iradius(), iradiusTrigger(), layer(), trigger(), and type().
|
inline |
Definition at line 56 of file HGCScintillatorDetId.h.
References ietaAbs(), and zside().
Referenced by HGCalBHValidation::analyze(), HGCalSimHitStudy::analyzeHits(), HGCalCLUEAlgoT< TILE >::calculateLocalDensity(), and ietaphi().
|
inline |
Definition at line 55 of file HGCScintillatorDetId.h.
References iradiusAbs().
Referenced by HGCalSimHitValidation::analyzeHits(), HGCalTriggerNtupleHGCTriggerSums::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), and ieta().
|
inline |
int HGCScintillatorDetId::iphi | ( | ) | const |
get the phi index
Definition at line 58 of file HGCScintillatorDetId.cc.
References DetId::id_, kHGCalPhiMask, kHGCalPhiOffset, and trigger().
Referenced by HGCalBHValidation::analyze(), HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), HGCalCLUEAlgoT< TILE >::calculateLocalDensity(), detectorCells(), HGCalTriggerNtupleHGCTriggerSums::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), geometryCell(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), ietaphi(), iphiTrigger(), iradiusphi(), and triggerCell().
int HGCScintillatorDetId::iphiTrigger | ( | ) | const |
Definition at line 65 of file HGCScintillatorDetId.cc.
References iphi(), and trigger().
Referenced by geometryCell(), and triggerCell().
|
inline |
Definition at line 54 of file HGCScintillatorDetId.h.
References iradiusAbs(), and zside().
Referenced by geometryCell(), iradiusphi(), and triggerCell().
int HGCScintillatorDetId::iradiusAbs | ( | ) | const |
get the eta index
Definition at line 44 of file HGCScintillatorDetId.cc.
References DetId::id_, kHGCalRadiusMask, kHGCalRadiusOffset, and trigger().
Referenced by detectorCells(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), ietaAbs(), iradius(), and iradiusTriggerAbs().
|
inline |
|
inline |
Definition at line 98 of file HGCScintillatorDetId.h.
References iradiusTriggerAbs(), and zside().
Referenced by geometryCell(), and triggerCell().
int HGCScintillatorDetId::iradiusTriggerAbs | ( | ) | const |
Definition at line 51 of file HGCScintillatorDetId.cc.
References iradiusAbs(), and trigger().
Referenced by iradiusTrigger().
|
inline |
consistency check : no bits left => no overhead
Definition at line 73 of file HGCScintillatorDetId.h.
|
inline |
Definition at line 75 of file HGCScintillatorDetId.h.
|
inline |
Definition at line 74 of file HGCScintillatorDetId.h.
|
inline |
get the layer #
Definition at line 50 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalLayerMask, and kHGCalLayerOffset.
Referenced by HGCalBHValidation::analyze(), HGCalRecHitValidation::analyze(), HGCalDigiValidation::analyze(), HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), detectorCells(), geometryCell(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), hgcal::RecHitTools::getLayer(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), HGCalGeometry::getSummary(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), HGCScintillatorDetId(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalTriggerTools::layer(), HGCalTriggerGeometryV9Imp2::layerWithOffset(), HGCalSciNoiseMap::scaleByDose(), HGCalSciNoiseMap::scaleBySipmArea(), and triggerCell().
HGCScintillatorDetId & HGCScintillatorDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 33 of file HGCScintillatorDetId.cc.
References TauDecayModes::dec, Exception, DetId::HGCalHSc, and DetId::id_.
void HGCScintillatorDetId::setSiPM | ( | int | sipm | ) |
Definition at line 77 of file HGCScintillatorDetId.cc.
References DetId::id_, kHGCalSiPMMask, kHGCalSiPMMask0, kHGCalSiPMOffset, and sipm().
void HGCScintillatorDetId::setType | ( | int | type | ) |
Definition at line 72 of file HGCScintillatorDetId.cc.
References DetId::id_, kHGCalTypeMask, kHGCalTypeMask0, and kHGCalTypeOffset.
|
inline |
get/set the sipm size
Definition at line 64 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalSiPMMask, and kHGCalSiPMOffset.
Referenced by HGCScintillatorDetId(), and setSiPM().
|
inline |
get the subdetector
Definition at line 40 of file HGCScintillatorDetId.h.
References DetId::det().
Referenced by HGCalTriggerNtupleHGCTriggerSums::fill(), and HGCalTriggerNtupleHGCTriggerCells::fill().
|
inline |
Definition at line 69 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalTriggerMask, and kHGCalTriggerOffset.
Referenced by detectorCells(), geometryCell(), iphi(), iphiTrigger(), iradiusAbs(), iradiusTriggerAbs(), and triggerCell().
HGCScintillatorDetId HGCScintillatorDetId::triggerCell | ( | ) | const |
Definition at line 106 of file HGCScintillatorDetId.cc.
References HGCScintillatorDetId(), iphi(), iphiTrigger(), iradius(), iradiusTrigger(), layer(), trigger(), and type().
|
inline |
get/set the type
Definition at line 43 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalTypeMask, and kHGCalTypeOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), detectorCells(), HGCalTriggerNtupleHGCTriggerSums::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), geometryCell(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), HGCalSciNoiseMap::scaleByTileArea(), and triggerCell().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 47 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by HGCalSimHitStudy::analyzeHits(), HGCalSimHitValidation::analyzeHits(), detectorCells(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getOrderedTriggerCellsFromModule(), HGCalTriggerGeometryV9Imp1::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellFromCell(), HGCalTriggerGeometryV9Imp2::getTriggerCellsFromModule(), HGCScintillatorDetId(), ieta(), iradius(), iradiusTrigger(), hgcal::RecHitTools::zside(), and HGCalTriggerTools::zside().
|
static |
Definition at line 85 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and layer().
|
static |
Definition at line 84 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and layer().
|
static |
Definition at line 81 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), iphi(), HGCalTriggerGeometryV9Imp1::packIetaIphi(), and HGCalTriggerGeometryV9Imp1::unpackIetaIphi().
|
static |
Definition at line 80 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), iphi(), HGCalTriggerGeometryV9Imp1::packIetaIphi(), and HGCalTriggerGeometryV9Imp1::unpackIetaIphi().
|
static |
Definition at line 83 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), iradiusAbs(), HGCalTriggerGeometryV9Imp1::packIetaIphi(), and HGCalTriggerGeometryV9Imp1::unpackIetaIphi().
|
static |
Definition at line 82 of file HGCScintillatorDetId.h.
Referenced by HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCScintillatorDetId(), iradiusAbs(), HGCalTriggerGeometryV9Imp1::packIetaIphi(), and HGCalTriggerGeometryV9Imp1::unpackIetaIphi().
|
static |
Definition at line 89 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), setSiPM(), and sipm().
|
static |
Definition at line 90 of file HGCScintillatorDetId.h.
Referenced by setSiPM().
|
static |
Definition at line 88 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), setSiPM(), and sipm().
|
static |
Definition at line 87 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and trigger().
|
static |
Definition at line 86 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and trigger().
|
static |
Definition at line 94 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), setType(), and type().
|
static |
Definition at line 95 of file HGCScintillatorDetId.h.
Referenced by setType().
|
static |
Definition at line 93 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), setType(), and type().
|
static |
Definition at line 92 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and zside().
|
static |
Definition at line 91 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and zside().
|
static |
Definition at line 77 of file HGCScintillatorDetId.h.