CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::SecondaryEventProvider Class Reference

#include <SecondaryEventProvider.h>

Public Member Functions

void beginJob (ProductRegistry const &iRegistry, eventsetup::ESRecordsToProxyIndices const &)
 
void beginLuminosityBlock (LuminosityBlockPrincipal &lumi, const edm::EventSetupImpl &setup, ModuleCallingContext const *, StreamContext &sContext)
 
void beginRun (RunPrincipal &run, const edm::EventSetupImpl &setup, ModuleCallingContext const *, StreamContext &sContext)
 
void beginStream (edm::StreamID iID, StreamContext &sContext)
 
void endJob ()
 
void endLuminosityBlock (LuminosityBlockPrincipal &lumi, const edm::EventSetupImpl &setup, ModuleCallingContext const *, StreamContext &sContext)
 
void endRun (RunPrincipal &run, const edm::EventSetupImpl &setup, ModuleCallingContext const *, StreamContext &sContext)
 
void endStream (edm::StreamID iID, StreamContext &sContext)
 
 SecondaryEventProvider (std::vector< ParameterSet > &psets, ProductRegistry &pregistry, std::shared_ptr< ProcessConfiguration > processConfiguration)
 
void setupPileUpEvent (EventPrincipal &ep, const EventSetupImpl &setup, StreamContext &sContext)
 

Private Attributes

std::unique_ptr< ExceptionToActionTableexceptionToActionTable_
 
WorkerManager workerManager_
 

Detailed Description

Definition at line 14 of file SecondaryEventProvider.h.

Constructor & Destructor Documentation

◆ SecondaryEventProvider()

edm::SecondaryEventProvider::SecondaryEventProvider ( std::vector< ParameterSet > &  psets,
ProductRegistry pregistry,
std::shared_ptr< ProcessConfiguration processConfiguration 
)

Definition at line 51 of file SecondaryEventProvider.cc.

References edm::WorkerManager::addToUnscheduledWorkers(), label, muonDTDigis_cfi::pset, edm::ProductRegistry::setUnscheduledProducts(), AlCaHLTBitMon_QueryRunRegistry::string, and workerManager_.

54  : exceptionToActionTable_(new ExceptionToActionTable),
55  workerManager_(std::make_shared<ActivityRegistry>(), *exceptionToActionTable_) {
56  std::vector<std::string> shouldBeUsedLabels;
57  std::set<std::string> unscheduledLabels;
58  const PreallocationConfiguration preallocConfig;
59  for (auto& pset : psets) {
60  std::string label = pset.getParameter<std::string>("@module_label");
62  pset, preg, &preallocConfig, processConfiguration, label, unscheduledLabels, shouldBeUsedLabels);
63  }
64  if (!unscheduledLabels.empty()) {
65  preg.setUnscheduledProducts(unscheduledLabels);
66  }
67  } // SecondaryEventProvider::SecondaryEventProvider
std::unique_ptr< ExceptionToActionTable > exceptionToActionTable_
char const * label
void addToUnscheduledWorkers(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string label, std::set< std::string > &unscheduledLabels, std::vector< std::string > &shouldBeUsedLabels)

Member Function Documentation

◆ beginJob()

void edm::SecondaryEventProvider::beginJob ( ProductRegistry const &  iRegistry,
eventsetup::ESRecordsToProxyIndices const &  iIndices 
)

Definition at line 69 of file SecondaryEventProvider.cc.

References edm::WorkerManager::beginJob(), and workerManager_.

70  {
71  ProcessBlockHelper dummyProcessBlockHelper;
72  workerManager_.beginJob(iRegistry, iIndices, dummyProcessBlockHelper);
73  }
void beginJob(ProductRegistry const &iRegistry, eventsetup::ESRecordsToProxyIndices const &, ProcessBlockHelperBase const &)

◆ beginLuminosityBlock()

void edm::SecondaryEventProvider::beginLuminosityBlock ( LuminosityBlockPrincipal lumi,
const edm::EventSetupImpl setup,
ModuleCallingContext const *  mcc,
StreamContext sContext 
)

Definition at line 88 of file SecondaryEventProvider.cc.

References info(), edm::StreamID::invalidStreamID(), singleTopDQM_cfi::setup, edm::StreamContext::streamID(), and workerManager_.

91  {
92  LumiTransitionInfo info(lumi, setup);
93  processOneOccurrence<OccurrenceTraits<LuminosityBlockPrincipal, BranchActionGlobalBegin> >(
95  processOneOccurrence<OccurrenceTraits<LuminosityBlockPrincipal, BranchActionStreamBegin> >(
96  workerManager_, info, sContext.streamID(), &sContext, mcc);
97  }
static const TGPicture * info(bool iBackgroundIsBlack)
static StreamID invalidStreamID()
Definition: StreamID.h:45

◆ beginRun()

void edm::SecondaryEventProvider::beginRun ( RunPrincipal run,
const edm::EventSetupImpl setup,
ModuleCallingContext const *  mcc,
StreamContext sContext 
)

Definition at line 77 of file SecondaryEventProvider.cc.

References info(), edm::StreamID::invalidStreamID(), writedatasetfile::run, singleTopDQM_cfi::setup, edm::StreamContext::streamID(), and workerManager_.

80  {
81  RunTransitionInfo info(run, setup);
82  processOneOccurrence<OccurrenceTraits<RunPrincipal, BranchActionGlobalBegin> >(
84  processOneOccurrence<OccurrenceTraits<RunPrincipal, BranchActionStreamBegin> >(
85  workerManager_, info, sContext.streamID(), &sContext, mcc);
86  }
static const TGPicture * info(bool iBackgroundIsBlack)
static StreamID invalidStreamID()
Definition: StreamID.h:45

◆ beginStream()

void edm::SecondaryEventProvider::beginStream ( edm::StreamID  iID,
StreamContext sContext 
)

Definition at line 128 of file SecondaryEventProvider.cc.

References edm::WorkerManager::beginStream(), and workerManager_.

128  {
129  workerManager_.beginStream(iID, sContext);
130  }
void beginStream(StreamID iID, StreamContext &streamContext)

◆ endJob()

void edm::SecondaryEventProvider::endJob ( void  )
inline

◆ endLuminosityBlock()

void edm::SecondaryEventProvider::endLuminosityBlock ( LuminosityBlockPrincipal lumi,
const edm::EventSetupImpl setup,
ModuleCallingContext const *  mcc,
StreamContext sContext 
)

Definition at line 110 of file SecondaryEventProvider.cc.

References info(), edm::StreamID::invalidStreamID(), singleTopDQM_cfi::setup, edm::StreamContext::streamID(), and workerManager_.

113  {
114  LumiTransitionInfo info(lumi, setup);
115  processOneOccurrence<OccurrenceTraits<LuminosityBlockPrincipal, BranchActionStreamEnd> >(
116  workerManager_, info, sContext.streamID(), &sContext, mcc);
117  processOneOccurrence<OccurrenceTraits<LuminosityBlockPrincipal, BranchActionGlobalEnd> >(
118  workerManager_, info, StreamID::invalidStreamID(), nullptr, mcc);
119  }
static const TGPicture * info(bool iBackgroundIsBlack)
static StreamID invalidStreamID()
Definition: StreamID.h:45

◆ endRun()

void edm::SecondaryEventProvider::endRun ( RunPrincipal run,
const edm::EventSetupImpl setup,
ModuleCallingContext const *  mcc,
StreamContext sContext 
)

Definition at line 99 of file SecondaryEventProvider.cc.

References info(), edm::StreamID::invalidStreamID(), writedatasetfile::run, singleTopDQM_cfi::setup, edm::StreamContext::streamID(), and workerManager_.

102  {
103  RunTransitionInfo info(run, setup);
104  processOneOccurrence<OccurrenceTraits<RunPrincipal, BranchActionStreamEnd> >(
105  workerManager_, info, sContext.streamID(), &sContext, mcc);
106  processOneOccurrence<OccurrenceTraits<RunPrincipal, BranchActionGlobalEnd> >(
107  workerManager_, info, StreamID::invalidStreamID(), nullptr, mcc);
108  }
static const TGPicture * info(bool iBackgroundIsBlack)
static StreamID invalidStreamID()
Definition: StreamID.h:45

◆ endStream()

void edm::SecondaryEventProvider::endStream ( edm::StreamID  iID,
StreamContext sContext 
)

Definition at line 132 of file SecondaryEventProvider.cc.

References edm::WorkerManager::endStream(), and workerManager_.

132  {
133  workerManager_.endStream(iID, sContext);
134  }
void endStream(StreamID iID, StreamContext &streamContext)

◆ setupPileUpEvent()

void edm::SecondaryEventProvider::setupPileUpEvent ( EventPrincipal ep,
const EventSetupImpl setup,
StreamContext sContext 
)

Member Data Documentation

◆ exceptionToActionTable_

std::unique_ptr<ExceptionToActionTable> edm::SecondaryEventProvider::exceptionToActionTable_
private

Definition at line 47 of file SecondaryEventProvider.h.

◆ workerManager_

WorkerManager edm::SecondaryEventProvider::workerManager_
private