#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 (edm::Handle< edm::PCaloHitContainer > const &hits, int bxCrossing, const HGCalGeometry *geom, CLHEP::HepRandomEngine *hre) |
void | accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre) |
void | accumulate_forPreMix (const PHGCSimAccumulator &simAccumulator, const bool minbiasFlag) |
void | accumulate_forPreMix (edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre) |
void | accumulate_forPreMix (edm::Handle< edm::PCaloHitContainer > const &hits, int bxCrossing, const HGCalGeometry *geom, CLHEP::HepRandomEngine *hre) |
void | accumulate_forPreMix (PileUpEventPrincipal const &e, edm::EventSetup const &c, 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... | |
~HGCDigitizer () | |
Static Public Member Functions | |
static bool | orderByDetIdThenTime (const HGCCaloHitTuple_t &a, const HGCCaloHitTuple_t &b) |
Private Member Functions | |
void | checkPosition (const HGCalDigiCollection *digis) const |
uint32_t | getType () const |
void | resetPUSimHitDataAccumulator () |
void | resetSimHitDataAccumulator () |
Private Attributes | |
std::array< double, 4 > | averageOccupancies_ |
double | bxTime_ |
std::vector< float > | cce_ |
std::string | digiCollection_ |
int | digitizationType_ |
double | ev_per_eh_pair_ |
const HGCalGeometry * | gHGCal_ |
std::string | hitCollection_ |
std::unordered_map< uint32_t, bool > | hitOrder_monitor |
std::unordered_map< uint32_t, std::vector< std::pair< float, float > > > | hitRefs_bx0 |
int | maxSimHitsAccTime_ |
uint32_t | nEvents_ |
std::unordered_map< uint32_t, std::vector< std::tuple< float, float, float > > > | PhitRefs_bx0 |
bool | premixStage1_ |
double | premixStage1MaxCharge_ |
double | premixStage1MinCharge_ |
std::unique_ptr< hgc::HGCPUSimHitDataAccumulator > | pusimHitAccumulator_ |
float | refSpeed_ |
std::unique_ptr< hgc::HGCSimHitDataAccumulator > | simHitAccumulator_ |
std::unique_ptr< HGCDigitizerBase > | theDigitizer_ |
float | tofDelay_ |
std::unordered_set< DetId > | validIds_ |
uint32_t | verbosity_ |
Static Private Attributes | |
static const unsigned int | maxBx_ = 14 |
static const unsigned int | thisBx_ = 9 |
Definition at line 27 of file HGCDigitizer.h.
typedef std::tuple<int, uint32_t, float> HGCDigitizer::HGCCaloHitTuple_t |
Definition at line 33 of file HGCDigitizer.h.
HGCDigitizer::HGCDigitizer | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 233 of file HGCDigitizer.cc.
References bxTime_, cce_, edm::ConsumesCollector::consumes(), digiCollection_, digitizationType_, get, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hitCollection_, HLT_FULL_cff::InputTag, maxSimHitsAccTime_, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::temp, theDigitizer_, tofDelay_, validIds_, and verbosity_.
|
inline |
Definition at line 30 of file HGCDigitizer.h.
void HGCDigitizer::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
handle SimHit accumulation
Definition at line 345 of file HGCDigitizer.cc.
References MillePedeFileConverter_cfg::e, Exception, gHGCal_, hitCollection_, and hfClusterShapes_cfi::hits.
Referenced by HGCDigiProducer::accumulate(), and accumulate().
void HGCDigitizer::accumulate | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const HGCalGeometry * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 525 of file HGCDigitizer.cc.
References bxTime_, ALCARECOTkAlJpsiMuMu_cff::charge, TauDecayModes::dec, relativeConstraints::empty, mps_fire::end, f, first, relativeConstraints::geom, hitRefs_bx0, hfClusterShapes_cfi::hits, mps_fire::i, triggerObjects_cff::id, createfilelist::int, dqmiolumiharvest::j, hgcalTriggerNtuples_cfi::keV2fC, maxBx_, orderByDetIdThenTime(), refSpeed_, edm::second(), simHitAccumulator_, findQualityFiles::size, jetUpdater_cfi::sort, theDigitizer_, thisBx_, tofDelay_, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, validIds_, trackerHitRTTI::vector, and verbosity_.
void HGCDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 382 of file HGCDigitizer.cc.
References accumulate(), MillePedeFileConverter_cfg::e, Exception, gHGCal_, hitCollection_, and hfClusterShapes_cfi::hits.
void HGCDigitizer::accumulate_forPreMix | ( | const PHGCSimAccumulator & | simAccumulator, |
const bool | minbiasFlag | ||
) |
Definition at line 672 of file HGCDigitizer.cc.
References gHGCal_, hitOrder_monitor, hitRefs_bx0, premixStage1MaxCharge_, premixStage1MinCharge_, pusimHitAccumulator_, simHitAccumulator_, theDigitizer_, and thisBx_.
void HGCDigitizer::accumulate_forPreMix | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 323 of file HGCDigitizer.cc.
References MillePedeFileConverter_cfg::e, Exception, gHGCal_, hitCollection_, and hfClusterShapes_cfi::hits.
Referenced by HGCDigiProducer::accumulate(), accumulate_forPreMix(), PreMixingHGCalWorker::addPileups(), and PreMixingHGCalWorker::addSignals().
void HGCDigitizer::accumulate_forPreMix | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const HGCalGeometry * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 403 of file HGCDigitizer.cc.
References bxTime_, ALCARECOTkAlJpsiMuMu_cff::charge, relativeConstraints::empty, mps_fire::end, f, relativeConstraints::geom, egammaRechitFilter_cfi::hitCollection, hfClusterShapes_cfi::hits, mps_fire::i, triggerObjects_cff::id, createfilelist::int, dqmiolumiharvest::j, hgcalTriggerNtuples_cfi::keV2fC, maxBx_, orderByDetIdThenTime(), PhitRefs_bx0, pusimHitAccumulator_, refSpeed_, jetUpdater_cfi::sort, theDigitizer_, thisBx_, tofDelay_, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, and validIds_.
void HGCDigitizer::accumulate_forPreMix | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 363 of file HGCDigitizer.cc.
References accumulate_forPreMix(), MillePedeFileConverter_cfg::e, Exception, gHGCal_, hitCollection_, and hfClusterShapes_cfi::hits.
void HGCDigitizer::beginRun | ( | const edm::EventSetup & | es | ) |
actions at the start/end of run
Definition at line 694 of file HGCDigitizer.cc.
References Exception, relativeConstraints::geom, edm::EventSetup::get(), get, gHGCal_, hitCollection_, theDigitizer_, validIds_, and verbosity_.
Referenced by PreMixingHGCalWorker::beginRun(), and HGCDigiProducer::beginRun().
|
private |
Definition at line 749 of file HGCDigitizer.cc.
References funct::abs(), HGCalTopology::dddConstants(), TauDecayModes::dec, DetId::Forward, HGCalGeometry::getPosition(), gHGCal_, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, convertSQLiteXML::ok, PV3DBase< T, PVType, FrameType >::perp(), alignCSCRings::r, HGCalDDDConstants::rangeR(), HGCalDDDConstants::rangeZ(), AlCaHLTBitMon_QueryRunRegistry::string, HGCalGeometry::topology(), heppy_batch::val, HGCalTopology::valid(), z, PV3DBase< T, PVType, FrameType >::z(), and TkClusParameters_cff::zrange.
Referenced by finalizeEvent().
|
inline |
Definition at line 74 of file HGCDigitizer.h.
References digiCollection_.
Referenced by finalizeEvent(), HGCDigiProducer::HGCDigiProducer(), and PreMixingHGCalWorker::PreMixingHGCalWorker().
void HGCDigitizer::endRun | ( | ) |
Definition at line 718 of file HGCDigitizer.cc.
References validIds_.
Referenced by PreMixingHGCalWorker::endRun(), and HGCDigiProducer::endRun().
void HGCDigitizer::finalizeEvent | ( | edm::Event & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 279 of file HGCDigitizer.cc.
References averageOccupancies_, checkPosition(), digiCollection(), digitizationType_, MillePedeFileConverter_cfg::e, getType(), gHGCal_, hitOrder_monitor, hitRefs_bx0, heavyIonCSV_trainingSettings::idx, eostools::move(), nEvents_, PhitRefs_bx0, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, pusimHitAccumulator_, simHitAccumulator_, theDigitizer_, and validIds_.
Referenced by HGCDigiProducer::finalizeEvent(), and PreMixingHGCalWorker::put().
|
private |
Definition at line 728 of file HGCDigitizer.cc.
References DetId::Forward, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, heavyIonCSV_trainingSettings::idx, SiStripPI::max, and theDigitizer_.
Referenced by finalizeEvent(), and initializeEvent().
void HGCDigitizer::initializeEvent | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) |
actions at the start/end of event
Definition at line 271 of file HGCDigitizer.cc.
References averageOccupancies_, getType(), heavyIonCSV_trainingSettings::idx, pusimHitAccumulator_, simHitAccumulator_, and validIds_.
Referenced by HGCDigiProducer::initializeEvent().
|
inlinestatic |
Definition at line 34 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
|
private |
Definition at line 721 of file HGCDigitizer.cc.
References simHitAccumulator_.
|
private |
Definition at line 124 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 99 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and HGCDigitizer().
|
private |
Definition at line 130 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 84 of file HGCDigitizer.h.
Referenced by digiCollection(), and HGCDigitizer().
|
private |
Definition at line 87 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 99 of file HGCDigitizer.h.
|
private |
Definition at line 112 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), beginRun(), checkPosition(), and finalizeEvent().
|
private |
Definition at line 84 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), beginRun(), and HGCDigitizer().
|
private |
Definition at line 133 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 131 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and finalizeEvent().
|
staticprivate |
Definition at line 128 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 98 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 125 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 132 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 90 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 95 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 93 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 101 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 118 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 100 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), finalizeEvent(), initializeEvent(), and resetSimHitDataAccumulator().
|
private |
Definition at line 108 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), beginRun(), finalizeEvent(), getType(), and HGCDigitizer().
|
staticprivate |
Definition at line 129 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 121 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and HGCDigitizer().
|
private |
Definition at line 111 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), beginRun(), endRun(), finalizeEvent(), HGCDigitizer(), and initializeEvent().
|
private |
Definition at line 115 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and HGCDigitizer().