CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TkLayerMap Class Reference

#include <TkDetMap.h>

Classes

struct  XYbin
 

Public Types

enum  TkLayerEnum {
  INVALID =0, TIB_L1, TIB_L2, TIB_L3,
  TIB_L4, TIDM_D1, TIDM_D2, TIDM_D3,
  TIDP_D1, TIDP_D2, TIDP_D3, TOB_L1,
  TOB_L2, TOB_L3, TOB_L4, TOB_L5,
  TOB_L6, TECM_W1, TECM_W2, TECM_W3,
  TECM_W4, TECM_W5, TECM_W6, TECM_W7,
  TECM_W8, TECM_W9, TECP_W1, TECP_W2,
  TECP_W3, TECP_W4, TECP_W5, TECP_W6,
  TECP_W7, TECP_W8, TECP_W9
}
 

Public Member Functions

double get_highX () const
 
double get_highY () const
 
double get_lowX () const
 
double get_lowY () const
 
int get_nchX () const
 
int get_nchY () const
 
const uint32_t * getBinToDet () const
 
uint32_t getDetFromBin (int ix, int iy) const
 
const XYbin getXY (uint32_t detid, int layerEnumNb=0) const
 
 TkLayerMap (int in)
 
 ~TkLayerMap ()
 

Static Public Member Functions

static const int16_t layerSearch (uint32_t detid)
 

Private Member Functions

void createTEC (std::vector< uint32_t > &TkDetIdList, int layer)
 
void createTIB (std::vector< uint32_t > &TkDetIdList, int layer)
 
void createTID (std::vector< uint32_t > &TkDetIdList, int layer)
 
void createTOB (std::vector< uint32_t > &TkDetIdList, int layer)
 
uint32_t get_Offset (TIBDetId) const
 
XYbin getXY_TEC (uint32_t detid, int layerEnumNb=0) const
 
XYbin getXY_TIB (uint32_t detid, int layerEnumNb=0) const
 
XYbin getXY_TID (uint32_t detid, int layerEnumNb=0) const
 
XYbin getXY_TOB (uint32_t detid, int layerEnumNb=0) const
 
void initialize (int layer)
 

Private Attributes

std::vector< uint32_t > BinForRing
 
uint32_t * binToDet
 
double highX
 
double highY
 
int layerEnumNb_
 
double lowX
 
double lowY
 
std::vector< uint32_t > ModulesInRingBack
 
std::vector< uint32_t > ModulesInRingFront
 
int nchX
 
int nchY
 
uint32_t Nrod
 
uint32_t Nstring_ext
 
uint32_t Offset
 
std::vector< uint32_t > SingleExtString
 

Detailed Description

Definition at line 12 of file TkDetMap.h.

Member Enumeration Documentation

Enumerator
INVALID 
TIB_L1 
TIB_L2 
TIB_L3 
TIB_L4 
TIDM_D1 
TIDM_D2 
TIDM_D3 
TIDP_D1 
TIDP_D2 
TIDP_D3 
TOB_L1 
TOB_L2 
TOB_L3 
TOB_L4 
TOB_L5 
TOB_L6 
TECM_W1 
TECM_W2 
TECM_W3 
TECM_W4 
TECM_W5 
TECM_W6 
TECM_W7 
TECM_W8 
TECM_W9 
TECP_W1 
TECP_W2 
TECP_W3 
TECP_W4 
TECP_W5 
TECP_W6 
TECP_W7 
TECP_W8 
TECP_W9 

Definition at line 23 of file TkDetMap.h.

23  { INVALID=0,
24  TIB_L1, //1
25  TIB_L2,
26  TIB_L3,
27  TIB_L4,
28  TIDM_D1, //5
29  TIDM_D2,
30  TIDM_D3,
31  TIDP_D1, //8
32  TIDP_D2,
33  TIDP_D3,
34  TOB_L1, //11
35  TOB_L2,
36  TOB_L3,
37  TOB_L4,
38  TOB_L5,
39  TOB_L6,
40  TECM_W1, //17
41  TECM_W2,
42  TECM_W3,
43  TECM_W4,
44  TECM_W5,
45  TECM_W6,
46  TECM_W7,
47  TECM_W8,
48  TECM_W9,
49  TECP_W1, //26
50  TECP_W2,
51  TECP_W3,
52  TECP_W4,
53  TECP_W5,
54  TECP_W6,
55  TECP_W7,
56  TECP_W8,
57  TECP_W9 //34
58  };

Constructor & Destructor Documentation

TkLayerMap::TkLayerMap ( int  in)

Definition at line 14 of file TkDetMap.cc.

TkLayerMap::~TkLayerMap ( )
inline

Definition at line 62 of file TkDetMap.h.

References binToDet.

62  {
63  delete [] binToDet;
64  };
uint32_t * binToDet
Definition: TkDetMap.h:97

Member Function Documentation

void TkLayerMap::createTEC ( std::vector< uint32_t > &  TkDetIdList,
int  layer 
)
private

Definition at line 494 of file TkDetMap.cc.

void TkLayerMap::createTIB ( std::vector< uint32_t > &  TkDetIdList,
int  layer 
)
private

Definition at line 437 of file TkDetMap.cc.

void TkLayerMap::createTID ( std::vector< uint32_t > &  TkDetIdList,
int  layer 
)
private

Definition at line 475 of file TkDetMap.cc.

void TkLayerMap::createTOB ( std::vector< uint32_t > &  TkDetIdList,
int  layer 
)
private

Definition at line 456 of file TkDetMap.cc.

double TkLayerMap::get_highX ( ) const
inline

Definition at line 71 of file TkDetMap.h.

References highX.

71 {return highX;}
double highX
Definition: TkDetMap.h:102
double TkLayerMap::get_highY ( ) const
inline

Definition at line 73 of file TkDetMap.h.

References highY.

73 {return highY;}
double highY
Definition: TkDetMap.h:103
double TkLayerMap::get_lowX ( ) const
inline

Definition at line 70 of file TkDetMap.h.

References lowX.

70 {return lowX;}
double lowX
Definition: TkDetMap.h:102
double TkLayerMap::get_lowY ( ) const
inline

Definition at line 72 of file TkDetMap.h.

References lowY.

72 {return lowY;}
double lowY
Definition: TkDetMap.h:103
int TkLayerMap::get_nchX ( ) const
inline

Definition at line 68 of file TkDetMap.h.

References nchX.

68 {return nchX;}
int nchX
Definition: TkDetMap.h:100
int TkLayerMap::get_nchY ( ) const
inline

Definition at line 69 of file TkDetMap.h.

References nchY.

69 {return nchY;}
int nchY
Definition: TkDetMap.h:101
uint32_t TkLayerMap::get_Offset ( TIBDetId  D) const
private

Definition at line 536 of file TkDetMap.cc.

const uint32_t* TkLayerMap::getBinToDet ( ) const
inline

Definition at line 78 of file TkDetMap.h.

References binToDet.

78 {return binToDet;}
uint32_t * binToDet
Definition: TkDetMap.h:97
uint32_t TkLayerMap::getDetFromBin ( int  ix,
int  iy 
) const

Definition at line 81 of file TkDetMap.cc.

const TkLayerMap::XYbin TkLayerMap::getXY ( uint32_t  detid,
int  layerEnumNb = 0 
) const

Definition at line 515 of file TkDetMap.cc.

TkLayerMap::XYbin TkLayerMap::getXY_TEC ( uint32_t  detid,
int  layerEnumNb = 0 
) const
private

Definition at line 597 of file TkDetMap.cc.

TkLayerMap::XYbin TkLayerMap::getXY_TIB ( uint32_t  detid,
int  layerEnumNb = 0 
) const
private

Definition at line 544 of file TkDetMap.cc.

TkLayerMap::XYbin TkLayerMap::getXY_TID ( uint32_t  detid,
int  layerEnumNb = 0 
) const
private

Definition at line 579 of file TkDetMap.cc.

TkLayerMap::XYbin TkLayerMap::getXY_TOB ( uint32_t  detid,
int  layerEnumNb = 0 
) const
private

Definition at line 562 of file TkDetMap.cc.

void TkLayerMap::initialize ( int  layer)
private

Definition at line 109 of file TkDetMap.cc.

const int16_t TkLayerMap::layerSearch ( uint32_t  detid)
static

Definition at line 89 of file TkDetMap.cc.

Member Data Documentation

std::vector<uint32_t> TkLayerMap::BinForRing
private

Definition at line 105 of file TkDetMap.h.

uint32_t* TkLayerMap::binToDet
private

Definition at line 97 of file TkDetMap.h.

Referenced by getBinToDet(), and ~TkLayerMap().

double TkLayerMap::highX
private

Definition at line 102 of file TkDetMap.h.

Referenced by get_highX().

double TkLayerMap::highY
private

Definition at line 103 of file TkDetMap.h.

Referenced by get_highY().

int TkLayerMap::layerEnumNb_
private

Definition at line 99 of file TkDetMap.h.

double TkLayerMap::lowX
private

Definition at line 102 of file TkDetMap.h.

Referenced by get_lowX().

double TkLayerMap::lowY
private

Definition at line 103 of file TkDetMap.h.

Referenced by get_lowY().

std::vector<uint32_t> TkLayerMap::ModulesInRingBack
private

Definition at line 105 of file TkDetMap.h.

std::vector<uint32_t> TkLayerMap::ModulesInRingFront
private

Definition at line 105 of file TkDetMap.h.

int TkLayerMap::nchX
private

Definition at line 100 of file TkDetMap.h.

Referenced by get_nchX().

int TkLayerMap::nchY
private

Definition at line 101 of file TkDetMap.h.

Referenced by get_nchY().

uint32_t TkLayerMap::Nrod
private

Definition at line 106 of file TkDetMap.h.

uint32_t TkLayerMap::Nstring_ext
private

Definition at line 106 of file TkDetMap.h.

uint32_t TkLayerMap::Offset
private

Definition at line 106 of file TkDetMap.h.

std::vector<uint32_t> TkLayerMap::SingleExtString
private

Definition at line 105 of file TkDetMap.h.