48 : maxLoops_(
pset.getUntrackedParameter<
int>(
"maxLoops", -1)),
50 shouldStopLoop_(
false),
51 shouldStopProcess_(
false) {}
59 std::cout <<
"Event could not be found. Nothing done. Try again.\n";
62 std::cout <<
"\nWhat should we do next?\n";
65 std::cout <<
"(0) process the next event\n";
67 std::cout <<
"(0) process the next event if it exists (at last event in the open file. there are more files)\n";
69 std::cout <<
"(0) will stop the loop because this is the last event\n";
71 std::cout <<
"(0) process the next event (if it exists)\n";
76 std::cout <<
"(1) process the previous event\n";
78 std::cout <<
"(1) process the previous event if there are any (at first event in the open file. there are " 81 std::cout <<
"(1) will stop the loop because this is the first event\n";
84 std::cout <<
"(2) process a specific event\n";
88 std::cout <<
"(4) stop process" << std::endl;
91 bool inputFailed =
false;
94 if (!(std::cin >>
x) || x < 0 || x > 4) {
97 std::cin.ignore(10000,
'\n');
98 std::cout <<
"Please enter numeric characters only. The value must be in the range 0 to 4 (inclusive). Please " 104 std::cout <<
"The source cannot do random access. 1 and 2 are illegal values. Please try again." << std::endl;
106 }
while (inputFailed);
118 if (!(std::cin >>
x)) {
121 std::cin.ignore(10000,
'\n');
122 std::cout <<
"Please enter numeric characters only. Please try again." << std::endl;
124 }
while (inputFailed);
126 std::cout <<
"Which luminosity block?" << std::endl;
129 if (!(std::cin >>
x)) {
132 std::cin.ignore(10000,
'\n');
133 std::cout <<
"Please enter numeric characters only. Please try again." << std::endl;
135 }
while (inputFailed);
137 std::cout <<
"Which event?" << std::endl;
140 if (!(std::cin >>
x)) {
143 std::cin.ignore(10000,
'\n');
144 std::cout <<
"Please enter numeric characters only. Please try again." << std::endl;
146 }
while (inputFailed);
NavigateEventsLooper const & operator=(NavigateEventsLooper const &)=delete
unsigned long long EventNumber_t
#define DEFINE_FWK_LOOPER(type)
ReverseState reverseState() const
void startingNewLoop(unsigned int iIteration) override
unsigned int LuminosityBlockNumber_t
~NavigateEventsLooper() override
void setTransitionToEvent(edm::EventID const &iID)
void setTransitionToPreviousEvent()
bool lastOperationSucceeded() const
bool canRandomAccess() const
Returns 'true' if the job's source can randomly access.
ForwardState forwardState() const
Returns the present state of processing.
Status endOfLoop(EventSetup const &es, unsigned int iCounter) override
void setTransitionToNextEvent()
NavigateEventsLooper(ParameterSet const &pset)
Status duringLoop(Event const &ev, EventSetup const &es, ProcessingController &pc) override