#include <HcalHitCorrection.h>
Public Types | |
typedef std::map< DetId, double > | ChargeSumsByChannel |
Public Member Functions | |
double | charge (const PCaloHit &hit) const |
how much charge we expect from this hit More... | |
void | clear () |
virtual double | delay (const PCaloHit &hit, CLHEP::HepRandomEngine *) const |
how much delay this hit will get More... | |
void | fillChargeSums (MixCollection< PCaloHit > &hits) |
void | fillChargeSums (std::vector< PCaloHit > &hits) |
HcalHitCorrection (const CaloVSimParameterMap *parameterMap) | |
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... | |
virtual | ~HcalHitCorrection () |
Private Attributes | |
ChargeSumsByChannel | theChargeSumsForTimeBin [10] |
const CaloVSimParameterMap * | theParameterMap |
Definition at line 22 of file HcalHitCorrection.h.
typedef std::map<DetId, double> HcalHitCorrection::ChargeSumsByChannel |
Definition at line 25 of file HcalHitCorrection.h.
HcalHitCorrection::HcalHitCorrection | ( | const CaloVSimParameterMap * | parameterMap | ) |
Definition at line 13 of file HcalHitCorrection.cc.
|
inlinevirtual |
Definition at line 28 of file HcalHitCorrection.h.
double HcalHitCorrection::charge | ( | const PCaloHit & | hit | ) | const |
how much charge we expect from this hit
Definition at line 69 of file HcalHitCorrection.cc.
References PCaloHit::energy(), PCaloHit::id(), Parameters::parameters, CaloSimParameters::simHitToPhotoelectrons(), CaloVSimParameterMap::simParameters(), and theParameterMap.
Referenced by delay(), and fillChargeSums().
void HcalHitCorrection::clear | ( | void | ) |
Definition at line 61 of file HcalHitCorrection.cc.
References i, and theChargeSumsForTimeBin.
Referenced by HcalDigitizer::finalizeEvent(), and HcalDigitizer::initializeEvent().
|
virtual |
how much delay this hit will get
Implements CaloVHitCorrection.
Definition at line 79 of file HcalHitCorrection.cc.
References DetId::Calo, charge(), HcalTimeSlew::delay(), HcalSimParameters::doTimeSmear(), end, Exception, HcalBarrel, HcalEndcap, HcalOuter, PCaloHit::id(), LogDebug, HcalTimeSlew::Medium, plotscripts::rms(), CaloVSimParameterMap::simParameters(), HcalTimeSlew::Slow, HcalZDCDetId::SubdetectorId, theChargeSumsForTimeBin, theParameterMap, timeBin(), and HcalSimParameters::timeSmearRMS().
void HcalHitCorrection::fillChargeSums | ( | MixCollection< PCaloHit > & | hits | ) |
Definition at line 19 of file HcalHitCorrection.cc.
References MixCollection< T >::begin(), charge(), TauDecayModes::dec, MixCollection< T >::end(), HcalBarrel, HcalEndcap, HcalOuter, LogDebug, theChargeSumsForTimeBin, and timeBin().
Referenced by HcalTBDigiProducer::accumulateCaloHits(), and HcalDigitizer::accumulateCaloHits().
void HcalHitCorrection::fillChargeSums | ( | std::vector< PCaloHit > & | hits | ) |
Definition at line 40 of file HcalHitCorrection.cc.
References charge(), TauDecayModes::dec, HcalBarrel, HcalEndcap, HcalOuter, LogDebug, theChargeSumsForTimeBin, and timeBin().
int HcalHitCorrection::timeBin | ( | const PCaloHit & | hit | ) | const |
which time bin the peak of the signal will fall in
Definition at line 126 of file HcalHitCorrection.cc.
References CaloSimParameters::binOfMaximum(), PCaloHit::id(), Parameters::parameters, CaloVSimParameterMap::simParameters(), tree::t, theParameterMap, PCaloHit::time(), timeOfFlight(), and CaloSimParameters::timePhase().
Referenced by delay(), and fillChargeSums().
double HcalHitCorrection::timeOfFlight | ( | const DetId & | id | ) | const |
simple average approximation
Definition at line 134 of file HcalHitCorrection.cc.
References DetId::Calo, DetId::det(), Exception, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalZDCDetId::SubdetectorId, and DetId::subdetId().
Referenced by timeBin().
|
private |
Definition at line 51 of file HcalHitCorrection.h.
Referenced by clear(), delay(), and fillChargeSums().
|
private |
Definition at line 49 of file HcalHitCorrection.h.