CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
ETLDetId Class Reference

Detector identifier class for the Endcap Timing Layer. More...

#include <ETLDetId.h>

Inheritance diagram for ETLDetId:
MTDDetId DetId

Public Member Functions

 ETLDetId ()
 
 ETLDetId (const uint32_t &raw_id)
 
 ETLDetId (const DetId &det_id)
 
 ETLDetId (uint32_t zside, uint32_t ring, uint32_t module, uint32_t modtyp)
 
int modType () const
 
int module () 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 Attributes

static const uint32_t kETLmodTypeMask = 0x3
 
static const uint32_t kETLmodTypeOffset = 5
 
static const uint32_t kETLmoduleMask = 0xFF
 
static const uint32_t kETLmoduleOffset = 7
 
- Static Public Attributes inherited from MTDDetId
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 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 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
}
 
- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

Detector identifier class for the Endcap Timing Layer.

bit 15-7 : module sequential number bit 6-5 : module type (unused so far)

Definition at line 15 of file ETLDetId.h.

Constructor & Destructor Documentation

ETLDetId::ETLDetId ( )
inline

Construct a null id

Definition at line 27 of file ETLDetId.h.

References DetId::id_, MTDDetId::kMTDsubdMask, and MTDDetId::kMTDsubdOffset.

MTDDetId()
Definition: MTDDetId.h:41
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:31
static const uint32_t kMTDsubdMask
Definition: MTDDetId.h:32
uint32_t id_
Definition: DetId.h:59
ETLDetId::ETLDetId ( const uint32_t &  raw_id)
inline

Construct from a raw value

Definition at line 30 of file ETLDetId.h.

30 : MTDDetId( raw_id ) {;}
MTDDetId()
Definition: MTDDetId.h:41
ETLDetId::ETLDetId ( const DetId det_id)
inline

Construct from generic DetId

Definition at line 33 of file ETLDetId.h.

33 : MTDDetId( det_id.rawId() ) {;}
MTDDetId()
Definition: MTDDetId.h:41
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:47
ETLDetId::ETLDetId ( uint32_t  zside,
uint32_t  ring,
uint32_t  module,
uint32_t  modtyp 
)
inline

Construct and fill only the det and sub-det fields.

Definition at line 36 of file ETLDetId.h.

References DetId::id_, kETLmodTypeMask, MTDDetId::kMTDsubdMask, MTDDetId::kMTDsubdOffset, MTDDetId::kRodRingMask, MTDDetId::kRodRingOffset, MTDDetId::kZsideMask, and MTDDetId::kZsideOffset.

40  id_ |= ( MTDType::ETL& kMTDsubdMask ) << kMTDsubdOffset |
41  ( zside& kZsideMask ) << kZsideOffset |
44  ( modtyp& kETLmodTypeMask ) << kETLmodTypeOffset ;
45 }
static const uint32_t kRodRingOffset
Definition: MTDDetId.h:35
MTDDetId()
Definition: MTDDetId.h:41
static const uint32_t kZsideOffset
Definition: MTDDetId.h:33
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:31
static const uint32_t kETLmodTypeMask
Definition: ETLDetId.h:22
static const uint32_t kRodRingMask
Definition: MTDDetId.h:36
static const uint32_t kMTDsubdMask
Definition: MTDDetId.h:32
static const uint32_t kZsideMask
Definition: MTDDetId.h:34
uint32_t id_
Definition: DetId.h:59
static const uint32_t kETLmodTypeOffset
Definition: ETLDetId.h:21
static const uint32_t kETLmoduleMask
Definition: ETLDetId.h:20
int zside() const
Definition: MTDDetId.h:63
static const uint32_t kETLmoduleOffset
Definition: ETLDetId.h:19
Definition: vlib.h:208

Member Function Documentation

int ETLDetId::modType ( ) const
inline

Returns ETL crystal type number.

Definition at line 53 of file ETLDetId.h.

References DetId::id_, kETLmodTypeMask, and operator<<().

static const uint32_t kETLmodTypeMask
Definition: ETLDetId.h:22
uint32_t id_
Definition: DetId.h:59
static const uint32_t kETLmodTypeOffset
Definition: ETLDetId.h:21
int ETLDetId::module ( ) const
inline

Returns ETL module number.

Definition at line 50 of file ETLDetId.h.

References DetId::id_, and kETLmoduleMask.

50 { return (id_>>kETLmoduleOffset)&kETLmoduleMask; }
uint32_t id_
Definition: DetId.h:59
static const uint32_t kETLmoduleMask
Definition: ETLDetId.h:20
static const uint32_t kETLmoduleOffset
Definition: ETLDetId.h:19

Member Data Documentation

const uint32_t ETLDetId::kETLmodTypeMask = 0x3
static

Definition at line 22 of file ETLDetId.h.

Referenced by ETLDetId(), and modType().

const uint32_t ETLDetId::kETLmodTypeOffset = 5
static

Definition at line 21 of file ETLDetId.h.

const uint32_t ETLDetId::kETLmoduleMask = 0xFF
static

Definition at line 20 of file ETLDetId.h.

Referenced by ETLDetLayerGeometryBuilder::buildLayer(), and module().

const uint32_t ETLDetId::kETLmoduleOffset = 7
static

Definition at line 19 of file ETLDetId.h.