#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 edm::ESHandle< HGCalGeometry > &geom, 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) |
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 | |
void | resetSimHitDataAccumulator () |
Private Attributes | |
double | bxTime_ |
bool | checkValidDetIds_ |
std::string | digiCollection_ |
int | digitizationType_ |
std::string | hitCollection_ |
int | maxSimHitsAccTime_ |
ForwardSubdetector | mySubDet_ |
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_ |
bool | useAllChannels_ |
uint32_t | verbosity_ |
Definition at line 26 of file HGCDigitizer.h.
typedef std::tuple<int,uint32_t,float> HGCDigitizer::HGCCaloHitTuple_t |
Definition at line 33 of file HGCDigitizer.h.
HGCDigitizer::HGCDigitizer | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 24 of file HGCDigitizer.cc.
References bxTime_, edm::ConsumesCollector::consumes(), digiCollection_, digitizationType_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HGCEE, HGCHEB, HGCHEF, hitCollection_, HLT_FULL_cff::InputTag, maxSimHitsAccTime_, mySubDet_, AlCaHLTBitMon_QueryRunRegistry::string, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, tofDelay_, useAllChannels_, and verbosity_.
|
inline |
Definition at line 31 of file HGCDigitizer.h.
void HGCDigitizer::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
handle SimHit accumulation
Definition at line 92 of file HGCDigitizer.cc.
References relativeConstraints::geom, edm::EventSetup::get(), edm::Event::getByLabel(), hitCollection_, edm::HandleBase::isValid(), producesEEDigis(), producesHEbackDigis(), and producesHEfrontDigis().
Referenced by accumulate().
void HGCDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 113 of file HGCDigitizer.cc.
References accumulate(), PileUpEventPrincipal::bunchCrossing(), relativeConstraints::geom, edm::EventSetup::get(), PileUpEventPrincipal::getByLabel(), hitCollection_, edm::HandleBase::isValid(), producesEEDigis(), producesHEbackDigis(), and producesHEfrontDigis().
void HGCDigitizer::accumulate | ( | edm::Handle< edm::PCaloHitContainer > const & | hits, |
int | bxCrossing, | ||
const edm::ESHandle< HGCalGeometry > & | geom, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 134 of file HGCDigitizer.cc.
References bxTime_, RecoTauCleanerPlugins::charge, checkValidDetIds_, HGCalTopology::dddConstants(), TauDecayModes::dec, HGCalTopology::detectorType(), HGCalDDDConstants::geomMode(), HGCEE, HGCHEB, HGCHEF, hitCollection_, i, edm::HandleBase::id(), edm::ESHandleBase::isValid(), bookConverter::max, mySubDet_, orderByDetIdThenTime(), producesEEDigis(), refSpeed_, simHitAccumulator_, HGCalDDDConstants::simToReco(), Square, theHGCEEDigitizer_, theHGCHEbackDigitizer_, theHGCHEfrontDigitizer_, tofDelay_, HGCalTestNumbering::unpackHexagonIndex(), HGCalTestNumbering::unpackSquareIndex(), useAllChannels_, and verbosity_.
void HGCDigitizer::beginRun | ( | const edm::EventSetup & | es | ) |
|
inline |
Definition at line 66 of file HGCDigitizer.h.
References digiCollection_.
Referenced by finalizeEvent().
void HGCDigitizer::endRun | ( | void | ) |
Definition at line 309 of file HGCDigitizer.cc.
void HGCDigitizer::finalizeEvent | ( | edm::Event & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | hre | ||
) |
Definition at line 66 of file HGCDigitizer.cc.
References digiCollection(), digitizationType_, producesEEDigis(), producesHEbackDigis(), producesHEfrontDigis(), edm::Event::put(), simHitAccumulator_, theHGCEEDigitizer_, theHGCHEbackDigitizer_, and theHGCHEfrontDigitizer_.
void HGCDigitizer::initializeEvent | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) |
actions at the start/end of event
Definition at line 60 of file HGCDigitizer.cc.
References resetSimHitDataAccumulator().
|
inlinestatic |
|
inline |
Definition at line 63 of file HGCDigitizer.h.
References HGCEE, and mySubDet_.
Referenced by accumulate(), and finalizeEvent().
|
inline |
Definition at line 65 of file HGCDigitizer.h.
References HGCHEB, and mySubDet_.
Referenced by accumulate(), and finalizeEvent().
|
inline |
Definition at line 64 of file HGCDigitizer.h.
References HGCHEF, and mySubDet_.
Referenced by accumulate(), and finalizeEvent().
|
private |
Definition at line 314 of file HGCDigitizer.cc.
References simHitAccumulator_.
Referenced by initializeEvent().
|
private |
Definition at line 87 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 77 of file HGCDigitizer.h.
Referenced by accumulate().
|
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 80 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 86 of file HGCDigitizer.h.
Referenced by HGCDigitizer().
|
private |
Definition at line 97 of file HGCDigitizer.h.
Referenced by accumulate(), HGCDigitizer(), producesEEDigis(), producesHEbackDigis(), and producesHEfrontDigis().
|
private |
Definition at line 104 of file HGCDigitizer.h.
Referenced by accumulate().
|
private |
Definition at line 88 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and resetSimHitDataAccumulator().
|
private |
Definition at line 92 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 93 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 94 of file HGCDigitizer.h.
Referenced by accumulate(), finalizeEvent(), and HGCDigitizer().
|
private |
Definition at line 107 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 100 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().
|
private |
Definition at line 101 of file HGCDigitizer.h.
Referenced by accumulate(), and HGCDigitizer().