1 #ifndef CaloSimAlgos_CaloHitResponse_h 2 #define CaloSimAlgos_CaloHitResponse_h 23 class HepRandomEngine;
76 theHitCorrection = hitCorrection;
81 thePECorrection = peCorrection;
85 void clear() {theAnalogSignalMap.clear();}
91 virtual CaloSamples makeAnalogSignal(
const PCaloHit & inputHit, CLHEP::HepRandomEngine*)
const;
101 int nSignals()
const {
return theAnalogSignalMap.size();}
112 void setPhaseShift(
const double & thePhaseShift) { thePhaseShift_ = thePhaseShift; }
117 return(bunchCrossing >= theMinBunch && bunchCrossing <= theMaxBunch);
void setStorePrecise(bool sp)
void setGeometry(const CaloGeometry *geometry)
geometry needed for time-of-flight
bool withinBunchRange(int bunchCrossing) const
check if crossing is within bunch range:
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
virtual bool keepBlank() const
Electronic response of the preamp.
void setPECorrection(const CaloVPECorrection *peCorrection)
if you want to correct the photoelectrons
Main class for Parameters in different subdetectors.
const CaloGeometry * theGeometry
void setPhaseShift(const double &thePhaseShift)
setting the phase shift for asynchronous trigger (e.g. test beams)
const CaloVPECorrection * thePECorrection
std::map< DetId, CaloSamples > AnalogSignalMap
virtual void finalizeHits(CLHEP::HepRandomEngine *)
Finalize hits.
void setHitFilter(const CaloVHitFilter *filter)
if you want to reject hits, for example, from a certain subdetector, set this
Creates electronics signals from hits.
virtual void initializeHits()
Initialize hits.
const CaloVHitCorrection * theHitCorrection
AnalogSignalMap theAnalogSignalMap
const CaloShapes * theShapes
const CaloVSimParameterMap * theParameterMap
ESHandle< TrackerGeometry > geometry
void setHitCorrection(const CaloVHitCorrection *hitCorrection)
If you want to correct hits, for attenuation or delay, set this.
void clear()
frees up memory
const CaloVHitFilter * theHitFilter
const CaloVShape * theShape
int nSignals() const
number of signals in the current cache
double timeOfFlight(DetId id, const CaloGeometry *geo, bool debug=false)
void setIgnoreGeantTime(bool gt)