6 #include "CLHEP/Random/RandPoissonQ.h"
7 #include "CLHEP/Random/RandGaussQ.h"
20 m_apdOnly ( apdOnly ) ,
21 m_apdPars ( apdPars ) ,
22 m_apdShape ( apdShape ) ,
23 m_timeOffVec ( kNOffsets, apdParameters()->timeOffset() )
54 const unsigned int depth ( hit.
depth() ) ;
66 const DetId detId ( hit.
id() ) ;
86 double binTime ( tzero ) ;
88 for(
int bin ( 0 ) ;
bin != result.size(); ++
bin )
100 assert( 1 == hit.
depth() ||
133 double& icalconst )
const
140 "No intercal constant defined for EBHitResponse" ;
146 if( icalit != icalMap.end() )
148 thisconst = *icalit ;
149 if ( thisconst == 0. ) thisconst = 1. ;
153 edm::LogError(
"EBHitResponse") <<
"No intercalib const found for xtal "
155 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
158 icalconst = thisconst ;
double simToPEHigh() const
double timeOfFlight(const DetId &detId) const
const self & getMap() const
Creates electronics signals from hits.
const CaloVShape * m_apdShape
Electronic response of the preamp.
const APDSimParameters * apdParameters() const
const APDSimParameters * m_apdPars
Main class for Parameters in different subdetectors.
CaloSamples * findSignal(const DetId &detId)
uint32_t rawId() const
get the raw id
double phaseShift() const
CLHEP::RandGaussQ * ranGauss() const
void findIntercalibConstant(const DetId &detId, double &icalconst) const
virtual void putAnalogSignal(const PCaloHit &inputHit)
void setIntercal(const EcalIntercalibConstantsMC *ical)
const VecD & offsets() const
const EcalIntercalibConstantsMC * m_intercal
std::vector< double > m_timeOffVec
EBHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape, bool apdOnly, const APDSimParameters *apdPars, const CaloVShape *apdShape)
std::vector< Item >::const_iterator const_iterator
virtual void putAnalogSignal(const PCaloHit &inputHit)
const CaloSimParameters * params(const DetId &detId) const
static const double tzero[3]
float EcalIntercalibConstantMC
CLHEP::RandPoissonQ * ranPois() const
double apdSignalAmplitude(const PCaloHit &hit) const
double simToPELow() const
const CaloVShape * apdShape() const