#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... | |
template<typename GEOM > | |
void | accumulate (edm::Handle< edm::PCaloHitContainer > const &hits, int bxCrossing, const GEOM *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) |
template<typename GEOM > | |
void | accumulate_forPreMix (edm::Handle< edm::PCaloHitContainer > const &hits, int bxCrossing, const GEOM *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) |
int | geometryType () |
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 () |
bool | producesHFNoseDigis () |
~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 |
bool | getWeight (std::array< float, 3 > &tdcForToAOnset, float &keV2fC) const |
void | resetPUSimHitDataAccumulator () |
void | resetSimHitDataAccumulator () |
Static Private Attributes | |
static const unsigned int | maxBx_ = 14 |
static const unsigned int | thisBx_ = 9 |
Definition at line 30 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 263 of file HGCDigitizer.cc.
References bxTime_, cce_, edm::ConsumesCollector::consumes(), digiCollection_, digitizationType_, DetId::Forward, geometryType_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, hitCollection_, HLT_2018_cff::InputTag, maxSimHitsAccTime_, myDet_, mySubDet_, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::temp, theHFNoseDigitizer_, 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 438 of file HGCDigitizer.cc.
References MillePedeFileConverter_cfg::e, Exception, gHcal_, gHGCal_, hitCollection_, and hfClusterShapes_cfi::hits.
Referenced by HGCDigiProducer::accumulate(), and accumulate().
void HGCDigitizer::accumulate | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const GEOM * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 563 of file HGCDigitizer.cc.
References begin, bxTime_, ALCARECOTkAlJpsiMuMu_cff::charge, TauDecayModes::dec, relativeConstraints::empty, end, f, dqmdumpme::first, relativeConstraints::geom, getWeight(), hitRefs_bx0, hfClusterShapes_cfi::hits, mps_fire::i, triggerObjects_cff::id, createfilelist::int, dqmiolumiharvest::j, hgcalTriggerNtuples_cfi::keV2fC, maxBx_, orderByDetIdThenTime(), producesEEDigis(), refSpeed_, edm::second(), simHitAccumulator_, findQualityFiles::size, thisBx_, tofDelay_, cuda_std::upper_bound(), validIds_, and verbosity_.
void HGCDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 479 of file HGCDigitizer.cc.
References accumulate(), MillePedeFileConverter_cfg::e, Exception, gHcal_, gHGCal_, hitCollection_, and hfClusterShapes_cfi::hits.
void HGCDigitizer::accumulate_forPreMix | ( | const PHGCSimAccumulator & | simAccumulator, |
const bool | minbiasFlag | ||
) |
Definition at line 714 of file HGCDigitizer.cc.
References f, getWeight(), gHcal_, gHGCal_, hitOrder_monitor, hitRefs_bx0, hgcalTriggerNtuples_cfi::keV2fC, premixStage1MaxCharge_, premixStage1MinCharge_, pusimHitAccumulator_, simHitAccumulator_, and thisBx_.
void HGCDigitizer::accumulate_forPreMix | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 415 of file HGCDigitizer.cc.
References MillePedeFileConverter_cfg::e, Exception, gHcal_, 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 GEOM * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 503 of file HGCDigitizer.cc.
References bxTime_, ALCARECOTkAlJpsiMuMu_cff::charge, f, relativeConstraints::geom, hfClusterShapes_cfi::hits, mps_fire::i, createfilelist::int, hgcalTriggerNtuples_cfi::keV2fC, maxBx_, orderByDetIdThenTime(), pusimHitAccumulator_, refSpeed_, tofDelay_, and validIds_.
void HGCDigitizer::accumulate_forPreMix | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 458 of file HGCDigitizer.cc.
References accumulate_forPreMix(), MillePedeFileConverter_cfg::e, Exception, gHcal_, gHGCal_, hitCollection_, and hfClusterShapes_cfi::hits.
void HGCDigitizer::beginRun | ( | const edm::EventSetup & | es | ) |
actions at the start/end of run
Definition at line 750 of file HGCDigitizer.cc.
References Exception, relativeConstraints::geom, geometryType_, edm::EventSetup::get(), get, gHcal_, gHGCal_, DetId::Hcal, HcalEndcap, hitCollection_, myDet_, mySubDet_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), producesHFNoseDigis(), validIds_, and verbosity_.
Referenced by PreMixingHGCalWorker::beginRun(), and HGCDigiProducer::beginRun().
|
private |
Definition at line 895 of file HGCDigitizer.cc.
References funct::abs(), HGCalTopology::dddConstants(), TauDecayModes::dec, DetId::Forward, geometryType_, 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 85 of file HGCDigitizer.h.
References digiCollection_.
Referenced by finalizeEvent(), HGCDigiProducer::HGCDigiProducer(), and PreMixingHGCalWorker::PreMixingHGCalWorker().
void HGCDigitizer::endRun | ( | ) |
Definition at line 789 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 339 of file HGCDigitizer.cc.
References averageOccupancies_, checkPosition(), digiCollection(), digitizationType_, MillePedeFileConverter_cfg::e, getType(), gHcal_, gHGCal_, hitOrder_monitor, hitRefs_bx0, training_settings::idx, eostools::move(), nEvents_, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), producesHFNoseDigis(), pusimHitAccumulator_, simHitAccumulator_, theHFNoseDigitizer_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, and validIds_.
Referenced by HGCDigiProducer::finalizeEvent(), and PreMixingHGCalWorker::put().
|
inline |
|
private |
Definition at line 799 of file HGCDigitizer.cc.
References DetId::Forward, geometryType_, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, training_settings::idx, SiStripPI::max, myDet_, and mySubDet_.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 839 of file HGCDigitizer.cc.
References DetId::Forward, geometryType_, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, hgcalTriggerNtuples_cfi::keV2fC, myDet_, mySubDet_, theHFNoseDigitizer_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, and theHGCHEfrontDigitizer_.
Referenced by accumulate(), and accumulate_forPreMix().
void HGCDigitizer::initializeEvent | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) |
actions at the start/end of event
Definition at line 331 of file HGCDigitizer.cc.
References averageOccupancies_, getType(), training_settings::idx, pusimHitAccumulator_, simHitAccumulator_, and validIds_.
Referenced by HGCDigiProducer::initializeEvent().
|
inlinestatic |
Definition at line 37 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
inline |
Definition at line 81 of file HGCDigitizer.h.
References DetId::HGCalEE, HGCEE, myDet_, and mySubDet_.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
inline |
Definition at line 83 of file HGCDigitizer.h.
References DetId::HGCalHSc, HGCHEB, myDet_, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
inline |
Definition at line 82 of file HGCDigitizer.h.
References DetId::HGCalHSi, HGCHEF, myDet_, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
inline |
Definition at line 84 of file HGCDigitizer.h.
References DetId::Forward, HFNose, myDet_, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
private |
|
private |
Definition at line 792 of file HGCDigitizer.cc.
References simHitAccumulator_.
|
private |
Definition at line 148 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 115 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and HGCDigitizer().
|
private |
Definition at line 154 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 97 of file HGCDigitizer.h.
Referenced by digiCollection(), and HGCDigitizer().
|
private |
Definition at line 103 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 115 of file HGCDigitizer.h.
|
private |
Definition at line 100 of file HGCDigitizer.h.
Referenced by beginRun(), checkPosition(), geometryType(), getType(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 132 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), beginRun(), and finalizeEvent().
|
private |
Definition at line 131 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), beginRun(), checkPosition(), and finalizeEvent().
|
private |
Definition at line 97 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), beginRun(), and HGCDigitizer().
|
private |
Definition at line 156 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), and finalizeEvent().
|
private |
Definition at line 155 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and finalizeEvent().
|
staticprivate |
Definition at line 152 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 114 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 135 of file HGCDigitizer.h.
Referenced by beginRun(), getType(), getWeight(), HGCDigitizer(), producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), and producesHFNoseDigis().
|
private |
Definition at line 136 of file HGCDigitizer.h.
Referenced by beginRun(), getType(), getWeight(), HGCDigitizer(), producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), and producesHFNoseDigis().
|
private |
Definition at line 149 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 106 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 111 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 109 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 117 of file HGCDigitizer.h.
Referenced by accumulate_forPreMix(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 142 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 116 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), finalizeEvent(), initializeEvent(), and resetSimHitDataAccumulator().
|
private |
Definition at line 127 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 124 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 125 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 126 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
staticprivate |
Definition at line 153 of file HGCDigitizer.h.
Referenced by accumulate(), and accumulate_forPreMix().
|
private |
Definition at line 145 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), and HGCDigitizer().
|
private |
Definition at line 130 of file HGCDigitizer.h.
Referenced by accumulate(), accumulate_forPreMix(), beginRun(), endRun(), finalizeEvent(), HGCDigitizer(), and initializeEvent().
|
private |
Definition at line 139 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and HGCDigitizer().