CMS 3D CMS Logo

EventProcessor.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_EventProcessor_h
2 #define FWCore_Framework_EventProcessor_h
3 
4 /*----------------------------------------------------------------------
5 
6 EventProcessor: This defines the 'framework application' object. It is
7 configured in the user's main() function, and is set running.
8 
9 ----------------------------------------------------------------------*/
10 
14 
23 
25 
30 
33 
35 
36 #include <map>
37 #include <memory>
38 #include <set>
39 #include <string>
40 #include <vector>
41 #include <exception>
42 #include <mutex>
43 
44 namespace edm {
45 
46  class ExceptionToActionTable;
47  class BranchIDListHelper;
48  class MergeableRunProductMetadata;
49  class ThinnedAssociationsHelper;
50  class EDLooperBase;
51  class HistoryAppender;
52  class ProcessDesc;
53  class SubProcess;
54  class WaitingTaskHolder;
55  class LuminosityBlockPrincipal;
57  class IOVSyncValue;
58 
59  namespace eventsetup {
60  class EventSetupProvider;
61  class EventSetupsController;
62  } // namespace eventsetup
63 
65  public:
66  // Status codes:
67  // 0 successful completion
68  // 1 exception of unknown type caught
69  // 2 everything else
70  // 3 signal received
71  // 4 input complete
72  // 5 call timed out
73  // 6 input count complete
74  enum StatusCode {
75  epSuccess = 0,
77  epOther = 2,
78  epSignal = 3,
82  };
83 
84  // The input 'parameterSet' contains the entire contents of a configuration file.
85  // Also allows the attachement of pre-existing services specified by 'token', and
86  // the specification of services by name only (defaultServices and forcedServices).
87  // 'defaultServices' are overridden by 'parameterSet'.
88  // 'forcedServices' the 'parameterSet'.
89  explicit EventProcessor(std::unique_ptr<ParameterSet> parameterSet,
90  ServiceToken const& token = ServiceToken(),
92  std::vector<std::string> const& defaultServices = std::vector<std::string>(),
93  std::vector<std::string> const& forcedServices = std::vector<std::string>());
94 
95  // Same as previous constructor, but without a 'token'. Token will be defaulted.
96 
97  EventProcessor(std::unique_ptr<ParameterSet> parameterSet,
98  std::vector<std::string> const& defaultServices,
99  std::vector<std::string> const& forcedServices = std::vector<std::string>());
100 
101  EventProcessor(std::shared_ptr<ProcessDesc> processDesc,
102  ServiceToken const& token,
104 
105  ~EventProcessor();
106 
107  EventProcessor(EventProcessor const&) = delete; // Disallow copying and moving
108  EventProcessor& operator=(EventProcessor const&) = delete; // Disallow copying and moving
109 
114  void beginJob();
115 
119  void endJob();
120 
121  // -------------
122 
123  // Same as runToCompletion(false) but since it was used extensively
124  // outside of the framework (and is simpler) will keep
125  StatusCode run();
126 
129 
133 
134  std::vector<ModuleDescription const*> getAllModuleDescriptions() const;
135 
137 
141  int totalEvents() const;
142 
145  int totalEventsPassed() const;
146 
149  int totalEventsFailed() const;
150 
153  void enableEndPaths(bool active);
154 
157  bool endPathsEnabled() const;
158 
161  void getTriggerReport(TriggerReport& rep) const;
162 
164  void clearCounters();
165 
166  // Really should not be public,
167  // but the EventFilter needs it for now.
169 
170  //------------------------------------------------------------------
171  //
172  // Nested classes and structs below.
173 
174  // The function "runToCompletion" will run until the job is "complete",
175  // which means:
176  // 1 - no more input data
177  // 2 - input maxEvents parameter limit reached
178  // 3 - output maxEvents parameter limit reached
179  // 4 - input maxLuminosityBlocks parameter limit reached
180  // 5 - looper directs processing to end
181  //
182  // The return values from the function are as follows:
183  // epSignal - processing terminated early, SIGUSR2 encountered
184  // epCountComplete - "runEventCount" processed the number of events
185  // requested by the argument
186  // epSuccess - all other cases
187  //
189 
190  // The following functions are used by the code implementing
191  // transition handling.
192 
196  return InputSource::IsStop;
197  }
198  return lastSourceTransition_;
199  }
200  std::pair<edm::ProcessHistoryID, edm::RunNumber_t> nextRunID();
202 
203  void readFile();
204  void closeInputFile(bool cleaningUpAfterException);
205  void openOutputFiles();
206  void closeOutputFiles();
207 
208  void respondToOpenInputFile();
210 
211  void startingNewLoop();
212  bool endOfLoop();
213  void rewindInput();
214  void prepareForNextLoop();
215  bool shouldWeCloseOutput() const;
216 
217  void doErrorStuff();
218 
219  void beginRun(ProcessHistoryID const& phid,
221  bool& globalBeginSucceeded,
222  bool& eventSetupForInstanceSucceeded);
223  void endRun(ProcessHistoryID const& phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException);
224  void endUnfinishedRun(ProcessHistoryID const& phid,
226  bool globalBeginSucceeded,
227  bool cleaningUpAfterException,
228  bool eventSetupForInstanceSucceeded);
229 
230  InputSource::ItemType processLumis(std::shared_ptr<void> const& iRunResource);
231  void endUnfinishedLumi();
232 
233  void beginLumiAsync(edm::IOVSyncValue const& iSyncValue,
234  std::shared_ptr<void> const& iRunResource,
235  edm::WaitingTaskHolder iHolder);
237 
238  void handleEndLumiExceptions(std::exception_ptr const* iPtr, WaitingTaskHolder& holder);
239  void globalEndLumiAsync(edm::WaitingTaskHolder iTask, std::shared_ptr<LuminosityBlockProcessingStatus> iLumiStatus);
240  void streamEndLumiAsync(edm::WaitingTaskHolder iTask, unsigned int iStreamIndex);
241  std::pair<ProcessHistoryID, RunNumber_t> readRun();
242  std::pair<ProcessHistoryID, RunNumber_t> readAndMergeRun();
246  ProcessHistoryID const& phid,
252 
253  bool shouldWeStop() const;
254 
255  void setExceptionMessageFiles(std::string& message);
256  void setExceptionMessageRuns(std::string& message);
258 
259  bool setDeferredException(std::exception_ptr);
260 
261  private:
262  //------------------------------------------------------------------
263  //
264  // Now private functions.
265  // init() is used by only by constructors
266  void init(std::shared_ptr<ProcessDesc>& processDesc, ServiceToken const& token, serviceregistry::ServiceLegacy);
267 
268  bool readNextEventForStream(unsigned int iStreamIndex, LuminosityBlockProcessingStatus& iLumiStatus);
269 
270  void handleNextEventForStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamIndex);
271 
272  //read the next event using Stream iStreamIndex
273  void readEvent(unsigned int iStreamIndex);
274 
275  //process the already read event using Stream iStreamIndex
276  void processEventAsync(WaitingTaskHolder iHolder, unsigned int iStreamIndex);
277 
278  void processEventAsyncImpl(WaitingTaskHolder iHolder, unsigned int iStreamIndex);
279 
280  //returns true if an asynchronous stop was requested
282 
283  void processEventWithLooper(EventPrincipal&, unsigned int iStreamIndex);
284 
285  std::shared_ptr<ProductRegistry const> preg() const { return get_underlying_safe(preg_); }
286  std::shared_ptr<ProductRegistry>& preg() { return get_underlying_safe(preg_); }
287  std::shared_ptr<BranchIDListHelper const> branchIDListHelper() const {
289  }
290  std::shared_ptr<BranchIDListHelper>& branchIDListHelper() { return get_underlying_safe(branchIDListHelper_); }
291  std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper() const {
293  }
294  std::shared_ptr<ThinnedAssociationsHelper>& thinnedAssociationsHelper() {
296  }
297  std::shared_ptr<EDLooperBase const> looper() const { return get_underlying_safe(looper_); }
298  std::shared_ptr<EDLooperBase>& looper() { return get_underlying_safe(looper_); }
299 
301  //------------------------------------------------------------------
302  //
303  // Data members below.
304  // Are all these data members really needed? Some of them are used
305  // only during construction, and never again. If they aren't
306  // really needed, we should remove them.
307 
308  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
318  std::unique_ptr<ExceptionToActionTable const> act_table_;
319  std::shared_ptr<ProcessConfiguration const> processConfiguration_;
324  std::vector<edm::SerialTaskQueue> streamQueues_;
325  std::unique_ptr<edm::LimitedTaskQueue> lumiQueue_;
326  std::vector<std::shared_ptr<LuminosityBlockProcessingStatus>> streamLumiStatus_;
327  std::atomic<unsigned int> streamLumiActive_{0}; //works as guard for streamLumiStatus
328 
329  std::vector<SubProcess> subProcesses_;
331 
334 
335  //The atomic protects concurrent access of deferredExceptionPtr_
336  std::atomic<bool> deferredExceptionPtrIsSet_;
337  std::exception_ptr deferredExceptionPtr_;
338 
340  std::shared_ptr<std::recursive_mutex> sourceMutex_;
347  std::atomic<bool> exceptionMessageLumis_;
351 
353 
356  bool firstEventInBlock_ = true;
357 
358  typedef std::set<std::pair<std::string, std::string>> ExcludedData;
359  typedef std::map<std::string, ExcludedData> ExcludedDataMap;
361 
362  bool printDependencies_ = false;
363  }; // class EventProcessor
364 
365  //--------------------------------------------------------------------
366 
368 } // namespace edm
369 #endif
edm::EventProcessor::looperBeginJobRun_
bool looperBeginJobRun_
Definition: EventProcessor.h:349
edm::SharedResourcesAcquirer
Definition: SharedResourcesAcquirer.h:34
edm::EventProcessor::deleteRunFromCache
void deleteRunFromCache(ProcessHistoryID const &phid, RunNumber_t run)
Definition: EventProcessor.cc:1537
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
edm::EventProcessor::historyAppender_
edm::propagate_const< std::unique_ptr< HistoryAppender > > historyAppender_
Definition: EventProcessor.h:330
ProcessHistoryID.h
edm::EventProcessor::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Definition: EventProcessor.h:291
edm::EventProcessor::rewindInput
void rewindInput()
Definition: EventProcessor.cc:832
edm::EventProcessor::eventSetupDataToExcludeFromPrefetching_
ExcludedDataMap eventSetupDataToExcludeFromPrefetching_
Definition: EventProcessor.h:360
edm::EventProcessor::respondToCloseInputFile
void respondToCloseInputFile()
Definition: EventProcessor.cc:799
edm::EventProcessor::totalEventsPassed
int totalEventsPassed() const
Definition: EventProcessor.cc:618
edm::EventProcessor::preg_
edm::propagate_const< std::shared_ptr< ProductRegistry > > preg_
Definition: EventProcessor.h:309
edm::EventProcessor::readRun
std::pair< ProcessHistoryID, RunNumber_t > readRun()
Definition: EventProcessor.cc:1442
edm::EventProcessor::shouldWeCloseOutput
bool shouldWeCloseOutput() const
Definition: EventProcessor.cc:843
edm::EventProcessor::writeRunAsync
void writeRunAsync(WaitingTaskHolder, ProcessHistoryID const &phid, RunNumber_t run, MergeableRunProductMetadata const *)
Definition: EventProcessor.cc:1513
edm::EventProcessor::StatusCode
StatusCode
Definition: EventProcessor.h:74
edm::EventProcessor::endOfLoop
bool endOfLoop()
Definition: EventProcessor.cc:817
edm::EventProcessor::input_
edm::propagate_const< std::unique_ptr< InputSource > > input_
Definition: EventProcessor.h:313
edm::EventProcessor::getToken
ServiceToken getToken()
Definition: EventProcessor.cc:610
edm::EventProcessor::startingNewLoop
void startingNewLoop()
Definition: EventProcessor.cc:807
edm::EventProcessor::totalEvents
int totalEvents() const
Definition: EventProcessor.cc:616
edm::EventProcessor::processConfiguration
ProcessConfiguration const & processConfiguration() const
Definition: EventProcessor.h:136
edm::EventProcessor::deleteLumiFromCache
void deleteLumiFromCache(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1562
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::EventProcessor::endJob
void endJob()
Definition: EventProcessor.cc:579
edm::ProcessContext
Definition: ProcessContext.h:27
edm::EventProcessor::getTriggerReport
void getTriggerReport(TriggerReport &rep) const
Definition: EventProcessor.cc:626
edm::EventProcessor::globalEndLumiAsync
void globalEndLumiAsync(edm::WaitingTaskHolder iTask, std::shared_ptr< LuminosityBlockProcessingStatus > iLumiStatus)
Definition: EventProcessor.cc:1279
edm::EventProcessor::runToCompletion
StatusCode runToCompletion()
Definition: EventProcessor.cc:677
edm::EventProcessor::readAndMergeRun
std::pair< ProcessHistoryID, RunNumber_t > readAndMergeRun()
Definition: EventProcessor.cc:1465
edm::EventProcessor::esp_
edm::propagate_const< std::shared_ptr< eventsetup::EventSetupProvider > > esp_
Definition: EventProcessor.h:316
edm::EventProcessor::shouldWeStop_
bool shouldWeStop_
Definition: EventProcessor.h:343
edm::EventProcessor::readEvent
void readEvent(unsigned int iStreamIndex)
Definition: EventProcessor.cc:1690
edm::EventProcessor::processLumis
InputSource::ItemType processLumis(std::shared_ptr< void > const &iRunResource)
Definition: EventProcessor.cc:1039
edm::EventProcessor::epTimedOut
Definition: EventProcessor.h:80
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::EventProcessor::beginRun
void beginRun(ProcessHistoryID const &phid, RunNumber_t run, bool &globalBeginSucceeded, bool &eventSetupForInstanceSucceeded)
Definition: EventProcessor.cc:865
edm::EventProcessor::enableEndPaths
void enableEndPaths(bool active)
Definition: EventProcessor.cc:622
edm::EventProcessor::endUnfinishedRun
void endUnfinishedRun(ProcessHistoryID const &phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException, bool eventSetupForInstanceSucceeded)
Definition: EventProcessor.cc:945
edm::EventProcessor::branchIDListHelper
std::shared_ptr< BranchIDListHelper > & branchIDListHelper()
Definition: EventProcessor.h:290
edm::EventProcessor::deferredExceptionPtr_
std::exception_ptr deferredExceptionPtr_
Definition: EventProcessor.h:337
SignallingProductRegistry.h
edm::EventProcessor::lumiQueue_
std::unique_ptr< edm::LimitedTaskQueue > lumiQueue_
Definition: EventProcessor.h:325
edm::SerialTaskQueue
Definition: SerialTaskQueue.h:67
ServiceToken.h
PreallocationConfiguration.h
edm::EventProcessor::processContext_
ProcessContext processContext_
Definition: EventProcessor.h:320
edm::EventProcessor::lastSourceTransition_
InputSource::ItemType lastSourceTransition_
Definition: EventProcessor.h:314
edm::EventProcessor::pathsAndConsumesOfModules_
PathsAndConsumesOfModules pathsAndConsumesOfModules_
Definition: EventProcessor.h:321
edm::EventProcessor::exceptionMessageFiles_
std::string exceptionMessageFiles_
Definition: EventProcessor.h:345
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
edm::EventProcessor::asyncStopRequestedWhileProcessingEvents_
bool asyncStopRequestedWhileProcessingEvents_
Definition: EventProcessor.h:354
LuminosityBlockID.h
edm::EventProcessor::totalEventsFailed
int totalEventsFailed() const
Definition: EventProcessor.cc:620
edm::EventProcessor::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper > & thinnedAssociationsHelper()
Definition: EventProcessor.h:294
edm::EventProcessor::setExceptionMessageRuns
void setExceptionMessageRuns(std::string &message)
Definition: EventProcessor.cc:1806
edm::PathsAndConsumesOfModules
Definition: PathsAndConsumesOfModules.h:29
edm::EventProcessor::setExceptionMessageFiles
void setExceptionMessageFiles(std::string &message)
Definition: EventProcessor.cc:1804
PathsAndConsumesOfModules.h
ActivityRegistry.h
edm::EventProcessor::processEventAsyncImpl
void processEventAsyncImpl(WaitingTaskHolder iHolder, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1709
SharedResourcesAcquirer.h
edm::ServiceToken
Definition: ServiceToken.h:40
edm::EventProcessor::exceptionMessageLumis_
std::atomic< bool > exceptionMessageLumis_
Definition: EventProcessor.h:347
edm::propagate_const
Definition: propagate_const.h:32
edm::EventProcessor::readAndMergeLumi
int readAndMergeLumi(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1496
edm::EventPrincipal
Definition: EventPrincipal.h:46
edm::EventProcessor::queueWhichWaitsForIOVsToFinish_
edm::SerialTaskQueue queueWhichWaitsForIOVsToFinish_
Definition: EventProcessor.h:317
SerialTaskQueue.h
edm::EventProcessor::epSignal
Definition: EventProcessor.h:78
edm::EventProcessor::EventProcessor
EventProcessor(std::unique_ptr< ParameterSet > parameterSet, ServiceToken const &token=ServiceToken(), serviceregistry::ServiceLegacy=serviceregistry::kOverlapIsError, std::vector< std::string > const &defaultServices=std::vector< std::string >(), std::vector< std::string > const &forcedServices=std::vector< std::string >())
Definition: EventProcessor.cc:215
edm::EventProcessor::getAllModuleDescriptions
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
Definition: EventProcessor.cc:612
edm::EventProcessor::endPathsEnabled
bool endPathsEnabled() const
Definition: EventProcessor.cc:624
edm::PrincipalCache
Definition: PrincipalCache.h:47
edm::EventProcessor::streamQueues_
std::vector< edm::SerialTaskQueue > streamQueues_
Definition: EventProcessor.h:324
edm::EventProcessor::epInputComplete
Definition: EventProcessor.h:79
edm::EventProcessor::openOutputFiles
void openOutputFiles()
Definition: EventProcessor.cc:773
edm::EventProcessor::readLuminosityBlock
void readLuminosityBlock(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1477
edm::EventProcessor::sourceMutex_
std::shared_ptr< std::recursive_mutex > sourceMutex_
Definition: EventProcessor.h:340
edm::EventProcessor::clearCounters
void clearCounters()
Clears counters used by trigger report.
Definition: EventProcessor.cc:628
edm::EventProcessor::beginJobCalled_
bool beginJobCalled_
Definition: EventProcessor.h:342
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::LuminosityBlockProcessingStatus
Definition: LuminosityBlockProcessingStatus.h:41
WaitingTaskHolder
edm::EventProcessor::fileModeNoMerge_
bool fileModeNoMerge_
Definition: EventProcessor.h:344
IOVSyncValue
edm::Hash< ProcessHistoryType >
edm::EventProcessor::warnAboutModulesRequiringLuminosityBLockSynchronization
void warnAboutModulesRequiringLuminosityBLockSynchronization() const
Definition: EventProcessor.cc:1819
LimitedTaskQueue.h
edm::EventProcessor::ExcludedData
std::set< std::pair< std::string, std::string > > ExcludedData
Definition: EventProcessor.h:358
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
edm::EventProcessor::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: EventProcessor.h:308
edm::EventProcessor::exceptionMessageRuns_
std::string exceptionMessageRuns_
Definition: EventProcessor.h:346
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventProcessor::printDependencies_
bool printDependencies_
Definition: EventProcessor.h:362
edm::EventProcessor::preallocations_
PreallocationConfiguration preallocations_
Definition: EventProcessor.h:352
edm::get_underlying_safe
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
Definition: get_underlying_safe.h:40
LuminosityBlockProcessingStatus
edm::EventProcessor::act_table_
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: EventProcessor.h:318
edm::EventProcessor::beginLumiAsync
void beginLumiAsync(edm::IOVSyncValue const &iSyncValue, std::shared_ptr< void > const &iRunResource, edm::WaitingTaskHolder iHolder)
Definition: EventProcessor.cc:1061
edm::EventProcessor::espController_
edm::propagate_const< std::unique_ptr< eventsetup::EventSetupsController > > espController_
Definition: EventProcessor.h:315
edm::EventProcessor::streamLumiStatus_
std::vector< std::shared_ptr< LuminosityBlockProcessingStatus > > streamLumiStatus_
Definition: EventProcessor.h:326
PrincipalCache.h
edm::WaitingTaskHolder
Definition: WaitingTaskHolder.h:30
edm::EventProcessor::streamEndLumiAsync
void streamEndLumiAsync(edm::WaitingTaskHolder iTask, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1375
edm::EventProcessor::preg
std::shared_ptr< ProductRegistry > & preg()
Definition: EventProcessor.h:286
edm::EventProcessor::epException
Definition: EventProcessor.h:76
edm::EventProcessor::serviceToken_
ServiceToken serviceToken_
Definition: EventProcessor.h:312
edm::serviceregistry::kOverlapIsError
Definition: ServiceLegacy.h:29
edm::EventProcessor::lastTransitionType
InputSource::ItemType lastTransitionType() const
Definition: EventProcessor.h:194
edm::EventProcessor::thinnedAssociationsHelper_
edm::propagate_const< std::shared_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: EventProcessor.h:311
edm::EventProcessor::readNextEventForStream
bool readNextEventForStream(unsigned int iStreamIndex, LuminosityBlockProcessingStatus &iLumiStatus)
Definition: EventProcessor.cc:1570
cuy.rep
rep
Definition: cuy.py:1190
edm::EventProcessor::forceLooperToEnd_
bool forceLooperToEnd_
Definition: EventProcessor.h:348
edm::EventProcessor::epCountComplete
Definition: EventProcessor.h:81
edm::InputSource::IsStop
Definition: InputSource.h:78
edm::EventProcessor::fb_
edm::propagate_const< std::unique_ptr< FileBlock > > fb_
Definition: EventProcessor.h:332
edm::EventProcessor::epOther
Definition: EventProcessor.h:77
edm::TriggerReport
Definition: TriggerReport.h:56
edm::EventProcessor::streamLumiActive_
std::atomic< unsigned int > streamLumiActive_
Definition: EventProcessor.h:327
edm::EventProcessor::mergeableRunProductProcesses_
MergeableRunProductProcesses mergeableRunProductProcesses_
Definition: EventProcessor.h:322
edm::EventProcessor::operator=
EventProcessor & operator=(EventProcessor const &)=delete
edm::EventProcessor::endUnfinishedLumi
void endUnfinishedLumi()
Definition: EventProcessor.cc:1423
edm::EventProcessor::readFile
void readFile()
Definition: EventProcessor.cc:746
edm::EventProcessor::asyncStopStatusCodeFromProcessingEvents_
StatusCode asyncStopStatusCodeFromProcessingEvents_
Definition: EventProcessor.h:355
edm::EventProcessor::looper_
edm::propagate_const< std::shared_ptr< EDLooperBase > > looper_
Definition: EventProcessor.h:333
edm::EventProcessor::sourceResourcesAcquirer_
SharedResourcesAcquirer sourceResourcesAcquirer_
Definition: EventProcessor.h:339
edm::EventProcessor::setDeferredException
bool setDeferredException(std::exception_ptr)
Definition: EventProcessor.cc:1810
edm::InputSource::ItemType
ItemType
Definition: InputSource.h:78
edm::EventProcessor::continueLumiAsync
void continueLumiAsync(edm::WaitingTaskHolder iHolder)
Definition: EventProcessor.cc:1251
edm::EventProcessor::doErrorStuff
void doErrorStuff()
Definition: EventProcessor.cc:856
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::EventProcessor::~EventProcessor
~EventProcessor()
Definition: EventProcessor.cc:504
edm::EventProcessor::firstEventInBlock_
bool firstEventInBlock_
Definition: EventProcessor.h:356
edm::EventProcessor::closeInputFile
void closeInputFile(bool cleaningUpAfterException)
Definition: EventProcessor.cc:764
EDLooperBase
edm::EventProcessor::principalCache_
PrincipalCache principalCache_
Definition: EventProcessor.h:341
Frameworkfwd.h
InputSource.h
edm::EventProcessor::branchIDListHelper
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Definition: EventProcessor.h:287
edm::EventProcessor::looper
std::shared_ptr< EDLooperBase > & looper()
Definition: EventProcessor.h:298
edm::EventProcessor::deferredExceptionPtrIsSet_
std::atomic< bool > deferredExceptionPtrIsSet_
Definition: EventProcessor.h:336
edm::EventProcessor::epSuccess
Definition: EventProcessor.h:75
edm::EventProcessor::processConfiguration_
std::shared_ptr< ProcessConfiguration const > processConfiguration_
Definition: EventProcessor.h:319
ServiceLegacy.h
edm::EventProcessor::run
StatusCode run()
Definition: EventProcessor.h:367
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
MergeableRunProductProcesses.h
edm::EventProcessor::handleEndLumiExceptions
void handleEndLumiExceptions(std::exception_ptr const *iPtr, WaitingTaskHolder &holder)
Definition: EventProcessor.cc:1270
edm::EventProcessor::processEventWithLooper
void processEventWithLooper(EventPrincipal &, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1761
edm::EventProcessor::endRun
void endRun(ProcessHistoryID const &phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException)
Definition: EventProcessor.cc:971
edm::EventProcessor::setExceptionMessageLumis
void setExceptionMessageLumis()
Definition: EventProcessor.cc:1808
edm::EventProcessor::looper
std::shared_ptr< EDLooperBase const > looper() const
Definition: EventProcessor.h:297
edm::EventProcessor::nextLuminosityBlockID
edm::LuminosityBlockNumber_t nextLuminosityBlockID()
Definition: EventProcessor.cc:675
edm::EventProcessor
Definition: EventProcessor.h:64
edm::EventProcessor::closeOutputFiles
void closeOutputFiles()
Definition: EventProcessor.cc:781
ParameterSet.h
edm::EventProcessor::subProcesses_
std::vector< SubProcess > subProcesses_
Definition: EventProcessor.h:329
edm::EventProcessor::nextTransitionType
InputSource::ItemType nextTransitionType()
Definition: EventProcessor.cc:645
edm::EventProcessor::prepareForNextLoop
void prepareForNextLoop()
Definition: EventProcessor.cc:838
edm::EventProcessor::init
void init(std::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy)
Definition: EventProcessor.cc:325
edm::EventProcessor::respondToOpenInputFile
void respondToOpenInputFile()
Definition: EventProcessor.cc:789
edm::EventProcessor::processEventAsync
void processEventAsync(WaitingTaskHolder iHolder, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1704
get_underlying_safe.h
ProcessContext.h
edm::EventProcessor::shouldWeStop
bool shouldWeStop() const
Definition: EventProcessor.cc:1789
edm::EventProcessor::preg
std::shared_ptr< ProductRegistry const > preg() const
Definition: EventProcessor.h:285
edm::EventProcessor::schedule_
edm::propagate_const< std::unique_ptr< Schedule > > schedule_
Definition: EventProcessor.h:323
RunID.h
edm::EventProcessor::writeLumiAsync
void writeLumiAsync(WaitingTaskHolder, LuminosityBlockPrincipal &lumiPrincipal)
Definition: EventProcessor.cc:1543
edm::EventProcessor::nextRunID
std::pair< edm::ProcessHistoryID, edm::RunNumber_t > nextRunID()
Definition: EventProcessor.cc:671
edm::EventProcessor::handleNextEventForStreamAsync
void handleNextEventForStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1632
edm::ProcessConfiguration
Definition: ProcessConfiguration.h:14
edm::EventProcessor::branchIDListHelper_
edm::propagate_const< std::shared_ptr< BranchIDListHelper > > branchIDListHelper_
Definition: EventProcessor.h:310
edm::EventProcessor::ExcludedDataMap
std::map< std::string, ExcludedData > ExcludedDataMap
Definition: EventProcessor.h:359
edm::serviceregistry::ServiceLegacy
ServiceLegacy
Definition: ServiceLegacy.h:29
edm::EventProcessor::checkForAsyncStopRequest
bool checkForAsyncStopRequest(StatusCode &)
Definition: EventProcessor.cc:634
edm::EventProcessor::forceESCacheClearOnNewRun_
bool forceESCacheClearOnNewRun_
Definition: EventProcessor.h:350
edm::EventProcessor::beginJob
void beginJob()
Definition: EventProcessor.cc:522
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316
edm::MergeableRunProductProcesses
Definition: MergeableRunProductProcesses.h:11