#include <EBHitResponse.h>
Public Types | |
enum | { kNOffsets = 2000 } |
typedef CaloTSamples< float, 10 > | EBSamples |
typedef std::vector< double > | VecD |
Public Types inherited from EcalHitResponse | |
enum | { BUNCHSPACE = 25 } |
typedef std::unordered_map< uint32_t, double > | CalibCache |
typedef CaloTSamplesBase< float > | EcalSamples |
typedef std::vector< unsigned int > | VecInd |
Public Member Functions | |
void | add (const PCaloHit &hit, CLHEP::HepRandomEngine *) override |
EBHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape, bool apdOnly, const APDSimParameters *apdPars, const CaloVShape *apdShape) | |
void | finalizeHits () override |
void | initialize (CLHEP::HepRandomEngine *) |
void | initializeHits () override |
virtual bool | keepBlank () const |
const EcalSamples * | operator[] (unsigned int i) const override |
EcalSamples * | operator[] (unsigned int i) override |
void | run (MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *) override |
unsigned int | samplesSize () const override |
void | setIntercal (const EcalIntercalibConstantsMC *ical) |
~EBHitResponse () override | |
Public Member Functions inherited from EcalHitResponse | |
virtual void | add (const CaloSamples &hit) |
void | add (const EcalSamples *pSam) |
EcalHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape) | |
const EcalSamples * | findDetId (const DetId &detId) const |
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 () |
Protected Member Functions | |
void | putAPDSignal (const DetId &detId, double npe, double time) |
unsigned int | samplesSizeAll () const override |
EcalSamples * | vSam (unsigned int i) override |
const EcalSamples * | vSamAll (unsigned int i) const override |
EcalSamples * | vSamAll (unsigned int i) override |
Protected Member Functions inherited from EcalHitResponse | |
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 *) |
const CaloVShape * | shape () const |
double | timeOfFlight (const DetId &detId) const |
Private Member Functions | |
const APDSimParameters * | apdParameters () const |
const CaloVShape * | apdShape () const |
double | apdSignalAmplitude (const PCaloHit &hit, CLHEP::HepRandomEngine *) const |
void | findIntercalibConstant (const DetId &detId, double &icalconst) const |
const double | nonlFunc (double enr) const |
const double | nonlFunc1 (double energy) const |
const VecD & | offsets () const |
Private Attributes | |
std::vector< double > | m_apdNpeVec |
const bool | m_apdOnly |
const APDSimParameters * | m_apdPars |
const CaloVShape * | m_apdShape |
std::vector< double > | m_apdTimeVec |
const EcalIntercalibConstantsMC * | m_intercal |
bool | m_isInitialized |
std::vector< double > | m_timeOffVec |
std::vector< EBSamples > | m_vSam |
const double | pasy |
const double | pcon |
const double | pcub |
const double | pehi |
const double | pelo |
const double | pext |
const double | pfac |
const double | plin |
const double | poff |
const double | pqua |
Definition at line 14 of file EBHitResponse.h.
typedef CaloTSamples<float, 10> EBHitResponse::EBSamples |
Definition at line 16 of file EBHitResponse.h.
typedef std::vector<double> EBHitResponse::VecD |
Definition at line 18 of file EBHitResponse.h.
anonymous enum |
EBHitResponse::EBHitResponse | ( | const CaloVSimParameterMap * | parameterMap, |
const CaloVShape * | shape, | ||
bool | apdOnly, | ||
const APDSimParameters * | apdPars = nullptr , |
||
const CaloVShape * | apdShape = nullptr |
||
) |
Definition at line 15 of file EBHitResponse.cc.
References DetId::det(), EBDetId::detIdFromDenseIndex(), mps_fire::i, EBDetId::kSizeForDenseIndexing, m_vSam, CaloVSimParameterMap::simParameters(), findQualityFiles::size, and DetId::subdetId().
|
override |
Definition at line 54 of file EBHitResponse.cc.
|
overridevirtual |
Reimplemented from EcalHitResponse.
Definition at line 178 of file EBHitResponse.cc.
References CaloVHitFilter::accepts(), apdParameters(), apdSignalAmplitude(), EcalHitResponse::hitFilter(), hit::id, edm::isNotFinite(), PCaloHit::kEcalDepthIdMask, m_apdNpeVec, m_apdOnly, m_apdTimeVec, and EcalHitResponse::putAnalogSignal().
Referenced by counter.Counter::register().
|
private |
Definition at line 63 of file EBHitResponse.cc.
References cms::cuda::assert(), and m_apdPars.
Referenced by add(), apdSignalAmplitude(), finalizeHits(), initialize(), and run().
|
private |
Definition at line 68 of file EBHitResponse.cc.
References cms::cuda::assert(), and m_apdShape.
Referenced by putAPDSignal().
|
private |
Definition at line 103 of file EBHitResponse.cc.
References apdParameters(), cms::cuda::assert(), findIntercalibConstant(), hit::id, PCaloHit::kEcalDepthIdMask, m_apdOnly, m_intercal, APDSimParameters::simToPEHigh(), and APDSimParameters::simToPELow().
|
overridevirtual |
Reimplemented from EcalHitResponse.
Definition at line 163 of file EBHitResponse.cc.
References apdParameters(), EBDetId::detIdFromDenseIndex(), mps_fire::i, EBDetId::kSizeForDenseIndexing, m_apdNpeVec, m_apdOnly, m_apdTimeVec, and putAPDSignal().
|
private |
Definition at line 131 of file EBHitResponse.cc.
References EcalCondObjectContainer< T >::getMap(), m_intercal, and DetId::rawId().
Referenced by apdSignalAmplitude().
void EBHitResponse::initialize | ( | CLHEP::HepRandomEngine * | engine | ) |
Definition at line 56 of file EBHitResponse.cc.
References apdParameters(), mps_fire::i, kNOffsets, m_isInitialized, and m_timeOffVec.
|
overridevirtual |
Reimplemented from EcalHitResponse.
Definition at line 151 of file EBHitResponse.cc.
References EcalHitResponse::blankOutUsedSamples(), relativeConstraints::empty, EcalHitResponse::index(), EBDetId::kSizeForDenseIndexing, m_apdNpeVec, and m_apdTimeVec.
|
inlinevirtual |
Definition at line 32 of file EBHitResponse.h.
|
inlineprivate |
|
inlineprivate |
Definition at line 68 of file EBHitResponse.h.
References HCALHighEnergyHPDFilter_cfi::energy, pcon, pcub, plin, and pqua.
Referenced by nonlFunc().
|
inlineprivate |
Definition at line 62 of file EBHitResponse.h.
References m_timeOffVec.
Referenced by putAPDSignal().
|
overridevirtual |
Implements EcalHitResponse.
Definition at line 247 of file EBHitResponse.cc.
References mps_fire::i, and m_vSam.
|
overridevirtual |
Implements EcalHitResponse.
Definition at line 249 of file EBHitResponse.cc.
References mps_fire::i, and m_vSam.
|
protected |
Definition at line 73 of file EBHitResponse.cc.
References apdShape(), newFWLiteAna::bin, EcalHitResponse::BUNCHSPACE, Exception, EcalHitResponse::findSignal(), kNOffsets, m_isInitialized, nonlFunc(), offsets(), EcalHitResponse::params(), EcalHitResponse::phaseShift(), mps_fire::result, ntuplemaker::time, EcalHitResponse::timeOfFlight(), and tzero.
Referenced by finalizeHits(), and run().
|
overridevirtual |
Reimplemented from EcalHitResponse.
Definition at line 197 of file EBHitResponse.cc.
References CaloVHitFilter::accepts(), apdParameters(), apdSignalAmplitude(), EcalHitResponse::blankOutUsedSamples(), EBDetId::detIdFromDenseIndex(), relativeConstraints::empty, EcalHitResponse::hitFilter(), hfClusterShapes_cfi::hits, mps_fire::i, hit::id, EcalHitResponse::index(), edm::isNotFinite(), PCaloHit::kEcalDepthIdMask, EBDetId::kSizeForDenseIndexing, m_apdNpeVec, m_apdOnly, m_apdTimeVec, EcalHitResponse::maxBunch(), EcalHitResponse::minBunch(), EcalHitResponse::putAnalogSignal(), and putAPDSignal().
|
overridevirtual |
|
overrideprotectedvirtual |
void EBHitResponse::setIntercal | ( | const EcalIntercalibConstantsMC * | ical | ) |
|
overrideprotectedvirtual |
Implements EcalHitResponse.
Definition at line 251 of file EBHitResponse.cc.
References mps_fire::i, and m_vSam.
|
overrideprotectedvirtual |
Implements EcalHitResponse.
Definition at line 255 of file EBHitResponse.cc.
References mps_fire::i, and m_vSam.
|
overrideprotectedvirtual |
Implements EcalHitResponse.
Definition at line 253 of file EBHitResponse.cc.
References mps_fire::i, and m_vSam.
|
private |
Definition at line 89 of file EBHitResponse.h.
Referenced by add(), finalizeHits(), initializeHits(), and run().
|
private |
Definition at line 82 of file EBHitResponse.h.
Referenced by add(), apdSignalAmplitude(), finalizeHits(), and run().
|
private |
Definition at line 83 of file EBHitResponse.h.
Referenced by apdParameters().
|
private |
Definition at line 84 of file EBHitResponse.h.
Referenced by apdShape().
|
private |
Definition at line 90 of file EBHitResponse.h.
Referenced by add(), finalizeHits(), initializeHits(), and run().
|
private |
Definition at line 85 of file EBHitResponse.h.
Referenced by apdSignalAmplitude(), findIntercalibConstant(), and setIntercal().
|
private |
Definition at line 96 of file EBHitResponse.h.
Referenced by initialize(), and putAPDSignal().
|
private |
Definition at line 87 of file EBHitResponse.h.
Referenced by initialize(), and offsets().
|
private |
Definition at line 94 of file EBHitResponse.h.
Referenced by EBHitResponse(), operator[](), samplesSize(), samplesSizeAll(), vSam(), and vSamAll().
|
private |
Definition at line 92 of file EBHitResponse.h.
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc1().
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc1().
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc().
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc().
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc().
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc().
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc1().
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc().
|
private |
Definition at line 92 of file EBHitResponse.h.
Referenced by nonlFunc1().