#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 void | correct (PCaloHit &hit) const |
applies the delay to the hit More... | |
double | delay (const PCaloHit &hit) const |
how much delay this hit will get More... | |
void | fillChargeSums (MixCollection< 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 18 of file HcalHitCorrection.h.
typedef std::map<DetId, double> HcalHitCorrection::ChargeSumsByChannel |
Definition at line 21 of file HcalHitCorrection.h.
HcalHitCorrection::HcalHitCorrection | ( | const CaloVSimParameterMap * | parameterMap | ) |
Definition at line 11 of file HcalHitCorrection.cc.
|
inlinevirtual |
Definition at line 24 of file HcalHitCorrection.h.
double HcalHitCorrection::charge | ( | const PCaloHit & | hit | ) | const |
how much charge we expect from this hit
Definition at line 46 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 38 of file HcalHitCorrection.cc.
References i, and theChargeSumsForTimeBin.
Referenced by HcalDigitizer::produce().
|
virtual |
applies the delay to the hit
Implements CaloVHitCorrection.
Definition at line 104 of file HcalHitCorrection.cc.
References delay(), PCaloHit::energyEM(), PCaloHit::energyHad(), PCaloHit::geantTrackId(), PCaloHit::id(), and PCaloHit::time().
double HcalHitCorrection::delay | ( | const PCaloHit & | hit | ) | const |
how much delay this hit will get
Definition at line 56 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().
Referenced by correct().
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::produce(), and HcalDigitizer::produce().
void HcalHitCorrection::setRandomEngine | ( | CLHEP::HepRandomEngine & | engine | ) |
Definition at line 144 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 110 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 118 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 51 of file HcalHitCorrection.h.
Referenced by clear(), delay(), and fillChargeSums().
|
private |
Definition at line 49 of file HcalHitCorrection.h.
|
private |
Definition at line 53 of file HcalHitCorrection.h.
Referenced by delay(), and setRandomEngine().