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  bool fileBlockValid() { return fb_.get() != nullptr; }
203  void closeInputFile(bool cleaningUpAfterException);
204  void openOutputFiles();
205  void closeOutputFiles();
206 
207  void respondToOpenInputFile();
209 
210  void startingNewLoop();
211  bool endOfLoop();
212  void rewindInput();
213  void prepareForNextLoop();
214  bool shouldWeCloseOutput() const;
215 
216  void doErrorStuff();
217 
218  void beginProcessBlock(bool& beginProcessBlockSucceeded);
219  void inputProcessBlocks();
220  void endProcessBlock(bool cleaningUpAfterException, bool beginProcessBlockSucceeded);
221 
222  void beginRun(ProcessHistoryID const& phid,
224  bool& globalBeginSucceeded,
225  bool& eventSetupForInstanceSucceeded);
226  void endRun(ProcessHistoryID const& phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException);
227  void endUnfinishedRun(ProcessHistoryID const& phid,
229  bool globalBeginSucceeded,
230  bool cleaningUpAfterException,
231  bool eventSetupForInstanceSucceeded);
232 
233  InputSource::ItemType processLumis(std::shared_ptr<void> const& iRunResource);
234  void endUnfinishedLumi();
235 
236  void beginLumiAsync(edm::IOVSyncValue const& iSyncValue,
237  std::shared_ptr<void> const& iRunResource,
238  edm::WaitingTaskHolder iHolder);
240 
241  void handleEndLumiExceptions(std::exception_ptr const* iPtr, WaitingTaskHolder& holder);
242  void globalEndLumiAsync(edm::WaitingTaskHolder iTask, std::shared_ptr<LuminosityBlockProcessingStatus> iLumiStatus);
243  void streamEndLumiAsync(edm::WaitingTaskHolder iTask, unsigned int iStreamIndex);
244  std::pair<ProcessHistoryID, RunNumber_t> readRun();
245  std::pair<ProcessHistoryID, RunNumber_t> readAndMergeRun();
251  ProcessHistoryID const& phid,
257 
258  bool shouldWeStop() const;
259 
260  void setExceptionMessageFiles(std::string& message);
261  void setExceptionMessageRuns(std::string& message);
263 
264  bool setDeferredException(std::exception_ptr);
265 
266  private:
267  //------------------------------------------------------------------
268  //
269  // Now private functions.
270  // init() is used by only by constructors
271  void init(std::shared_ptr<ProcessDesc>& processDesc, ServiceToken const& token, serviceregistry::ServiceLegacy);
272 
273  bool readNextEventForStream(unsigned int iStreamIndex, LuminosityBlockProcessingStatus& iLumiStatus);
274 
275  void handleNextEventForStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamIndex);
276 
277  //read the next event using Stream iStreamIndex
278  void readEvent(unsigned int iStreamIndex);
279 
280  //process the already read event using Stream iStreamIndex
281  void processEventAsync(WaitingTaskHolder iHolder, unsigned int iStreamIndex);
282 
283  void processEventAsyncImpl(WaitingTaskHolder iHolder, unsigned int iStreamIndex);
284 
285  //returns true if an asynchronous stop was requested
287 
288  void processEventWithLooper(EventPrincipal&, unsigned int iStreamIndex);
289 
290  std::shared_ptr<ProductRegistry const> preg() const { return get_underlying_safe(preg_); }
291  std::shared_ptr<ProductRegistry>& preg() { return get_underlying_safe(preg_); }
292  std::shared_ptr<BranchIDListHelper const> branchIDListHelper() const {
294  }
295  std::shared_ptr<BranchIDListHelper>& branchIDListHelper() { return get_underlying_safe(branchIDListHelper_); }
296  std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper() const {
298  }
299  std::shared_ptr<ThinnedAssociationsHelper>& thinnedAssociationsHelper() {
301  }
302  std::shared_ptr<EDLooperBase const> looper() const { return get_underlying_safe(looper_); }
303  std::shared_ptr<EDLooperBase>& looper() { return get_underlying_safe(looper_); }
304 
306  //------------------------------------------------------------------
307  //
308  // Data members below.
309  // Are all these data members really needed? Some of them are used
310  // only during construction, and never again. If they aren't
311  // really needed, we should remove them.
312 
313  //Guarantee that task group is the last to be destroyed
314  tbb::task_group taskGroup_;
315 
316  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
326  std::unique_ptr<ExceptionToActionTable const> act_table_;
327  std::shared_ptr<ProcessConfiguration const> processConfiguration_;
332  std::vector<edm::SerialTaskQueue> streamQueues_;
333  std::unique_ptr<edm::LimitedTaskQueue> lumiQueue_;
334  std::vector<std::shared_ptr<LuminosityBlockProcessingStatus>> streamLumiStatus_;
335  std::atomic<unsigned int> streamLumiActive_{0}; //works as guard for streamLumiStatus
336 
337  std::vector<SubProcess> subProcesses_;
339 
342 
343  //The atomic protects concurrent access of deferredExceptionPtr_
344  std::atomic<bool> deferredExceptionPtrIsSet_;
345  std::exception_ptr deferredExceptionPtr_;
346 
348  std::shared_ptr<std::recursive_mutex> sourceMutex_;
355  std::atomic<bool> exceptionMessageLumis_;
359 
361 
364  bool firstEventInBlock_ = true;
365 
366  typedef std::set<std::pair<std::string, std::string>> ExcludedData;
367  typedef std::map<std::string, ExcludedData> ExcludedDataMap;
369 
370  bool printDependencies_ = false;
372  }; // class EventProcessor
373 
374  //--------------------------------------------------------------------
375 
377 } // namespace edm
378 #endif
edm::EventProcessor::looperBeginJobRun_
bool looperBeginJobRun_
Definition: EventProcessor.h:357
edm::SharedResourcesAcquirer
Definition: SharedResourcesAcquirer.h:34
edm::EventProcessor::deleteRunFromCache
void deleteRunFromCache(ProcessHistoryID const &phid, RunNumber_t run)
Definition: EventProcessor.cc:1712
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:338
ProcessHistoryID.h
edm::EventProcessor::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Definition: EventProcessor.h:296
edm::EventProcessor::rewindInput
void rewindInput()
Definition: EventProcessor.cc:916
edm::EventProcessor::eventSetupDataToExcludeFromPrefetching_
ExcludedDataMap eventSetupDataToExcludeFromPrefetching_
Definition: EventProcessor.h:368
edm::EventProcessor::respondToCloseInputFile
void respondToCloseInputFile()
Definition: EventProcessor.cc:883
edm::EventProcessor::totalEventsPassed
int totalEventsPassed() const
Definition: EventProcessor.cc:705
edm::EventProcessor::preg_
edm::propagate_const< std::shared_ptr< ProductRegistry > > preg_
Definition: EventProcessor.h:317
edm::EventProcessor::readRun
std::pair< ProcessHistoryID, RunNumber_t > readRun()
Definition: EventProcessor.cc:1600
edm::EventProcessor::shouldWeCloseOutput
bool shouldWeCloseOutput() const
Definition: EventProcessor.cc:927
edm::EventProcessor::writeRunAsync
void writeRunAsync(WaitingTaskHolder, ProcessHistoryID const &phid, RunNumber_t run, MergeableRunProductMetadata const *)
Definition: EventProcessor.cc:1689
edm::EventProcessor::StatusCode
StatusCode
Definition: EventProcessor.h:74
edm::EventProcessor::endOfLoop
bool endOfLoop()
Definition: EventProcessor.cc:901
edm::EventProcessor::input_
edm::propagate_const< std::unique_ptr< InputSource > > input_
Definition: EventProcessor.h:321
edm::EventProcessor::getToken
ServiceToken getToken()
Definition: EventProcessor.cc:697
edm::EventProcessor::startingNewLoop
void startingNewLoop()
Definition: EventProcessor.cc:891
edm::EventProcessor::totalEvents
int totalEvents() const
Definition: EventProcessor.cc:703
edm::EventProcessor::processConfiguration
ProcessConfiguration const & processConfiguration() const
Definition: EventProcessor.h:138
edm::EventProcessor::deleteLumiFromCache
void deleteLumiFromCache(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1736
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::EventProcessor::endJob
void endJob()
Definition: EventProcessor.cc:666
edm::ProcessContext
Definition: ProcessContext.h:27
edm::EventProcessor::globalEndLumiAsync
void globalEndLumiAsync(edm::WaitingTaskHolder iTask, std::shared_ptr< LuminosityBlockProcessingStatus > iLumiStatus)
Definition: EventProcessor.cc:1442
edm::EventProcessor::runToCompletion
StatusCode runToCompletion()
Definition: EventProcessor.cc:762
edm::EventProcessor::readAndMergeRun
std::pair< ProcessHistoryID, RunNumber_t > readAndMergeRun()
Definition: EventProcessor.cc:1623
edm::EventProcessor::esp_
edm::propagate_const< std::shared_ptr< eventsetup::EventSetupProvider > > esp_
Definition: EventProcessor.h:324
edm::EventProcessor::shouldWeStop_
bool shouldWeStop_
Definition: EventProcessor.h:351
edm::EventProcessor::readEvent
void readEvent(unsigned int iStreamIndex)
Definition: EventProcessor.cc:1863
edm::EventProcessor::processLumis
InputSource::ItemType processLumis(std::shared_ptr< void > const &iRunResource)
Definition: EventProcessor.cc:1214
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:1048
edm::EventProcessor::enableEndPaths
void enableEndPaths(bool active)
Definition: EventProcessor.cc:709
edm::EventProcessor::endUnfinishedRun
void endUnfinishedRun(ProcessHistoryID const &phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException, bool eventSetupForInstanceSucceeded)
Definition: EventProcessor.cc:1122
edm::EventProcessor::branchIDListHelper
std::shared_ptr< BranchIDListHelper > & branchIDListHelper()
Definition: EventProcessor.h:295
edm::EventProcessor::deferredExceptionPtr_
std::exception_ptr deferredExceptionPtr_
Definition: EventProcessor.h:345
SignallingProductRegistry.h
edm::EventProcessor::lumiQueue_
std::unique_ptr< edm::LimitedTaskQueue > lumiQueue_
Definition: EventProcessor.h:333
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:328
edm::EventProcessor::lastSourceTransition_
InputSource::ItemType lastSourceTransition_
Definition: EventProcessor.h:322
edm::EventProcessor::pathsAndConsumesOfModules_
PathsAndConsumesOfModules pathsAndConsumesOfModules_
Definition: EventProcessor.h:329
edm::EventProcessor::exceptionMessageFiles_
std::string exceptionMessageFiles_
Definition: EventProcessor.h:353
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
edm::EventProcessor::asyncStopRequestedWhileProcessingEvents_
bool asyncStopRequestedWhileProcessingEvents_
Definition: EventProcessor.h:362
LuminosityBlockID.h
edm::EventProcessor::totalEventsFailed
int totalEventsFailed() const
Definition: EventProcessor.cc:707
edm::EventProcessor::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper > & thinnedAssociationsHelper()
Definition: EventProcessor.h:299
edm::EventProcessor::setExceptionMessageRuns
void setExceptionMessageRuns(std::string &message)
Definition: EventProcessor.cc:1979
edm::PathsAndConsumesOfModules
Definition: PathsAndConsumesOfModules.h:32
edm::EventProcessor::setExceptionMessageFiles
void setExceptionMessageFiles(std::string &message)
Definition: EventProcessor.cc:1977
PathsAndConsumesOfModules.h
ActivityRegistry.h
edm::parameterSet
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
edm::EventProcessor::processEventAsyncImpl
void processEventAsyncImpl(WaitingTaskHolder iHolder, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1881
edm::EventProcessor::endProcessBlock
void endProcessBlock(bool cleaningUpAfterException, bool beginProcessBlockSucceeded)
Definition: EventProcessor.cc:1011
SharedResourcesAcquirer.h
edm::ServiceToken
Definition: ServiceToken.h:42
edm::EventProcessor::inputProcessBlocks
void inputProcessBlocks()
Definition: EventProcessor.cc:970
edm::EventProcessor::exceptionMessageLumis_
std::atomic< bool > exceptionMessageLumis_
Definition: EventProcessor.h:355
edm::propagate_const
Definition: propagate_const.h:32
edm::EventProcessor::readAndMergeLumi
int readAndMergeLumi(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1654
edm::EventPrincipal
Definition: EventPrincipal.h:46
edm::EventProcessor::queueWhichWaitsForIOVsToFinish_
edm::SerialTaskQueue queueWhichWaitsForIOVsToFinish_
Definition: EventProcessor.h:325
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:234
edm::EventProcessor::getAllModuleDescriptions
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
Definition: EventProcessor.cc:699
edm::EventProcessor::endPathsEnabled
bool endPathsEnabled() const
Definition: EventProcessor.cc:711
edm::PrincipalCache
Definition: PrincipalCache.h:48
edm::EventProcessor::streamQueues_
std::vector< edm::SerialTaskQueue > streamQueues_
Definition: EventProcessor.h:332
edm::EventProcessor::epInputComplete
Definition: EventProcessor.h:79
edm::EventProcessor::openOutputFiles
void openOutputFiles()
Definition: EventProcessor.cc:858
edm::EventProcessor::readLuminosityBlock
void readLuminosityBlock(LuminosityBlockProcessingStatus &)
Definition: EventProcessor.cc:1635
edm::EventProcessor::taskCleanup
void taskCleanup()
Definition: EventProcessor.cc:553
edm::EventProcessor::sourceMutex_
std::shared_ptr< std::recursive_mutex > sourceMutex_
Definition: EventProcessor.h:348
edm::EventProcessor::clearCounters
void clearCounters()
Clears counters used by trigger report.
Definition: EventProcessor.cc:713
edm::EventProcessor::beginJobCalled_
bool beginJobCalled_
Definition: EventProcessor.h:350
edm::MergeableRunProductMetadata
Definition: MergeableRunProductMetadata.h:52
edm::LuminosityBlockProcessingStatus
Definition: LuminosityBlockProcessingStatus.h:41
WaitingTaskHolder
edm::EventProcessor::fileModeNoMerge_
bool fileModeNoMerge_
Definition: EventProcessor.h:352
IOVSyncValue
edm::Hash< ProcessHistoryType >
edm::EventProcessor::writeProcessBlockAsync
void writeProcessBlockAsync(WaitingTaskHolder, ProcessBlockType)
Definition: EventProcessor.cc:1671
edm::EventProcessor::warnAboutModulesRequiringLuminosityBLockSynchronization
void warnAboutModulesRequiringLuminosityBLockSynchronization() const
Definition: EventProcessor.cc:1992
LimitedTaskQueue.h
edm::EventProcessor::ExcludedData
std::set< std::pair< std::string, std::string > > ExcludedData
Definition: EventProcessor.h:366
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
edm::EventProcessor::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: EventProcessor.h:316
edm::EventProcessor::exceptionMessageRuns_
std::string exceptionMessageRuns_
Definition: EventProcessor.h:354
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventProcessor::printDependencies_
bool printDependencies_
Definition: EventProcessor.h:370
edm::EventProcessor::preallocations_
PreallocationConfiguration preallocations_
Definition: EventProcessor.h:360
LuminosityBlockProcessingStatus
edm::EventProcessor::act_table_
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: EventProcessor.h:326
edm::EventProcessor::deleteNonConsumedUnscheduledModules_
bool deleteNonConsumedUnscheduledModules_
Definition: EventProcessor.h:371
edm::EventProcessor::beginLumiAsync
void beginLumiAsync(edm::IOVSyncValue const &iSyncValue, std::shared_ptr< void > const &iRunResource, edm::WaitingTaskHolder iHolder)
Definition: EventProcessor.cc:1236
edm::EventProcessor::espController_
edm::propagate_const< std::unique_ptr< eventsetup::EventSetupsController > > espController_
Definition: EventProcessor.h:323
edm::EventProcessor::streamLumiStatus_
std::vector< std::shared_ptr< LuminosityBlockProcessingStatus > > streamLumiStatus_
Definition: EventProcessor.h:334
PrincipalCache.h
edm::WaitingTaskHolder
Definition: WaitingTaskHolder.h:32
edm::EventProcessor::streamEndLumiAsync
void streamEndLumiAsync(edm::WaitingTaskHolder iTask, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1535
edm::EventProcessor::preg
std::shared_ptr< ProductRegistry > & preg()
Definition: EventProcessor.h:291
edm::EventProcessor::epException
Definition: EventProcessor.h:76
edm::EventProcessor::serviceToken_
ServiceToken serviceToken_
Definition: EventProcessor.h:320
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:319
edm::EventProcessor::readNextEventForStream
bool readNextEventForStream(unsigned int iStreamIndex, LuminosityBlockProcessingStatus &iLumiStatus)
Definition: EventProcessor.cc:1744
edm::EventProcessor::forceLooperToEnd_
bool forceLooperToEnd_
Definition: EventProcessor.h:356
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:340
edm::EventProcessor::epOther
Definition: EventProcessor.h:77
edm::EventProcessor::streamLumiActive_
std::atomic< unsigned int > streamLumiActive_
Definition: EventProcessor.h:335
edm::EventProcessor::mergeableRunProductProcesses_
MergeableRunProductProcesses mergeableRunProductProcesses_
Definition: EventProcessor.h:330
edm::EventProcessor::operator=
EventProcessor & operator=(EventProcessor const &)=delete
edm::EventProcessor::endUnfinishedLumi
void endUnfinishedLumi()
Definition: EventProcessor.cc:1580
edm::EventProcessor::readFile
void readFile()
Definition: EventProcessor.cc:831
edm::PrincipalCache::ProcessBlockType
ProcessBlockType
Definition: PrincipalCache.h:57
edm::EventProcessor::asyncStopStatusCodeFromProcessingEvents_
StatusCode asyncStopStatusCodeFromProcessingEvents_
Definition: EventProcessor.h:363
edm::EventProcessor::looper_
edm::propagate_const< std::shared_ptr< EDLooperBase > > looper_
Definition: EventProcessor.h:341
edm::EventProcessor::sourceResourcesAcquirer_
SharedResourcesAcquirer sourceResourcesAcquirer_
Definition: EventProcessor.h:347
edm::EventProcessor::setDeferredException
bool setDeferredException(std::exception_ptr)
Definition: EventProcessor.cc:1983
edm::InputSource::ItemType
ItemType
Definition: InputSource.h:78
edm::EventProcessor::continueLumiAsync
void continueLumiAsync(edm::WaitingTaskHolder iHolder)
Definition: EventProcessor.cc:1416
edm::EventProcessor::doErrorStuff
void doErrorStuff()
Definition: EventProcessor.cc:940
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::EventProcessor::~EventProcessor
~EventProcessor()
Definition: EventProcessor.cc:535
edm::EventProcessor::beginProcessBlock
void beginProcessBlock(bool &beginProcessBlockSucceeded)
Definition: EventProcessor.cc:949
edm::EventProcessor::firstEventInBlock_
bool firstEventInBlock_
Definition: EventProcessor.h:364
edm::EventProcessor::closeInputFile
void closeInputFile(bool cleaningUpAfterException)
Definition: EventProcessor.cc:849
edm::EventProcessor::taskGroup_
tbb::task_group taskGroup_
Definition: EventProcessor.h:314
EDLooperBase
edm::EventProcessor::principalCache_
PrincipalCache principalCache_
Definition: EventProcessor.h:349
Frameworkfwd.h
InputSource.h
edm::EventProcessor::branchIDListHelper
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Definition: EventProcessor.h:292
edm::EventProcessor::looper
std::shared_ptr< EDLooperBase > & looper()
Definition: EventProcessor.h:303
edm::EventProcessor::deferredExceptionPtrIsSet_
std::atomic< bool > deferredExceptionPtrIsSet_
Definition: EventProcessor.h:344
edm::EventProcessor::epSuccess
Definition: EventProcessor.h:75
edm::EventProcessor::processConfiguration_
std::shared_ptr< ProcessConfiguration const > processConfiguration_
Definition: EventProcessor.h:327
ServiceLegacy.h
edm::EventProcessor::run
StatusCode run()
Definition: EventProcessor.h:376
MergeableRunProductProcesses.h
edm::EventProcessor::handleEndLumiExceptions
void handleEndLumiExceptions(std::exception_ptr const *iPtr, WaitingTaskHolder &holder)
Definition: EventProcessor.cc:1433
edm::EventProcessor::processEventWithLooper
void processEventWithLooper(EventPrincipal &, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1934
edm::EventProcessor::fileBlockValid
bool fileBlockValid()
Definition: EventProcessor.h:202
edm::EventProcessor::endRun
void endRun(ProcessHistoryID const &phid, RunNumber_t run, bool globalBeginSucceeded, bool cleaningUpAfterException)
Definition: EventProcessor.cc:1149
edm::EventProcessor::setExceptionMessageLumis
void setExceptionMessageLumis()
Definition: EventProcessor.cc:1981
edm::EventProcessor::looper
std::shared_ptr< EDLooperBase const > looper() const
Definition: EventProcessor.h:302
edm::EventProcessor::nextLuminosityBlockID
edm::LuminosityBlockNumber_t nextLuminosityBlockID()
Definition: EventProcessor.cc:760
edm::EventProcessor
Definition: EventProcessor.h:64
edm::EventProcessor::closeOutputFiles
void closeOutputFiles()
Definition: EventProcessor.cc:866
ParameterSet.h
edm::EventProcessor::subProcesses_
std::vector< SubProcess > subProcesses_
Definition: EventProcessor.h:337
edm::EventProcessor::nextTransitionType
InputSource::ItemType nextTransitionType()
Definition: EventProcessor.cc:730
edm::EventProcessor::prepareForNextLoop
void prepareForNextLoop()
Definition: EventProcessor.cc:922
edm::EventProcessor::init
void init(std::shared_ptr< ProcessDesc > &processDesc, ServiceToken const &token, serviceregistry::ServiceLegacy)
Definition: EventProcessor.cc:344
edm::EventProcessor::respondToOpenInputFile
void respondToOpenInputFile()
Definition: EventProcessor.cc:873
edm::EventProcessor::processEventAsync
void processEventAsync(WaitingTaskHolder iHolder, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1877
get_underlying_safe.h
ProcessContext.h
edm::EventProcessor::shouldWeStop
bool shouldWeStop() const
Definition: EventProcessor.cc:1962
edm::EventProcessor::preg
std::shared_ptr< ProductRegistry const > preg() const
Definition: EventProcessor.h:290
edm::EventProcessor::schedule_
edm::propagate_const< std::unique_ptr< Schedule > > schedule_
Definition: EventProcessor.h:331
RunID.h
edm::EventProcessor::writeLumiAsync
void writeLumiAsync(WaitingTaskHolder, LuminosityBlockPrincipal &lumiPrincipal)
Definition: EventProcessor.cc:1718
edm::EventProcessor::nextRunID
std::pair< edm::ProcessHistoryID, edm::RunNumber_t > nextRunID()
Definition: EventProcessor.cc:756
edm::EventProcessor::handleNextEventForStreamAsync
void handleNextEventForStreamAsync(WaitingTaskHolder iTask, unsigned int iStreamIndex)
Definition: EventProcessor.cc:1806
edm::ProcessConfiguration
Definition: ProcessConfiguration.h:14
edm::EventProcessor::branchIDListHelper_
edm::propagate_const< std::shared_ptr< BranchIDListHelper > > branchIDListHelper_
Definition: EventProcessor.h:318
edm::EventProcessor::ExcludedDataMap
std::map< std::string, ExcludedData > ExcludedDataMap
Definition: EventProcessor.h:367
edm::serviceregistry::ServiceLegacy
ServiceLegacy
Definition: ServiceLegacy.h:29
edm::EventProcessor::checkForAsyncStopRequest
bool checkForAsyncStopRequest(StatusCode &)
Definition: EventProcessor.cc:719
edm::EventProcessor::forceESCacheClearOnNewRun_
bool forceESCacheClearOnNewRun_
Definition: EventProcessor.h:358
edm::EventProcessor::beginJob
void beginJob()
Definition: EventProcessor.cc:560
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316
edm::MergeableRunProductProcesses
Definition: MergeableRunProductProcesses.h:11