Private Member Functions | |
NavigateEventsLooper (NavigateEventsLooper const &)=delete | |
NavigateEventsLooper const & | operator= (NavigateEventsLooper const &)=delete |
Private Attributes | |
int | countLoops_ |
int | maxLoops_ |
bool | shouldStopLoop_ |
bool | shouldStopProcess_ |
Additional Inherited Members | |
Public Types inherited from edm::EDLooperBase | |
enum | Status { kContinue, kStop } |
Protected Member Functions inherited from edm::EDLooperBase | |
ModuleChanger * | moduleChanger () |
This only returns a non-zero value during the call to endOfLoop. More... | |
ScheduleInfo const * | scheduleInfo () const |
This returns a non-zero value after the constructor has been called. More... | |
Allows interactive navigation from event to event in cmsRun jobs. Just add the looper to the python configuration and then respond to the questions that show up on the display by typing a number followed by return.
This was originally written to test the looper interface used by the Fireworks event display. It might be useful by itself.
If you use this either do not use a PoolOutputModule or turn off fast cloning its configuration.
Definition at line 29 of file NavigateEventsLooper.cc.
edm::NavigateEventsLooper::NavigateEventsLooper | ( | ParameterSet const & | pset | ) |
Definition at line 48 of file NavigateEventsLooper.cc.
|
override |
Definition at line 54 of file NavigateEventsLooper.cc.
|
privatedelete |
|
overridevirtual |
Called after all event modules have had a chance to process the Event.
Implements edm::EDLooperBase.
Definition at line 58 of file NavigateEventsLooper.cc.
References edm::ProcessingController::canRandomAccess(), gather_cfg::cout, ev, edm::ProcessingController::forwardState(), edm::ProcessingController::kAtFirstEvent, edm::ProcessingController::kAtLastEvent, edm::EDLooperBase::kContinue, edm::ProcessingController::kEventsAheadInFile, edm::ProcessingController::kEventsBackwardsInFile, edm::ProcessingController::kNextFileExists, edm::ProcessingController::kPreviousFileExists, edm::EDLooperBase::kStop, edm::ProcessingController::kUnknownForward, edm::ProcessingController::lastOperationSucceeded(), edm::ProcessingController::reverseState(), writedatasetfile::run, edm::ProcessingController::setTransitionToEvent(), edm::ProcessingController::setTransitionToNextEvent(), edm::ProcessingController::setTransitionToPreviousEvent(), shouldStopLoop_, and shouldStopProcess_.
|
overridevirtual |
Called after the system has finished one loop over the events. Thar argument is a count of how many loops have been processed before this loo. For the first time through the events the argument will be 0.
Implements edm::EDLooperBase.
Definition at line 161 of file NavigateEventsLooper.cc.
References countLoops_, gather_cfg::cout, DEFINE_FWK_LOOPER, edm::EDLooperBase::kContinue, edm::EDLooperBase::kStop, maxLoops_, and shouldStopProcess_.
|
privatedelete |
|
overridevirtual |
Called before system starts to loop over the events. The argument is a count of how many loops have been processed. For the first time through the events the argument will be 0.
Implements edm::EDLooperBase.
Definition at line 56 of file NavigateEventsLooper.cc.
|
private |
Definition at line 43 of file NavigateEventsLooper.cc.
Referenced by endOfLoop().
|
private |
Definition at line 42 of file NavigateEventsLooper.cc.
Referenced by endOfLoop().
|
private |
Definition at line 44 of file NavigateEventsLooper.cc.
Referenced by duringLoop().
|
private |
Definition at line 45 of file NavigateEventsLooper.cc.
Referenced by duringLoop(), and endOfLoop().