CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::SecondaryEventProvider Class Reference

#include <SecondaryEventProvider.h>

Public Member Functions

void beginJob (ProductRegistry const &iRegistry)
 
void beginLuminosityBlock (LuminosityBlockPrincipal &lumi, const edm::EventSetup &setup, ModuleCallingContext const *)
 
void beginRun (RunPrincipal &run, const edm::EventSetup &setup, ModuleCallingContext const *)
 
void endJob ()
 
void endLuminosityBlock (LuminosityBlockPrincipal &lumi, const edm::EventSetup &setup, ModuleCallingContext const *)
 
void endRun (RunPrincipal &run, const edm::EventSetup &setup, ModuleCallingContext const *)
 
 SecondaryEventProvider (std::vector< ParameterSet > &psets, ProductRegistry &pregistry, boost::shared_ptr< ProcessConfiguration > processConfiguration)
 
void setupPileUpEvent (EventPrincipal &ep, const EventSetup &setup)
 

Private Attributes

std::unique_ptr
< ExceptionToActionTable
exceptionToActionTable_
 
WorkerManager workerManager_
 

Detailed Description

Definition at line 16 of file SecondaryEventProvider.h.

Constructor & Destructor Documentation

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

Definition at line 8 of file SecondaryEventProvider.cc.

References edm::WorkerManager::addToUnscheduledWorkers(), diffTwoXMLs::label, edm::WorkerManager::setOnDemandProducts(), AlCaHLTBitMon_QueryRunRegistry::string, and workerManager_.

10  :
11  exceptionToActionTable_(new ExceptionToActionTable),
12  workerManager_(boost::shared_ptr<ActivityRegistry>(new ActivityRegistry), *exceptionToActionTable_) {
13  std::vector<std::string> shouldBeUsedLabels;
14  std::set<std::string> unscheduledLabels;
15  const PreallocationConfiguration preallocConfig;
16  for(auto& pset : psets) {
17  std::string label = pset.getParameter<std::string>("@module_label");
19  preg,
20  &preallocConfig,
22  label,
23  false,
24  unscheduledLabels,
25  shouldBeUsedLabels);
26  }
27  if(!unscheduledLabels.empty()) {
28  workerManager_.setOnDemandProducts(preg, unscheduledLabels);
29  }
30  } // SecondaryEventProvider::SecondaryEventProvider
void setOnDemandProducts(ProductRegistry &pregistry, std::set< std::string > const &unscheduledLabels) const
void addToUnscheduledWorkers(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, boost::shared_ptr< ProcessConfiguration > processConfiguration, std::string label, bool useStopwatch, std::set< std::string > &unscheduledLabels, std::vector< std::string > &shouldBeUsedLabels)
processConfiguration
Definition: Schedule.cc:362
std::unique_ptr< ExceptionToActionTable > exceptionToActionTable_
preg
Definition: Schedule.cc:362

Member Function Documentation

void edm::SecondaryEventProvider::beginJob ( ProductRegistry const &  iRegistry)
inline

Definition at line 30 of file SecondaryEventProvider.h.

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

30 {workerManager_.beginJob(iRegistry);}
void beginJob(ProductRegistry const &iRegistry)
void edm::SecondaryEventProvider::beginLuminosityBlock ( LuminosityBlockPrincipal lumi,
const edm::EventSetup setup,
ModuleCallingContext const *  mcc 
)

Definition at line 39 of file SecondaryEventProvider.cc.

References edm::ModuleCallingContext::getGlobalContext(), edm::StreamID::invalidStreamID(), fjr2json::lumi, edm::WorkerManager::processOneOccurrence(), HcalObjRepresent::setup(), and workerManager_.

39  {
40  workerManager_.processOneOccurrence<OccurrenceTraits<LuminosityBlockPrincipal, BranchActionGlobalBegin> >(lumi, setup, StreamID::invalidStreamID(),
41  mcc->getGlobalContext(), mcc);
42  }
tuple lumi
Definition: fjr2json.py:35
void processOneOccurrence(typename T::MyPrincipal &principal, EventSetup const &eventSetup, StreamID streamID, typename T::Context const *topContext, U const *context, bool cleaningUpAfterException=false)
Definition: WorkerManager.h:92
static StreamID invalidStreamID()
Definition: StreamID.h:48
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void edm::SecondaryEventProvider::beginRun ( RunPrincipal run,
const edm::EventSetup setup,
ModuleCallingContext const *  mcc 
)

Definition at line 34 of file SecondaryEventProvider.cc.

References edm::ModuleCallingContext::getGlobalContext(), edm::StreamID::invalidStreamID(), edm::WorkerManager::processOneOccurrence(), DTTTrigCorrFirst::run, HcalObjRepresent::setup(), and workerManager_.

34  {
35  workerManager_.processOneOccurrence<OccurrenceTraits<RunPrincipal, BranchActionGlobalBegin> >(run, setup, StreamID::invalidStreamID(),
36  mcc->getGlobalContext(), mcc);
37  }
void processOneOccurrence(typename T::MyPrincipal &principal, EventSetup const &eventSetup, StreamID streamID, typename T::Context const *topContext, U const *context, bool cleaningUpAfterException=false)
Definition: WorkerManager.h:92
static StreamID invalidStreamID()
Definition: StreamID.h:48
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void edm::SecondaryEventProvider::endJob ( void  )
inline
void edm::SecondaryEventProvider::endLuminosityBlock ( LuminosityBlockPrincipal lumi,
const edm::EventSetup setup,
ModuleCallingContext const *  mcc 
)

Definition at line 49 of file SecondaryEventProvider.cc.

References edm::ModuleCallingContext::getGlobalContext(), edm::StreamID::invalidStreamID(), fjr2json::lumi, edm::WorkerManager::processOneOccurrence(), HcalObjRepresent::setup(), and workerManager_.

49  {
50  workerManager_.processOneOccurrence<OccurrenceTraits<LuminosityBlockPrincipal, BranchActionGlobalEnd> >(lumi, setup, StreamID::invalidStreamID(),
51  mcc->getGlobalContext(), mcc);
52  }
tuple lumi
Definition: fjr2json.py:35
void processOneOccurrence(typename T::MyPrincipal &principal, EventSetup const &eventSetup, StreamID streamID, typename T::Context const *topContext, U const *context, bool cleaningUpAfterException=false)
Definition: WorkerManager.h:92
static StreamID invalidStreamID()
Definition: StreamID.h:48
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void edm::SecondaryEventProvider::endRun ( RunPrincipal run,
const edm::EventSetup setup,
ModuleCallingContext const *  mcc 
)

Definition at line 44 of file SecondaryEventProvider.cc.

References edm::ModuleCallingContext::getGlobalContext(), edm::StreamID::invalidStreamID(), edm::WorkerManager::processOneOccurrence(), DTTTrigCorrFirst::run, HcalObjRepresent::setup(), and workerManager_.

44  {
45  workerManager_.processOneOccurrence<OccurrenceTraits<RunPrincipal, BranchActionGlobalEnd> >(run, setup, StreamID::invalidStreamID(),
46  mcc->getGlobalContext(), mcc);
47  }
void processOneOccurrence(typename T::MyPrincipal &principal, EventSetup const &eventSetup, StreamID streamID, typename T::Context const *topContext, U const *context, bool cleaningUpAfterException=false)
Definition: WorkerManager.h:92
static StreamID invalidStreamID()
Definition: StreamID.h:48
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void edm::SecondaryEventProvider::setupPileUpEvent ( EventPrincipal ep,
const EventSetup setup 
)

Definition at line 54 of file SecondaryEventProvider.cc.

References edm::WorkerManager::processOneOccurrence(), HcalObjRepresent::setup(), and workerManager_.

54  {
55  workerManager_.processOneOccurrence<OccurrenceTraits<EventPrincipal, BranchActionStreamBegin>, StreamContext >(ep, setup, ep.streamID(),
56  nullptr, nullptr);
57  }
void processOneOccurrence(typename T::MyPrincipal &principal, EventSetup const &eventSetup, StreamID streamID, typename T::Context const *topContext, U const *context, bool cleaningUpAfterException=false)
Definition: WorkerManager.h:92
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")

Member Data Documentation

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

Definition at line 34 of file SecondaryEventProvider.h.

WorkerManager edm::SecondaryEventProvider::workerManager_
private