#include <HcalSiPMHitResponse.h>
Public Types | |
typedef std::vector< unsigned int > | photonTimeHist |
typedef std::map< DetId, photonTimeHist > | photonTimeMap |
Public Types inherited from CaloHitResponse | |
enum | { BUNCHSPACE =25 } |
typedef std::map< DetId, CaloSamples > | AnalogSignalMap |
Public Member Functions | |
virtual void | add (const PCaloHit &hit, CLHEP::HepRandomEngine *) override |
process a single SimHit More... | |
virtual void | add (const CaloSamples &signal) |
virtual void | addPEnoise (CLHEP::HepRandomEngine *engine) |
virtual void | finalizeHits (CLHEP::HepRandomEngine *) override |
Finalize hits. More... | |
HcalSiPMHitResponse (const CaloVSimParameterMap *parameterMap, const CaloShapes *shapes, bool PreMix1=false) | |
virtual void | initializeHits () override |
Initialize hits. More... | |
virtual CaloSamples | makeBlankSignal (const DetId &detId) const |
virtual void | setDetIds (const std::vector< DetId > &detIds) |
virtual | ~HcalSiPMHitResponse () |
Public Member Functions inherited from CaloHitResponse | |
void | add (const CaloSamples &signal) |
add a signal, in units of pe More... | |
void | addHit (const PCaloHit *hit, CaloSamples &frame) const |
adds the amplitude for a single hit to the frame More... | |
double | analogSignalAmplitude (const DetId &id, float energy, const CaloSimParameters ¶meters, CLHEP::HepRandomEngine *) const |
CaloHitResponse (const CaloVSimParameterMap *parameterMap, const CaloVShape *shape) | |
CaloHitResponse (const CaloVSimParameterMap *parameterMap, const CaloShapes *shapes) | |
void | clear () |
frees up memory More... | |
CaloSamples * | findSignal (const DetId &detId) |
users can look for the signal for a given cell More... | |
virtual bool | keepBlank () const |
virtual CaloSamples | makeAnalogSignal (const PCaloHit &inputHit, CLHEP::HepRandomEngine *) const |
creates the signal corresponding to this hit More... | |
CaloSamples | makeBlankSignal (const DetId &detId) const |
creates an empty signal for this DetId More... | |
int | nSignals () const |
number of signals in the current cache More... | |
virtual void | run (MixCollection< PCaloHit > &hits, CLHEP::HepRandomEngine *) |
Complete cell digitization. More... | |
void | setBunchRange (int minBunch, int maxBunch) |
tells it which pileup bunches to do More... | |
void | setGeometry (const CaloGeometry *geometry) |
geometry needed for time-of-flight More... | |
void | setHitCorrection (const CaloVHitCorrection *hitCorrection) |
If you want to correct hits, for attenuation or delay, set this. More... | |
void | setHitFilter (const CaloVHitFilter *filter) |
if you want to reject hits, for example, from a certain subdetector, set this More... | |
void | setIgnoreGeantTime (bool gt) |
void | setPECorrection (const CaloVPECorrection *peCorrection) |
if you want to correct the photoelectrons More... | |
void | setPhaseShift (const double &thePhaseShift) |
setting the phase shift for asynchronous trigger (e.g. test beams) More... | |
void | setStorePrecise (bool sp) |
double | timeOfFlight (const DetId &detId) const |
bool | withinBunchRange (int bunchCrossing) const |
check if crossing is within bunch range: More... | |
virtual | ~CaloHitResponse () |
doesn't delete the pointers passed in More... | |
Protected Member Functions | |
virtual CaloSamples | makeSiPMSignal (DetId const &id, photonTimeHist const &photons, CLHEP::HepRandomEngine *) |
Private Attributes | |
double | dt |
double | invdt |
int | nbins |
photonTimeMap | precisionTimedPhotons |
bool | PreMixDigis |
const std::vector< DetId > * | theDetIds |
HcalSiPM | theSiPM |
Additional Inherited Members | |
Protected Attributes inherited from CaloHitResponse | |
bool | ignoreTime |
bool | storePrecise |
AnalogSignalMap | theAnalogSignalMap |
const CaloGeometry * | theGeometry |
const CaloVHitCorrection * | theHitCorrection |
const CaloVHitFilter * | theHitFilter |
int | theMaxBunch |
int | theMinBunch |
const CaloVSimParameterMap * | theParameterMap |
const CaloVPECorrection * | thePECorrection |
double | thePhaseShift_ |
const CaloVShape * | theShape |
const CaloShapes * | theShapes |
Definition at line 24 of file HcalSiPMHitResponse.h.
typedef std::vector<unsigned int> HcalSiPMHitResponse::photonTimeHist |
Definition at line 32 of file HcalSiPMHitResponse.h.
typedef std::map< DetId, photonTimeHist > HcalSiPMHitResponse::photonTimeMap |
Definition at line 33 of file HcalSiPMHitResponse.h.
HcalSiPMHitResponse::HcalSiPMHitResponse | ( | const CaloVSimParameterMap * | parameterMap, |
const CaloShapes * | shapes, | ||
bool | PreMix1 = false |
||
) |
Definition at line 20 of file HcalSiPMHitResponse.cc.
|
virtual |
Definition at line 25 of file HcalSiPMHitResponse.cc.
|
overridevirtual |
process a single SimHit
Reimplemented from CaloHitResponse.
Definition at line 68 of file HcalSiPMHitResponse.cc.
References CaloVHitFilter::accepts(), CaloHitResponse::analogSignalAmplitude(), CaloHitResponse::BUNCHSPACE, dt, PCaloHit::energy(), HcalPulseShapes::generatePhotonTime(), PCaloHit::id(), CaloHitResponse::ignoreTime, invdt, edm::isNotFinite(), LogDebug, nbins, interactiveExample::photons, precisionTimedPhotons, CaloVSimParameterMap::simParameters(), findQualityFiles::size, CaloHitResponse::theHitFilter, CaloHitResponse::theParameterMap, CaloHitResponse::thePhaseShift_, PCaloHit::time(), CaloHitResponse::timeOfFlight(), and tzero.
Referenced by finalizeHits(), and counter.Counter::register().
|
virtual |
Definition at line 58 of file HcalSiPMHitResponse.cc.
References CaloHitResponse::findSignal(), CaloSamples::id(), and CaloHitResponse::theAnalogSignalMap.
Referenced by counter.Counter::register().
|
virtual |
Definition at line 121 of file HcalSiPMHitResponse.cc.
References dt, LogDebug, nbins, HcalSimParameters::photoelectronsToAnalog(), interactiveExample::photons, precisionTimedPhotons, CaloSimParameters::readoutFrameSize(), CaloVSimParameterMap::simParameters(), HcalSimParameters::sipmDarkCurrentuA(), theDetIds, and CaloHitResponse::theParameterMap.
Referenced by finalizeHits().
|
overridevirtual |
Finalize hits.
Reimplemented from CaloHitResponse.
Definition at line 31 of file HcalSiPMHitResponse.cc.
References add(), addPEnoise(), i, CaloSamples::id(), keep, CaloHitResponse::keepBlank(), LogDebug, makeSiPMSignal(), precisionTimedPhotons, PreMixDigis, CaloSamples::size(), and findQualityFiles::size.
|
overridevirtual |
Initialize hits.
Reimplemented from CaloHitResponse.
Definition at line 27 of file HcalSiPMHitResponse.cc.
References precisionTimedPhotons.
|
virtual |
Definition at line 166 of file HcalSiPMHitResponse.cc.
References CaloSimParameters::binOfMaximum(), dt, nbins, HLT_FULL_cff::parameters, CaloSimParameters::readoutFrameSize(), mps_fire::result, CaloVSimParameterMap::simParameters(), and CaloHitResponse::theParameterMap.
Referenced by makeSiPMSignal().
|
protectedvirtual |
Definition at line 175 of file HcalSiPMHitResponse.cc.
References HcalSimParameters::doSiPMSmearing(), dt, alignCSCRings::e, HcalSiPM::hitCells(), invdt, LogDebug, makeBlankSignal(), nbins, HcalSimParameters::pixels(), CaloSamples::preciseAtMod(), CaloSamples::preciseSize(), CaloSamples::resetPrecise(), HcalSiPM::setCrossTalk(), HcalSiPM::setNCells(), HcalSiPM::setSaturationPars(), HcalSiPM::setTau(), HcalSimParameters::signalShape(), CaloVSimParameterMap::simParameters(), HcalSimParameters::sipmCrossTalk(), HcalSimParameters::sipmNonlinearity(), HcalSimParameters::sipmTau(), CaloHitResponse::theParameterMap, and theSiPM.
Referenced by finalizeHits().
|
virtual |
Definition at line 250 of file HcalSiPMHitResponse.cc.
References theDetIds.
|
private |
Definition at line 56 of file HcalSiPMHitResponse.h.
Referenced by add(), addPEnoise(), makeBlankSignal(), and makeSiPMSignal().
|
private |
Definition at line 56 of file HcalSiPMHitResponse.h.
Referenced by add(), and makeSiPMSignal().
|
private |
Definition at line 55 of file HcalSiPMHitResponse.h.
Referenced by add(), addPEnoise(), makeBlankSignal(), and makeSiPMSignal().
|
private |
Definition at line 58 of file HcalSiPMHitResponse.h.
Referenced by add(), addPEnoise(), finalizeHits(), and initializeHits().
|
private |
Definition at line 54 of file HcalSiPMHitResponse.h.
Referenced by finalizeHits().
|
private |
Definition at line 60 of file HcalSiPMHitResponse.h.
Referenced by addPEnoise(), and setDetIds().
|
private |
Definition at line 53 of file HcalSiPMHitResponse.h.
Referenced by makeSiPMSignal().