Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0, copy number must be scaled by 1 unit. More...
#include <BTLDetId.h>
Public Types | |
enum | CrysLayout { CrysLayout::tile = 1, CrysLayout::bar = 2, CrysLayout::barzflat = 3, CrysLayout::barphiflat = 4 } |
Public Types inherited from MTDDetId | |
enum | MTDType { typeUNKNOWN =0, BTL =1, ETL =2 } |
enum | SubDetector { subUNKNOWN =0, FastTime =1 } |
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 } |
Public Member Functions | |
BTLDetId () | |
BTLDetId (const uint32_t &raw_id) | |
BTLDetId (const DetId &det_id) | |
BTLDetId (uint32_t zside, uint32_t rod, uint32_t module, uint32_t modtyp, uint32_t crystal) | |
int | column (unsigned nrows=16) const |
int | crystal () const |
BTLDetId | geographicalId (CrysLayout lay) const |
BTLDetId | getUnhashedIndex (int hi, CrysLayout lay) const |
int | hashedIndex (CrysLayout lay) const |
int | ieta (CrysLayout lay) const |
int | ietaAbs (CrysLayout lay) const |
int | iphi (CrysLayout lay) const |
int | modType () const |
int | module () const |
int | modulesPerType (CrysLayout lay) const |
int | row (unsigned nrows=16) const |
Public Member Functions inherited from MTDDetId | |
MTDDetId () | |
MTDDetId (const uint32_t &raw_id) | |
MTDDetId (const DetId &det_id) | |
MTDDetId (Detector det, int subdet) | |
int | mtdRR () const |
int | mtdSide () const |
int | mtdSubDetector () const |
SubDetector | subDetector () const |
int | zside () const |
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 (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. 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 Member Functions | |
static bool | validHashedIndex (uint32_t din) |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0, copy number must be scaled by 1 unit.
bit 15-10: module sequential number bit 9-8 : crystal type (1 - 3) bit 7-0 : crystal sequential number within a module ( 0 - 63 )
Definition at line 18 of file BTLDetId.h.
|
strong |
|
inline |
Construct a null id
Definition at line 71 of file BTLDetId.h.
References DetId::id_, MTDDetId::kMTDsubdMask, and MTDDetId::kMTDsubdOffset.
Referenced by geographicalId(), and getUnhashedIndex().
|
inline |
|
inline |
|
inline |
Construct and fill only the det and sub-det fields.
Definition at line 80 of file BTLDetId.h.
References DetId::id_, kBTLCrystalMask, kBTLmodTypeMask, MTDDetId::kMTDsubdMask, MTDDetId::kMTDsubdOffset, MTDDetId::kRodRingMask, MTDDetId::kRodRingOffset, MTDDetId::kZsideMask, and MTDDetId::kZsideOffset.
|
inline |
return the column in GeomDetLanguage
Definition at line 110 of file BTLDetId.h.
References crystal(), ietaAbs(), and iphi().
Referenced by BtlDigiHitsValidation::analyze(), BtlRecHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BTLTileDeviceSim::getHitsResponse(), and BTLBarDeviceSim::getHitsResponse().
|
inline |
Returns BTL crystal number.
Definition at line 102 of file BTLDetId.h.
References DetId::id_.
Referenced by column(), getUnhashedIndex(), ietaAbs(), iphi(), and row().
BTLDetId BTLDetId::geographicalId | ( | CrysLayout | lay | ) | const |
create a Geographical DetId for Tracking
Definition at line 162 of file BTLDetId.cc.
References BTLDetId(), modType(), module(), modulesPerType(), MTDDetId::mtdRR(), and MTDDetId::mtdSide().
Referenced by BtlDigiHitsValidation::analyze(), BtlRecHitsValidation::analyze(), BtlSimHitsValidation::analyze(), MTDTimeCalib::getTimeCalib(), and validHashedIndex().
BTLDetId BTLDetId::getUnhashedIndex | ( | int | hi, |
CrysLayout | lay | ||
) | const |
get a DetId from a compact index for arrays
Definition at line 102 of file BTLDetId.cc.
References bar, barphiflat, barzflat, BTLDetId(), crystal(), kCrystalsInEtaBar, kCrystalsInEtaBarPhi, kCrystalsInEtaBarZ, kCrystalsInEtaTile, kCrystalsInPhiBar, kCrystalsInPhiBarPhi, kCrystalsInPhiBarZ, kCrystalsInPhiTile, kTypeBoundariesBarPhiFlat, kTypeBoundariesBarZflat, kTypeBoundariesReference, MAX_IETA_BAR, MAX_IETA_BARPHIFLAT, MAX_IETA_BARZFLAT, MAX_IETA_TILE, MAX_IPHI_BAR, MAX_IPHI_BARPHIFLAT, MAX_IPHI_BARZFLAT, MAX_IPHI_TILE, tile, and MTDDetId::zside().
Referenced by validHashedIndex().
int BTLDetId::hashedIndex | ( | CrysLayout | lay | ) | const |
define a dense index of arrays from a DetId
Definition at line 70 of file BTLDetId.cc.
References bar, barphiflat, barzflat, ietaAbs(), iphi(), MAX_IETA_BAR, MAX_IETA_BARPHIFLAT, MAX_IETA_BARZFLAT, MAX_IETA_TILE, MAX_IPHI_BAR, MAX_IPHI_BARPHIFLAT, MAX_IPHI_BARZFLAT, MAX_IPHI_TILE, tile, and MTDDetId::zside().
Referenced by ieta().
|
inline |
Definition at line 120 of file BTLDetId.h.
References hashedIndex(), ietaAbs(), and MTDDetId::zside().
int BTLDetId::ietaAbs | ( | CrysLayout | lay | ) | const |
Returns BTL ieta index for crystal according to type tile or bar
Definition at line 32 of file BTLDetId.cc.
References bar, barphiflat, barzflat, crystal(), kCrystalsInEtaBar, kCrystalsInEtaBarPhi, kCrystalsInEtaBarZ, kCrystalsInEtaTile, kCrystalsInPhiBar, kCrystalsInPhiBarPhi, kCrystalsInPhiBarZ, kCrystalsInPhiTile, kTypeBoundariesBarPhiFlat, kTypeBoundariesBarZflat, kTypeBoundariesReference, modType(), module(), tile, and MTDDetId::zside().
Referenced by column(), hashedIndex(), and ieta().
int BTLDetId::iphi | ( | CrysLayout | lay | ) | const |
Returns BTL iphi index for crystal according to type tile or bar
Definition at line 4 of file BTLDetId.cc.
References bar, barphiflat, barzflat, crystal(), HALF_ROD, kCrystalsInPhiBar, kCrystalsInPhiBarPhi, kCrystalsInPhiBarZ, kCrystalsInPhiTile, MTDDetId::mtdRR(), and tile.
Referenced by column(), and hashedIndex().
|
inline |
Returns BTL crystal type number.
Definition at line 99 of file BTLDetId.h.
References DetId::id_, and kBTLmodTypeMask.
Referenced by reco::HitPattern::encode(), geographicalId(), BTLTileDeviceSim::getHitsResponse(), BTLBarDeviceSim::getHitsResponse(), and ietaAbs().
|
inline |
Returns BTL module number.
Definition at line 96 of file BTLDetId.h.
References DetId::id_, and kBTLmoduleMask.
Referenced by geographicalId(), BTLTileDeviceSim::getHitsResponse(), BTLBarDeviceSim::getHitsResponse(), and ietaAbs().
int BTLDetId::modulesPerType | ( | CrysLayout | lay | ) | const |
return the number of modules per type according to scenario
Definition at line 155 of file BTLDetId.cc.
References barphiflat, barzflat, kTypeBoundariesBarPhiFlat, kTypeBoundariesBarZflat, kTypeBoundariesReference, and mod().
Referenced by geographicalId(), BTLBarDeviceSim::getHitsResponse(), and validHashedIndex().
|
inline |
return the row in GeomDet language
Definition at line 105 of file BTLDetId.h.
References crystal().
Referenced by BtlDigiHitsValidation::analyze(), BtlRecHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BTLTileDeviceSim::getHitsResponse(), and BTLBarDeviceSim::getHitsResponse().
|
inlinestatic |
Definition at line 125 of file BTLDetId.h.
References geographicalId(), getUnhashedIndex(), modulesPerType(), and operator<<().
|
static |
Definition at line 49 of file BTLDetId.h.
Referenced by BTLDetLayerGeometryBuilder::buildLayers(), and iphi().
|
static |
Definition at line 27 of file BTLDetId.h.
Referenced by BTLDetId().
|
static |
Definition at line 26 of file BTLDetId.h.
|
static |
Definition at line 25 of file BTLDetId.h.
Referenced by BTLDetId(), and modType().
|
static |
Definition at line 24 of file BTLDetId.h.
|
static |
Definition at line 23 of file BTLDetId.h.
Referenced by module().
|
static |
Definition at line 22 of file BTLDetId.h.
|
static |
Definition at line 39 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and ietaAbs().
|
static |
Definition at line 43 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and ietaAbs().
|
static |
Definition at line 41 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and ietaAbs().
|
static |
Definition at line 37 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and ietaAbs().
|
static |
Definition at line 38 of file BTLDetId.h.
Referenced by getUnhashedIndex(), ietaAbs(), and iphi().
|
static |
Definition at line 42 of file BTLDetId.h.
Referenced by getUnhashedIndex(), ietaAbs(), and iphi().
|
static |
Definition at line 40 of file BTLDetId.h.
Referenced by getUnhashedIndex(), ietaAbs(), and iphi().
|
static |
Definition at line 36 of file BTLDetId.h.
Referenced by getUnhashedIndex(), ietaAbs(), and iphi().
|
static |
Definition at line 44 of file BTLDetId.h.
|
static |
Definition at line 46 of file BTLDetId.h.
|
static |
Definition at line 45 of file BTLDetId.h.
|
static |
range constants, need two sets for the time being (one for tiles and one for bars)
Definition at line 30 of file BTLDetId.h.
Referenced by BTLDetLayerGeometryBuilder::buildLayers().
|
static |
Definition at line 32 of file BTLDetId.h.
|
static |
Definition at line 31 of file BTLDetId.h.
Definition at line 64 of file BTLDetId.h.
|
static |
Definition at line 35 of file BTLDetId.h.
Referenced by getUnhashedIndex(), ietaAbs(), and modulesPerType().
|
static |
Definition at line 34 of file BTLDetId.h.
Referenced by getUnhashedIndex(), ietaAbs(), and modulesPerType().
|
static |
Definition at line 33 of file BTLDetId.h.
Referenced by BTLTileDeviceSim::getHitsResponse(), getUnhashedIndex(), ietaAbs(), and modulesPerType().
|
static |
Definition at line 63 of file BTLDetId.h.
|
static |
Definition at line 54 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and hashedIndex().
|
static |
Definition at line 60 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and hashedIndex().
|
static |
Definition at line 56 of file BTLDetId.h.
|
static |
Definition at line 58 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and hashedIndex().
|
static |
Definition at line 52 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and hashedIndex().
|
static |
Definition at line 55 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and hashedIndex().
|
static |
Definition at line 61 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and hashedIndex().
|
static |
Definition at line 57 of file BTLDetId.h.
|
static |
Definition at line 59 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and hashedIndex().
|
static |
Definition at line 53 of file BTLDetId.h.
Referenced by getUnhashedIndex(), and hashedIndex().
|
static |
Definition at line 48 of file BTLDetId.h.
|
static |
Definition at line 62 of file BTLDetId.h.
|
static |
Definition at line 50 of file BTLDetId.h.
|
static |
Definition at line 51 of file BTLDetId.h.
|
static |
Definition at line 47 of file BTLDetId.h.
Referenced by BTLDetLayerGeometryBuilder::buildLayers().