#include <EcalHitResponse.h>
Public Types | |
typedef std::unordered_map< uint32_t, double > | CalibCache |
typedef CaloTSamplesBase< float > | EcalSamples |
typedef std::vector< unsigned int > | VecInd |
Public Member Functions | |
virtual void | add (const CaloSamples &hit) |
void | add (const EcalSamples *pSam) |
virtual void | add (const PCaloHit &hit, CLHEP::HepRandomEngine *) |
EcalHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape) | |
virtual void | finalizeHits () |
const EcalSamples * | findDetId (const DetId &detId) const |
virtual void | initializeHits () |
virtual const EcalSamples * | operator[] (unsigned int i) const =0 |
virtual EcalSamples * | operator[] (unsigned int i)=0 |
virtual void | run (MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *) |
virtual unsigned int | samplesSize () const =0 |
void | setBunchRange (int minBunch, int maxBunch) |
void | setEventTime (const edm::TimeValue_t &iTime) |
void | setGeometry (const CaloSubdetectorGeometry *geometry) |
void | setHitCorrection (const CaloVHitCorrection *hitCorrection) |
void | setHitFilter (const CaloVHitFilter *filter) |
void | setLaserConstants (const EcalLaserDbService *laser, bool &useLCcorrection) |
void | setPECorrection (const CaloVPECorrection *peCorrection) |
void | setPhaseShift (double phaseShift) |
bool | withinBunchRange (int bunchCrossing) const |
virtual | ~EcalHitResponse () |
Public Attributes | |
const float | kSamplePeriod = ecalPh1::Samp_Period |
Protected Member Functions | |
double | analogSignalAmplitude (const DetId &id, double energy, CLHEP::HepRandomEngine *) |
void | blankOutUsedSamples () |
double | findLaserConstant (const DetId &detId) const |
EcalSamples * | findSignal (const DetId &detId) |
const CaloSubdetectorGeometry * | geometry () const |
const CaloVHitFilter * | hitFilter () const |
VecInd & | index () |
const VecInd & | index () const |
int | maxBunch () const |
int | minBunch () const |
const CaloSimParameters * | params (const DetId &detId) const |
double | phaseShift () const |
virtual void | putAnalogSignal (const PCaloHit &inputHit, CLHEP::HepRandomEngine *) |
virtual unsigned int | samplesSizeAll () const =0 |
const CaloVShape * | shape () const |
double | timeOfFlight (const DetId &detId) const |
virtual EcalSamples * | vSam (unsigned int i)=0 |
virtual const EcalSamples * | vSamAll (unsigned int i) const =0 |
virtual EcalSamples * | vSamAll (unsigned int i)=0 |
Protected Attributes | |
const CaloSubdetectorGeometry * | m_geometry |
const CaloVHitCorrection * | m_hitCorrection |
const CaloVHitFilter * | m_hitFilter |
const EcalLaserDbService * | m_lasercals |
const CaloVSimParameterMap * | m_parameterMap |
const CaloVPECorrection * | m_PECorrection |
const CaloVShape * | m_shape |
Private Attributes | |
VecInd | m_index |
edm::TimeValue_t | m_iTime |
CalibCache | m_laserCalibCache |
int | m_maxBunch |
int | m_minBunch |
double | m_phaseShift |
bool | m_useLCcorrection |
Definition at line 29 of file EcalHitResponse.h.
typedef std::unordered_map<uint32_t, double> EcalHitResponse::CalibCache |
Definition at line 35 of file EcalHitResponse.h.
typedef CaloTSamplesBase<float> EcalHitResponse::EcalSamples |
Definition at line 31 of file EcalHitResponse.h.
typedef std::vector<unsigned int> EcalHitResponse::VecInd |
Definition at line 33 of file EcalHitResponse.h.
EcalHitResponse::EcalHitResponse | ( | const CaloVSimParameterMap * | parameterMap, |
const CaloVShape * | shape | ||
) |
Definition at line 20 of file EcalHitResponse.cc.
|
virtual |
Definition at line 34 of file EcalHitResponse.cc.
|
virtual |
Definition at line 96 of file EcalHitResponse.cc.
References newFWLiteAna::bin, Exception, findSignal(), hit::id, and mps_fire::result.
Referenced by counter.Counter::register().
void EcalHitResponse::add | ( | const EcalSamples * | pSam | ) |
Definition at line 209 of file EcalHitResponse.cc.
References findSignal(), and CaloTSamplesBase< Ttype >::id().
Referenced by counter.Counter::register().
|
virtual |
Reimplemented in EBHitResponseImpl< constset >.
Definition at line 90 of file EcalHitResponse.cc.
References CaloVHitFilter::accepts(), edm::isNotFinite(), m_hitFilter, and putAnalogSignal().
Referenced by counter.Counter::register().
|
protected |
Definition at line 174 of file EcalHitResponse.cc.
References utilities::cache(), CaloVPECorrection::correctPE(), HCALHighEnergyHPDFilter_cfi::energy, findLaserConstant(), m_laserCalibCache, m_PECorrection, m_useLCcorrection, params(), and DetId::subdetId().
Referenced by putAnalogSignal().
|
protected |
Definition at line 79 of file EcalHitResponse.cc.
References mps_fire::i, m_index, CaloTSamplesBase< Ttype >::setZero(), findQualityFiles::size, and vSamAll().
Referenced by initializeHits(), and run().
|
virtual |
Reimplemented in EBHitResponseImpl< constset >.
Definition at line 118 of file EcalHitResponse.cc.
const EcalHitResponse::EcalSamples * EcalHitResponse::findDetId | ( | const DetId & | detId | ) | const |
Definition at line 224 of file EcalHitResponse.cc.
References vSamAll().
Referenced by ESDigitizer::run().
|
protected |
Definition at line 161 of file EcalHitResponse.cc.
References EcalLaserDbService::getLaserCorrection(), m_iTime, and m_lasercals.
Referenced by analogSignalAmplitude().
|
protected |
Definition at line 166 of file EcalHitResponse.cc.
References m_index, mps_fire::result, and vSamAll().
Referenced by add(), and putAnalogSignal().
|
protected |
Definition at line 46 of file EcalHitResponse.cc.
References cms::cuda::assert(), and m_geometry.
Referenced by setGeometry(), and timeOfFlight().
|
protected |
|
protected |
Definition at line 218 of file EcalHitResponse.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::insert(), ESHitResponse::operator[](), ESHitResponse::samplesSize(), and ESHitResponse::vSam().
|
protected |
Definition at line 220 of file EcalHitResponse.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::insert().
|
virtual |
Reimplemented in EBHitResponseImpl< constset >.
Definition at line 116 of file EcalHitResponse.cc.
References blankOutUsedSamples().
|
protected |
Definition at line 216 of file EcalHitResponse.cc.
References m_maxBunch.
Referenced by setBunchRange().
|
protected |
Definition at line 214 of file EcalHitResponse.cc.
References m_minBunch.
Referenced by setBunchRange().
|
pure virtual |
Implemented in EBHitResponseImpl< constset >, EEHitResponse, and ESHitResponse.
|
pure virtual |
Implemented in EBHitResponseImpl< constset >, EEHitResponse, and ESHitResponse.
|
protected |
Definition at line 36 of file EcalHitResponse.cc.
References cms::cuda::assert(), m_parameterMap, and CaloVSimParameterMap::simParameters().
Referenced by analogSignalAmplitude(), and putAnalogSignal().
|
protected |
Definition at line 60 of file EcalHitResponse.cc.
References m_phaseShift.
Referenced by setPhaseShift().
|
protectedvirtual |
Reimplemented in EBHitResponseImpl< constset >.
Definition at line 132 of file EcalHitResponse.cc.
References analogSignalAmplitude(), newFWLiteAna::bin, CaloVHitCorrection::delay(), findSignal(), hit::id, kSamplePeriod, m_hitCorrection, m_phaseShift, params(), mps_fire::result, shape(), ntuplemaker::time, timeOfFlight(), CaloVShape::timeToRise(), and tzero.
|
virtual |
Reimplemented in EBHitResponseImpl< constset >.
Definition at line 120 of file EcalHitResponse.cc.
References CaloVHitFilter::accepts(), blankOutUsedSamples(), hfClusterShapes_cfi::hits, edm::isNotFinite(), m_hitFilter, putAnalogSignal(), and withinBunchRange().
|
pure virtual |
Implemented in EBHitResponseImpl< constset >, EEHitResponse, and ESHitResponse.
|
protectedpure virtual |
Implemented in EBHitResponseImpl< constset >, EEHitResponse, and ESHitResponse.
void EcalHitResponse::setBunchRange | ( | int | minBunch, |
int | maxBunch | ||
) |
Definition at line 51 of file EcalHitResponse.cc.
References m_maxBunch, m_minBunch, maxBunch(), and minBunch().
void EcalHitResponse::setEventTime | ( | const edm::TimeValue_t & | iTime | ) |
void EcalHitResponse::setGeometry | ( | const CaloSubdetectorGeometry * | geometry | ) |
void EcalHitResponse::setHitCorrection | ( | const CaloVHitCorrection * | hitCorrection | ) |
void EcalHitResponse::setHitFilter | ( | const CaloVHitFilter * | filter | ) |
Definition at line 62 of file EcalHitResponse.cc.
References ALCARECOTkAlBeamHalo_cff::filter, and m_hitFilter.
void EcalHitResponse::setLaserConstants | ( | const EcalLaserDbService * | laser, |
bool & | useLCcorrection | ||
) |
Definition at line 74 of file EcalHitResponse.cc.
References EcalCondDBWriter_cfi::laser, m_lasercals, and m_useLCcorrection.
void EcalHitResponse::setPECorrection | ( | const CaloVPECorrection * | peCorrection | ) |
void EcalHitResponse::setPhaseShift | ( | double | phaseShift | ) |
|
protected |
Definition at line 41 of file EcalHitResponse.cc.
References cms::cuda::assert(), and m_shape.
Referenced by ESHitResponse::ESHitResponse(), and putAnalogSignal().
|
protected |
Definition at line 203 of file EcalHitResponse.cc.
References cms::cuda::assert(), geometry(), and ecaldqm::getGeometry().
Referenced by putAnalogSignal().
|
protectedpure virtual |
Implemented in EBHitResponseImpl< constset >, EEHitResponse, and ESHitResponse.
|
protectedpure virtual |
Implemented in EBHitResponseImpl< constset >, EEHitResponse, and ESHitResponse.
|
protectedpure virtual |
Implemented in EBHitResponseImpl< constset >, EEHitResponse, and ESHitResponse.
Referenced by blankOutUsedSamples(), findDetId(), and findSignal().
bool EcalHitResponse::withinBunchRange | ( | int | bunchCrossing | ) | const |
Definition at line 112 of file EcalHitResponse.cc.
Referenced by run().
const float EcalHitResponse::kSamplePeriod = ecalPh1::Samp_Period |
Definition at line 41 of file EcalHitResponse.h.
Referenced by putAnalogSignal().
|
protected |
Definition at line 125 of file EcalHitResponse.h.
Referenced by geometry(), and setGeometry().
|
protected |
Definition at line 122 of file EcalHitResponse.h.
Referenced by putAnalogSignal(), and setHitCorrection().
|
protected |
Definition at line 124 of file EcalHitResponse.h.
Referenced by add(), hitFilter(), run(), and setHitFilter().
|
private |
Definition at line 137 of file EcalHitResponse.h.
Referenced by blankOutUsedSamples(), findSignal(), and index().
|
private |
Definition at line 133 of file EcalHitResponse.h.
Referenced by findLaserConstant(), and setEventTime().
|
private |
Definition at line 135 of file EcalHitResponse.h.
Referenced by analogSignalAmplitude(), and setEventTime().
|
protected |
Definition at line 126 of file EcalHitResponse.h.
Referenced by findLaserConstant(), and setLaserConstants().
|
private |
Definition at line 130 of file EcalHitResponse.h.
Referenced by maxBunch(), and setBunchRange().
|
private |
Definition at line 129 of file EcalHitResponse.h.
Referenced by minBunch(), and setBunchRange().
|
protected |
Definition at line 120 of file EcalHitResponse.h.
Referenced by params().
|
protected |
Definition at line 123 of file EcalHitResponse.h.
Referenced by analogSignalAmplitude(), and setPECorrection().
|
private |
Definition at line 131 of file EcalHitResponse.h.
Referenced by phaseShift(), putAnalogSignal(), and setPhaseShift().
|
protected |
Definition at line 121 of file EcalHitResponse.h.
Referenced by shape().
|
private |
Definition at line 134 of file EcalHitResponse.h.
Referenced by analogSignalAmplitude(), and setLaserConstants().