#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 (const std::vector< PCaloHit > &hits) |
void | fillChargeSums (MixCollection< 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 hit::id, 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(), mps_fire::end, Exception, HcalForward, HcalOuter, hit::id, LogDebug, CastorTimeSlew::Medium, CastorTimeSlew::Slow, HcalCastorDetId::SubdetectorId, theChargeSumsForTimeBin, and timeBin().
void CastorHitCorrection::fillChargeSums | ( | const std::vector< PCaloHit > & | hits | ) |
Definition at line 24 of file CastorHitCorrection.cc.
References charge(), TauDecayModes::dec, hfClusterShapes_cfi::hits, LogDebug, theChargeSumsForTimeBin, and timeBin().
void CastorHitCorrection::fillChargeSums | ( | MixCollection< PCaloHit > & | hits | ) |
Definition at line 12 of file CastorHitCorrection.cc.
References charge(), TauDecayModes::dec, hfClusterShapes_cfi::hits, LogDebug, theChargeSumsForTimeBin, and timeBin().
Referenced by CastorDigiProducer::accumulateCaloHits().
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 hit::id, CaloVSimParameterMap::simParameters(), submitPVValidationJobs::t, theParameterMap, and timeOfFlight().
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.