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 Member Functions | Private Attributes | Static Private Attributes
HcalDDDSimConstants Class Reference

#include <HcalDDDSimConstants.h>

Public Member Functions

HcalCellType::HcalCell cell (int det, int zside, int depth, int etaR, int iphi) const
 
unsigned int findLayer (int layer, const std::vector< HcalParameters::LayerItem > &layerGroup) const
 
std::vector< std::pair< double,
double > > 
getConstHBHE (const int type) const
 
int getDepthEta16 (int i) const
 
int getDepthEta29 (int i) const
 
std::pair< int, double > getDetEta (double eta, int depth)
 
int getEta (int det, int lay, double hetaR)
 
std::pair< int, int > getEtaDepth (int det, int etaR, int phi, int depth, int lay)
 
double getEtaHO (double &etaR, double &x, double &y, double &z) const
 
const std::vector< double > & getEtaTableHF () const
 
const std::vector< double > & getGparHF () const
 
const std::vector< HcalDetId > & getIdHF2QIE () const
 
std::pair< int, int > getiEtaRange (const int i) const
 
const std::vector< double > & getLayer0Wt () const
 
int getMaxDepth (const int type) const
 
std::pair< int, int > getModHalfHBHE (const int type) const
 
std::pair< double, double > getPhiCons (int det, int ieta)
 
const std::vector< double > & getPhiTableHF () const
 
const std::vector< double > & getRTableHF () const
 
std::vector< HcalCellTypeHcalCellTypes () const
 
std::vector< HcalCellTypeHcalCellTypes (HcalSubdetector, int ieta=-1, int depth=-1) const
 
 HcalDDDSimConstants (const HcalParameters *hp)
 
int maxHFDepth (int ieta, int iphi) const
 
unsigned int numberOfCells (HcalSubdetector) const
 
int phiNumber (int phi, int unit) const
 
void printTiles () const
 
int unitPhi (int det, int etaR) const
 
int unitPhi (double dphi) const
 
 ~HcalDDDSimConstants ()
 

Private Member Functions

double deltaEta (int det, int eta, int depth) const
 
double getEta (int det, int etaR, int zside, int depth=1) const
 
double getEta (double r, double z) const
 
double getGain (HcalSubdetector subdet, int depth) const
 
int getShift (HcalSubdetector subdet, int depth) const
 
void initialize ()
 
unsigned int layerGroup (unsigned int eta, unsigned int i) const
 
unsigned int layerGroupSize (unsigned int eta) const
 
void printTileHB (int eta, int depth) const
 
void printTileHE (int eta, int depth) const
 

Private Attributes

int depthEta16 [2]
 
int depthEta29 [2]
 
std::vector< int > depths [nDepthMax]
 
double dlShort
 
double dzVcal
 
double etaHO [4]
 
const HcalParametershpar
 
std::vector< HcalDetIdidHF2QIE
 
std::vector< int > maxDepth
 
int nDepth
 
int nEta
 
int nmodHB
 
int nmodHE
 
int nPhiF
 
int nR
 
int nzHB
 
int nzHE
 
double rminHO
 
double zVcal
 

Static Private Attributes

static const int nDepthMax =9
 

Detailed Description

this class reads the constant section of the hcal-sim-numbering xml-file

Author
Sunanda Banerjee, SINP sunan.nosp@m.da.b.nosp@m.anerj.nosp@m.ee@c.nosp@m.ern.c.nosp@m.h

Definition at line 23 of file HcalDDDSimConstants.h.

Constructor & Destructor Documentation

HcalDDDSimConstants::HcalDDDSimConstants ( const HcalParameters hp)

Definition at line 11 of file HcalDDDSimConstants.cc.

HcalDDDSimConstants::~HcalDDDSimConstants ( )

Definition at line 26 of file HcalDDDSimConstants.cc.

Member Function Documentation

HcalCellType::HcalCell HcalDDDSimConstants::cell ( int  det,
int  zside,
int  depth,
int  etaR,
int  iphi 
) const

Definition at line 32 of file HcalDDDSimConstants.cc.

double HcalDDDSimConstants::deltaEta ( int  det,
int  eta,
int  depth 
) const
private

Definition at line 627 of file HcalDDDSimConstants.cc.

unsigned int HcalDDDSimConstants::findLayer ( int  layer,
const std::vector< HcalParameters::LayerItem > &  layerGroup 
) const

Definition at line 247 of file HcalDDDSimConstants.cc.

std::vector< std::pair< double, double > > HcalDDDSimConstants::getConstHBHE ( const int  type) const

Definition at line 128 of file HcalDDDSimConstants.cc.

int HcalDDDSimConstants::getDepthEta16 ( int  i) const
inline

Definition at line 33 of file HcalDDDSimConstants.h.

References depthEta16.

Referenced by HcalDDDRecConstants::getDepthEta16().

33 {return ((i==1) ? depthEta16[1] : depthEta16[0]);}
int i
Definition: DBlmapReader.cc:9
int HcalDDDSimConstants::getDepthEta29 ( int  i) const
inline

Definition at line 34 of file HcalDDDSimConstants.h.

References depthEta29.

34 {return ((i==1) ? depthEta29[1] : depthEta29[0]);}
int i
Definition: DBlmapReader.cc:9
std::pair< int, double > HcalDDDSimConstants::getDetEta ( double  eta,
int  depth 
)

Definition at line 144 of file HcalDDDSimConstants.cc.

Referenced by HcalNumberingFromDDD::unitID().

int HcalDDDSimConstants::getEta ( int  det,
int  lay,
double  hetaR 
)

Definition at line 167 of file HcalDDDSimConstants.cc.

Referenced by HcalNumberingFromDDD::unitID().

double HcalDDDSimConstants::getEta ( int  det,
int  etaR,
int  zside,
int  depth = 1 
) const
private

Definition at line 665 of file HcalDDDSimConstants.cc.

double HcalDDDSimConstants::getEta ( double  r,
double  z 
) const
private

Definition at line 705 of file HcalDDDSimConstants.cc.

std::pair< int, int > HcalDDDSimConstants::getEtaDepth ( int  det,
int  etaR,
int  phi,
int  depth,
int  lay 
)

Definition at line 190 of file HcalDDDSimConstants.cc.

Referenced by HcalNumberingFromDDD::unitID().

double HcalDDDSimConstants::getEtaHO ( double &  etaR,
double &  x,
double &  y,
double &  z 
) const

Definition at line 221 of file HcalDDDSimConstants.cc.

Referenced by HcalNumberingFromDDD::unitID().

const std::vector<double>& HcalDDDSimConstants::getEtaTableHF ( ) const
inline

Definition at line 42 of file HcalDDDSimConstants.h.

References HcalParameters::etaTableHF, and hpar.

42 {return hpar->etaTableHF;}
std::vector< double > etaTableHF
const HcalParameters * hpar
double HcalDDDSimConstants::getGain ( HcalSubdetector  subdet,
int  depth 
) const
private

Definition at line 736 of file HcalDDDSimConstants.cc.

const std::vector<double>& HcalDDDSimConstants::getGparHF ( ) const
inline

Definition at line 44 of file HcalDDDSimConstants.h.

References HcalParameters::gparHF, and hpar.

44 {return hpar->gparHF;}
std::vector< double > gparHF
const HcalParameters * hpar
const std::vector<HcalDetId>& HcalDDDSimConstants::getIdHF2QIE ( ) const
inline

Definition at line 49 of file HcalDDDSimConstants.h.

References idHF2QIE.

49 {return idHF2QIE;}
std::vector< HcalDetId > idHF2QIE
std::pair<int,int> HcalDDDSimConstants::getiEtaRange ( const int  i) const
inline

Definition at line 41 of file HcalDDDSimConstants.h.

References HcalParameters::etaMax, HcalParameters::etaMin, hpar, and i.

41 {return std::pair<int,int>(hpar->etaMin[i],hpar->etaMax[i]);}
int i
Definition: DBlmapReader.cc:9
std::vector< int > etaMax
const HcalParameters * hpar
std::vector< int > etaMin
const std::vector<double>& HcalDDDSimConstants::getLayer0Wt ( ) const
inline

Definition at line 45 of file HcalDDDSimConstants.h.

References hpar, and HcalParameters::Layer0Wt.

45 {return hpar->Layer0Wt;}
std::vector< double > Layer0Wt
const HcalParameters * hpar
int HcalDDDSimConstants::getMaxDepth ( const int  type) const
inline

Definition at line 46 of file HcalDDDSimConstants.h.

References maxDepth.

46 {return maxDepth[type];}
type
Definition: HCALResponse.h:21
std::vector< int > maxDepth
std::pair< int, int > HcalDDDSimConstants::getModHalfHBHE ( const int  type) const

Definition at line 259 of file HcalDDDSimConstants.cc.

std::pair< double, double > HcalDDDSimConstants::getPhiCons ( int  det,
int  ieta 
)

Definition at line 268 of file HcalDDDSimConstants.cc.

Referenced by HcalNumberingFromDDD::unitID().

const std::vector<double>& HcalDDDSimConstants::getPhiTableHF ( ) const
inline

Definition at line 50 of file HcalDDDSimConstants.h.

References hpar, and HcalParameters::phitable.

50 {return hpar->phitable;}
std::vector< double > phitable
const HcalParameters * hpar
const std::vector<double>& HcalDDDSimConstants::getRTableHF ( ) const
inline

Definition at line 51 of file HcalDDDSimConstants.h.

References hpar, and HcalParameters::rTable.

51 {return hpar->rTable;}
std::vector< double > rTable
const HcalParameters * hpar
int HcalDDDSimConstants::getShift ( HcalSubdetector  subdet,
int  depth 
) const
private

Definition at line 716 of file HcalDDDSimConstants.cc.

std::vector< HcalCellType > HcalDDDSimConstants::HcalCellTypes ( ) const

Definition at line 288 of file HcalDDDSimConstants.cc.

std::vector< HcalCellType > HcalDDDSimConstants::HcalCellTypes ( HcalSubdetector  subdet,
int  ieta = -1,
int  depth = -1 
) const

Definition at line 328 of file HcalDDDSimConstants.cc.

void HcalDDDSimConstants::initialize ( void  )
private

Definition at line 498 of file HcalDDDSimConstants.cc.

unsigned int HcalDDDSimConstants::layerGroup ( unsigned int  eta,
unsigned int  i 
) const
private

Definition at line 864 of file HcalDDDSimConstants.cc.

unsigned int HcalDDDSimConstants::layerGroupSize ( unsigned int  eta) const
private

Definition at line 852 of file HcalDDDSimConstants.cc.

int HcalDDDSimConstants::maxHFDepth ( int  ieta,
int  iphi 
) const
unsigned int HcalDDDSimConstants::numberOfCells ( HcalSubdetector  subdet) const

Definition at line 429 of file HcalDDDSimConstants.cc.

int HcalDDDSimConstants::phiNumber ( int  phi,
int  unit 
) const

Definition at line 447 of file HcalDDDSimConstants.cc.

Referenced by HcalNumberingFromDDD::unitID().

void HcalDDDSimConstants::printTileHB ( int  eta,
int  depth 
) const
private

Definition at line 756 of file HcalDDDSimConstants.cc.

void HcalDDDSimConstants::printTileHE ( int  eta,
int  depth 
) const
private

Definition at line 789 of file HcalDDDSimConstants.cc.

void HcalDDDSimConstants::printTiles ( ) const

Definition at line 456 of file HcalDDDSimConstants.cc.

int HcalDDDSimConstants::unitPhi ( int  det,
int  etaR 
) const

Definition at line 485 of file HcalDDDSimConstants.cc.

Referenced by HcalNumberingFromDDD::unitID().

int HcalDDDSimConstants::unitPhi ( double  dphi) const

Definition at line 491 of file HcalDDDSimConstants.cc.

Member Data Documentation

int HcalDDDSimConstants::depthEta16[2]
private

Definition at line 89 of file HcalDDDSimConstants.h.

Referenced by getDepthEta16().

int HcalDDDSimConstants::depthEta29[2]
private

Definition at line 90 of file HcalDDDSimConstants.h.

Referenced by getDepthEta29().

std::vector<int> HcalDDDSimConstants::depths[nDepthMax]
private

Definition at line 81 of file HcalDDDSimConstants.h.

double HcalDDDSimConstants::dlShort
private

Definition at line 88 of file HcalDDDSimConstants.h.

double HcalDDDSimConstants::dzVcal
private

Definition at line 87 of file HcalDDDSimConstants.h.

double HcalDDDSimConstants::etaHO[4]
private

Definition at line 85 of file HcalDDDSimConstants.h.

const HcalParameters* HcalDDDSimConstants::hpar
private
std::vector<HcalDetId> HcalDDDSimConstants::idHF2QIE
private

Definition at line 91 of file HcalDDDSimConstants.h.

Referenced by getIdHF2QIE().

std::vector<int> HcalDDDSimConstants::maxDepth
private

Definition at line 77 of file HcalDDDSimConstants.h.

Referenced by getMaxDepth().

int HcalDDDSimConstants::nDepth
private

Definition at line 82 of file HcalDDDSimConstants.h.

const int HcalDDDSimConstants::nDepthMax =9
staticprivate

Definition at line 76 of file HcalDDDSimConstants.h.

int HcalDDDSimConstants::nEta
private

Definition at line 78 of file HcalDDDSimConstants.h.

int HcalDDDSimConstants::nmodHB
private

Definition at line 83 of file HcalDDDSimConstants.h.

int HcalDDDSimConstants::nmodHE
private

Definition at line 84 of file HcalDDDSimConstants.h.

int HcalDDDSimConstants::nPhiF
private

Definition at line 80 of file HcalDDDSimConstants.h.

int HcalDDDSimConstants::nR
private

Definition at line 79 of file HcalDDDSimConstants.h.

int HcalDDDSimConstants::nzHB
private

Definition at line 83 of file HcalDDDSimConstants.h.

int HcalDDDSimConstants::nzHE
private

Definition at line 84 of file HcalDDDSimConstants.h.

double HcalDDDSimConstants::rminHO
private

Definition at line 85 of file HcalDDDSimConstants.h.

double HcalDDDSimConstants::zVcal
private

Definition at line 86 of file HcalDDDSimConstants.h.