#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 100 of file HGCDigitizer.cc.
References bxTime_, edm::ConsumesCollector::consumes(), digiCollection_, digitizationType_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HGCEE, HGCHEB, HGCHEF, hitCollection_, HLT_FULL_cff::InputTag, 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 215 of file HGCDigitizer.cc.
References Exception, edm::Event::getByLabel(), gHcal_, gHGCal_, hitCollection_, and edm::HandleBase::isValid().
Referenced by accumulate().
void HGCDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 237 of file HGCDigitizer.cc.
References accumulate(), PileUpEventPrincipal::bunchCrossing(), Exception, PileUpEventPrincipal::getByLabel(), gHcal_, gHGCal_, hitCollection_, and edm::HandleBase::isValid().
void HGCDigitizer::accumulate | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const GEOM * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 260 of file HGCDigitizer.cc.
References bxTime_, RecoTauCleanerPlugins::charge, TauDecayModes::dec, f, HGCEE, HGCHEB, HGCHEF, i, mySubDet_, orderByDetIdThenTime(), producesEEDigis(), refSpeed_, simHitAccumulator_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, tofDelay_, validIds_, and verbosity_.
void HGCDigitizer::beginRun | ( | const edm::EventSetup & | es | ) |
actions at the start/end of run
Definition at line 380 of file HGCDigitizer.cc.
References Exception, DetId::Forward, relativeConstraints::geom, edm::EventSetup::get(), gHcal_, gHGCal_, DetId::Hcal, HcalEndcap, HGCEE, HGCHEF, hitCollection_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), validIds_, and verbosity_.
|
inline |
Definition at line 70 of file HGCDigitizer.h.
References digiCollection_.
Referenced by finalizeEvent().
void HGCDigitizer::endRun | ( | ) |
void HGCDigitizer::finalizeEvent | ( | edm::Event & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 159 of file HGCDigitizer.cc.
References averageOccupancies_, digiCollection(), digitizationType_, gHcal_, gHGCal_, HGCEE, HGCHEB, HGCHEF, bookConverter::max, eostools::move(), mySubDet_, nEvents_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), edm::Event::put(), simHitAccumulator_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, and validIds_.
void HGCDigitizer::initializeEvent | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) |
actions at the start/end of event
Definition at line 138 of file HGCDigitizer.cc.
References averageOccupancies_, HGCEE, HGCHEB, HGCHEF, bookConverter::max, mySubDet_, simHitAccumulator_, and validIds_.
|
inlinestatic |
|
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 418 of file HGCDigitizer.cc.
References 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().