1 #ifndef EcalSimAlgos_EBHitResponse_h
2 #define EcalSimAlgos_EBHitResponse_h
11 class HepRandomEngine;
20 typedef std::vector<double>
VecD ;
39 virtual void add(
const PCaloHit&
hit, CLHEP::HepRandomEngine* )
override;
72 pfac*atan( log10( enr -
pehi + 0.00001 ) ) +
poff ) ) ; }
75 const double enr ( log10(energy) ) ;
76 const double enr2 ( enr*enr ) ;
77 const double enr3 ( enr2*enr ) ;
86 double& icalconst )
const ;
const CaloVShape * shape() const
std::vector< EBSamples > m_vSam
const CaloVShape * m_apdShape
void putAPDSignal(const DetId &detId, double npe, double time)
Electronic response of the preamp.
std::vector< double > VecD
const APDSimParameters * apdParameters() const
const APDSimParameters * m_apdPars
virtual EcalSamples * vSamAll(unsigned int i)
void findIntercalibConstant(const DetId &detId, double &icalconst) const
CaloTSamples< float, 10 > EBSamples
void setIntercal(const EcalIntercalibConstantsMC *ical)
virtual EcalSamples * operator[](unsigned int i)
const VecD & offsets() const
double apdSignalAmplitude(const PCaloHit &hit, CLHEP::HepRandomEngine *) const
virtual unsigned int samplesSizeAll() const
const EcalIntercalibConstantsMC * m_intercal
std::vector< double > m_timeOffVec
const double nonlFunc1(double energy) const
CaloTSamplesBase< float > EcalSamples
EBHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape, bool apdOnly, const APDSimParameters *apdPars, const CaloVShape *apdShape)
const double nonlFunc(double enr) const
void initialize(CLHEP::HepRandomEngine *)
virtual EcalSamples * vSam(unsigned int i)
virtual bool keepBlank() const
volatile std::atomic< bool > shutdown_flag false
virtual void run(MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *) override
virtual void finalizeHits()
std::vector< double > m_apdTimeVec
std::vector< double > m_apdNpeVec
virtual unsigned int samplesSize() const
virtual void initializeHits()
const CaloVShape * apdShape() const
virtual void add(const PCaloHit &hit, CLHEP::HepRandomEngine *) override