Go to the documentation of this file. 1 #ifndef CaloSimAlgos_CaloHitResponse_h
2 #define CaloSimAlgos_CaloHitResponse_h
23 class HepRandomEngine;
92 CLHEP::HepRandomEngine *)
const;
CaloHitResponse(const CaloVSimParameterMap *parameterMap, const CaloVShape *shape)
ESHandle< TrackerGeometry > geometry
double analogSignalAmplitude(const DetId &id, float energy, const CaloSimParameters ¶meters, CLHEP::HepRandomEngine *) const
virtual bool keepBlank() const
bool withinBunchRange(int bunchCrossing) const
check if crossing is within bunch range:
void setIgnoreGeantTime(bool gt)
int nSignals() const
number of signals in the current cache
void addHit(const PCaloHit *hit, CaloSamples &frame) const
adds the amplitude for a single hit to the frame
virtual ~CaloHitResponse()
doesn't delete the pointers passed in
virtual void initializeHits()
Initialize hits.
Main class for Parameters in different subdetectors.
const CaloVHitCorrection * theHitCorrection
void setPhaseShift(const double &thePhaseShift)
setting the phase shift for asynchronous trigger (e.g. test beams)
double timeOfFlight(const DetId &detId) const
virtual void add(const PCaloHit &hit, CLHEP::HepRandomEngine *)
process a single SimHit
virtual void finalizeHits(CLHEP::HepRandomEngine *)
Finalize hits.
virtual CaloSamples makeAnalogSignal(const PCaloHit &inputHit, CLHEP::HepRandomEngine *) const
creates the signal corresponding to this hit
const CaloShapes * theShapes
void setPECorrection(const CaloVPECorrection *peCorrection)
if you want to correct the photoelectrons
void setHitFilter(const CaloVHitFilter *filter)
void setBunchRange(int minBunch, int maxBunch)
tells it which pileup bunches to do
const CaloVHitFilter * theHitFilter
Creates electronics signals from hits.
const CaloVSimParameterMap * theParameterMap
std::map< DetId, CaloSamples > AnalogSignalMap
CaloSamples makeBlankSignal(const DetId &detId) const
creates an empty signal for this DetId
Electronic response of the preamp.
const CaloVPECorrection * thePECorrection
AnalogSignalMap theAnalogSignalMap
const CaloGeometry * theGeometry
const CaloVShape * theShape
CaloSamples * findSignal(const DetId &detId)
users can look for the signal for a given cell
void setHitCorrection(const CaloVHitCorrection *hitCorrection)
If you want to correct hits, for attenuation or delay, set this.
void clear()
frees up memory
void setStorePrecise(bool sp)
void setGeometry(const CaloGeometry *geometry)
geometry needed for time-of-flight
virtual void run(const MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *)
Complete cell digitization.