61 std::vector<edm::RunNumber_t>
endrun;
97 bool selectThisEvent =
false;
99 for (
unsigned int cond=0; cond<
whattodo.size();cond++)
115 return selectThisEvent;
126 std::stringstream ss;
127 std::vector<std::string> tokens;
135 if (listfile.is_open())
137 while (! listfile.eof() )
139 getline (listfile,
line);
145 tokens.push_back(buf);
155 if(tokens[0]==
"-" || tokens[0]==
"+")
158 if(tokens[0]==
"-")
whattodo.push_back(
false);
162 int loc=tokens[1].find(
":",0);
174 loc=tokens[2].find(
":",0);
176 first=tokens[2].substr(0,loc);
179 last=tokens[2].substr(loc+1,tokens[2].
size());
190 std::cout <<
"Summary from list of run/event number selection" << std::endl;
191 for (
unsigned int cond=0; cond<
whattodo.size();cond++)
208 std::cout <<
"================================================\n"
209 <<
" n Events Analyzed ............... " <<
nEventsAnalyzed << std::endl
210 <<
" n Events Selected ............... " <<
nEventsSelected<< std::endl
211 <<
"================================================\n\n" ;
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
std::string listrunevents_
unsigned int EventNumber_t
#define DEFINE_FWK_MODULE(type)
virtual bool filter(edm::Event &, const edm::EventSetup &) override
const T & max(const T &a, const T &b)
std::vector< edm::RunNumber_t > startrun
std::vector< edm::EventNumber_t > endevent
std::vector< bool > whattodo
std::vector< edm::EventNumber_t > startevent
static EventNumber_t maxEventNumber()
std::vector< edm::RunNumber_t > endrun
PickEvents(const edm::ParameterSet &)
std::string listruneventsinpath_
tuple size
Write out results.