#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) |
void | accumulate (edm::Handle< edm::PCaloHitContainer > const &hits, int bxCrossing, const HGCalGeometry *geom, CLHEP::HepRandomEngine *hre) |
void | accumulate_forPreMix (edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre) |
void | accumulate_forPreMix (PileUpEventPrincipal 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 (const PHGCSimAccumulator &simAccumulator, const bool minbiasFlag) |
std::string | digiCollection () |
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 ()=default | |
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_ |
const double | bxTime_ |
std::vector< float > | cce_ |
const std::string | digiCollection_ |
const int | digitizationType_ |
double | ev_per_eh_pair_ |
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | geomToken_ |
edm::ESWatcher< CaloGeometryRecord > | geomWatcher_ |
const HGCalGeometry * | gHGCal_ = nullptr |
const std::string | hitCollection_ |
std::unordered_map< uint32_t, bool > | hitOrder_monitor |
std::unordered_map< uint32_t, std::vector< std::pair< float, float > > > | hitRefs_bx0 |
const std::string | hitsProducer_ |
const edm::EDGetTokenT< std::vector< PCaloHit > > | hitToken_ |
const int | maxSimHitsAccTime_ |
uint32_t | nEvents_ |
std::unordered_map< uint32_t, std::vector< std::tuple< float, float, float > > > | PhitRefs_bx0 |
const bool | premixStage1_ |
const double | premixStage1MaxCharge_ |
const double | premixStage1MinCharge_ |
std::unique_ptr< hgc::HGCPUSimHitDataAccumulator > | pusimHitAccumulator_ |
std::unique_ptr< hgc::HGCSimHitDataAccumulator > | simHitAccumulator_ |
std::unique_ptr< HGCDigitizerBase > | theDigitizer_ |
const float | tofDelay_ |
std::unordered_set< DetId > | validIds_ |
const uint32_t | verbosity_ |
Static Private Attributes | |
static const unsigned int | maxBx_ = 14 |
static const unsigned int | thisBx_ = 9 |
Definition at line 29 of file HGCDigitizer.h.
typedef std::tuple<int, uint32_t, float> HGCDigitizer::HGCCaloHitTuple_t |
Definition at line 35 of file HGCDigitizer.h.
HGCDigitizer::HGCDigitizer | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 227 of file HGCDigitizer.cc.
References cce_, get, edm::ParameterSet::getParameter(), crabTemplate::pluginName, AlCaHLTBitMon_QueryRunRegistry::string, edm::swap(), groupFilesInBlocks::temp, and theDigitizer_.
|
default |
void HGCDigitizer::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
handle SimHit accumulation
Definition at line 360 of file HGCDigitizer.cc.
References MillePedeFileConverter_cfg::e, Exception, gHGCal_, hitCollection_, hfClusterShapes_cfi::hits, hitsProducer_, and hitToken_.
Referenced by HGCDigiProducer::accumulate(), and accumulate().
void HGCDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 399 of file HGCDigitizer.cc.
References accumulate(), MillePedeFileConverter_cfg::e, Exception, gHGCal_, hitCollection_, hfClusterShapes_cfi::hits, and hitsProducer_.
void HGCDigitizer::accumulate | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const HGCalGeometry * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 541 of file HGCDigitizer.cc.
References bxTime_, ALCARECOTkAlJpsiMuMu_cff::charge, TauDecayModes::dec, relativeConstraints::empty, mps_fire::end, f, dqmdumpme::first, relativeConstraints::geom, hitRefs_bx0, hfClusterShapes_cfi::hits, mps_fire::i, l1ctLayer2EG_cff::id, createfilelist::int, dqmiolumiharvest::j, hgceeDigitizer_cfi::keV2fC, maxBx_, orderByDetIdThenTime(), nano_mu_digi_cff::rawId, edm::second(), simHitAccumulator_, findQualityFiles::size, jetUpdater_cfi::sort, theDigitizer_, thisBx_, tofDelay_, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, validIds_, trackerHitRTTI::vector, and verbosity_.
void HGCDigitizer::accumulate_forPreMix | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 339 of file HGCDigitizer.cc.
References MillePedeFileConverter_cfg::e, Exception, gHGCal_, hitCollection_, hfClusterShapes_cfi::hits, hitsProducer_, and hitToken_.
Referenced by HGCDigiProducer::accumulate(), accumulate_forPreMix(), PreMixingHGCalWorker::addPileups(), and PreMixingHGCalWorker::addSignals().
void HGCDigitizer::accumulate_forPreMix | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 378 of file HGCDigitizer.cc.
References accumulate_forPreMix(), MillePedeFileConverter_cfg::e, Exception, gHGCal_, hitCollection_, hfClusterShapes_cfi::hits, and hitsProducer_.
void HGCDigitizer::accumulate_forPreMix | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const HGCalGeometry * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 422 of file HGCDigitizer.cc.
References bxTime_, ALCARECOTkAlJpsiMuMu_cff::charge, relativeConstraints::empty, mps_fire::end, f, relativeConstraints::geom, hgceeDigitizer_cfi::hitCollection, hfClusterShapes_cfi::hits, mps_fire::i, l1ctLayer2EG_cff::id, createfilelist::int, dqmiolumiharvest::j, hgceeDigitizer_cfi::keV2fC, maxBx_, orderByDetIdThenTime(), PhitRefs_bx0, push_back(), pusimHitAccumulator_, nano_mu_digi_cff::rawId, jetUpdater_cfi::sort, theDigitizer_, thisBx_, tofDelay_, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, and validIds_.
void HGCDigitizer::accumulate_forPreMix | ( | const PHGCSimAccumulator & | simAccumulator, |
const bool | minbiasFlag | ||
) |
Definition at line 685 of file HGCDigitizer.cc.
References gHGCal_, hitOrder_monitor, hitRefs_bx0, premixStage1MaxCharge_, premixStage1MinCharge_, pusimHitAccumulator_, simHitAccumulator_, theDigitizer_, and thisBx_.
|
private |
Definition at line 735 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 OfflinePrimaryVertices_cfi::zrange.
Referenced by finalizeEvent().
|
inline |
Definition at line 76 of file HGCDigitizer.h.
References digiCollection_.
Referenced by finalizeEvent(), HGCDigiProducer::HGCDigiProducer(), and PreMixingHGCalWorker::PreMixingHGCalWorker().
void HGCDigitizer::finalizeEvent | ( | edm::Event & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 295 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 714 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 265 of file HGCDigitizer.cc.
References averageOccupancies_, edm::ESWatcher< T >::check(), Exception, relativeConstraints::geom, geomToken_, geomWatcher_, edm::EventSetup::getData(), getType(), gHGCal_, hitCollection_, heavyIonCSV_trainingSettings::idx, pusimHitAccumulator_, simHitAccumulator_, edm::swap(), theDigitizer_, validIds_, and verbosity_.
Referenced by PreMixingHGCalWorker::initializeEvent(), and HGCDigiProducer::initializeEvent().
|
inlinestatic |
Definition at line 36 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
|
private |
Definition at line 707 of file HGCDigitizer.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and simHitAccumulator_.
|
private |
Definition at line 125 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 99 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 131 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 84 of file HGCDigitizer.h.
Referenced by digiCollection().
|
private |
Definition at line 87 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 100 of file HGCDigitizer.h.
|
private |
Definition at line 113 of file HGCDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 114 of file HGCDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 116 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), checkPosition(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 102 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and initializeEvent().
|
private |
Definition at line 134 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 132 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 101 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 103 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
staticprivate |
Definition at line 129 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 98 of file HGCDigitizer.h.
|
private |
Definition at line 126 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 133 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 90 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 95 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 93 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 82 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 81 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), finalizeEvent(), initializeEvent(), and resetSimHitDataAccumulator().
|
private |
Definition at line 110 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), finalizeEvent(), getType(), HGCDigitizer(), and initializeEvent().
|
staticprivate |
Definition at line 130 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 122 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 115 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 119 of file HGCDigitizer.h.
Referenced by accumulate(), and initializeEvent().