#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 22 of file CastorHitCorrection.h.
typedef std::map<DetId, double> CastorHitCorrection::ChargeSumsByChannel |
Definition at line 25 of file CastorHitCorrection.h.
CastorHitCorrection::CastorHitCorrection | ( | const CaloVSimParameterMap * | parameterMap | ) |
Definition at line 10 of file CastorHitCorrection.cc.
|
inlineoverride |
Definition at line 28 of file CastorHitCorrection.h.
References ALCARECOTkAlJpsiMuMu_cff::charge, hitfit::clear(), hfClusterShapes_cfi::hits, and spr::timeOfFlight().
double CastorHitCorrection::charge | ( | const PCaloHit & | hit | ) | const |
how much charge we expect from this hit
Definition at line 57 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 49 of file CastorHitCorrection.cc.
References mps_fire::i, and theChargeSumsForTimeBin.
|
overridevirtual |
how much delay this hit will get
Implements CaloVHitCorrection.
Definition at line 66 of file CastorHitCorrection.cc.
References DetId::Calo, charge(), CastorTimeSlew::delay(), 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 16 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 32 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 100 of file CastorHitCorrection.cc.
References CaloSimParameters::binOfMaximum(), PCaloHit::id(), CaloVSimParameterMap::simParameters(), lumiQTWidget::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 108 of file CastorHitCorrection.cc.
References DetId::Calo, DetId::det(), Exception, HcalCastorDetId::SubdetectorId, and DetId::subdetId().
Referenced by timeBin().
|
private |
Definition at line 52 of file CastorHitCorrection.h.
Referenced by clear(), delay(), and fillChargeSums().
|
private |
Definition at line 50 of file CastorHitCorrection.h.