|
void | addSignals (const edm::Event &e, const edm::EventSetup &ES) override |
|
void | beginLuminosityBlock (LuminosityBlock const &l1, EventSetup const &c) override |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &eventSetup) override |
|
void | checkSignal (const edm::Event &e) override |
|
void | createnewEDProduct () override |
|
void | doPileUp (edm::Event &e, const edm::EventSetup &ES) override |
|
void | endLuminosityBlock (LuminosityBlock const &l1, EventSetup const &c) override |
|
void | endRun (const edm::Run &r, const edm::EventSetup &setup) override |
|
void | initializeEvent (edm::Event const &e, edm::EventSetup const &eventSetup) override |
|
| PreMixingModule (const edm::ParameterSet &ps, MixingCache::Config const *globalConf) |
|
void | put (edm::Event &e, const edm::EventSetup &ES) override |
|
| ~PreMixingModule () override=default |
|
virtual void | addPileups (const int bcr, EventPrincipal *ep, unsigned int eventId, unsigned int worker, const edm::EventSetup &c) |
|
double | averageNumber () const |
|
void | beginLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &setup) override |
|
void | beginRun (const edm::Run &r, const edm::EventSetup &setup) override |
|
| BMixingModule (const edm::ParameterSet &ps, MixingCache::Config const *globalConf) |
|
void | endLuminosityBlock (const edm::LuminosityBlock &l, const edm::EventSetup &setup) override |
|
void | endRun (const edm::Run &r, const edm::EventSetup &setup) override |
|
virtual void | finalizeEvent (edm::Event &event, const edm::EventSetup &setup) |
|
bool | poisson () const |
|
void | produce (edm::Event &e1, const edm::EventSetup &c) override |
|
void | registerLateConsumes (eventsetup::ESRecordsToProxyIndices const &) override |
|
virtual void | reload (const edm::EventSetup &setup) |
|
virtual void | setBcrOffset () |
|
virtual void | setSourceOffset (const unsigned int s) |
|
| ~BMixingModule () override |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
const EDProducer & | operator= (const EDProducer &)=delete |
|
Definition at line 39 of file PreMixingModule.cc.
Reimplemented from edm::BMixingModule.
Definition at line 231 of file PreMixingModule.cc.
References MillePedeFileConverter_cfg::e, Exception, edm::BMixingModule::inputSources_, edm::BMixingModule::maxBunch_, edm::BMixingModule::maxNbSources_, edm::BMixingModule::minBunch_, pileupAdjusters_, pileWorker(), edm::source(), edm::BMixingModule::TrueNumInteractions_, w(), and workers_.
234 std::vector<edm::SecondaryEventIDAndFileInfo> recordEventID;
235 std::vector<int> PileupList;
238 ModuleCallingContext
const* mcc =
e.moduleCallingContext();
240 AdjustPileupDistribution
const* pileupAdjuster =
nullptr;
247 [iRun =
e.id().run()](
const auto& elem) {
return elem.firstRun() <= iRun; });
249 throw cms::Exception(
"LogicError") <<
"Encountered run " <<
e.id().run()
250 <<
", but the first run available in the pileup adjustment configuration is " 251 <<
pileupAdjusters_.front().firstRun() <<
". Please fix the configuration.";
253 pileupAdjuster = &*it;
257 for (
unsigned int isource = 0; isource <
maxNbSources_; ++isource) {
265 int NumPU_Events = 0;
267 NumPU_Events = PileupList[bunchCrossing -
minBunch_];
274 w->initializeBunchCrossing(
e, ES, bunchCrossing);
286 w->finalizeBunchCrossing(
e, ES, bunchCrossing);
static std::string const source("source")
bool pileWorker(const edm::EventPrincipal &, int bcr, int EventId, const edm::EventSetup &ES, ModuleCallingContext const *, AdjustPileupDistribution const *pileupAdjuster)
static const unsigned int maxNbSources_
std::vector< float > TrueNumInteractions_
std::vector< std::shared_ptr< PileUp > > inputSources_
std::vector< std::unique_ptr< PreMixingWorker > > workers_
std::vector< AdjustPileupDistribution > pileupAdjusters_