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
virtual EcalSamples * operator[](unsigned int i) override
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
void findIntercalibConstant(const DetId &detId, double &icalconst) const
CaloTSamples< float, 10 > EBSamples
void setIntercal(const EcalIntercalibConstantsMC *ical)
const VecD & offsets() const
virtual void initializeHits() override
double apdSignalAmplitude(const PCaloHit &hit, CLHEP::HepRandomEngine *) const
virtual unsigned int samplesSize() const override
const EcalIntercalibConstantsMC * m_intercal
std::vector< double > m_timeOffVec
const double nonlFunc1(double energy) const
virtual EcalSamples * vSamAll(unsigned int i) override
CaloTSamplesBase< float > EcalSamples
EBHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape, bool apdOnly, const APDSimParameters *apdPars, const CaloVShape *apdShape)
virtual EcalSamples * vSam(unsigned int i) override
const double nonlFunc(double enr) const
void initialize(CLHEP::HepRandomEngine *)
virtual unsigned int samplesSizeAll() const override
virtual bool keepBlank() const
volatile std::atomic< bool > shutdown_flag false
virtual void run(MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *) override
virtual void finalizeHits() override
std::vector< double > m_apdTimeVec
std::vector< double > m_apdNpeVec
const CaloVShape * apdShape() const
virtual void add(const PCaloHit &hit, CLHEP::HepRandomEngine *) override