#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 double | delay (const PCaloHit &hit) const |
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... | |
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 17 of file CastorHitCorrection.h.
typedef std::map<DetId, double> CastorHitCorrection::ChargeSumsByChannel |
Definition at line 20 of file CastorHitCorrection.h.
CastorHitCorrection::CastorHitCorrection | ( | const CaloVSimParameterMap * | parameterMap | ) |
Definition at line 10 of file CastorHitCorrection.cc.
|
inlinevirtual |
Definition at line 23 of file CastorHitCorrection.h.
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(), Parameters::parameters, CaloSimParameters::simHitToPhotoelectrons(), CaloVSimParameterMap::simParameters(), and theParameterMap.
Referenced by delay(), and fillChargeSums().
void CastorHitCorrection::clear | ( | void | ) |
Definition at line 49 of file CastorHitCorrection.cc.
References i, and theChargeSumsForTimeBin.
|
virtual |
how much delay this hit will get
Implements CaloVHitCorrection.
Definition at line 66 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::accumulateCaloHits().
void CastorHitCorrection::fillChargeSums | ( | const std::vector< PCaloHit > & | hits | ) |
Definition at line 32 of file CastorHitCorrection.cc.
References charge(), 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(), Parameters::parameters, 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(), 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.