1 #ifndef SiStripApvSimulationParameters_h 2 #define SiStripApvSimulationParameters_h 11 class HepRandomEngine;
23 : m_nTIB(nTIB), m_nTOB(nTOB), m_nTID(nTID), m_nTEC(nTEC) {
24 m_barrelParam.resize(m_nTIB + m_nTOB);
25 m_barrelParam_xInt.resize(m_nTIB + m_nTOB);
26 m_endcapParam.resize(m_nTID + m_nTEC);
27 m_endcapParam_xInt.resize(m_nTID + m_nTEC);
32 void calculateIntegrals();
52 return sampleBarrel(layer - 1, z, pu, engine);
55 return sampleBarrel(m_nTIB + layer - 1, z, pu, engine);
58 return sampleEndcap(wheel - 1, r, pu, engine);
61 return sampleEndcap(m_nTID + wheel - 1, r, pu, engine);
71 float sampleBarrel(
layerid layerIdx,
float z,
float pu, CLHEP::HepRandomEngine* engine)
const;
72 float sampleEndcap(
layerid wheelIdx,
float r,
float pu, CLHEP::HepRandomEngine* engine)
const;
bool putTIB(layerid layer, const LayerParameters ¶ms)
float sampleTIB(layerid layer, float z, float pu, CLHEP::HepRandomEngine *engine) const
SiStripApvSimulationParameters()
const LayerParameters & getTOB(layerid layer) const
float sampleTID(layerid wheel, float r, float pu, CLHEP::HepRandomEngine *engine) const
const LayerParameters & getTIB(layerid layer) const
bool putTID(layerid wheel, const LayerParameters ¶ms)
float sampleTOB(layerid layer, float z, float pu, CLHEP::HepRandomEngine *engine) const
const LayerParameters & getTEC(layerid wheel) const
std::vector< PhysicsTools::Calibration::HistogramF2D > m_endcapParam_xInt
SiStripApvSimulationParameters(layerid nTIB, layerid nTOB, layerid nTID, layerid nTEC)
~SiStripApvSimulationParameters()
std::vector< PhysicsTools::Calibration::HistogramF3D > m_endcapParam
#define COND_SERIALIZABLE
std::vector< PhysicsTools::Calibration::HistogramF3D > m_barrelParam
bool putTEC(layerid wheel, const LayerParameters ¶ms)
std::vector< PhysicsTools::Calibration::HistogramF2D > m_barrelParam_xInt
bool putTOB(layerid layer, const LayerParameters ¶ms)
float sampleTEC(layerid wheel, float r, float pu, CLHEP::HepRandomEngine *engine) const
const LayerParameters & getTID(layerid wheel) const