#include <EcalHitResponse.h>
Public Types | |
enum | { BUNCHSPACE = 25 } |
typedef CaloTSamplesBase< float > | EcalSamples |
typedef std::vector< unsigned int > | VecInd |
Public Member Functions | |
void | add (const EcalSamples *pSam) |
EcalHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape) | |
const EcalSamples * | findDetId (const DetId &detId) const |
virtual EcalSamples * | operator[] (unsigned int i)=0 |
virtual const EcalSamples * | operator[] (unsigned int i) const =0 |
virtual void | run (MixCollection< PCaloHit > &hits) |
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) |
virtual | ~EcalHitResponse () |
Protected Member Functions | |
double | analogSignalAmplitude (const PCaloHit &hit) const |
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::RandGaussQ * | ranGauss () const |
CLHEP::RandPoissonQ * | ranPois () const |
virtual unsigned int | samplesSizeAll () const =0 |
const CaloVShape * | shape () const |
double | timeOfFlight (const DetId &detId) const |
virtual EcalSamples * | vSam (unsigned int i)=0 |
virtual EcalSamples * | vSamAll (unsigned int i)=0 |
virtual const EcalSamples * | vSamAll (unsigned int i) const =0 |
Private Attributes | |
const CaloSubdetectorGeometry * | m_geometry |
const CaloVHitCorrection * | m_hitCorrection |
const CaloVHitFilter * | m_hitFilter |
VecInd | m_index |
edm::TimeValue_t | m_iTime |
const EcalLaserDbService * | m_lasercals |
int | m_maxBunch |
int | m_minBunch |
const CaloVSimParameterMap * | m_parameterMap |
const CaloVPECorrection * | m_PECorrection |
double | m_phaseShift |
CLHEP::RandGaussQ * | m_RandGauss |
CLHEP::RandPoissonQ * | m_RandPoisson |
const CaloVShape * | m_shape |
bool | m_useLCcorrection |
Definition at line 29 of file EcalHitResponse.h.
typedef CaloTSamplesBase<float> EcalHitResponse::EcalSamples |
Definition at line 33 of file EcalHitResponse.h.
typedef std::vector< unsigned int > EcalHitResponse::VecInd |
Definition at line 35 of file EcalHitResponse.h.
anonymous enum |
Enumerator | |
---|---|
BUNCHSPACE |
Definition at line 37 of file EcalHitResponse.h.
EcalHitResponse::EcalHitResponse | ( | const CaloVSimParameterMap * | parameterMap, |
const CaloVShape * | shape | ||
) |
Definition at line 25 of file EcalHitResponse.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), m_RandGauss, and m_RandPoisson.
|
virtual |
void EcalHitResponse::add | ( | const EcalSamples * | pSam | ) |
Definition at line 265 of file EcalHitResponse.cc.
References findSignal(), and CaloTSamplesBase< Ttype >::id().
|
protected |
Definition at line 232 of file EcalHitResponse.cc.
References CaloVPECorrection::correctPE(), PCaloHit::energy(), findLaserConstant(), PCaloHit::id(), m_PECorrection, m_useLCcorrection, Parameters::parameters, params(), and ranPois().
Referenced by putAnalogSignal().
|
protected |
Definition at line 151 of file EcalHitResponse.cc.
References i, m_index, CaloTSamplesBase< Ttype >::setZero(), findQualityFiles::size, and vSamAll().
Referenced by EBHitResponse::run(), and run().
const EcalHitResponse::EcalSamples * EcalHitResponse::findDetId | ( | const DetId & | detId | ) | const |
Definition at line 302 of file EcalHitResponse.cc.
References vSamAll().
Referenced by ESDigitizer::run().
|
protected |
Definition at line 215 of file EcalHitResponse.cc.
References EcalLaserDbService::getLaserCorrection(), m_iTime, and m_lasercals.
Referenced by analogSignalAmplitude().
|
protected |
Definition at line 223 of file EcalHitResponse.cc.
References m_index, query::result, vSamAll(), and CaloTSamplesBase< Ttype >::zero().
Referenced by add(), putAnalogSignal(), and EBHitResponse::putAPDSignal().
|
protected |
Definition at line 87 of file EcalHitResponse.cc.
References m_geometry.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), setGeometry(), and timeOfFlight().
|
protected |
Definition at line 296 of file EcalHitResponse.cc.
References m_hitFilter.
Referenced by EBHitResponse::run().
|
protected |
Definition at line 284 of file EcalHitResponse.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::_invert(), ESHitResponse::operator[](), EBHitResponse::run(), ESHitResponse::samplesSize(), and ESHitResponse::vSam().
|
protected |
Definition at line 290 of file EcalHitResponse.cc.
References m_index.
Referenced by BeautifulSoup.PageElement::_invert().
|
protected |
Definition at line 278 of file EcalHitResponse.cc.
References m_maxBunch.
Referenced by EBHitResponse::run(), and setBunchRange().
|
protected |
Definition at line 272 of file EcalHitResponse.cc.
References m_minBunch.
Referenced by EBHitResponse::run(), and setBunchRange().
|
pure virtual |
Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.
|
pure virtual |
Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.
|
protected |
Definition at line 73 of file EcalHitResponse.cc.
References m_parameterMap, and CaloVSimParameterMap::simParameters().
Referenced by analogSignalAmplitude(), putAnalogSignal(), and EBHitResponse::putAPDSignal().
|
protected |
Definition at line 114 of file EcalHitResponse.cc.
References m_phaseShift.
Referenced by EBHitResponse::putAPDSignal(), and setPhaseShift().
|
protectedvirtual |
Definition at line 182 of file EcalHitResponse.cc.
References analogSignalAmplitude(), newFWLiteAna::bin, BUNCHSPACE, CaloVHitCorrection::correct(), findSignal(), PCaloHit::id(), m_hitCorrection, m_phaseShift, Parameters::parameters, params(), query::result, shape(), CaloTSamplesBase< Ttype >::size(), PCaloHit::time(), timeOfFlight(), CaloVShape::timeToRise(), and tzero.
Referenced by EBHitResponse::run(), and run().
|
protected |
Definition at line 67 of file EcalHitResponse.cc.
References m_RandGauss.
Referenced by EBHitResponse::EBHitResponse().
|
protected |
Definition at line 61 of file EcalHitResponse.cc.
References m_RandPoisson.
Referenced by analogSignalAmplitude(), and EBHitResponse::apdSignalAmplitude().
|
virtual |
Reimplemented in EBHitResponse.
Definition at line 164 of file EcalHitResponse.cc.
References CaloVHitFilter::accepts(), MixCollection< T >::begin(), blankOutUsedSamples(), MixCollection< T >::end(), edm::detail::isnan(), m_hitFilter, m_maxBunch, m_minBunch, putAnalogSignal(), and PCaloHit::time().
|
pure virtual |
Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.
|
protectedpure virtual |
Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.
void EcalHitResponse::setBunchRange | ( | int | minBunch, |
int | maxBunch | ||
) |
Definition at line 94 of file EcalHitResponse.cc.
References m_maxBunch, m_minBunch, maxBunch(), and minBunch().
void EcalHitResponse::setEventTime | ( | const edm::TimeValue_t & | iTime | ) |
Definition at line 138 of file EcalHitResponse.cc.
References m_iTime.
Referenced by EcalDigiProducer::checkCalibrations().
void EcalHitResponse::setGeometry | ( | const CaloSubdetectorGeometry * | geometry | ) |
Definition at line 102 of file EcalHitResponse.cc.
References geometry(), and m_geometry.
Referenced by EcalDigiProducer::updateGeometry().
void EcalHitResponse::setHitCorrection | ( | const CaloVHitCorrection * | hitCorrection | ) |
Definition at line 126 of file EcalHitResponse.cc.
References m_hitCorrection.
void EcalHitResponse::setHitFilter | ( | const CaloVHitFilter * | filter | ) |
Definition at line 120 of file EcalHitResponse.cc.
References alcazmumu_cfi::filter, and m_hitFilter.
void EcalHitResponse::setLaserConstants | ( | const EcalLaserDbService * | laser, |
bool & | useLCcorrection | ||
) |
Definition at line 144 of file EcalHitResponse.cc.
References m_lasercals, and m_useLCcorrection.
Referenced by EcalDigiProducer::checkCalibrations().
void EcalHitResponse::setPECorrection | ( | const CaloVPECorrection * | peCorrection | ) |
Definition at line 132 of file EcalHitResponse.cc.
References m_PECorrection.
void EcalHitResponse::setPhaseShift | ( | double | phaseShift | ) |
Definition at line 108 of file EcalHitResponse.cc.
References m_phaseShift, and phaseShift().
Referenced by EcalDigiProducer::EcalDigiProducer(), and EcalTBDigiProducer::setPhaseShift().
|
protected |
Definition at line 80 of file EcalHitResponse.cc.
References m_shape.
Referenced by putAnalogSignal().
|
protected |
Definition at line 257 of file EcalHitResponse.cc.
References geometry(), CaloCellGeometry::getPosition(), and PV3DBase< T, PVType, FrameType >::mag().
Referenced by putAnalogSignal(), and EBHitResponse::putAPDSignal().
|
protectedpure virtual |
Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.
|
protectedpure virtual |
Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.
Referenced by blankOutUsedSamples(), findDetId(), and findSignal().
|
protectedpure virtual |
Implemented in EBHitResponse, EEHitResponse, and ESHitResponse.
|
private |
Definition at line 124 of file EcalHitResponse.h.
Referenced by geometry(), and setGeometry().
|
private |
Definition at line 121 of file EcalHitResponse.h.
Referenced by putAnalogSignal(), and setHitCorrection().
|
private |
Definition at line 123 of file EcalHitResponse.h.
Referenced by hitFilter(), run(), and setHitFilter().
|
private |
Definition at line 137 of file EcalHitResponse.h.
Referenced by blankOutUsedSamples(), findSignal(), and index().
|
private |
Definition at line 134 of file EcalHitResponse.h.
Referenced by findLaserConstant(), and setEventTime().
|
private |
Definition at line 125 of file EcalHitResponse.h.
Referenced by findLaserConstant(), and setLaserConstants().
|
private |
Definition at line 131 of file EcalHitResponse.h.
Referenced by maxBunch(), run(), and setBunchRange().
|
private |
Definition at line 130 of file EcalHitResponse.h.
Referenced by minBunch(), run(), and setBunchRange().
|
private |
Definition at line 119 of file EcalHitResponse.h.
Referenced by params().
|
private |
Definition at line 122 of file EcalHitResponse.h.
Referenced by analogSignalAmplitude(), and setPECorrection().
|
private |
Definition at line 132 of file EcalHitResponse.h.
Referenced by phaseShift(), putAnalogSignal(), and setPhaseShift().
|
mutableprivate |
Definition at line 128 of file EcalHitResponse.h.
Referenced by EcalHitResponse(), ranGauss(), and ~EcalHitResponse().
|
mutableprivate |
Definition at line 127 of file EcalHitResponse.h.
Referenced by EcalHitResponse(), ranPois(), and ~EcalHitResponse().
|
private |
Definition at line 120 of file EcalHitResponse.h.
Referenced by shape().
|
private |
Definition at line 135 of file EcalHitResponse.h.
Referenced by analogSignalAmplitude(), and setLaserConstants().