#include <LuminosityBlockProcessingStatus.h>
Public Types | |
enum | EventProcessingState { EventProcessingState::kProcessing, EventProcessingState::kPauseForFileTransition, EventProcessingState::kStopLumi } |
Private Types | |
enum | State { State::kRunning, State::kUpdating, State::kNoMoreEvents } |
Private Attributes | |
bool | cleaningUpAfterException_ {false} |
WaitingTaskList | endIOVWaitingTasks_ |
edm::Timestamp | endTime_ {} |
std::atomic< char > | endTimeSetStatus_ {0} |
EventProcessingState | eventProcessingState_ {EventProcessingState::kProcessing} |
std::vector< std::shared_ptr< const EventSetupImpl > > | eventSetupImpls_ |
bool | globalBeginSucceeded_ {false} |
edm::WaitingTaskHolder | globalEndRunHolder_ |
LimitedTaskQueue::Resumer | globalLumiQueueResumer_ |
std::shared_ptr< LuminosityBlockPrincipal > | lumiPrincipal_ |
unsigned int | nStreamsProcessingLumi_ { 0 } |
std::atomic< unsigned int > | nStreamsStillProcessingLumi_ {0} |
std::atomic< bool > | startedNextLumiOrEndedRun_ {false} |
std::atomic< State > | state_ {State::kRunning} |
Description: Keep status information about one LuminosityBlock transition
Usage: <usage>
Definition at line 40 of file LuminosityBlockProcessingStatus.h.
Enumerator | |
---|---|
kProcessing | |
kPauseForFileTransition | |
kStopLumi |
Definition at line 88 of file LuminosityBlockProcessingStatus.h.
|
strongprivate |
Enumerator | |
---|---|
kRunning | |
kUpdating | |
kNoMoreEvents |
Definition at line 111 of file LuminosityBlockProcessingStatus.h.
|
default |
|
delete |
|
inline |
Definition at line 47 of file LuminosityBlockProcessingStatus.h.
References edm::WaitingTaskList::doneWaiting(), and endIOVWaitingTasks_.
|
inline |
Definition at line 98 of file LuminosityBlockProcessingStatus.h.
References cleaningUpAfterException_.
|
inline |
Definition at line 95 of file LuminosityBlockProcessingStatus.h.
References globalBeginSucceeded_.
|
inline |
Definition at line 68 of file LuminosityBlockProcessingStatus.h.
References endIOVWaitingTasks_.
|
inline |
Definition at line 89 of file LuminosityBlockProcessingStatus.h.
References eventProcessingState_.
Referenced by edm::EventProcessor::readNextEventForStream().
|
inline |
Definition at line 61 of file LuminosityBlockProcessingStatus.h.
References eventSetupImpls_.
|
inline |
Definition at line 65 of file LuminosityBlockProcessingStatus.h.
References eventSetupImpls_.
|
inline |
Definition at line 66 of file LuminosityBlockProcessingStatus.h.
References eventSetupImpls_.
|
inline |
Definition at line 96 of file LuminosityBlockProcessingStatus.h.
References globalBeginSucceeded_.
|
inline |
Definition at line 71 of file LuminosityBlockProcessingStatus.h.
References edm::WaitingTaskHolder::doneWaiting(), and globalEndRunHolder_.
|
inline |
Definition at line 92 of file LuminosityBlockProcessingStatus.h.
References startedNextLumiOrEndedRun_.
|
inline |
Definition at line 83 of file LuminosityBlockProcessingStatus.h.
References endTime_.
|
inline |
Definition at line 58 of file LuminosityBlockProcessingStatus.h.
References lumiPrincipal_.
Referenced by edm::EventProcessor::clearLumiPrincipal(), edm::EventProcessor::readAndMergeLumi(), and edm::EventProcessor::readNextEventForStream().
void edm::LuminosityBlockProcessingStatus::noMoreEventsInLumi | ( | ) |
Definition at line 46 of file LuminosityBlockProcessingStatus.cc.
References cms::cuda::assert(), kNoMoreEvents, kRunning, kUpdating, nStreamsProcessingLumi_, nStreamsStillProcessingLumi_, and state_.
|
delete |
void edm::LuminosityBlockProcessingStatus::resetResources | ( | ) |
Definition at line 17 of file LuminosityBlockProcessingStatus.cc.
References edm::WaitingTaskList::doneWaiting(), endIOVWaitingTasks_, eventSetupImpls_, and resumeGlobalLumiQueue().
|
inline |
Definition at line 50 of file LuminosityBlockProcessingStatus.h.
References globalLumiQueueResumer_, lumiPrincipal_, and edm::LimitedTaskQueue::Resumer::resume().
Referenced by resetResources().
|
inline |
Definition at line 99 of file LuminosityBlockProcessingStatus.h.
References cleaningUpAfterException_, and relativeConstraints::value.
void edm::LuminosityBlockProcessingStatus::setEndTime | ( | ) |
Definition at line 57 of file LuminosityBlockProcessingStatus.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), endTime_, endTimeSetStatus_, kSet, kUnset, and lumiPrincipal_.
|
inline |
Definition at line 90 of file LuminosityBlockProcessingStatus.h.
References eventProcessingState_, and heppy_batch::val.
Referenced by edm::EventProcessor::readNextEventForStream().
void edm::LuminosityBlockProcessingStatus::setGlobalEndRunHolder | ( | WaitingTaskHolder | holder | ) |
Definition at line 25 of file LuminosityBlockProcessingStatus.cc.
References globalEndRunHolder_, and eostools::move().
|
inline |
Definition at line 59 of file LuminosityBlockProcessingStatus.h.
References lumiPrincipal_, eostools::move(), and heppy_batch::val.
|
inline |
Definition at line 49 of file LuminosityBlockProcessingStatus.h.
References globalLumiQueueResumer_, and eostools::move().
bool edm::LuminosityBlockProcessingStatus::shouldStreamStartLumi | ( | ) |
Definition at line 29 of file LuminosityBlockProcessingStatus.cc.
References kNoMoreEvents, kRunning, kUpdating, nStreamsProcessingLumi_, and state_.
|
inline |
Definition at line 93 of file LuminosityBlockProcessingStatus.h.
References startedNextLumiOrEndedRun_.
|
inline |
Definition at line 75 of file LuminosityBlockProcessingStatus.h.
References nStreamsStillProcessingLumi_.
|
inline |
Definition at line 78 of file LuminosityBlockProcessingStatus.h.
References endTime_.
|
private |
Definition at line 117 of file LuminosityBlockProcessingStatus.h.
Referenced by cleaningUpAfterException(), and setCleaningUpAfterException().
|
private |
Definition at line 106 of file LuminosityBlockProcessingStatus.h.
Referenced by endIOVWaitingTasks(), resetResources(), and ~LuminosityBlockProcessingStatus().
|
private |
Definition at line 108 of file LuminosityBlockProcessingStatus.h.
Referenced by lastTimestamp(), setEndTime(), and updateLastTimestamp().
|
private |
Definition at line 114 of file LuminosityBlockProcessingStatus.h.
Referenced by setEndTime().
|
private |
Definition at line 113 of file LuminosityBlockProcessingStatus.h.
Referenced by eventProcessingState(), and setEventProcessingState().
|
private |
Definition at line 105 of file LuminosityBlockProcessingStatus.h.
Referenced by eventSetupImpl(), eventSetupImpls(), and resetResources().
|
private |
Definition at line 116 of file LuminosityBlockProcessingStatus.h.
Referenced by didGlobalBeginSucceed(), and globalBeginDidSucceed().
|
private |
Definition at line 107 of file LuminosityBlockProcessingStatus.h.
Referenced by globalEndRunHolderDoneWaiting(), and setGlobalEndRunHolder().
|
private |
Definition at line 103 of file LuminosityBlockProcessingStatus.h.
Referenced by resumeGlobalLumiQueue(), and setResumer().
|
private |
Definition at line 104 of file LuminosityBlockProcessingStatus.h.
Referenced by lumiPrincipal(), resumeGlobalLumiQueue(), setEndTime(), and setLumiPrincipal().
|
private |
Definition at line 109 of file LuminosityBlockProcessingStatus.h.
Referenced by noMoreEventsInLumi(), and shouldStreamStartLumi().
|
private |
Definition at line 110 of file LuminosityBlockProcessingStatus.h.
Referenced by noMoreEventsInLumi(), and streamFinishedLumi().
|
private |
Definition at line 115 of file LuminosityBlockProcessingStatus.h.
Referenced by haveStartedNextLumiOrEndedRun(), and startNextLumiOrEndRun().
|
private |
Definition at line 112 of file LuminosityBlockProcessingStatus.h.
Referenced by noMoreEventsInLumi(), and shouldStreamStartLumi().