CMS 3D CMS Logo

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

#include <TkDetMap.h>

Public Member Functions

int16_t FindLayer (uint32_t &detid, uint32_t &cached_detid, int16_t &cached_layer, TkLayerMap::XYbin &cached_XYbin) const
 
void getComponents (int layer, int &nchX, double &lowX, double &highX, int &nchY, double &lowY, double &highY) const
 
uint32_t getDetFromBin (int layer, int ix, int iy) const
 
uint32_t getDetFromBin (const std::string &layerName, int ix, int iy) const
 
void getDetsForLayer (int layer, std::vector< uint32_t > &output) const
 
std::string getLayerName (int &in) const
 
int getLayerNum (const std::string &in) const
 
void getSubDetLayerSide (int &in, SiStripDetId::SubDetector &, uint32_t &layer, uint32_t &side) const
 
const TkLayerMap::XYbingetXY (uint32_t &, uint32_t &cached_detid, int16_t &cached_layer, TkLayerMap::XYbin &cached_XYbin) const
 
 TkDetMap ()
 
 TkDetMap (const edm::ParameterSet &, const edm::ActivityRegistry &)
 
 ~TkDetMap ()
 

Private Types

typedef std::vector< const
TkLayerMap * > 
detmapType
 

Private Member Functions

void doMe ()
 

Private Attributes

detmapType TkMap
 

Detailed Description

Definition at line 110 of file TkDetMap.h.

Member Typedef Documentation

typedef std::vector<const TkLayerMap*> TkDetMap::detmapType
private

Definition at line 138 of file TkDetMap.h.

Constructor & Destructor Documentation

TkDetMap::TkDetMap ( )

Definition at line 630 of file TkDetMap.cc.

TkDetMap::TkDetMap ( const edm::ParameterSet p,
const edm::ActivityRegistry a 
)

Definition at line 626 of file TkDetMap.cc.

TkDetMap::~TkDetMap ( )

Definition at line 644 of file TkDetMap.cc.

Member Function Documentation

void TkDetMap::doMe ( )
private

Definition at line 634 of file TkDetMap.cc.

int16_t TkDetMap::FindLayer ( uint32_t &  detid,
uint32_t &  cached_detid,
int16_t &  cached_layer,
TkLayerMap::XYbin cached_XYbin 
) const

Definition at line 664 of file TkDetMap.cc.

void TkDetMap::getComponents ( int  layer,
int &  nchX,
double &  lowX,
double &  highX,
int &  nchY,
double &  lowY,
double &  highY 
) const

Definition at line 684 of file TkDetMap.cc.

uint32_t TkDetMap::getDetFromBin ( int  layer,
int  ix,
int  iy 
) const
inline

Definition at line 128 of file TkDetMap.h.

References TkMap.

Referenced by TkHistoMap::getDetId().

128 { return TkMap[layer]->getDetFromBin(ix,iy); }
detmapType TkMap
Definition: TkDetMap.h:139
uint32_t TkDetMap::getDetFromBin ( const std::string &  layerName,
int  ix,
int  iy 
) const
inline

Definition at line 129 of file TkDetMap.h.

References getDetFromBin(), and getLayerNum().

Referenced by getDetFromBin().

129 {return getDetFromBin(getLayerNum(layerName),ix,iy);}
int getLayerNum(const std::string &in) const
Definition: TkDetMap.cc:777
uint32_t getDetFromBin(int layer, int ix, int iy) const
Definition: TkDetMap.h:128
void TkDetMap::getDetsForLayer ( int  layer,
std::vector< uint32_t > &  output 
) const

Definition at line 695 of file TkDetMap.cc.

std::string TkDetMap::getLayerName ( int &  in) const

Definition at line 702 of file TkDetMap.cc.

int TkDetMap::getLayerNum ( const std::string &  in) const

Definition at line 777 of file TkDetMap.cc.

Referenced by getDetFromBin(), and TkHistoMap::getLayerNum().

void TkDetMap::getSubDetLayerSide ( int &  in,
SiStripDetId::SubDetector subDet,
uint32_t &  layer,
uint32_t &  side 
) const

Definition at line 849 of file TkDetMap.cc.

const TkLayerMap::XYbin & TkDetMap::getXY ( uint32_t &  detid,
uint32_t &  cached_detid,
int16_t &  cached_layer,
TkLayerMap::XYbin cached_XYbin 
) const

Definition at line 652 of file TkDetMap.cc.

Member Data Documentation

detmapType TkDetMap::TkMap
private

Definition at line 139 of file TkDetMap.h.

Referenced by getDetFromBin().