1 #ifndef FWCore_Framework_UnscheduledCallProducer_h
2 #define FWCore_Framework_UnscheduledCallProducer_h
13 #include <unordered_map>
19 class ModuleCallingContext;
55 std::unordered_map<std::string, size_t>
m_keys;
65 template <
typename T,
typename U>
67 typename T::Context
const* topContext, U
const* context)
const {
73 worker->doWork<
T>(
p, es, streamID, parentContext, topContext);
76 std::ostringstream ost;
78 ost <<
"Calling event method";
80 else if (T::begin_ && T::branchType_ ==
InRun) {
81 ost <<
"Calling beginRun";
83 else if (T::begin_ && T::branchType_ ==
InLumi) {
84 ost <<
"Calling beginLuminosityBlock";
86 else if (!T::begin_ && T::branchType_ ==
InLumi) {
87 ost <<
"Calling endLuminosityBlock";
89 else if (!T::begin_ && T::branchType_ ==
InRun) {
90 ost <<
"Calling endRun";
94 ost <<
"Calling unknown function";
96 ost <<
" for unscheduled module " << worker->description().moduleName()
97 <<
"/'" << worker->description().moduleLabel() <<
"'";
100 ost <<
"Processing " << p.id();
115 if(worker !=
nullptr) {
122 std::ostringstream ost;
123 ost <<
"Calling produce method for unscheduled module "
124 << worker->description().moduleName() <<
"/'"
125 << worker->description().moduleLabel() <<
"'";
void add(Worker *iWorker)
std::unordered_map< std::string, size_t > m_keys
ModuleDescription const & description() const
StreamContext const * getStreamContext() const
std::string const & moduleLabel() const
void addWorker(Worker *aWorker)
U second(std::pair< T, U > const &p)
std::vector< Worker * > worker_container
worker_container m_values
worker_container::const_iterator const_iterator
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
UnscheduledCallProducer()
void addContext(std::string const &context)
virtual bool tryToFillImpl(std::string const &moduleLabel, EventPrincipal const &event, EventSetup const &eventSetup, ModuleCallingContext const *mcc) const override
Worker * find(std::string const &iLabel) const
void runNow(typename T::MyPrincipal &p, EventSetup const &es, StreamID streamID, typename T::Context const *topContext, U const *context) const
const_iterator end() const
const_iterator begin() const
WorkerLookup workerLookup_