#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 () | |
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 edm::ESGetToken < CaloGeometry, CaloGeometryRecord > | geomToken_ |
edm::ESWatcher < CaloGeometryRecord > | geomWatcher_ |
const HGCalGeometry * | gHGCal_ = nullptr |
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 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 231 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, edm::swap(), groupFilesInBlocks::temp, theDigitizer_, tofDelay_, and verbosity_.
|
inline |
Definition at line 32 of file HGCDigitizer.h.
void HGCDigitizer::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
handle SimHit accumulation
Definition at line 365 of file HGCDigitizer.cc.
References Exception, edm::Event::getByLabel(), gHGCal_, hitCollection_, and edm::HandleBase::isValid().
Referenced by HGCDigiProducer::accumulate(), and accumulate().
void HGCDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 402 of file HGCDigitizer.cc.
References accumulate(), PileUpEventPrincipal::bunchCrossing(), Exception, PileUpEventPrincipal::getByLabel(), gHGCal_, hitCollection_, and edm::HandleBase::isValid().
void HGCDigitizer::accumulate | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const HGCalGeometry * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 545 of file HGCDigitizer.cc.
References SplitLinear::begin, bxTime_, RecoTauCleanerPlugins::charge, TauDecayModes::dec, relativeConstraints::empty, dataset::end, validate-o2o-wbm::f, first, hitRefs_bx0, mps_fire::i, gpuClustering::id, dqmiolumiharvest::j, hgcalTriggerNtuples_cfi::keV2fC, maxBx_, orderByDetIdThenTime(), refSpeed_, edm::second(), simHitAccumulator_, findQualityFiles::size, theDigitizer_, thisBx_, tofDelay_, cuda_std::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 343 of file HGCDigitizer.cc.
References Exception, edm::Event::getByLabel(), gHGCal_, hitCollection_, and edm::HandleBase::isValid().
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 383 of file HGCDigitizer.cc.
References accumulate_forPreMix(), PileUpEventPrincipal::bunchCrossing(), Exception, PileUpEventPrincipal::getByLabel(), gHGCal_, hitCollection_, and edm::HandleBase::isValid().
void HGCDigitizer::accumulate_forPreMix | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const HGCalGeometry * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 423 of file HGCDigitizer.cc.
References SplitLinear::begin, bxTime_, RecoTauCleanerPlugins::charge, relativeConstraints::empty, dataset::end, validate-o2o-wbm::f, reco_application_2006_simpleTBanalysis_cfg::hitCollection, mps_fire::i, gpuClustering::id, dqmiolumiharvest::j, hgcalTriggerNtuples_cfi::keV2fC, maxBx_, orderByDetIdThenTime(), PhitRefs_bx0, push_back(), pusimHitAccumulator_, refSpeed_, theDigitizer_, thisBx_, tofDelay_, cuda_std::upper_bound(), and validIds_.
void HGCDigitizer::accumulate_forPreMix | ( | const PHGCSimAccumulator & | simAccumulator, |
const bool | minbiasFlag | ||
) |
Definition at line 692 of file HGCDigitizer.cc.
References gHGCal_, hitOrder_monitor, hitRefs_bx0, premixStage1MaxCharge_, premixStage1MinCharge_, pusimHitAccumulator_, simHitAccumulator_, theDigitizer_, and thisBx_.
|
private |
Definition at line 742 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(), hgcalPerformanceValidation::val, HGCalTopology::valid(), z, and PV3DBase< T, PVType, FrameType >::z().
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 299 of file HGCDigitizer.cc.
References averageOccupancies_, checkPosition(), digiCollection(), digitizationType_, getType(), gHGCal_, hitOrder_monitor, hitRefs_bx0, eostools::move(), nEvents_, PhitRefs_bx0, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, pusimHitAccumulator_, edm::Event::put(), simHitAccumulator_, theDigitizer_, and validIds_.
Referenced by HGCDigiProducer::finalizeEvent(), and PreMixingHGCalWorker::put().
|
private |
Definition at line 721 of file HGCDigitizer.cc.
References DetId::Forward, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, 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 269 of file HGCDigitizer.cc.
References averageOccupancies_, edm::ESWatcher< T >::check(), Exception, relativeConstraints::geom, geomToken_, geomWatcher_, edm::EventSetup::getData(), CaloGeometry::getSubdetectorGeometry(), getType(), gHGCal_, hitCollection_, 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 714 of file HGCDigitizer.cc.
References simHitAccumulator_.
|
private |
Definition at line 122 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 95 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and HGCDigitizer().
|
private |
Definition at line 128 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 80 of file HGCDigitizer.h.
Referenced by digiCollection(), and HGCDigitizer().
|
private |
Definition at line 83 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 95 of file HGCDigitizer.h.
|
private |
Definition at line 107 of file HGCDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 108 of file HGCDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 110 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), checkPosition(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 80 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), HGCDigitizer(), and initializeEvent().
|
private |
Definition at line 131 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 129 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and finalizeEvent().
|
staticprivate |
Definition at line 126 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 94 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 123 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 130 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 86 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 91 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 89 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 97 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 116 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 96 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), finalizeEvent(), initializeEvent(), and resetSimHitDataAccumulator().
|
private |
Definition at line 104 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), finalizeEvent(), getType(), HGCDigitizer(), and initializeEvent().
|
staticprivate |
Definition at line 127 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 119 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and HGCDigitizer().
|
private |
Definition at line 109 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 113 of file HGCDigitizer.h.
Referenced by accumulate(), HGCDigitizer(), and initializeEvent().