#include <EcalSignalGenerator.h>
Public Types | |
typedef std::unordered_map < uint32_t, double > | CalibCache |
typedef ECALDIGITIZERTRAITS::DigiCollection | COLLECTION |
typedef ECALDIGITIZERTRAITS::Digi | DIGI |
Public Member Functions | |
EcalSignalGenerator () | |
EcalSignalGenerator (edm::ConsumesCollector &cc, const edm::InputTag &inputTag, const double EBs25notCont, const double EEs25notCont, const double peToABarrel, const double peToAEndcap, const bool timeDependent=false) | |
virtual void | fill (edm::ModuleCallingContext const *mcc) |
void | initializeEvent (const edm::Event *event, const edm::EventSetup *eventSetup) |
void | initializeEvent (const edm::EventPrincipal *eventPrincipal, const edm::EventSetup *eventSetup) |
some users use EventPrincipals, not Events. We support both More... | |
~EcalSignalGenerator () override | |
Public Member Functions inherited from EcalBaseSignalGenerator | |
EcalBaseSignalGenerator () | |
~EcalBaseSignalGenerator () override | |
Public Member Functions inherited from CaloVNoiseSignalGenerator | |
CaloVNoiseSignalGenerator () | |
bool | contains (const DetId &detId) const |
void | fillEvent (CLHEP::HepRandomEngine *) |
fill theNoiseSignals with one event's worth of noise, in units of pe More... | |
void | fillEvent () |
void | getNoiseSignals (std::vector< CaloSamples > &noiseSignals) |
void | setNoiseSignals (const std::vector< CaloSamples > &noiseSignals) |
virtual | ~CaloVNoiseSignalGenerator () |
Private Types | |
enum | { NBITS = 12, MAXADC = 4095, ADCGAINSWITCH = 4079, NGAINS = 3 } |
Private Member Functions | |
void | fillNoiseSignals () override |
void | fillNoiseSignals (CLHEP::HepRandomEngine *) override |
double | findLaserConstant_LC (const DetId &detId) const |
double | findLaserConstant_LC_prime (const DetId &detId) const |
double | fullScaleEnergy (const DetId &detId) const |
const std::vector< float > | GetGainRatios (const DetId &detid) |
double | peToAConversion (const DetId &detId) const |
CaloSamples | samplesInPE (const DIGI &digi) |
bool | validDigi (const DIGI &digi) |
Additional Inherited Members | |
Protected Attributes inherited from CaloVNoiseSignalGenerator | |
std::vector< CaloSamples > | theNoiseSignals |
Definition at line 55 of file EcalSignalGenerator.h.
typedef std::unordered_map<uint32_t, double> EcalSignalGenerator< ECALDIGITIZERTRAITS >::CalibCache |
Definition at line 60 of file EcalSignalGenerator.h.
typedef ECALDIGITIZERTRAITS::DigiCollection EcalSignalGenerator< ECALDIGITIZERTRAITS >::COLLECTION |
Definition at line 58 of file EcalSignalGenerator.h.
typedef ECALDIGITIZERTRAITS::Digi EcalSignalGenerator< ECALDIGITIZERTRAITS >::DIGI |
Definition at line 57 of file EcalSignalGenerator.h.
|
private |
|
inline |
Definition at line 62 of file EcalSignalGenerator.h.
|
inline |
Definition at line 64 of file EcalSignalGenerator.h.
|
inlineoverride |
Definition at line 97 of file EcalSignalGenerator.h.
|
inlinevirtual |
Definition at line 201 of file EcalSignalGenerator.h.
Referenced by PreMixingEcalWorker::addPileups().
|
inlineoverrideprivatevirtual |
|
inlineoverrideprivatevirtual |
if you want to fill signals on demand, override this subclass is responsible for clearing theNoiseSignals before adding
Implements CaloVNoiseSignalGenerator.
Definition at line 245 of file EcalSignalGenerator.h.
|
inlineprivate |
Definition at line 259 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EEDigitizerTraits >::samplesInPE().
|
inlineprivate |
Definition at line 266 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EEDigitizerTraits >::samplesInPE().
|
inlineprivate |
Definition at line 284 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EEDigitizerTraits >::samplesInPE().
|
inlineprivate |
Definition at line 271 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EEDigitizerTraits >::samplesInPE().
|
inline |
Definition at line 99 of file EcalSignalGenerator.h.
Referenced by PreMixingEcalWorker::addPileups().
|
inline |
some users use EventPrincipals, not Events. We support both
Definition at line 152 of file EcalSignalGenerator.h.
|
inlineprivate |
Definition at line 286 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EEDigitizerTraits >::samplesInPE().
|
private |
Referenced by EcalSignalGenerator< EEDigitizerTraits >::fill().
|
inlineprivate |
Definition at line 235 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::fill().
|
private |
Definition at line 324 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 309 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 312 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 310 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), and EcalSignalGenerator< ESDigitizerTraits >::samplesInPE().
|
private |
Definition at line 311 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 313 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), and EcalSignalGenerator< ESDigitizerTraits >::samplesInPE().
|
private |
Definition at line 325 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EBDigitizerTraits >::samplesInPE().
|
private |
Definition at line 292 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 315 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 316 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 295 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 297 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 296 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 303 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 290 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 291 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
|
private |
Definition at line 331 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::findLaserConstant_LC(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 332 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::findLaserConstant_LC_prime(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 294 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::EcalSignalGenerator(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 293 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::EcalSignalGenerator(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 321 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::fullScaleEnergy(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 322 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::fullScaleEnergy(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 318 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::peToAConversion().
|
private |
Definition at line 319 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::peToAConversion().
|
private |
Definition at line 327 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::EcalSignalGenerator(), EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EEDigitizerTraits >::samplesInPE().
|
private |
Definition at line 307 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::fill().
|
private |
Definition at line 329 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EBDigitizerTraits >::samplesInPE().
|
private |
Definition at line 330 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), and EcalSignalGenerator< EBDigitizerTraits >::samplesInPE().
|
private |
Definition at line 334 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::EcalSignalGenerator(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
these fields are set in initializeEvent()
Definition at line 300 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::fill(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
Definition at line 301 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::fill(), and EcalSignalGenerator< EEDigitizerTraits >::initializeEvent().
|
private |
these come from the ParameterSet
Definition at line 306 of file EcalSignalGenerator.h.
Referenced by EcalSignalGenerator< EEDigitizerTraits >::fill().