#include <MixingModule.h>
Public Types | |
typedef std::vector< DigiAccumulatorMixMod * > | Accumulators |
Public Types inherited from edm::stream::EDProducer< GlobalCache< MixingCache::Config > > | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Public Member Functions | |
void | accumulateEvent (Event const &event, EventSetup const &setup) |
void | accumulateEvent (PileUpEventPrincipal const &event, EventSetup const &setup, edm::StreamID const &) |
virtual void | beginJob () |
virtual void | beginLuminosityBlock (LuminosityBlock const &l1, EventSetup const &c) override |
virtual void | beginRun (Run const &r1, EventSetup const &c) override |
virtual void | endLuminosityBlock (LuminosityBlock const &l1, EventSetup const &c) override |
virtual void | endRun (Run const &r1, EventSetup const &c) override |
void | finalizeEvent (Event &event, EventSetup const &setup) override |
void | initializeEvent (Event const &event, EventSetup const &setup) override |
MixingModule (const edm::ParameterSet &ps, MixingCache::Config const *globalConf) | |
virtual void | reload (const edm::EventSetup &) override |
virtual | ~MixingModule () |
Public Member Functions inherited from edm::BMixingModule | |
virtual void | addPileups (const int bcr, EventPrincipal *ep, unsigned int eventId, unsigned int worker, const edm::EventSetup &c) |
double | averageNumber () const |
virtual void | beginLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &setup) override |
virtual void | beginRun (const edm::Run &r, const edm::EventSetup &setup) override |
BMixingModule (const edm::ParameterSet &ps, MixingCache::Config const *globalConf) | |
virtual void | endLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &setup) override |
virtual void | endRun (const edm::Run &r, const edm::EventSetup &setup) override |
virtual void | finalizeEvent (edm::Event &event, const edm::EventSetup &setup) |
virtual void | initializeEvent (const edm::Event &event, const edm::EventSetup &setup) |
bool | poisson () const |
virtual void | produce (edm::Event &e1, const edm::EventSetup &c) override |
virtual void | setBcrOffset () |
virtual void | setSourceOffset (const unsigned int s) |
virtual | ~BMixingModule () |
Public Member Functions inherited from edm::stream::EDProducer< GlobalCache< MixingCache::Config > > | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Member Functions | |
virtual void | addSignals (const edm::Event &e, const edm::EventSetup &es) override |
virtual void | branchesActivate (const std::string &friendlyName, const std::string &subdet, InputTag &tag, std::string &label) |
virtual void | checkSignal (const edm::Event &e) override |
void | createDigiAccumulators (const edm::ParameterSet &mixingPSet, edm::ConsumesCollector &iC) |
virtual void | createnewEDProduct () override |
virtual void | doPileUp (edm::Event &e, const edm::EventSetup &es) override |
void | pileAllWorkers (EventPrincipal const &ep, ModuleCallingContext const *, int bcr, int id, int &offset, const edm::EventSetup &setup, edm::StreamID const &) |
virtual void | put (edm::Event &e, const edm::EventSetup &es) override |
Private Attributes | |
std::vector< AdjusterBase * > | adjusters_ |
std::vector< AdjusterBase * > | adjustersObjects_ |
Accumulators | digiAccumulators_ |
InputTag | inputTagPlayback_ |
bool | mixProdStep1_ |
bool | mixProdStep2_ |
CrossingFramePlaybackInfoNew * | playbackInfo_ |
bool | useCurrentProcessOnly_ |
std::vector< std::string > | wantedBranches_ |
std::vector< MixingWorkerBase * > | workers_ |
std::vector< MixingWorkerBase * > | workersObjects_ |
bool | wrapLongTimes_ |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::BMixingModule | |
static void | globalEndJob (MixingCache::Config *) |
static std::unique_ptr< MixingCache::Config > | initializeGlobalCache (edm::ParameterSet const &) |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::BMixingModule | |
virtual void | beginStream (edm::StreamID) override |
void | dropUnwantedBranches (std::vector< std::string > const &wantedBranches) |
virtual void | endStream () override |
void | setupPileUpEvent (const edm::EventSetup &setup) |
void | update (edm::EventSetup const &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Protected Attributes inherited from edm::BMixingModule | |
int | bunchSpace_ |
bool | checktof_ |
bool | doit_ [4] |
unsigned int | eventId_ |
std::vector< std::shared_ptr< PileUp > > | inputSources_ |
int | maxBunch_ |
int | minBunch_ |
bool const | mixProdStep1_ |
bool const | mixProdStep2_ |
edm::ESWatcher< MixingRcd > | parameterWatcher_ |
bool | playback_ |
bool | readDB_ |
std::vector< float > | TrueNumInteractions_ |
int | vertexOffset_ |
Static Protected Attributes inherited from edm::BMixingModule | |
static const unsigned int | maxNbSources_ =4 |
Definition at line 49 of file MixingModule.h.
typedef std::vector<DigiAccumulatorMixMod*> edm::MixingModule::Accumulators |
Definition at line 51 of file MixingModule.h.
|
explicit |
standard constructor
Definition at line 41 of file MixingModule.cc.
References adjustersObjects_, edm::binary_search_all(), MicroEventContent_cff::branch, branchesActivate(), edm::BMixingModule::bunchSpace_, edm::EDConsumerBase::consumesCollector(), createDigiAccumulators(), DigiHGCalTB160_cff::crossingFrames, edm::BMixingModule::dropUnwantedBranches(), edm::InputTag::encode(), edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, cuy::ii, inputTagPlayback_, edm::InputTag::instance(), edm::InputTag::kSkipCurrentProcess, diffTwoXMLs::label, LogDebug, DigiHGCalTB160_cff::makeCrossingFrame, edm::BMixingModule::maxBunch_, edm::BMixingModule::maxNbSources_, edm::BMixingModule::minBunch_, mixProdStep1_, mixProdStep2_, cscdqm::h::names, edm::BMixingModule::playback_, muonDTDigis_cfi::pset, edm::sort_all(), AlCaHLTBitMon_QueryRunRegistry::string, fireworks::subdets, GlobalPosition_Frontier_DevDB_cff::tag, useCurrentProcessOnly_, wantedBranches_, workersObjects_, and wrapLongTimes_.
|
virtual |
Default destructor
Definition at line 292 of file MixingModule.cc.
References adjustersObjects_, digiAccumulators_, and workersObjects_.
void MixingModule::accumulateEvent | ( | edm::Event const & | event, |
edm::EventSetup const & | setup | ||
) |
Definition at line 593 of file MixingModule.cc.
References digiAccumulators_.
Referenced by addSignals(), beginJob(), and pileAllWorkers().
void MixingModule::accumulateEvent | ( | PileUpEventPrincipal const & | event, |
edm::EventSetup const & | setup, | ||
edm::StreamID const & | streamID | ||
) |
Definition at line 600 of file MixingModule.cc.
References digiAccumulators_.
|
overrideprivatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 306 of file MixingModule.cc.
References accumulateEvent(), edm::EventBase::id(), cuy::ii, LogDebug, and workers_.
Referenced by beginJob().
|
inlinevirtual |
Definition at line 59 of file MixingModule.h.
References accumulateEvent(), addSignals(), beginLuminosityBlock(), beginRun(), branchesActivate(), EnergyCorrector::c, checkSignal(), createDigiAccumulators(), createnewEDProduct(), doPileUp(), MillePedeFileConverter_cfg::e, endLuminosityBlock(), endRun(), finalizeEvent(), edm::friendlyname::friendlyName(), initializeEvent(), diffTwoXMLs::label, PFRecoTauDiscriminationByIsolation_cfi::offset, pileAllWorkers(), put(), diffTwoXMLs::r1, reload(), GeneralSetup::setup(), AlCaHLTBitMon_QueryRunRegistry::string, and GlobalPosition_Frontier_DevDB_cff::tag.
|
overridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 571 of file MixingModule.cc.
References edm::BMixingModule::beginLuminosityBlock(), and digiAccumulators_.
Referenced by beginJob().
|
overridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 557 of file MixingModule.cc.
References edm::BMixingModule::beginRun(), and digiAccumulators_.
Referenced by beginJob().
|
privatevirtual |
Definition at line 251 of file MixingModule.cc.
References EgammaHLTValidationUtils::getProcessName(), edm::InputTag::instance(), edm::InputTag::label(), modifiedElectrons_cfi::processName, AlCaHLTBitMon_QueryRunRegistry::string, useCurrentProcessOnly_, and wantedBranches_.
Referenced by beginJob(), and MixingModule().
|
overrideprivatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 265 of file MixingModule.cc.
References adjusters_, adjustersObjects_, workers_, and workersObjects_.
Referenced by beginJob().
|
private |
Definition at line 222 of file MixingModule.cc.
References digiAccumulators_, edm::ParameterSet::existsAs(), edm::DigiAccumulatorMixModFactory::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), edm::ParameterSet::getParameterSet(), edm::DigiAccumulatorMixModFactory::makeDigiAccumulator(), and muonDTDigis_cfi::pset.
Referenced by beginJob(), and MixingModule().
|
overrideprivatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 282 of file MixingModule.cc.
References cuy::ii, edm::BMixingModule::maxBunch_, edm::BMixingModule::maxNbSources_, edm::BMixingModule::minBunch_, playbackInfo_, and workers_.
Referenced by beginJob().
|
overrideprivatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 345 of file MixingModule.cc.
References begin, edm::BMixingModule::bunchSpace_, digiAccumulators_, end, Exception, edm::Event::getByLabel(), CrossingFramePlaybackInfoNew::getEventId(), CrossingFramePlaybackInfoNew::getNumberOfEvents(), CrossingFramePlaybackInfoExtended::getStartEventId(), edm::EventBase::id(), cuy::ii, edm::BMixingModule::inputSources_, inputTagPlayback_, edm::BMixingModule::maxBunch_, edm::BMixingModule::maxNbSources_, edm::BMixingModule::minBunch_, edm::Event::moduleCallingContext(), eostools::move(), pileAllWorkers(), edm::BMixingModule::playback_, playbackInfo_, edm::Event::put(), CrossingFramePlaybackInfoNew::setInfo(), edm::source(), edm::Event::streamID(), edm::BMixingModule::TrueNumInteractions_, mitigatedMETSequence_cff::U, and workers_.
Referenced by beginJob().
|
overridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 578 of file MixingModule.cc.
References digiAccumulators_, and edm::BMixingModule::endLuminosityBlock().
Referenced by beginJob().
|
overridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 564 of file MixingModule.cc.
References digiAccumulators_, and edm::BMixingModule::endRun().
Referenced by beginJob().
|
override |
Definition at line 607 of file MixingModule.cc.
References digiAccumulators_.
Referenced by beginJob().
|
override |
Definition at line 586 of file MixingModule.cc.
References digiAccumulators_.
Referenced by beginJob().
|
private |
Definition at line 317 of file MixingModule.cc.
References accumulateEvent(), adjusters_, edm::BMixingModule::bunchSpace_, edm::EventPrincipal::id(), LogDebug, edm::stream::EDProducerBase::moduleDescription(), and workers_.
Referenced by beginJob(), and doPileUp().
|
overrideprivatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 549 of file MixingModule.cc.
References eostools::move(), playbackInfo_, and edm::Event::put().
Referenced by beginJob().
|
overridevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 238 of file MixingModule.cc.
References MixingModuleConfig::bunchSpace(), edm::BMixingModule::bunchSpace_, mps_alisetup::config, edm::EventSetup::get(), cuy::ii, MixingModuleConfig::maxBunch(), edm::BMixingModule::maxBunch_, MixingModuleConfig::minBunch(), edm::BMixingModule::minBunch_, and workersObjects_.
Referenced by beginJob().
|
private |
Definition at line 95 of file MixingModule.h.
Referenced by checkSignal(), and pileAllWorkers().
|
private |
Definition at line 96 of file MixingModule.h.
Referenced by checkSignal(), MixingModule(), and ~MixingModule().
|
private |
Definition at line 104 of file MixingModule.h.
Referenced by accumulateEvent(), beginLuminosityBlock(), beginRun(), createDigiAccumulators(), doPileUp(), endLuminosityBlock(), endRun(), finalizeEvent(), initializeEvent(), and ~MixingModule().
|
private |
Definition at line 90 of file MixingModule.h.
Referenced by doPileUp(), and MixingModule().
|
private |
Definition at line 92 of file MixingModule.h.
Referenced by MixingModule().
|
private |
Definition at line 91 of file MixingModule.h.
Referenced by MixingModule().
|
private |
Definition at line 93 of file MixingModule.h.
Referenced by createnewEDProduct(), doPileUp(), and put().
|
private |
Definition at line 100 of file MixingModule.h.
Referenced by branchesActivate(), and MixingModule().
|
private |
Definition at line 99 of file MixingModule.h.
Referenced by branchesActivate(), and MixingModule().
|
private |
Definition at line 97 of file MixingModule.h.
Referenced by addSignals(), checkSignal(), createnewEDProduct(), doPileUp(), and pileAllWorkers().
|
private |
Definition at line 98 of file MixingModule.h.
Referenced by checkSignal(), MixingModule(), reload(), and ~MixingModule().
|
private |
Definition at line 101 of file MixingModule.h.
Referenced by MixingModule().