CMS 3D CMS Logo

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

#include <HcalDDDRecConstants.h>

Classes

struct  HcalActiveLength
 
struct  HcalEtaBin
 
struct  HcalID
 
struct  HFCellParameters
 

Public Member Functions

std::vector< std::pair< double,
double > > 
getConstHBHE (const int type) const
 
const std::vector< int > & getDepth (const unsigned int i) const
 
int getDepthEta16 (int i) const
 
std::vector< HcalEtaBingetEtaBins (const int itype) const
 
std::pair< double, double > getEtaLimit (const int i) const
 
std::pair< double, double > getEtaPhi (int subdet, int ieta, int iphi) const
 
std::pair< int, int > getEtaRange (const int i) const
 
const std::vector< double > & getEtaTable () const
 
const std::vector< double > & getEtaTableHF () const
 
HcalID getHCID (int subdet, int ieta, int iphi, int lay, int idepth) const
 
std::vector< HFCellParametersgetHFCellParameters () const
 
int getMaxDepth (const int type) const
 
int getMaxDepth (const int itype, const int ieta) const
 
int getNEta () const
 
int getNoff (const int i) const
 
double getPhiBin (const int i) const
 
double getPhiOff (const int i) const
 
const std::vector< double > & getPhiOffs () const
 
const std::vector< double > & getPhiTable () const
 
const std::vector< double > & getPhiTableHF () const
 
double getRZ (int subdet, int ieta, int depth) const
 
std::vector< HcalActiveLengthgetThickActive (const int type) const
 
int getTopoMode () const
 
int getTriggerMode () const
 
std::vector< HcalCellTypeHcalCellTypes (HcalSubdetector) const
 
 HcalDDDRecConstants (const HcalParameters *hp, const HcalDDDSimConstants &hc)
 
int maxHFDepth (int ieta, int iphi) const
 
unsigned int nCells (HcalSubdetector) const
 
unsigned int nCells () const
 
unsigned int numberOfCells (HcalSubdetector) const
 
 ~HcalDDDRecConstants ()
 

Private Member Functions

void initialize (void)
 
unsigned int layerGroup (unsigned int eta, unsigned int i) const
 
unsigned int layerGroupSize (unsigned int eta) const
 

Private Attributes

std::vector< std::pair< int,
int > > 
etaSimValu
 
std::vector< double > etaTable
 
std::vector< std::pair< double,
double > > 
gconsHB
 
std::vector< std::pair< double,
double > > 
gconsHE
 
const HcalDDDSimConstantshcons
 
const HcalParametershpar
 
std::vector< int > ietaMap
 
std::vector< int > iEtaMax
 
std::vector< int > iEtaMin
 
std::vector< int > maxDepth
 
int nHalves [2]
 
int nModule [2]
 
std::vector< double > phibin
 
std::vector< int > phiUnitS
 

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 22 of file HcalDDDRecConstants.h.

Constructor & Destructor Documentation

HcalDDDRecConstants::HcalDDDRecConstants ( const HcalParameters hp,
const HcalDDDSimConstants hc 
)

Definition at line 13 of file HcalDDDRecConstants.cc.

HcalDDDRecConstants::~HcalDDDRecConstants ( )

Definition at line 23 of file HcalDDDRecConstants.cc.

Member Function Documentation

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

Definition at line 57 of file HcalDDDRecConstants.h.

References gconsHB, and gconsHE.

57  {
58  if (type == 0) return gconsHB;
59  else if (type == 1) return gconsHE;
60  else {std::vector<std::pair<double,double> > gcons; return gcons;}
61  }
type
Definition: HCALResponse.h:21
std::vector< std::pair< double, double > > gconsHE
std::vector< std::pair< double, double > > gconsHB
const std::vector< int > & HcalDDDRecConstants::getDepth ( const unsigned int  i) const

Definition at line 570 of file HcalDDDRecConstants.cc.

int HcalDDDRecConstants::getDepthEta16 ( int  i) const
inline

Definition at line 63 of file HcalDDDRecConstants.h.

References HcalDDDSimConstants::getDepthEta16(), and hcons.

63 {return hcons.getDepthEta16(i);}
int i
Definition: DBlmapReader.cc:9
int getDepthEta16(int i) const
const HcalDDDSimConstants & hcons
std::vector< HcalDDDRecConstants::HcalEtaBin > HcalDDDRecConstants::getEtaBins ( const int  itype) const

Definition at line 30 of file HcalDDDRecConstants.cc.

std::pair<double,double> HcalDDDRecConstants::getEtaLimit ( const int  i) const
inline

Definition at line 70 of file HcalDDDRecConstants.h.

References etaTable, and i.

71  {return std::pair<double,double>(etaTable[i],etaTable[i+1]);}
int i
Definition: DBlmapReader.cc:9
std::vector< double > etaTable
std::pair< double, double > HcalDDDRecConstants::getEtaPhi ( int  subdet,
int  ieta,
int  iphi 
) const

Definition at line 101 of file HcalDDDRecConstants.cc.

std::pair<int,int> HcalDDDRecConstants::getEtaRange ( const int  i) const
inline

Definition at line 66 of file HcalDDDRecConstants.h.

References i, iEtaMax, and iEtaMin.

67  {return std::pair<int,int>(iEtaMin[i],iEtaMax[i]);}
int i
Definition: DBlmapReader.cc:9
std::vector< int > iEtaMin
std::vector< int > iEtaMax
const std::vector<double>& HcalDDDRecConstants::getEtaTable ( ) const
inline

Definition at line 68 of file HcalDDDRecConstants.h.

References etaTable.

Referenced by CaloTowerHardcodeGeometryLoader::load().

68 {return etaTable;}
std::vector< double > etaTable
const std::vector<double>& HcalDDDRecConstants::getEtaTableHF ( ) const
inline

Definition at line 69 of file HcalDDDRecConstants.h.

References HcalParameters::etaTableHF, and hpar.

Referenced by CaloTowerHardcodeGeometryLoader::load().

69 {return hpar->etaTableHF;}
std::vector< double > etaTableHF
const HcalParameters * hpar
HcalDDDRecConstants::HcalID HcalDDDRecConstants::getHCID ( int  subdet,
int  ieta,
int  iphi,
int  lay,
int  idepth 
) const

Definition at line 131 of file HcalDDDRecConstants.cc.

Referenced by HcalHitRelabeller::relabel().

std::vector< HcalDDDRecConstants::HFCellParameters > HcalDDDRecConstants::getHFCellParameters ( ) const

Definition at line 178 of file HcalDDDRecConstants.cc.

int HcalDDDRecConstants::getMaxDepth ( const int  type) const
inline

Definition at line 75 of file HcalDDDRecConstants.h.

References maxDepth.

Referenced by HcalTopologyIdealEP::produce().

75 {return maxDepth[type];}
type
Definition: HCALResponse.h:21
std::vector< int > maxDepth
int HcalDDDRecConstants::getMaxDepth ( const int  itype,
const int  ieta 
) const

Definition at line 235 of file HcalDDDRecConstants.cc.

int HcalDDDRecConstants::getNEta ( ) const
inline

Definition at line 77 of file HcalDDDRecConstants.h.

References HcalParameters::etagroup, and hpar.

77 {return hpar->etagroup.size();}
std::vector< int > etagroup
const HcalParameters * hpar
int HcalDDDRecConstants::getNoff ( const int  i) const
inline

Definition at line 78 of file HcalDDDRecConstants.h.

References hpar, i, and HcalParameters::noff.

78 {return hpar->noff[i];}
int i
Definition: DBlmapReader.cc:9
const HcalParameters * hpar
std::vector< int > noff
double HcalDDDRecConstants::getPhiBin ( const int  i) const
inline

Definition at line 79 of file HcalDDDRecConstants.h.

References i, and phibin.

79 {return phibin[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< double > phibin
double HcalDDDRecConstants::getPhiOff ( const int  i) const
inline

Definition at line 80 of file HcalDDDRecConstants.h.

References hpar, i, and HcalParameters::phioff.

80 {return hpar->phioff[i];}
int i
Definition: DBlmapReader.cc:9
const HcalParameters * hpar
std::vector< double > phioff
const std::vector<double>& HcalDDDRecConstants::getPhiOffs ( ) const
inline

Definition at line 81 of file HcalDDDRecConstants.h.

References hpar, and HcalParameters::phioff.

81 {return hpar->phioff;}
const HcalParameters * hpar
std::vector< double > phioff
const std::vector<double>& HcalDDDRecConstants::getPhiTable ( ) const
inline

Definition at line 82 of file HcalDDDRecConstants.h.

References phibin.

82 {return phibin;}
std::vector< double > phibin
const std::vector<double>& HcalDDDRecConstants::getPhiTableHF ( ) const
inline

Definition at line 83 of file HcalDDDRecConstants.h.

References hpar, and HcalParameters::phitable.

83 {return hpar->phitable;}
const HcalParameters * hpar
std::vector< double > phitable
double HcalDDDRecConstants::getRZ ( int  subdet,
int  ieta,
int  depth 
) const

Definition at line 249 of file HcalDDDRecConstants.cc.

std::vector< HcalDDDRecConstants::HcalActiveLength > HcalDDDRecConstants::getThickActive ( const int  type) const

Definition at line 278 of file HcalDDDRecConstants.cc.

int HcalDDDRecConstants::getTopoMode ( ) const
inline

Definition at line 86 of file HcalDDDRecConstants.h.

References hpar, and HcalParameters::topologyMode.

Referenced by HcalTopologyIdealEP::produce().

86 {return ((hpar->topologyMode)&0xFF);}
const HcalParameters * hpar
int HcalDDDRecConstants::getTriggerMode ( ) const
inline

Definition at line 87 of file HcalDDDRecConstants.h.

References hpar, and HcalParameters::topologyMode.

87 {return (((hpar->topologyMode)>>8)&0xFF);}
const HcalParameters * hpar
std::vector< HcalCellType > HcalDDDRecConstants::HcalCellTypes ( HcalSubdetector  subdet) const

Definition at line 313 of file HcalDDDRecConstants.cc.

void HcalDDDRecConstants::initialize ( void  )
private

Definition at line 417 of file HcalDDDRecConstants.cc.

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

Definition at line 557 of file HcalDDDRecConstants.cc.

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

Definition at line 545 of file HcalDDDRecConstants.cc.

int HcalDDDRecConstants::maxHFDepth ( int  ieta,
int  iphi 
) const
inline

Definition at line 89 of file HcalDDDRecConstants.h.

References hcons, and HcalDDDSimConstants::maxHFDepth().

89 {return hcons.maxHFDepth(ieta,iphi);}
const HcalDDDSimConstants & hcons
int maxHFDepth(int ieta, int iphi) const
unsigned int HcalDDDRecConstants::nCells ( HcalSubdetector  subdet) const

Definition at line 394 of file HcalDDDRecConstants.cc.

unsigned int HcalDDDRecConstants::nCells ( ) const

Definition at line 413 of file HcalDDDRecConstants.cc.

unsigned int HcalDDDRecConstants::numberOfCells ( HcalSubdetector  subdet) const

Definition at line 372 of file HcalDDDRecConstants.cc.

Member Data Documentation

std::vector<std::pair<int,int> > HcalDDDRecConstants::etaSimValu
private

Definition at line 101 of file HcalDDDRecConstants.h.

std::vector<double> HcalDDDRecConstants::etaTable
private

Definition at line 102 of file HcalDDDRecConstants.h.

Referenced by getEtaLimit(), and getEtaTable().

std::vector<std::pair<double,double> > HcalDDDRecConstants::gconsHB
private

Definition at line 108 of file HcalDDDRecConstants.h.

Referenced by getConstHBHE().

std::vector<std::pair<double,double> > HcalDDDRecConstants::gconsHE
private

Definition at line 109 of file HcalDDDRecConstants.h.

Referenced by getConstHBHE().

const HcalDDDSimConstants& HcalDDDRecConstants::hcons
private

Definition at line 100 of file HcalDDDRecConstants.h.

Referenced by getDepthEta16(), and maxHFDepth().

const HcalParameters* HcalDDDRecConstants::hpar
private
std::vector<int> HcalDDDRecConstants::ietaMap
private

Definition at line 103 of file HcalDDDRecConstants.h.

std::vector<int> HcalDDDRecConstants::iEtaMax
private

Definition at line 104 of file HcalDDDRecConstants.h.

Referenced by getEtaRange().

std::vector<int> HcalDDDRecConstants::iEtaMin
private

Definition at line 104 of file HcalDDDRecConstants.h.

Referenced by getEtaRange().

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

Definition at line 105 of file HcalDDDRecConstants.h.

Referenced by getMaxDepth().

int HcalDDDRecConstants::nHalves[2]
private

Definition at line 110 of file HcalDDDRecConstants.h.

int HcalDDDRecConstants::nModule[2]
private

Definition at line 110 of file HcalDDDRecConstants.h.

std::vector<double> HcalDDDRecConstants::phibin
private

Definition at line 106 of file HcalDDDRecConstants.h.

Referenced by getPhiBin(), and getPhiTable().

std::vector<int> HcalDDDRecConstants::phiUnitS
private

Definition at line 107 of file HcalDDDRecConstants.h.