#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 () |
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 | resetSimHitDataAccumulator () |
Private Attributes | |
std::array< double, 4 > | 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< HFNoseDigitizer > | theHFNoseDigitizer_ |
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 30 of file HGCDigitizer.h.
typedef std::tuple<int,uint32_t,float> HGCDigitizer::HGCCaloHitTuple_t |
Definition at line 38 of file HGCDigitizer.h.
HGCDigitizer::HGCDigitizer | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 182 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_, maxSimHitsAccTime_, myDet_, mySubDet_, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, AlCaHLTBitMon_QueryRunRegistry::string, edm::swap(), groupFilesInBlocks::temp, theHFNoseDigitizer_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, tofDelay_, validIds_, and verbosity_.
|
inline |
Definition at line 35 of file HGCDigitizer.h.
void HGCDigitizer::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
handle SimHit accumulation
Definition at line 332 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 354 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 377 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 511 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 520 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(), producesHFNoseDigis(), validIds_, and verbosity_.
Referenced by PreMixingHGCalWorker::beginRun(), HGCDigiProducer::beginRun(), and geometryType().
|
private |
Definition at line 673 of file HGCDigitizer.cc.
References funct::abs(), HGCalTopology::dddConstants(), relativeConstraints::geom, geometryType_, HGCalGeometry::getPosition(), gHGCal_, DetId::HGCalHSc, DetId::HGCalHSi, hfClusterShapes_cfi::hits, convertSQLiteXML::ok, PV3DBase< T, PVType, FrameType >::perp(), alignCSCRings::r, HGCalDDDConstants::rangeR(), HGCalDDDConstants::rangeZ(), AlCaHLTBitMon_QueryRunRegistry::string, HGCalGeometry::topology(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by finalizeEvent().
|
inline |
Definition at line 79 of file HGCDigitizer.h.
References digiCollection_.
Referenced by finalizeEvent(), HGCDigiProducer::HGCDigiProducer(), and PreMixingHGCalWorker::PreMixingHGCalWorker().
void HGCDigitizer::endRun | ( | ) |
Definition at line 559 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 259 of file HGCDigitizer.cc.
References averageOccupancies_, checkPosition(), digiCollection(), digitizationType_, getType(), gHcal_, gHGCal_, hitRefs_bx0, training_settings::idx, eostools::move(), nEvents_, premixStage1_, premixStage1MaxCharge_, premixStage1MinCharge_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), producesHFNoseDigis(), edm::Event::put(), simHitAccumulator_, theHFNoseDigitizer_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, and validIds_.
Referenced by HGCDigiProducer::finalizeEvent(), orderByDetIdThenTime(), and PreMixingHGCalWorker::put().
|
inline |
Definition at line 80 of file HGCDigitizer.h.
References beginRun(), endRun(), geometryType_, getType(), getWeight(), and hgcalDigitizer_cfi::keV2fC.
|
private |
Definition at line 574 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(), geometryType(), and initializeEvent().
|
private |
Definition at line 615 of file HGCDigitizer.cc.
References DetId::Forward, geometryType_, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, myDet_, mySubDet_, theHFNoseDigitizer_, 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 251 of file HGCDigitizer.cc.
References averageOccupancies_, getType(), training_settings::idx, simHitAccumulator_, and validIds_.
Referenced by HGCDigiProducer::initializeEvent(), and orderByDetIdThenTime().
|
inlinestatic |
Definition at line 39 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 71 of file HGCDigitizer.h.
References DetId::HGCalEE, HGCEE, myDet_, and mySubDet_.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
inline |
Definition at line 75 of file HGCDigitizer.h.
References DetId::HGCalHSc, HGCHEB, myDet_, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
inline |
Definition at line 73 of file HGCDigitizer.h.
References DetId::HGCalHSi, HGCHEF, myDet_, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
inline |
Definition at line 77 of file HGCDigitizer.h.
References DetId::Forward, HFNose, myDet_, and mySubDet_.
Referenced by beginRun(), and finalizeEvent().
|
private |
Definition at line 565 of file HGCDigitizer.cc.
References simHitAccumulator_.
|
private |
Definition at line 144 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 112 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 147 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 94 of file HGCDigitizer.h.
Referenced by digiCollection(), and HGCDigitizer().
|
private |
Definition at line 100 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 112 of file HGCDigitizer.h.
|
private |
Definition at line 97 of file HGCDigitizer.h.
Referenced by beginRun(), checkPosition(), geometryType(), getType(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 128 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and finalizeEvent().
|
private |
Definition at line 127 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), checkPosition(), and finalizeEvent().
|
private |
Definition at line 94 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and HGCDigitizer().
|
private |
Definition at line 149 of file HGCDigitizer.h.
Referenced by accumulate(), and finalizeEvent().
|
private |
Definition at line 111 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 131 of file HGCDigitizer.h.
Referenced by beginRun(), getType(), getWeight(), HGCDigitizer(), producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), and producesHFNoseDigis().
|
private |
Definition at line 132 of file HGCDigitizer.h.
Referenced by beginRun(), getType(), getWeight(), HGCDigitizer(), producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), and producesHFNoseDigis().
|
private |
Definition at line 145 of file HGCDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 103 of file HGCDigitizer.h.
Referenced by finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 108 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 106 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 138 of file HGCDigitizer.h.
Referenced by accumulate().
|
private |
Definition at line 113 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), initializeEvent(), and resetSimHitDataAccumulator().
|
private |
Definition at line 123 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 120 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 121 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 122 of file HGCDigitizer.h.
Referenced by finalizeEvent(), getWeight(), and HGCDigitizer().
|
private |
Definition at line 141 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 126 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), endRun(), finalizeEvent(), HGCDigitizer(), and initializeEvent().
|
private |
Definition at line 135 of file HGCDigitizer.h.
Referenced by accumulate(), beginRun(), and HGCDigitizer().