#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) const |
how much delay this hit will get More... | |
void | fillChargeSums (MixCollection< PCaloHit > &hits) |
void | fillChargeSums (std::vector< PCaloHit > &hits) |
HcalHitCorrection (const CaloVSimParameterMap *parameterMap) | |
void | setRandomEngine (CLHEP::HepRandomEngine &engine) |
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 |
CLHEP::RandGaussQ * | theRandGaussQ |
Applies a correction for time slewing Makes bigger signals come at a delayed time
Rick Wilkinson
Definition at line 19 of file HcalHitCorrection.h.
typedef std::map<DetId, double> HcalHitCorrection::ChargeSumsByChannel |
Definition at line 22 of file HcalHitCorrection.h.
HcalHitCorrection::HcalHitCorrection | ( | const CaloVSimParameterMap * | parameterMap | ) |
Definition at line 11 of file HcalHitCorrection.cc.
|
inlinevirtual |
Definition at line 25 of file HcalHitCorrection.h.
double HcalHitCorrection::charge | ( | const PCaloHit & | hit | ) | const |
how much charge we expect from this hit
Definition at line 67 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 59 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 77 of file HcalHitCorrection.cc.
References DetId::Calo, charge(), HcalTimeSlew::delay(), HcalSimParameters::doTimeSmear(), end, edm::hlt::Exception, HcalBarrel, HcalEndcap, HcalOuter, PCaloHit::id(), LogDebug, HcalTimeSlew::Medium, plotscripts::rms(), CaloVSimParameterMap::simParameters(), HcalTimeSlew::Slow, HcalZDCDetId::SubdetectorId, theChargeSumsForTimeBin, theParameterMap, theRandGaussQ, timeBin(), and HcalSimParameters::timeSmearRMS().
void HcalHitCorrection::fillChargeSums | ( | MixCollection< PCaloHit > & | hits | ) |
Definition at line 17 of file HcalHitCorrection.cc.
References MixCollection< T >::begin(), charge(), 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 38 of file HcalHitCorrection.cc.
References charge(), HcalBarrel, HcalEndcap, HcalOuter, LogDebug, theChargeSumsForTimeBin, and timeBin().
void HcalHitCorrection::setRandomEngine | ( | CLHEP::HepRandomEngine & | engine | ) |
Definition at line 158 of file HcalHitCorrection.cc.
References theRandGaussQ.
Referenced by HcalDigitizer::HcalDigitizer().
int HcalHitCorrection::timeBin | ( | const PCaloHit & | hit | ) | const |
which time bin the peak of the signal will fall in
Definition at line 124 of file HcalHitCorrection.cc.
References CaloSimParameters::binOfMaximum(), PCaloHit::id(), Parameters::parameters, CaloVSimParameterMap::simParameters(), lumiQTWidget::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 132 of file HcalHitCorrection.cc.
References DetId::Calo, DetId::det(), edm::hlt::Exception, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalZDCDetId::SubdetectorId, and DetId::subdetId().
Referenced by timeBin().
|
private |
Definition at line 50 of file HcalHitCorrection.h.
Referenced by clear(), delay(), and fillChargeSums().
|
private |
Definition at line 48 of file HcalHitCorrection.h.
|
private |
Definition at line 52 of file HcalHitCorrection.h.
Referenced by delay(), and setRandomEngine().