|
|
Go to the documentation of this file.
49 : maxLoops_(
pset.getUntrackedParameter<
int>(
"maxLoops", -1)),
51 shouldStopLoop_(
false),
52 shouldStopProcess_(
false) {}
60 std::cout <<
"Event could not be found. Nothing done. Try again.\n";
63 std::cout <<
"\nWhat should we do next?\n";
66 std::cout <<
"(0) process the next event\n";
68 std::cout <<
"(0) process the next event if it exists (at last event in the open file. there are more files)\n";
70 std::cout <<
"(0) will stop the loop because this is the last event\n";
72 std::cout <<
"(0) process the next event (if it exists)\n";
77 std::cout <<
"(1) process the previous event\n";
79 std::cout <<
"(1) process the previous event if there are any (at first event in the open file. there are "
82 std::cout <<
"(1) will stop the loop because this is the first event\n";
85 std::cout <<
"(2) process a specific event\n";
89 std::cout <<
"(4) stop process" << std::endl;
92 bool inputFailed =
false;
95 if (!(std::cin >> x) || x < 0 || x > 4) {
98 std::cin.ignore(10000,
'\n');
99 std::cout <<
"Please enter numeric characters only. The value must be in the range 0 to 4 (inclusive). Please "
105 std::cout <<
"The source cannot do random access. 1 and 2 are illegal values. Please try again." << std::endl;
107 }
while (inputFailed);
119 if (!(std::cin >> x)) {
122 std::cin.ignore(10000,
'\n');
123 std::cout <<
"Please enter numeric characters only. Please try again." << std::endl;
125 }
while (inputFailed);
127 std::cout <<
"Which luminosity block?" << std::endl;
130 if (!(std::cin >> x)) {
133 std::cin.ignore(10000,
'\n');
134 std::cout <<
"Please enter numeric characters only. Please try again." << std::endl;
136 }
while (inputFailed);
138 std::cout <<
"Which event?" << std::endl;
141 if (!(std::cin >> x)) {
144 std::cin.ignore(10000,
'\n');
145 std::cout <<
"Please enter numeric characters only. Please try again." << std::endl;
147 }
while (inputFailed);
bool lastOperationSucceeded() const
~NavigateEventsLooper() override
ForwardState forwardState() const
Returns the present state of processing.
NavigateEventsLooper(ParameterSet const &pset)
unsigned int LuminosityBlockNumber_t
#define DEFINE_FWK_LOOPER(type)
unsigned long long EventNumber_t
Status endOfLoop(EventSetup const &es, unsigned int iCounter) override
ReverseState reverseState() const
void setTransitionToPreviousEvent()
void setTransitionToNextEvent()
Status duringLoop(Event const &ev, EventSetup const &es, ProcessingController &pc) override
NavigateEventsLooper const & operator=(NavigateEventsLooper const &)=delete
bool canRandomAccess() const
Returns 'true' if the job's source can randomly access.
void setTransitionToEvent(edm::EventID const &iID)
void startingNewLoop(unsigned int iIteration) override