#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 | accumulate (const PHGCSimAccumulator &simAccumulator) |
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 () |
~HGCDigitizer () | |
Static Public Member Functions | |
static bool | orderByDetIdThenTime (const HGCCaloHitTuple_t &a, const HGCCaloHitTuple_t &b) |
Private Member Functions | |
uint32_t | getType () const |
bool | getWeight (std::array< float, 3 > &tdcForToAOnset, float &keV2fC) const |
void | resetSimHitDataAccumulator () |
Private Attributes | |
std::array< double, 3 > | averageOccupancies_ |
double | bxTime_ |
std::vector< float > | cce_ |
std::string | digiCollection_ |
int | digitizationType_ |
double | ev_per_eh_pair_ |
int | geometryType_ |
const HcalGeometry * | gHcal_ |
const HGCalGeometry * | gHGCal_ |
std::string | hitCollection_ |
std::map< uint32_t, std::vector< std::pair< float, float > > > | hitRefs_bx0 |
int | maxSimHitsAccTime_ |
DetId::Detector | myDet_ |
ForwardSubdetector | mySubDet_ |
uint32_t | nEvents_ |
bool | premixStage1_ |
double | premixStage1MaxCharge_ |
double | premixStage1MinCharge_ |
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 29 of file HGCDigitizer.h.
typedef std::tuple<int,uint32_t,float> HGCDigitizer::HGCCaloHitTuple_t |
Definition at line 37 of file HGCDigitizer.h.
HGCDigitizer::HGCDigitizer | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 180 of file HGCDigitizer.cc.
References bxTime_, cce_, edm::ConsumesCollector::consumes(), digiCollection_, digitizationType_, geometryType_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, hitCollection_, maxSimHitsAccTime_, myDet_, mySubDet_, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, AlCaHLTBitMon_QueryRunRegistry::string, edm::swap(), groupFilesInBlocks::temp, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, tofDelay_, validIds_, and verbosity_.
|
inline |
Definition at line 34 of file HGCDigitizer.h.
void HGCDigitizer::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
handle SimHit accumulation
Definition at line 302 of file HGCDigitizer.cc.
References Exception, edm::Event::getByLabel(), gHcal_, gHGCal_, hitCollection_, hfClusterShapes_cfi::hits, and edm::HandleBase::isValid().
Referenced by HGCDigiProducer::accumulate(), accumulate(), PreMixingHGCalWorker::addPileups(), PreMixingHGCalWorker::addSignals(), and orderByDetIdThenTime().
void HGCDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 324 of file HGCDigitizer.cc.
References accumulate(), PileUpEventPrincipal::bunchCrossing(), Exception, PileUpEventPrincipal::getByLabel(), gHcal_, gHGCal_, hitCollection_, hfClusterShapes_cfi::hits, and edm::HandleBase::isValid().
void HGCDigitizer::accumulate | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const GEOM * | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 347 of file HGCDigitizer.cc.
References begin, bxTime_, cce_, ALCARECOTkAlJpsiMuMu_cff::charge, TauDecayModes::dec, relativeConstraints::empty, end, f, plotBeamSpotDB::first, getWeight(), hitRefs_bx0, mps_fire::i, triggerObjects_cff::id, createfilelist::int, hgcalDigitizer_cfi::keV2fC, orderByDetIdThenTime(), producesEEDigis(), refSpeed_, edm::second(), simHitAccumulator_, findQualityFiles::size, tofDelay_, validIds_, and verbosity_.
void HGCDigitizer::accumulate | ( | const PHGCSimAccumulator & | simAccumulator | ) |
Definition at line 481 of file HGCDigitizer.cc.
References f, getWeight(), hgcalDigitizer_cfi::keV2fC, premixStage1MaxCharge_, premixStage1MinCharge_, and simHitAccumulator_.
void HGCDigitizer::beginRun | ( | const edm::EventSetup & | es | ) |
actions at the start/end of run
Definition at line 490 of file HGCDigitizer.cc.
References Exception, relativeConstraints::geom, geometryType_, edm::EventSetup::get(), CaloGeometry::getSubdetectorGeometry(), gHcal_, gHGCal_, DetId::Hcal, HcalEndcap, hitCollection_, myDet_, mySubDet_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), validIds_, and verbosity_.
Referenced by PreMixingHGCalWorker::beginRun(), HGCDigiProducer::beginRun(), and geometryType().
|
inline |
Definition at line 76 of file HGCDigitizer.h.
References digiCollection_.
Referenced by finalizeEvent(), HGCDigiProducer::HGCDigiProducer(), and PreMixingHGCalWorker::PreMixingHGCalWorker().
void HGCDigitizer::endRun | ( | ) |
Definition at line 528 of file HGCDigitizer.cc.
References edm::swap(), and validIds_.
Referenced by PreMixingHGCalWorker::endRun(), HGCDigiProducer::endRun(), and geometryType().
void HGCDigitizer::finalizeEvent | ( | edm::Event & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 252 of file HGCDigitizer.cc.
References averageOccupancies_, digiCollection(), digitizationType_, getType(), gHcal_, gHGCal_, hitRefs_bx0, training_settings::idx, eostools::move(), nEvents_, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), edm::Event::put(), simHitAccumulator_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, and validIds_.
Referenced by HGCDigiProducer::finalizeEvent(), orderByDetIdThenTime(), and PreMixingHGCalWorker::put().
|
inline |
Definition at line 77 of file HGCDigitizer.h.
References beginRun(), endRun(), geometryType_, getType(), getWeight(), and hgcalDigitizer_cfi::keV2fC.
|
private |
Definition at line 543 of file HGCDigitizer.cc.
References geometryType_, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, training_settings::idx, SiStripPI::max, myDet_, and mySubDet_.
Referenced by finalizeEvent(), geometryType(), and initializeEvent().
|
private |
Definition at line 578 of file HGCDigitizer.cc.
References relativeConstraints::geom, geometryType_, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, hfClusterShapes_cfi::hits, myDet_, mySubDet_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, and theHGCHEfrontDigitizer_.
Referenced by accumulate(), and geometryType().
void HGCDigitizer::initializeEvent | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) |
actions at the start/end of event
Definition at line 244 of file HGCDigitizer.cc.
References averageOccupancies_, getType(), training_settings::idx, simHitAccumulator_, and validIds_.
Referenced by HGCDigiProducer::initializeEvent(), and orderByDetIdThenTime().
|
inlinestatic |
Definition at line 38 of file HGCDigitizer.h.
References accumulate(), EnergyCorrector::c, MillePedeFileConverter_cfg::e, finalizeEvent(), relativeConstraints::geom, hfClusterShapes_cfi::hits, and initializeEvent().
Referenced by accumulate().
|
inline |
Definition at line 70 of file HGCDigitizer.h.
References DetId::HGCalEE, HGCEE, myDet_, and mySubDet_.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
inline |
Definition at line 74 of file HGCDigitizer.h.
References DetId::HGCalHSc, HGCHEB, myDet_, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
inline |
Definition at line 72 of file HGCDigitizer.h.
References DetId::HGCalHSi, HGCHEF, myDet_, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
private |
Definition at line 534 of file HGCDigitizer.cc.
References simHitAccumulator_.
|
private |
Definition at line 137 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 109 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 140 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 91 of file HGCDigitizer.h.
Referenced by digiCollection(), and HGCDigitizer().
|
private |
Definition at line 97 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 109 of file HGCDigitizer.h.
|
private |
Definition at line 94 of file HGCDigitizer.h.
Referenced by beginRun(), geometryType(), getType(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 121 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
private |
Definition at line 120 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
private |
Definition at line 91 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and HGCDigitizer().
|
private |
Definition at line 142 of file HGCDigitizer.h.
Referenced by accumulate(), and finalizeEvent().
|
private |
Definition at line 108 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 124 of file HGCDigitizer.h.
Referenced by beginRun(), getType(), getWeight(), HGCDigitizer(), producesEEDigis(), producesHEbackDigis(), and producesHEfrontDigis().
|
private |
Definition at line 125 of file HGCDigitizer.h.
Referenced by beginRun(), getType(), getWeight(), HGCDigitizer(), producesEEDigis(), producesHEbackDigis(), and producesHEfrontDigis().
|
private |
Definition at line 138 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 100 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 105 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 103 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 131 of file HGCDigitizer.h.
Referenced by accumulate().
|
private |
Definition at line 110 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), initializeEvent(), and resetSimHitDataAccumulator().
|
private |
Definition at line 114 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 115 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 116 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 134 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 119 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), endRun(), finalizeEvent(), HGCDigitizer(), and initializeEvent().
|
private |
Definition at line 128 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and HGCDigitizer().