#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 () |
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) |
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 | ~CastorHitCorrection () |
Private Attributes | |
ChargeSumsByChannel | theChargeSumsForTimeBin [10] |
const CaloVSimParameterMap * | theParameterMap |
Applies a correction for time slewing Makes bigger signals come at a delayed time
Definition at line 16 of file CastorHitCorrection.h.
typedef std::map<DetId, double> CastorHitCorrection::ChargeSumsByChannel |
Definition at line 19 of file CastorHitCorrection.h.
CastorHitCorrection::CastorHitCorrection | ( | const CaloVSimParameterMap * | parameterMap | ) |
Definition at line 10 of file CastorHitCorrection.cc.
|
inlinevirtual |
Definition at line 22 of file CastorHitCorrection.h.
double CastorHitCorrection::charge | ( | const PCaloHit & | hit | ) | const |
how much charge we expect from this hit
Definition at line 41 of file CastorHitCorrection.cc.
References PCaloHit::energy(), PCaloHit::id(), ExpressReco_HICollisions_FallBack::parameters, CaloSimParameters::simHitToPhotoelectrons(), CaloVSimParameterMap::simParameters(), and theParameterMap.
Referenced by delay(), and fillChargeSums().
void CastorHitCorrection::clear | ( | void | ) |
Definition at line 33 of file CastorHitCorrection.cc.
References i, and theChargeSumsForTimeBin.
Referenced by python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), and python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent().
|
virtual |
applies the delay to the hit
Implements CaloVHitCorrection.
Definition at line 83 of file CastorHitCorrection.cc.
References PCaloHit::energyEM(), PCaloHit::energyHad(), PCaloHit::geantTrackId(), PCaloHit::id(), and PCaloHit::time().
double CastorHitCorrection::delay | ( | const PCaloHit & | hit | ) | const |
how much delay this hit will get
Definition at line 50 of file CastorHitCorrection.cc.
References DetId::Calo, charge(), CastorTimeSlew::delay(), end, edm::hlt::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(), MixCollection< T >::end(), LogDebug, theChargeSumsForTimeBin, and timeBin().
Referenced by CastorDigiProducer::produce().
int CastorHitCorrection::timeBin | ( | const PCaloHit & | hit | ) | const |
which time bin the peak of the signal will fall in
Definition at line 89 of file CastorHitCorrection.cc.
References CaloSimParameters::binOfMaximum(), PCaloHit::id(), ExpressReco_HICollisions_FallBack::parameters, CaloVSimParameterMap::simParameters(), matplotRender::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 97 of file CastorHitCorrection.cc.
References DetId::Calo, DetId::det(), edm::hlt::Exception, HcalCastorDetId::SubdetectorId, and DetId::subdetId().
Referenced by timeBin().
|
private |
Definition at line 47 of file CastorHitCorrection.h.
Referenced by clear(), delay(), and fillChargeSums().
|
private |
Definition at line 45 of file CastorHitCorrection.h.