Go to the documentation of this file. 1 #ifndef EcalSimAlgos_EBHitResponse_h
2 #define EcalSimAlgos_EBHitResponse_h
12 class HepRandomEngine;
15 template <
class constset>
20 typedef std::vector<double>
VecD;
22 static constexpr
size_t kNOffsets = constset::kNOffsets;
75 const double enr(log10(
energy));
76 const double enr2(enr * enr);
77 const double enr3(enr2 * enr);
107 #include "EBHitResponse.icc"
double apdSignalAmplitude(const PCaloHit &hit, CLHEP::HepRandomEngine *) const
EBHitResponseImpl< ecalPh1 > EBHitResponse
~EBHitResponseImpl() override
virtual bool keepBlank() const
static constexpr double kSamplePeriod
std::vector< double > VecD
CaloTSamplesBase< float > EcalSamples
void findIntercalibConstant(const DetId &detId, double &icalconst) const
std::vector< double > m_timeOffVec
std::vector< EBSamples > m_vSam
EcalSamples * operator[](unsigned int i) override
std::vector< double > m_apdNpeVec
unsigned int samplesSize() const override
CaloTSamples< float, constset::sampleSize > EBSamples
static constexpr size_t kNOffsets
const CaloVShape * apdShape() const
const EcalIntercalibConstantsMC * m_intercal
const double nonlFunc1(double energy) const
void initializeHits() override
EcalSamples * vSamAll(unsigned int i) override
const double nonlFunc(double enr) const
void add(const PCaloHit &hit, CLHEP::HepRandomEngine *) override
void setIntercal(const EcalIntercalibConstantsMC *ical)
void putAPDSignal(const DetId &detId, double npe, double time)
void finalizeHits() override
Electronic response of the preamp.
EBHitResponseImpl< ecalPh2 > EBHitResponse_Ph2
EcalSamples * vSam(unsigned int i) override
void initialize(CLHEP::HepRandomEngine *)
const CaloVShape * shape() const
void run(MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *) override
const CaloVShape * m_apdShape
EBHitResponseImpl(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape, bool apdOnly, const APDSimParameters *apdPars=nullptr, const CaloVShape *apdShape=nullptr)
const APDSimParameters * apdParameters() const
const VecD & offsets() const
const APDSimParameters * m_apdPars
void putAnalogSignal(const PCaloHit &inputHit, CLHEP::HepRandomEngine *) override
unsigned int samplesSizeAll() const override
std::vector< double > m_apdTimeVec