HGCal Test Beam  03a93d6239a951948e06fb3ef8dae4cbdebfad30
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Attributes | List of all members
HGCalTBDetId Class Reference

#include <HGCalTBDetId.h>

Inheritance diagram for HGCalTBDetId:
Inheritance graph
[legend]
Collaboration diagram for HGCalTBDetId:
Collaboration graph
[legend]

Public Member Functions

 HGCalTBDetId ()
 
 HGCalTBDetId (uint32_t rawid)
 
 HGCalTBDetId (int lay, int sensor_iu, int sensor_iv, int iu, int iv, int cellType)
 
 HGCalTBDetId (const DetId &id)
 
HGCalTBDetIdoperator= (const DetId &id)
 
int iu () const
 get the absolute value of the cell #'s More...
 
int iv () const
 
int sensorIU () const
 get the sensor # More...
 
int sensorIV () const
 
int cellType () const
 cell type More...
 
int layer () const
 get the layer # More...
 
int zside () const
 get the z-side of the cell (1/-1) More...
 
bool isHGCal () const
 consistency check : no bits left => no overhead More...
 
bool isForward () const
 

Static Public Attributes

static const int kHGCalTBXOffset = 0
 
static const int kHGCalTBXMask = 0x1F
 
static const int kHGCalTBXSignMask = 0x20
 
static const int kHGCalTBVOffset = 6
 
static const int kHGCalTBVMask = 0x1F
 
static const int kHGCalTBVSignMask = 0x20
 
static const int kHGCalTBSensorXOffset = 12
 
static const int kHGCalTBSensorXMask = 0x7
 
static const int kHGCalTBSensorXSignMask = 0x8
 
static const int kHGCalTBSensorVOffset = 16
 
static const int kHGCalTBSensorVMask = 0x7
 
static const int kHGCalTBSensorVSignMask = 0x8
 
static const int kHGCalTBCellTypeOffset = 20
 
static const int kHGCalTBCellTypeMask = 0xF
 
static const int kHGCalLayerOffset = 24
 
static const int kHGCalLayerMask = 0x7F
 
static const int kHGCalZsideOffset = 31
 
static const int kHGCalZsideMask = 0x1
 
static const int kCellTypeStandard = 0
 
static const int kCellTypeCalibInner = 1
 
static const int kCellTypeCalibOuter = 2
 

Detailed Description

Definition at line 12 of file HGCalTBDetId.h.

Constructor & Destructor Documentation

HGCalTBDetId::HGCalTBDetId ( )

Create a null cellid

Definition at line 6 of file HGCalTBDetId.cc.

HGCalTBDetId::HGCalTBDetId ( uint32_t  rawid)

Create cellid from raw id (0=invalid tower id)

Definition at line 10 of file HGCalTBDetId.cc.

HGCalTBDetId::HGCalTBDetId ( int  lay,
int  sensor_iu,
int  sensor_iv,
int  iu,
int  iv,
int  cellType 
)
HGCalTBDetId::HGCalTBDetId ( const DetId &  id)

Constructor from a generic cell id

Definition at line 26 of file HGCalTBDetId.cc.

Member Function Documentation

int HGCalTBDetId::cellType ( ) const
inline

cell type

Definition at line 75 of file HGCalTBDetId.h.

References kHGCalTBCellTypeMask, and kHGCalTBCellTypeOffset.

bool HGCalTBDetId::isForward ( ) const
inline

Definition at line 97 of file HGCalTBDetId.h.

bool HGCalTBDetId::isHGCal ( ) const
inline

consistency check : no bits left => no overhead

Definition at line 93 of file HGCalTBDetId.h.

int HGCalTBDetId::iu ( ) const
inline

get the absolute value of the cell #'s

Definition at line 51 of file HGCalTBDetId.h.

References kHGCalTBXMask, and kHGCalTBXSignMask.

int HGCalTBDetId::iv ( ) const
inline

Definition at line 56 of file HGCalTBDetId.h.

References kHGCalTBVMask, kHGCalTBVOffset, and kHGCalTBVSignMask.

int HGCalTBDetId::layer ( ) const
inline

get the layer #

Definition at line 81 of file HGCalTBDetId.h.

References kHGCalLayerMask, and kHGCalLayerOffset.

HGCalTBDetId & HGCalTBDetId::operator= ( const DetId &  id)

Assignment from a generic cell id

Definition at line 31 of file HGCalTBDetId.cc.

int HGCalTBDetId::sensorIU ( ) const
inline

get the sensor #

Definition at line 63 of file HGCalTBDetId.h.

References kHGCalTBSensorXMask, kHGCalTBSensorXOffset, and kHGCalTBSensorXSignMask.

int HGCalTBDetId::sensorIV ( ) const
inline
int HGCalTBDetId::zside ( ) const
inline

get the z-side of the cell (1/-1)

Definition at line 87 of file HGCalTBDetId.h.

References kHGCalZsideMask, and kHGCalZsideOffset.

Member Data Documentation

const int HGCalTBDetId::kCellTypeCalibInner = 1
static

Definition at line 36 of file HGCalTBDetId.h.

Referenced by HGCalTBNumberingScheme::denseIndexFor(), and operator<<().

const int HGCalTBDetId::kCellTypeCalibOuter = 2
static

Definition at line 37 of file HGCalTBDetId.h.

Referenced by operator<<().

const int HGCalTBDetId::kCellTypeStandard = 0
static

Definition at line 35 of file HGCalTBDetId.h.

const int HGCalTBDetId::kHGCalLayerMask = 0x7F
static

Definition at line 31 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and layer().

const int HGCalTBDetId::kHGCalLayerOffset = 24
static

Definition at line 30 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and layer().

const int HGCalTBDetId::kHGCalTBCellTypeMask = 0xF
static

Definition at line 29 of file HGCalTBDetId.h.

Referenced by cellType(), and HGCalTBDetId().

const int HGCalTBDetId::kHGCalTBCellTypeOffset = 20
static

Definition at line 28 of file HGCalTBDetId.h.

Referenced by cellType(), and HGCalTBDetId().

const int HGCalTBDetId::kHGCalTBSensorVMask = 0x7
static

Definition at line 26 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and sensorIV().

const int HGCalTBDetId::kHGCalTBSensorVOffset = 16
static

Definition at line 25 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and sensorIV().

const int HGCalTBDetId::kHGCalTBSensorVSignMask = 0x8
static

Definition at line 27 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and sensorIV().

const int HGCalTBDetId::kHGCalTBSensorXMask = 0x7
static

Definition at line 23 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and sensorIU().

const int HGCalTBDetId::kHGCalTBSensorXOffset = 12
static

Definition at line 22 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and sensorIU().

const int HGCalTBDetId::kHGCalTBSensorXSignMask = 0x8
static

Definition at line 24 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and sensorIU().

const int HGCalTBDetId::kHGCalTBVMask = 0x1F
static

Definition at line 20 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and iv().

const int HGCalTBDetId::kHGCalTBVOffset = 6
static

Definition at line 19 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and iv().

const int HGCalTBDetId::kHGCalTBVSignMask = 0x20
static

Definition at line 21 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and iv().

const int HGCalTBDetId::kHGCalTBXMask = 0x1F
static

Definition at line 17 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and iu().

const int HGCalTBDetId::kHGCalTBXOffset = 0
static

Definition at line 16 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId().

const int HGCalTBDetId::kHGCalTBXSignMask = 0x20
static

Definition at line 18 of file HGCalTBDetId.h.

Referenced by HGCalTBDetId(), and iu().

const int HGCalTBDetId::kHGCalZsideMask = 0x1
static

Definition at line 33 of file HGCalTBDetId.h.

Referenced by zside().

const int HGCalTBDetId::kHGCalZsideOffset = 31
static

Definition at line 32 of file HGCalTBDetId.h.

Referenced by zside().


The documentation for this class was generated from the following files: