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 
110  void taskCleanup();
111 
116  void beginJob();
117 
121  void endJob();
122 
123  // -------------
124 
125  // Same as runToCompletion(false) but since it was used extensively
126  // outside of the framework (and is simpler) will keep
127  StatusCode run();
128 
131 
135 
136  std::vector<ModuleDescription const*> getAllModuleDescriptions() const;
137 
139 
143  int totalEvents() const;
144 
147  int totalEventsPassed() const;
148 
151  int totalEventsFailed() const;
152 
155  void enableEndPaths(bool active);
156 
159  bool endPathsEnabled() const;
160 
162  void clearCounters();
163 
164  // Really should not be public,
165  // but the EventFilter needs it for now.
167 
168  //------------------------------------------------------------------
169  //
170  // Nested classes and structs below.
171 
172  // The function "runToCompletion" will run until the job is "complete",
173  // which means:
174  // 1 - no more input data
175  // 2 - input maxEvents parameter limit reached
176  // 3 - output maxEvents parameter limit reached
177  // 4 - input maxLuminosityBlocks parameter limit reached
178  // 5 - looper directs processing to end
179  //
180  // The return values from the function are as follows:
181  // epSignal - processing terminated early, SIGUSR2 encountered
182  // epCountComplete - "runEventCount" processed the number of events
183  // requested by the argument
184  // epSuccess - all other cases
185  //
187 
188  // The following functions are used by the code implementing
189  // transition handling.
190 
194  return InputSource::IsStop;
195  }
196  return lastSourceTransition_;
197  }
198  std::pair<edm::ProcessHistoryID, edm::RunNumber_t> nextRunID();
200 
201  void readFile();
202  void closeInputFile(bool cleaningUpAfterException);
203  void openOutputFiles();
204  void closeOutputFiles();
205 
206  void respondToOpenInputFile();
208 
209  void startingNewLoop();
210  bool endOfLoop();
211  void rewindInput();
212  void prepareForNextLoop();
213  bool shouldWeCloseOutput() const;
214 
215  void doErrorStuff();
216 
217  void beginProcessBlock(bool& beginProcessBlockSucceeded);
218  void inputProcessBlocks();
219  void endProcessBlock(bool cleaningUpAfterException, bool beginProcessBlockSucceeded);
220 
221  void beginRun(ProcessHistoryID const& phid,
223  bool& globalBeginSucceeded,
224  bool& eventSetupForInstanceSucceeded);
225  void endRun(ProcessHistoryID const& phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException);
226  void endUnfinishedRun(ProcessHistoryID const& phid,
228  bool globalBeginSucceeded,
229  bool cleaningUpAfterException,
230  bool eventSetupForInstanceSucceeded);
231 
232  InputSource::ItemType processLumis(std::shared_ptr<void> const& iRunResource);
233  void endUnfinishedLumi();
234 
235  void beginLumiAsync(edm::IOVSyncValue const& iSyncValue,
236  std::shared_ptr<void> const& iRunResource,
237  edm::WaitingTaskHolder iHolder);
239 
240  void handleEndLumiExceptions(std::exception_ptr const* iPtr, WaitingTaskHolder& holder);
241  void globalEndLumiAsync(edm::WaitingTaskHolder iTask, std::shared_ptr<LuminosityBlockProcessingStatus> iLumiStatus);
242  void streamEndLumiAsync(edm::WaitingTaskHolder iTask, unsigned int iStreamIndex);
243  std::pair<ProcessHistoryID, RunNumber_t> readRun();
244  std::pair<ProcessHistoryID, RunNumber_t> readAndMergeRun();
250  ProcessHistoryID const& phid,
256 
257  bool shouldWeStop() const;
258 
259  void setExceptionMessageFiles(std::string& message);
260  void setExceptionMessageRuns(std::string& message);
262 
263  bool setDeferredException(std::exception_ptr);
264 
265  private:
266  //------------------------------------------------------------------
267  //
268  // Now private functions.
269  // init() is used by only by constructors
270  void init(std::shared_ptr<ProcessDesc>& processDesc, ServiceToken const& token, serviceregistry::ServiceLegacy);
271 
272  bool readNextEventForStream(unsigned int iStreamIndex, LuminosityBlockProcessingStatus& iLumiStatus);
273 
274  void handleNextEventForStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamIndex);
275 
276  //read the next event using Stream iStreamIndex
277  void readEvent(unsigned int iStreamIndex);
278 
279  //process the already read event using Stream iStreamIndex
280  void processEventAsync(WaitingTaskHolder iHolder, unsigned int iStreamIndex);
281 
282  void processEventAsyncImpl(WaitingTaskHolder iHolder, unsigned int iStreamIndex);
283 
284  //returns true if an asynchronous stop was requested
286 
287  void processEventWithLooper(EventPrincipal&, unsigned int iStreamIndex);
288 
289  std::shared_ptr<ProductRegistry const> preg() const { return get_underlying_safe(preg_); }
290  std::shared_ptr<ProductRegistry>& preg() { return get_underlying_safe(preg_); }
291  std::shared_ptr<BranchIDListHelper const> branchIDListHelper() const {
293  }
294  std::shared_ptr<BranchIDListHelper>& branchIDListHelper() { return get_underlying_safe(branchIDListHelper_); }
295  std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper() const {
297  }
298  std::shared_ptr<ThinnedAssociationsHelper>& thinnedAssociationsHelper() {
300  }
301  std::shared_ptr<EDLooperBase const> looper() const { return get_underlying_safe(looper_); }
302  std::shared_ptr<EDLooperBase>& looper() { return get_underlying_safe(looper_); }
303 
305  //------------------------------------------------------------------
306  //
307  // Data members below.
308  // Are all these data members really needed? Some of them are used
309  // only during construction, and never again. If they aren't
310  // really needed, we should remove them.
311 
312  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
322  std::unique_ptr<ExceptionToActionTable const> act_table_;
323  std::shared_ptr<ProcessConfiguration const> processConfiguration_;
328  std::vector<edm::SerialTaskQueue> streamQueues_;
329  std::unique_ptr<edm::LimitedTaskQueue> lumiQueue_;
330  std::vector<std::shared_ptr<LuminosityBlockProcessingStatus>> streamLumiStatus_;
331  std::atomic<unsigned int> streamLumiActive_{0}; //works as guard for streamLumiStatus
332 
333  std::vector<SubProcess> subProcesses_;
335 
338 
339  //The atomic protects concurrent access of deferredExceptionPtr_
340  std::atomic<bool> deferredExceptionPtrIsSet_;
341  std::exception_ptr deferredExceptionPtr_;
342 
344  std::shared_ptr<std::recursive_mutex> sourceMutex_;
351  std::atomic<bool> exceptionMessageLumis_;
355 
357 
360  bool firstEventInBlock_ = true;
361 
362  typedef std::set<std::pair<std::string, std::string>> ExcludedData;
363  typedef std::map<std::string, ExcludedData> ExcludedDataMap;
365 
366  bool printDependencies_ = false;
367  }; // class EventProcessor
368 
369  //--------------------------------------------------------------------
370 
372 } // namespace edm
373 #endif
edm::EventProcessor::looperBeginJobRun_
bool looperBeginJobRun_
Definition: EventProcessor.h:353
edm::SharedResourcesAcquirer
Definition: SharedResourcesAcquirer.h:34
edm::EventProcessor::deleteRunFromCache
void deleteRunFromCache(ProcessHistoryID const &phid, RunNumber_t run)
Definition: EventProcessor.cc:1628
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:334
ProcessHistoryID.h
edm::EventProcessor::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Definition: EventProcessor.h:295
edm::EventProcessor::rewindInput
void rewindInput()
Definition: EventProcessor.cc:843
edm::EventProcessor::eventSetupDataToExcludeFromPrefetching_
ExcludedDataMap eventSetupDataToExcludeFromPrefetching_
Definition: EventProcessor.h:364
edm::EventProcessor::respondToCloseInputFile
void respondToCloseInputFile()
Definition: EventProcessor.cc:810
edm::EventProcessor::totalEventsPassed
int totalEventsPassed() const
Definition: EventProcessor.cc:631
edm::EventProcessor::preg_
edm::propagate_const< std::shared_ptr< ProductRegistry > > preg_
Definition: EventProcessor.h:313
edm::EventProcessor::readRun
std::pair< ProcessHistoryID, RunNumber_t > readRun()
Definition: EventProcessor.cc:1514
edm::EventProcessor::shouldWeCloseOutput
bool shouldWeCloseOutput() const
Definition: EventProcessor.cc:854
edm::EventProcessor::writeRunAsync
void writeRunAsync(WaitingTaskHolder, ProcessHistoryID const &phid, RunNumber_t run, MergeableRunProductMetadata const *)
Definition: EventProcessor.cc:1604
edm::EventProcessor::StatusCode
StatusCode
Definition: EventProcessor.h:74
edm::EventProcessor::endOfLoop
bool endOfLoop()
Definition: EventProcessor.cc:828
edm::EventProcessor::input_
edm::propagate_const< std::unique_ptr< InputSource > > input_
Definition: EventProcessor.h:317
edm::EventProcessor::getToken
ServiceToken getToken()
Definition: EventProcessor.cc:623
edm::EventProcessor::startingNewLoop
void startingNewLoop()
Definition: EventProcessor.cc:818
edm::EventProcessor::totalEvents
int totalEvents() const
Definition: EventProcessor.cc:629
edm::EventProcessor::processConfiguration
ProcessConfiguration const & processConfiguration() const
Definition: EventProcessor.h:138
edm::EventProcessor::deleteLumiFromCache
void deleteLumiFromCache(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1653
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::EventProcessor::endJob
void endJob()
Definition: EventProcessor.cc:592
edm::ProcessContext
Definition: ProcessContext.h:27
edm::EventProcessor::globalEndLumiAsync
void globalEndLumiAsync(edm::WaitingTaskHolder iTask, std::shared_ptr< LuminosityBlockProcessingStatus > iLumiStatus)
Definition: EventProcessor.cc:1360
edm::EventProcessor::runToCompletion
StatusCode runToCompletion()
Definition: EventProcessor.cc:688
edm::EventProcessor::readAndMergeRun
std::pair< ProcessHistoryID, RunNumber_t > readAndMergeRun()
Definition: EventProcessor.cc:1537
edm::EventProcessor::esp_
edm::propagate_const< std::shared_ptr< eventsetup::EventSetupProvider > > esp_
Definition: EventProcessor.h:320
edm::EventProcessor::shouldWeStop_
bool shouldWeStop_
Definition: EventProcessor.h:347
edm::EventProcessor::readEvent
void readEvent(unsigned int iStreamIndex)
Definition: EventProcessor.cc:1781
edm::EventProcessor::processLumis
InputSource::ItemType processLumis(std::shared_ptr< void > const &iRunResource)
Definition: EventProcessor.cc:1133
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:970
edm::EventProcessor::enableEndPaths
void enableEndPaths(bool active)
Definition: EventProcessor.cc:635
edm::EventProcessor::endUnfinishedRun
void endUnfinishedRun(ProcessHistoryID const &phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException, bool eventSetupForInstanceSucceeded)
Definition: EventProcessor.cc:1043
edm::EventProcessor::branchIDListHelper
std::shared_ptr< BranchIDListHelper > & branchIDListHelper()
Definition: EventProcessor.h:294
edm::EventProcessor::deferredExceptionPtr_
std::exception_ptr deferredExceptionPtr_
Definition: EventProcessor.h:341
SignallingProductRegistry.h
edm::EventProcessor::lumiQueue_
std::unique_ptr< edm::LimitedTaskQueue > lumiQueue_
Definition: EventProcessor.h:329
edm::SerialTaskQueue
Definition: SerialTaskQueue.h:67
ServiceToken.h
edm::get_underlying_safe
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
Definition: get_underlying_safe.h:41
PreallocationConfiguration.h
edm::EventProcessor::processContext_
ProcessContext processContext_
Definition: EventProcessor.h:324
edm::EventProcessor::lastSourceTransition_
InputSource::ItemType lastSourceTransition_
Definition: EventProcessor.h:318
edm::EventProcessor::pathsAndConsumesOfModules_
PathsAndConsumesOfModules pathsAndConsumesOfModules_
Definition: EventProcessor.h:325
edm::EventProcessor::exceptionMessageFiles_
std::string exceptionMessageFiles_
Definition: EventProcessor.h:349
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
edm::EventProcessor::asyncStopRequestedWhileProcessingEvents_
bool asyncStopRequestedWhileProcessingEvents_
Definition: EventProcessor.h:358
LuminosityBlockID.h
edm::EventProcessor::totalEventsFailed
int totalEventsFailed() const
Definition: EventProcessor.cc:633
edm::EventProcessor::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper > & thinnedAssociationsHelper()
Definition: EventProcessor.h:298
edm::EventProcessor::setExceptionMessageRuns
void setExceptionMessageRuns(std::string &message)
Definition: EventProcessor.cc:1898
edm::PathsAndConsumesOfModules
Definition: PathsAndConsumesOfModules.h:29
edm::EventProcessor::setExceptionMessageFiles
void setExceptionMessageFiles(std::string &message)
Definition: EventProcessor.cc:1896
PathsAndConsumesOfModules.h
ActivityRegistry.h
edm::EventProcessor::processEventAsyncImpl
void processEventAsyncImpl(WaitingTaskHolder iHolder, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1800
edm::EventProcessor::endProcessBlock
void endProcessBlock(bool cleaningUpAfterException, bool beginProcessBlockSucceeded)
Definition: EventProcessor.cc:934
SharedResourcesAcquirer.h
edm::ServiceToken
Definition: ServiceToken.h:40
edm::EventProcessor::inputProcessBlocks
void inputProcessBlocks()
Definition: EventProcessor.cc:895
edm::EventProcessor::exceptionMessageLumis_
std::atomic< bool > exceptionMessageLumis_
Definition: EventProcessor.h:351
edm::propagate_const
Definition: propagate_const.h:32
edm::EventProcessor::readAndMergeLumi
int readAndMergeLumi(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1568
edm::EventPrincipal
Definition: EventPrincipal.h:46
edm::EventProcessor::queueWhichWaitsForIOVsToFinish_
edm::SerialTaskQueue queueWhichWaitsForIOVsToFinish_
Definition: EventProcessor.h:321
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:218
edm::EventProcessor::getAllModuleDescriptions
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
Definition: EventProcessor.cc:625
edm::EventProcessor::endPathsEnabled
bool endPathsEnabled() const
Definition: EventProcessor.cc:637
edm::PrincipalCache
Definition: PrincipalCache.h:48
edm::EventProcessor::streamQueues_
std::vector< edm::SerialTaskQueue > streamQueues_
Definition: EventProcessor.h:328
edm::EventProcessor::epInputComplete
Definition: EventProcessor.h:79
edm::EventProcessor::openOutputFiles
void openOutputFiles()
Definition: EventProcessor.cc:784
edm::EventProcessor::readLuminosityBlock
void readLuminosityBlock(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1549
edm::EventProcessor::taskCleanup
void taskCleanup()
Definition: EventProcessor.cc:533
edm::EventProcessor::sourceMutex_
std::shared_ptr< std::recursive_mutex > sourceMutex_
Definition: EventProcessor.h:344
edm::EventProcessor::clearCounters
void clearCounters()
Clears counters used by trigger report.
Definition: EventProcessor.cc:639
edm::EventProcessor::beginJobCalled_
bool beginJobCalled_
Definition: EventProcessor.h:346
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::LuminosityBlockProcessingStatus
Definition: LuminosityBlockProcessingStatus.h:41
WaitingTaskHolder
edm::EventProcessor::fileModeNoMerge_
bool fileModeNoMerge_
Definition: EventProcessor.h:348
IOVSyncValue
edm::Hash< ProcessHistoryType >
edm::EventProcessor::writeProcessBlockAsync
void writeProcessBlockAsync(WaitingTaskHolder, ProcessBlockType)
Definition: EventProcessor.cc:1585
edm::EventProcessor::warnAboutModulesRequiringLuminosityBLockSynchronization
void warnAboutModulesRequiringLuminosityBLockSynchronization() const
Definition: EventProcessor.cc:1911
LimitedTaskQueue.h
edm::EventProcessor::ExcludedData
std::set< std::pair< std::string, std::string > > ExcludedData
Definition: EventProcessor.h:362
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
edm::EventProcessor::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: EventProcessor.h:312
edm::EventProcessor::exceptionMessageRuns_
std::string exceptionMessageRuns_
Definition: EventProcessor.h:350
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventProcessor::printDependencies_
bool printDependencies_
Definition: EventProcessor.h:366
edm::EventProcessor::preallocations_
PreallocationConfiguration preallocations_
Definition: EventProcessor.h:356
LuminosityBlockProcessingStatus
edm::EventProcessor::act_table_
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: EventProcessor.h:322
edm::EventProcessor::beginLumiAsync
void beginLumiAsync(edm::IOVSyncValue const &iSyncValue, std::shared_ptr< void > const &iRunResource, edm::WaitingTaskHolder iHolder)
Definition: EventProcessor.cc:1155
edm::EventProcessor::espController_
edm::propagate_const< std::unique_ptr< eventsetup::EventSetupsController > > espController_
Definition: EventProcessor.h:319
edm::EventProcessor::streamLumiStatus_
std::vector< std::shared_ptr< LuminosityBlockProcessingStatus > > streamLumiStatus_
Definition: EventProcessor.h:330
PrincipalCache.h
edm::WaitingTaskHolder
Definition: WaitingTaskHolder.h:30
edm::EventProcessor::streamEndLumiAsync
void streamEndLumiAsync(edm::WaitingTaskHolder iTask, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1449
edm::EventProcessor::preg
std::shared_ptr< ProductRegistry > & preg()
Definition: EventProcessor.h:290
edm::EventProcessor::epException
Definition: EventProcessor.h:76
edm::EventProcessor::serviceToken_
ServiceToken serviceToken_
Definition: EventProcessor.h:316
edm::serviceregistry::kOverlapIsError
Definition: ServiceLegacy.h:29
edm::EventProcessor::lastTransitionType
InputSource::ItemType lastTransitionType() const
Definition: EventProcessor.h:192
edm::EventProcessor::thinnedAssociationsHelper_
edm::propagate_const< std::shared_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: EventProcessor.h:315
edm::EventProcessor::readNextEventForStream
bool readNextEventForStream(unsigned int iStreamIndex, LuminosityBlockProcessingStatus &iLumiStatus)
Definition: EventProcessor.cc:1661
edm::EventProcessor::forceLooperToEnd_
bool forceLooperToEnd_
Definition: EventProcessor.h:352
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:336
edm::EventProcessor::epOther
Definition: EventProcessor.h:77
edm::EventProcessor::streamLumiActive_
std::atomic< unsigned int > streamLumiActive_
Definition: EventProcessor.h:331
edm::EventProcessor::mergeableRunProductProcesses_
MergeableRunProductProcesses mergeableRunProductProcesses_
Definition: EventProcessor.h:326
edm::EventProcessor::operator=
EventProcessor & operator=(EventProcessor const &)=delete
edm::EventProcessor::endUnfinishedLumi
void endUnfinishedLumi()
Definition: EventProcessor.cc:1495
edm::EventProcessor::readFile
void readFile()
Definition: EventProcessor.cc:757
edm::PrincipalCache::ProcessBlockType
ProcessBlockType
Definition: PrincipalCache.h:57
edm::EventProcessor::asyncStopStatusCodeFromProcessingEvents_
StatusCode asyncStopStatusCodeFromProcessingEvents_
Definition: EventProcessor.h:359
edm::EventProcessor::looper_
edm::propagate_const< std::shared_ptr< EDLooperBase > > looper_
Definition: EventProcessor.h:337
edm::EventProcessor::sourceResourcesAcquirer_
SharedResourcesAcquirer sourceResourcesAcquirer_
Definition: EventProcessor.h:343
edm::EventProcessor::setDeferredException
bool setDeferredException(std::exception_ptr)
Definition: EventProcessor.cc:1902
edm::InputSource::ItemType
ItemType
Definition: InputSource.h:78
edm::EventProcessor::continueLumiAsync
void continueLumiAsync(edm::WaitingTaskHolder iHolder)
Definition: EventProcessor.cc:1332
edm::EventProcessor::doErrorStuff
void doErrorStuff()
Definition: EventProcessor.cc:867
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::EventProcessor::~EventProcessor
~EventProcessor()
Definition: EventProcessor.cc:515
edm::EventProcessor::beginProcessBlock
void beginProcessBlock(bool &beginProcessBlockSucceeded)
Definition: EventProcessor.cc:876
edm::EventProcessor::firstEventInBlock_
bool firstEventInBlock_
Definition: EventProcessor.h:360
edm::EventProcessor::closeInputFile
void closeInputFile(bool cleaningUpAfterException)
Definition: EventProcessor.cc:775
EDLooperBase
edm::EventProcessor::principalCache_
PrincipalCache principalCache_
Definition: EventProcessor.h:345
Frameworkfwd.h
InputSource.h
edm::EventProcessor::branchIDListHelper
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Definition: EventProcessor.h:291
edm::EventProcessor::looper
std::shared_ptr< EDLooperBase > & looper()
Definition: EventProcessor.h:302
edm::EventProcessor::deferredExceptionPtrIsSet_
std::atomic< bool > deferredExceptionPtrIsSet_
Definition: EventProcessor.h:340
edm::EventProcessor::epSuccess
Definition: EventProcessor.h:75
edm::EventProcessor::processConfiguration_
std::shared_ptr< ProcessConfiguration const > processConfiguration_
Definition: EventProcessor.h:323
ServiceLegacy.h
edm::EventProcessor::run
StatusCode run()
Definition: EventProcessor.h:371
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:1351
edm::EventProcessor::processEventWithLooper
void processEventWithLooper(EventPrincipal &, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1853
edm::EventProcessor::endRun
void endRun(ProcessHistoryID const &phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException)
Definition: EventProcessor.cc:1069
edm::EventProcessor::setExceptionMessageLumis
void setExceptionMessageLumis()
Definition: EventProcessor.cc:1900
edm::EventProcessor::looper
std::shared_ptr< EDLooperBase const > looper() const
Definition: EventProcessor.h:301
edm::EventProcessor::nextLuminosityBlockID
edm::LuminosityBlockNumber_t nextLuminosityBlockID()
Definition: EventProcessor.cc:686
edm::EventProcessor
Definition: EventProcessor.h:64
edm::EventProcessor::closeOutputFiles
void closeOutputFiles()
Definition: EventProcessor.cc:792
ParameterSet.h
edm::EventProcessor::subProcesses_
std::vector< SubProcess > subProcesses_
Definition: EventProcessor.h:333
edm::EventProcessor::nextTransitionType
InputSource::ItemType nextTransitionType()
Definition: EventProcessor.cc:656
edm::EventProcessor::prepareForNextLoop
void prepareForNextLoop()
Definition: EventProcessor.cc:849
edm::EventProcessor::init
void init(std::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy)
Definition: EventProcessor.cc:328
edm::EventProcessor::respondToOpenInputFile
void respondToOpenInputFile()
Definition: EventProcessor.cc:800
edm::EventProcessor::processEventAsync
void processEventAsync(WaitingTaskHolder iHolder, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1795
get_underlying_safe.h
ProcessContext.h
edm::EventProcessor::shouldWeStop
bool shouldWeStop() const
Definition: EventProcessor.cc:1881
edm::EventProcessor::preg
std::shared_ptr< ProductRegistry const > preg() const
Definition: EventProcessor.h:289
edm::EventProcessor::schedule_
edm::propagate_const< std::unique_ptr< Schedule > > schedule_
Definition: EventProcessor.h:327
RunID.h
edm::EventProcessor::writeLumiAsync
void writeLumiAsync(WaitingTaskHolder, LuminosityBlockPrincipal &lumiPrincipal)
Definition: EventProcessor.cc:1634
edm::EventProcessor::nextRunID
std::pair< edm::ProcessHistoryID, edm::RunNumber_t > nextRunID()
Definition: EventProcessor.cc:682
edm::EventProcessor::handleNextEventForStreamAsync
void handleNextEventForStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1723
edm::ProcessConfiguration
Definition: ProcessConfiguration.h:14
edm::EventProcessor::branchIDListHelper_
edm::propagate_const< std::shared_ptr< BranchIDListHelper > > branchIDListHelper_
Definition: EventProcessor.h:314
edm::EventProcessor::ExcludedDataMap
std::map< std::string, ExcludedData > ExcludedDataMap
Definition: EventProcessor.h:363
edm::serviceregistry::ServiceLegacy
ServiceLegacy
Definition: ServiceLegacy.h:29
edm::EventProcessor::checkForAsyncStopRequest
bool checkForAsyncStopRequest(StatusCode &)
Definition: EventProcessor.cc:645
edm::EventProcessor::forceESCacheClearOnNewRun_
bool forceESCacheClearOnNewRun_
Definition: EventProcessor.h:354
edm::EventProcessor::beginJob
void beginJob()
Definition: EventProcessor.cc:535
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:318
edm::MergeableRunProductProcesses
Definition: MergeableRunProductProcesses.h:11