1 #ifndef EcalSimAlgos_EcalHitResponse_h 2 #define EcalSimAlgos_EcalHitResponse_h 13 #include <unordered_map> 26 class HepRandomEngine;
33 typedef std::vector<unsigned int>
VecInd;
const CaloVShape * m_shape
const CaloSubdetectorGeometry * geometry() const
double findLaserConstant(const DetId &detId) const
virtual void run(MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *)
double analogSignalAmplitude(const DetId &id, double energy, CLHEP::HepRandomEngine *)
const CaloSimParameters * params(const DetId &detId) const
void setEventTime(const edm::TimeValue_t &iTime)
virtual ~EcalHitResponse()
virtual void initializeHits()
virtual void putAnalogSignal(const PCaloHit &inputHit, CLHEP::HepRandomEngine *)
Electronic response of the preamp.
virtual EcalSamples * operator[](unsigned int i)=0
bool withinBunchRange(int bunchCrossing) const
Main class for Parameters in different subdetectors.
virtual unsigned int samplesSize() const =0
void setHitFilter(const CaloVHitFilter *filter)
virtual EcalSamples * vSam(unsigned int i)=0
void setHitCorrection(const CaloVHitCorrection *hitCorrection)
void setBunchRange(int minBunch, int maxBunch)
double timeOfFlight(const DetId &detId) const
void setLaserConstants(const EcalLaserDbService *laser, bool &useLCcorrection)
std::unordered_map< uint32_t, double > CalibCache
EcalHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
std::vector< unsigned int > VecInd
void setPhaseShift(double phaseShift)
void blankOutUsedSamples()
const CaloVHitCorrection * m_hitCorrection
static constexpr double Samp_Period
const EcalLaserDbService * m_lasercals
unsigned long long TimeValue_t
CaloTSamplesBase< float > EcalSamples
void setGeometry(const CaloSubdetectorGeometry *geometry)
const CaloSubdetectorGeometry * m_geometry
double phaseShift() const
const CaloVSimParameterMap * m_parameterMap
virtual unsigned int samplesSizeAll() const =0
void setPECorrection(const CaloVPECorrection *peCorrection)
const CaloVPECorrection * m_PECorrection
CalibCache m_laserCalibCache
const CaloVHitFilter * hitFilter() const
EcalSamples * findSignal(const DetId &detId)
const EcalSamples * findDetId(const DetId &detId) const
virtual EcalSamples * vSamAll(unsigned int i)=0
void add(const EcalSamples *pSam)
const CaloVHitFilter * m_hitFilter
virtual void finalizeHits()
unsigned long long TimeValue_t
const float kSamplePeriod
const CaloVShape * shape() const