![]() |
![]() |
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, CrysLayout::tdr = 5 } |
![]() | |
enum | MTDType { typeUNKNOWN = 0, BTL = 1, ETL = 2 } |
enum | SubDetector { subUNKNOWN = 0, FastTime = 1 } |
![]() | |
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=kCrystalsPerModuleTdr) const |
int | crystal () const |
BTLDetId | geographicalId (CrysLayout lay) const |
int | modType () const |
int | module () const |
int | row (unsigned nrows=kCrystalsPerModuleTdr) const |
![]() | |
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 |
![]() | |
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 Attributes | |
static constexpr uint32_t | HALF_ROD = 36 |
range constants, need two sets for the time being (one for tiles and one for bars) More... | |
static constexpr uint32_t | kBTLCrystalMask = 0x3F |
static constexpr uint32_t | kBTLCrystalOffset = 0 |
static constexpr uint32_t | kBTLmodTypeMask = 0x3 |
static constexpr uint32_t | kBTLmodTypeOffset = 8 |
static constexpr uint32_t | kBTLmoduleMask = 0x3F |
static constexpr uint32_t | kBTLmoduleOffset = 10 |
static constexpr uint32_t | kCrystalsBTL = kCrystalsPerModuleTdr * 24 * 6 * HALF_ROD * 2 |
static constexpr uint32_t | kCrystalsPerModuleTdr = 16 |
static constexpr uint32_t | kModulePerTypeBarPhiFlat = 48 / 3 |
static constexpr uint32_t | kModulesPerRODBarPhiFlat = 48 |
![]() | |
static const uint32_t | kMTDsubdMask = 0x3 |
static const uint32_t | kMTDsubdOffset = 23 |
static const uint32_t | kRodRingMask = 0x3F |
static const uint32_t | kRodRingOffset = 16 |
static const uint32_t | kZsideMask = 0x1 |
static const uint32_t | kZsideOffset = 22 |
![]() | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
![]() | |
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 43 of file BTLDetId.h.
References DetId::id_, MTDDetId::kMTDsubdMask, and MTDDetId::kMTDsubdOffset.
Referenced by geographicalId().
|
inline |
|
inline |
|
inline |
Construct and fill only the det and sub-det fields.
Definition at line 54 of file BTLDetId.h.
References crystal(), DetId::id_, kBTLCrystalMask, kBTLCrystalOffset, kBTLmodTypeMask, kBTLmodTypeOffset, kBTLmoduleMask, kBTLmoduleOffset, MTDDetId::kMTDsubdMask, MTDDetId::kMTDsubdOffset, MTDDetId::kRodRingMask, MTDDetId::kRodRingOffset, MTDDetId::kZsideMask, MTDDetId::kZsideOffset, module(), and MTDDetId::zside().
|
inline |
return the column in GeomDetLanguage
Definition at line 78 of file BTLDetId.h.
References crystal().
Referenced by BtlDigiHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlLocalRecoValidation::analyze(), MtdTracksValidation::analyze(), and BTLDeviceSim::getHitsResponse().
|
inline |
Returns BTL crystal number.
Definition at line 70 of file BTLDetId.h.
References DetId::id_, kBTLCrystalMask, and kBTLCrystalOffset.
Referenced by BTLDetId(), column(), and row().
BTLDetId BTLDetId::geographicalId | ( | CrysLayout | lay | ) | const |
create a Geographical DetId for Tracking
Definition at line 3 of file BTLDetId.cc.
References barphiflat, BTLDetId(), kModulePerTypeBarPhiFlat, modType(), module(), MTDDetId::mtdRR(), and MTDDetId::mtdSide().
Referenced by BtlDigiHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlLocalRecoValidation::analyze(), MtdTracksValidation::analyze(), BTLDeviceSim::getHitsResponse(), and MTDTimeCalib::getTimeCalib().
|
inline |
Returns BTL crystal type number.
Definition at line 67 of file BTLDetId.h.
References DetId::id_, kBTLmodTypeMask, and kBTLmodTypeOffset.
Referenced by geographicalId().
|
inline |
Returns BTL module number.
Definition at line 64 of file BTLDetId.h.
References DetId::id_, kBTLmoduleMask, and kBTLmoduleOffset.
Referenced by BTLDetId(), and geographicalId().
|
inline |
return the row in GeomDet language
Definition at line 73 of file BTLDetId.h.
References crystal().
Referenced by BtlDigiHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlLocalRecoValidation::analyze(), MtdTracksValidation::analyze(), and BTLDeviceSim::getHitsResponse().
|
static |
range constants, need two sets for the time being (one for tiles and one for bars)
Definition at line 28 of file BTLDetId.h.
Referenced by BTLDetLayerGeometryBuilder::buildLayers().
|
static |
Definition at line 25 of file BTLDetId.h.
Referenced by BTLDetId(), and crystal().
|
static |
Definition at line 24 of file BTLDetId.h.
Referenced by BTLDetId(), and crystal().
|
static |
Definition at line 23 of file BTLDetId.h.
Referenced by BTLDetId(), and modType().
|
static |
Definition at line 22 of file BTLDetId.h.
Referenced by BTLDetId(), and modType().
|
static |
Definition at line 21 of file BTLDetId.h.
Referenced by BTLDetId(), and module().
|
static |
Definition at line 20 of file BTLDetId.h.
Referenced by BTLDetId(), and module().
|
static |
Definition at line 36 of file BTLDetId.h.
Referenced by BtlLocalRecoHarvester::dqmEndJob(), and BtlSimHitsHarvester::dqmEndJob().
|
static |
Definition at line 31 of file BTLDetId.h.
|
static |
Definition at line 30 of file BTLDetId.h.
Referenced by geographicalId().
|
static |
Definition at line 29 of file BTLDetId.h.
Referenced by BTLDetLayerGeometryBuilder::buildLayers().