51 fBadEvents = pset.get < std::vector <unsigned int> >(
"BadEvents");
52 fBadRuns = pset.get < std::vector <unsigned int> >(
"BadRuns");
59 in.open(fEventList.c_str());
62 in.getline(line,1024);
63 if (!in.good())
break;
64 unsigned int n0, n1, n2;
65 sscanf(line,
"%u %u %u",&n0,&n1,&n2);
75 unsigned int evtNo = (
unsigned int) evt.
id().
event();
76 unsigned int runNo = (
unsigned int) evt.
run();
77 unsigned int subrunNo = (
unsigned int) evt.
subRun();
81 if (sobe.size() != sobr.size()) {
82 throw cet::exception(
"EventFilter.cxx: ") <<
" BadEvent and BadRun list must be same length. Line " <<__LINE__ <<
", " << __FILE__ <<
"\n";
85 for (
unsigned int ii=0; ii<sobe.size(); ++ii){
86 if(sobe.at(ii)==evtNo && sobr.at(ii)==runNo)
88 mf::LogInfo(
"EventFilter: ") <<
"\t\n Skipping run/event " << runNo <<
"/"<< evtNo <<
" by request.\n";
95 for (
unsigned int ii = 0; ii<
fSelRuns.size(); ii++){
std::vector< unsigned int > fSelSubRuns
list of selected runs
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
std::vector< unsigned int > SetOfBadRuns() const
std::vector< unsigned int > fBadEvents
list of bad events
#define DEFINE_ART_MODULE(klass)
std::vector< unsigned int > SetOfBadEvents() const
bool filter(art::Event &evt) override
EventFilter(fhicl::ParameterSet const &)
SubRunNumber_t subRun() const
std::vector< unsigned int > fSelRuns
list of selected runs
void line(double t, double *p, double &x, double &y, double &z)
std::vector< unsigned int > fBadRuns
list of bad runs
EDFilter(fhicl::ParameterSet const &pset)
EventNumber_t event() const
std::vector< unsigned int > fSelEvents
list of selected events
cet::coded_exception< error, detail::translate > exception