#include <HGCDigitizer.h>
Public Types | |
typedef std::tuple< int, uint32_t, float > | HGCCaloHitTuple_t |
Public Member Functions | |
void | accumulate (edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre) |
handle SimHit accumulation More... | |
void | accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre) |
template<typename GEOM > | |
void | accumulate (edm::Handle< edm::PCaloHitContainer > const &hits, int bxCrossing, const GEOM *geom, CLHEP::HepRandomEngine *hre) |
void | beginRun (const edm::EventSetup &es) |
actions at the start/end of run More... | |
std::string | digiCollection () |
void | endRun () |
void | finalizeEvent (edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre) |
HGCDigitizer (const edm::ParameterSet &ps, edm::ConsumesCollector &iC) | |
void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) |
actions at the start/end of event More... | |
bool | producesEEDigis () |
bool | producesHEbackDigis () |
bool | producesHEfrontDigis () |
~HGCDigitizer () | |
Static Public Member Functions | |
static bool | orderByDetIdThenTime (const HGCCaloHitTuple_t &a, const HGCCaloHitTuple_t &b) |
Private Member Functions | |
void | resetSimHitDataAccumulator () |
Private Attributes | |
std::array< double, 3 > | averageOccupancies_ |
double | bxTime_ |
std::string | digiCollection_ |
int | digitizationType_ |
double | ev_per_eh_pair_ |
const HcalGeometry * | gHcal_ |
const HGCalGeometry * | gHGCal_ |
std::string | hitCollection_ |
int | maxSimHitsAccTime_ |
ForwardSubdetector | mySubDet_ |
uint32_t | nEvents_ |
float | refSpeed_ |
std::unique_ptr< hgc::HGCSimHitDataAccumulator > | simHitAccumulator_ |
std::unique_ptr< HGCEEDigitizer > | theHGCEEDigitizer_ |
std::unique_ptr< HGCHEbackDigitizer > | theHGCHEbackDigitizer_ |
std::unique_ptr< HGCHEfrontDigitizer > | theHGCHEfrontDigitizer_ |
float | tofDelay_ |
std::unordered_set< DetId > | validIds_ |
uint32_t | verbosity_ |
Definition at line 28 of file HGCDigitizer.h.
typedef std::tuple<int,uint32_t,float> HGCDigitizer::HGCCaloHitTuple_t |
Definition at line 36 of file HGCDigitizer.h.
HGCDigitizer::HGCDigitizer | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 97 of file HGCDigitizer.cc.
References bxTime_, edm::ConsumesCollector::consumes(), digiCollection_, digitizationType_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HGCEE, HGCHEB, HGCHEF, hitCollection_, maxSimHitsAccTime_, mySubDet_, AlCaHLTBitMon_QueryRunRegistry::string, edm::swap(), theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, tofDelay_, validIds_, and verbosity_.
|
inline |
Definition at line 33 of file HGCDigitizer.h.
void HGCDigitizer::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
handle SimHit accumulation
Definition at line 212 of file HGCDigitizer.cc.
References Exception, edm::Event::getByLabel(), gHcal_, gHGCal_, hitCollection_, hfClusterShapes_cfi::hits, and edm::HandleBase::isValid().
Referenced by accumulate(), and orderByDetIdThenTime().
void HGCDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 234 of file HGCDigitizer.cc.
References accumulate(), PileUpEventPrincipal::bunchCrossing(), Exception, PileUpEventPrincipal::getByLabel(), gHcal_, gHGCal_, hitCollection_, hfClusterShapes_cfi::hits, and edm::HandleBase::isValid().
void HGCDigitizer::accumulate | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const GEOM * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 257 of file HGCDigitizer.cc.
References bxTime_, ALCARECOTkAlJpsiMuMu_cff::charge, TauDecayModes::dec, f, HGCEE, HGCHEB, HGCHEF, i, createfilelist::int, hgcalDigitizer_cfi::keV2fC, mySubDet_, orderByDetIdThenTime(), producesEEDigis(), refSpeed_, simHitAccumulator_, HGCalUncalibRecHit_cfi::tdcOnset, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, tofDelay_, validIds_, and verbosity_.
void HGCDigitizer::beginRun | ( | const edm::EventSetup & | es | ) |
actions at the start/end of run
Definition at line 377 of file HGCDigitizer.cc.
References Exception, DetId::Forward, relativeConstraints::geom, edm::EventSetup::get(), CaloGeometry::getSubdetectorGeometry(), gHcal_, gHGCal_, DetId::Hcal, HcalEndcap, HGCEE, HGCHEF, hitCollection_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), validIds_, and verbosity_.
Referenced by digiCollection().
|
inline |
Definition at line 70 of file HGCDigitizer.h.
References beginRun(), digiCollection_, and endRun().
Referenced by finalizeEvent().
void HGCDigitizer::endRun | ( | ) |
Definition at line 409 of file HGCDigitizer.cc.
References edm::swap(), and validIds_.
Referenced by digiCollection().
void HGCDigitizer::finalizeEvent | ( | edm::Event & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 156 of file HGCDigitizer.cc.
References averageOccupancies_, digiCollection(), digitizationType_, gHcal_, gHGCal_, HGCEE, HGCHEB, HGCHEF, training_settings::idx, hpstanc_transforms::max, eostools::move(), mySubDet_, nEvents_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), edm::Event::put(), simHitAccumulator_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, and validIds_.
Referenced by orderByDetIdThenTime().
void HGCDigitizer::initializeEvent | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) |
actions at the start/end of event
Definition at line 135 of file HGCDigitizer.cc.
References averageOccupancies_, HGCEE, HGCHEB, HGCHEF, training_settings::idx, hpstanc_transforms::max, mySubDet_, simHitAccumulator_, and validIds_.
Referenced by orderByDetIdThenTime().
|
inlinestatic |
Definition at line 37 of file HGCDigitizer.h.
References accumulate(), EnergyCorrector::c, MillePedeFileConverter_cfg::e, finalizeEvent(), relativeConstraints::geom, hfClusterShapes_cfi::hits, and initializeEvent().
Referenced by accumulate().
|
inline |
Definition at line 67 of file HGCDigitizer.h.
References HGCEE, and mySubDet_.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
inline |
Definition at line 69 of file HGCDigitizer.h.
References HGCHEB, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
inline |
Definition at line 68 of file HGCDigitizer.h.
References HGCHEF, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
private |
Definition at line 415 of file HGCDigitizer.cc.
References relativeConstraints::geom, hfClusterShapes_cfi::hits, and simHitAccumulator_.
|
private |
Definition at line 115 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 88 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 81 of file HGCDigitizer.h.
Referenced by digiCollection(), and HGCDigitizer().
|
private |
Definition at line 84 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 88 of file HGCDigitizer.h.
|
private |
Definition at line 100 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
private |
Definition at line 99 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
private |
Definition at line 81 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and HGCDigitizer().
|
private |
Definition at line 87 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 103 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), HGCDigitizer(), initializeEvent(), producesEEDigis(), producesHEbackDigis(), and producesHEfrontDigis().
|
private |
Definition at line 116 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 109 of file HGCDigitizer.h.
Referenced by accumulate().
|
private |
Definition at line 89 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), initializeEvent(), and resetSimHitDataAccumulator().
|
private |
Definition at line 93 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 94 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 95 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 112 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 98 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), endRun(), finalizeEvent(), HGCDigitizer(), and initializeEvent().
|
private |
Definition at line 106 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and HGCDigitizer().