#include <MixingModule.h>
Public Types | |
typedef std::vector < DigiAccumulatorMixMod * > | Accumulators |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
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) |
void | initializeEvent (Event const &event, EventSetup const &setup) |
MixingModule (const edm::ParameterSet &ps) | |
virtual void | reload (const edm::EventSetup &) |
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 |
BMixingModule (const edm::ParameterSet &ps) | |
virtual void | getEventStartInfo (edm::Event &e, const unsigned int source) |
bool | poisson () const |
virtual void | produce (edm::Event &e1, const edm::EventSetup &c) override |
virtual void | setBcrOffset () |
virtual void | setEventStartInfo (const unsigned int s) |
virtual void | setSourceOffset (const unsigned int s) |
virtual | ~BMixingModule () |
Public Member Functions inherited from edm::one::EDProducer< edm::one::SharedResources, edm::one::WatchRuns, edm::one::WatchLuminosityBlocks > | |
EDProducer ()=default | |
Public Member Functions inherited from edm::one::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
virtual void | addSignals (const edm::Event &e, const edm::EventSetup &es) |
virtual void | branchesActivate (const std::string &friendlyName, const std::string &subdet, InputTag &tag, std::string &label) |
virtual void | checkSignal (const edm::Event &e) |
void | createDigiAccumulators (const edm::ParameterSet &mixingPSet, edm::ConsumesCollector &iC) |
virtual void | createnewEDProduct () |
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) |
Private Attributes | |
std::vector< AdjusterBase * > | adjusters_ |
std::vector< AdjusterBase * > | adjustersObjects_ |
Accumulators | digiAccumulators_ |
InputTag | inputTagPlayback_ |
bool | mixProdStep1_ |
bool | mixProdStep2_ |
CrossingFramePlaybackInfoExtended * | playbackInfo_ |
bool | useCurrentProcessOnly_ |
std::vector< std::string > | wantedBranches_ |
std::vector< MixingWorkerBase * > | workers_ |
std::vector< MixingWorkerBase * > | workersObjects_ |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::BMixingModule | |
void | dropUnwantedBranches (std::vector< std::string > const &wantedBranches) |
virtual void | endJob () override |
void | setupPileUpEvent (const edm::EventSetup &setup) |
void | update (edm::EventSetup const &) |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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< boost::shared_ptr < PileUp > > | inputSources_ |
int | maxBunch_ |
int | minBunch_ |
bool const | mixProdStep1_ |
bool const | mixProdStep2_ |
edm::ESWatcher< MixingRcd > | parameterWatcher_ |
bool | playback_ |
bool | readDB_ |
std::vector< std::string > | sourceNames_ |
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 36 of file MixingModule.cc.
References adjustersObjects_, edm::binary_search_all(), branchesActivate(), edm::BMixingModule::bunchSpace_, edm::EDConsumerBase::consumesCollector(), createDigiAccumulators(), edm::BMixingModule::dropUnwantedBranches(), edm::InputTag::encode(), edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), edm::ParameterSet::getUntrackedParameter(), cuy::ii, inputTagPlayback_, edm::InputTag::instance(), edm::InputTag::kSkipCurrentProcess, diffTwoXMLs::label, LogDebug, edm::BMixingModule::maxBunch_, edm::BMixingModule::maxNbSources_, edm::BMixingModule::minBunch_, mixProdStep1_, mixProdStep2_, cscdqm::h::names, edm::BMixingModule::playback_, edm::sort_all(), AlCaHLTBitMon_QueryRunRegistry::string, subdets, GlobalPosition_Frontier_DevDB_cff::tag, o2o::tags, useCurrentProcessOnly_, wantedBranches_, and workersObjects_.
|
virtual |
Default destructor
Definition at line 270 of file MixingModule.cc.
References adjustersObjects_, digiAccumulators_, and workersObjects_.
void MixingModule::accumulateEvent | ( | edm::Event const & | event, |
edm::EventSetup const & | setup | ||
) |
Definition at line 501 of file MixingModule.cc.
References digiAccumulators_.
Referenced by addSignals(), and pileAllWorkers().
void MixingModule::accumulateEvent | ( | PileUpEventPrincipal const & | event, |
edm::EventSetup const & | setup, | ||
edm::StreamID const & | streamID | ||
) |
Definition at line 508 of file MixingModule.cc.
References digiAccumulators_.
|
privatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 284 of file MixingModule.cc.
References accumulateEvent(), edm::EventBase::id(), cuy::ii, LogDebug, and workers_.
|
inlinevirtual |
|
overridevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 479 of file MixingModule.cc.
References edm::BMixingModule::beginLuminosityBlock(), and digiAccumulators_.
|
overridevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 465 of file MixingModule.cc.
References edm::BMixingModule::beginRun(), and digiAccumulators_.
|
privatevirtual |
Definition at line 229 of file MixingModule.cc.
References EgammaHLTValidationUtils::getProcessName(), edm::InputTag::instance(), edm::InputTag::label(), AlCaHLTBitMon_QueryRunRegistry::string, useCurrentProcessOnly_, and wantedBranches_.
Referenced by MixingModule().
|
privatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 243 of file MixingModule.cc.
References adjusters_, adjustersObjects_, workers_, and workersObjects_.
|
private |
Definition at line 203 of file MixingModule.cc.
References digiAccumulators_, edm::DigiAccumulatorMixModFactory::get(), edm::ParameterSet::getParameterNames(), edm::ParameterSet::getParameterSet(), and edm::DigiAccumulatorMixModFactory::makeDigiAccumulator().
Referenced by MixingModule().
|
privatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 260 of file MixingModule.cc.
References cuy::ii, edm::BMixingModule::maxBunch_, edm::BMixingModule::maxNbSources_, edm::BMixingModule::minBunch_, playbackInfo_, and workers_.
|
overrideprivatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 321 of file MixingModule.cc.
References digiAccumulators_, edm::hlt::Exception, edm::Event::getByLabel(), edm::EventBase::id(), cuy::ii, edm::BMixingModule::inputSources_, inputTagPlayback_, edm::BMixingModule::maxBunch_, edm::BMixingModule::maxNbSources_, edm::BMixingModule::minBunch_, edm::Event::moduleCallingContext(), pileAllWorkers(), edm::BMixingModule::playback_, playbackInfo_, edm::Event::put(), CrossingFramePlaybackInfoExtended::setStartEventId(), edm::source(), edm::Event::streamID(), edm::BMixingModule::TrueNumInteractions_, and workers_.
|
overridevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 486 of file MixingModule.cc.
References digiAccumulators_, and edm::BMixingModule::endLuminosityBlock().
|
overridevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 472 of file MixingModule.cc.
References digiAccumulators_, and edm::BMixingModule::endRun().
|
virtual |
Reimplemented from edm::BMixingModule.
Definition at line 515 of file MixingModule.cc.
References digiAccumulators_.
|
virtual |
Reimplemented from edm::BMixingModule.
Definition at line 494 of file MixingModule.cc.
References digiAccumulators_.
|
private |
Definition at line 295 of file MixingModule.cc.
References accumulateEvent(), adjusters_, edm::BMixingModule::bunchSpace_, edm::EventPrincipal::id(), LogDebug, edm::one::EDProducerBase::moduleDescription(), and workers_.
Referenced by doPileUp().
|
privatevirtual |
Reimplemented from edm::BMixingModule.
Definition at line 457 of file MixingModule.cc.
References playbackInfo_, and edm::Event::put().
|
virtual |
Reimplemented from edm::BMixingModule.
Definition at line 216 of file MixingModule.cc.
References edm::BMixingModule::bunchSpace_, HDQMDatabaseProducer::config, edm::EventSetup::get(), cuy::ii, edm::BMixingModule::maxBunch_, edm::BMixingModule::minBunch_, and workersObjects_.
|
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 103 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().