#include <CastorHitCorrection.h>
Public Types | |
typedef std::map< DetId, double > | ChargeSumsByChannel |
Public Member Functions | |
CastorHitCorrection (const CaloVSimParameterMap *parameterMap) | |
double | charge (const PCaloHit &hit) const |
how much charge we expect from this hit More... | |
void | clear () |
double | delay (const PCaloHit &hit, CLHEP::HepRandomEngine *) const override |
how much delay this hit will get More... | |
void | fillChargeSums (MixCollection< PCaloHit > &hits) |
void | fillChargeSums (const std::vector< PCaloHit > &hits) |
int | timeBin (const PCaloHit &hit) const |
which time bin the peak of the signal will fall in More... | |
double | timeOfFlight (const DetId &id) const |
simple average approximation More... | |
~CastorHitCorrection () override | |
Public Member Functions inherited from CaloVHitCorrection | |
virtual | ~CaloVHitCorrection ()=default |
Private Attributes | |
ChargeSumsByChannel | theChargeSumsForTimeBin [10] |
const CaloVSimParameterMap * | theParameterMap |
Definition at line 21 of file CastorHitCorrection.h.
typedef std::map<DetId, double> CastorHitCorrection::ChargeSumsByChannel |
Definition at line 23 of file CastorHitCorrection.h.
CastorHitCorrection::CastorHitCorrection | ( | const CaloVSimParameterMap * | parameterMap | ) |
Definition at line 10 of file CastorHitCorrection.cc.
|
inlineoverride |
Definition at line 26 of file CastorHitCorrection.h.
double CastorHitCorrection::charge | ( | const PCaloHit & | hit | ) | const |
how much charge we expect from this hit
Definition at line 42 of file CastorHitCorrection.cc.
References PCaloHit::energy(), PCaloHit::id(), CaloSimParameters::simHitToPhotoelectrons(), CaloVSimParameterMap::simParameters(), and theParameterMap.
Referenced by delay(), and fillChargeSums().
void CastorHitCorrection::clear | ( | void | ) |
Definition at line 36 of file CastorHitCorrection.cc.
References mps_fire::i, and theChargeSumsForTimeBin.
|
overridevirtual |
how much delay this hit will get
Implements CaloVHitCorrection.
Definition at line 49 of file CastorHitCorrection.cc.
References DetId::Calo, charge(), CastorTimeSlew::delay(), dataset::end, Exception, HcalForward, HcalOuter, PCaloHit::id(), LogDebug, CastorTimeSlew::Medium, CastorTimeSlew::Slow, HcalCastorDetId::SubdetectorId, theChargeSumsForTimeBin, and timeBin().
void CastorHitCorrection::fillChargeSums | ( | MixCollection< PCaloHit > & | hits | ) |
Definition at line 12 of file CastorHitCorrection.cc.
References MixCollection< T >::begin(), charge(), TauDecayModes::dec, MixCollection< T >::end(), LogDebug, theChargeSumsForTimeBin, and timeBin().
Referenced by CastorDigiProducer::accumulateCaloHits().
void CastorHitCorrection::fillChargeSums | ( | const std::vector< PCaloHit > & | hits | ) |
Definition at line 24 of file CastorHitCorrection.cc.
References charge(), TauDecayModes::dec, LogDebug, theChargeSumsForTimeBin, and timeBin().
int CastorHitCorrection::timeBin | ( | const PCaloHit & | hit | ) | const |
which time bin the peak of the signal will fall in
Definition at line 79 of file CastorHitCorrection.cc.
References CaloSimParameters::binOfMaximum(), PCaloHit::id(), CaloVSimParameterMap::simParameters(), submitPVValidationJobs::t, theParameterMap, PCaloHit::time(), timeOfFlight(), and CaloSimParameters::timePhase().
Referenced by delay(), and fillChargeSums().
double CastorHitCorrection::timeOfFlight | ( | const DetId & | id | ) | const |
simple average approximation
Definition at line 85 of file CastorHitCorrection.cc.
References DetId::Calo, DetId::det(), Exception, HcalCastorDetId::SubdetectorId, and DetId::subdetId().
Referenced by timeBin().
|
private |
Definition at line 49 of file CastorHitCorrection.h.
Referenced by clear(), delay(), and fillChargeSums().
|
private |
Definition at line 47 of file CastorHitCorrection.h.