Definition at line 18 of file EventFilter_module.cc.
filter::EventFilter::EventFilter |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
Definition at line 48 of file EventFilter_module.cc.
51 fBadEvents = pset.get < std::vector <unsigned int> >(
"BadEvents");
52 fBadRuns = pset.get < std::vector <unsigned int> >(
"BadRuns");
55 fEventList = pset.get< std::string >(
"EventList");
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);
std::vector< unsigned int > fSelSubRuns
list of selected runs
std::vector< unsigned int > fBadEvents
list of bad events
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
std::vector< unsigned int > fSelRuns
list of selected runs
std::vector< unsigned int > fBadRuns
list of bad runs
std::vector< unsigned int > fSelEvents
list of selected events
bool filter::EventFilter::filter |
( |
art::Event & |
evt | ) |
|
|
override |
Definition at line 73 of file EventFilter_module.cc.
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
std::vector< unsigned int > SetOfBadRuns() const
std::vector< unsigned int > SetOfBadEvents() const
std::vector< unsigned int > fSelRuns
list of selected runs
std::vector< unsigned int > fSelEvents
list of selected events
std::vector< unsigned int > filter::EventFilter::SetOfBadEvents |
( |
| ) |
const |
|
inline |
std::vector< unsigned int > filter::EventFilter::SetOfBadRuns |
( |
| ) |
const |
|
inline |
std::vector< unsigned int > filter::EventFilter::fBadEvents |
|
private |
std::vector< unsigned int > filter::EventFilter::fBadRuns |
|
private |
std::string filter::EventFilter::fEventList |
|
private |
int filter::EventFilter::fSelection |
|
private |
std::vector< unsigned int > filter::EventFilter::fSelEvents |
|
private |
std::vector< unsigned int > filter::EventFilter::fSelRuns |
|
private |
std::vector< unsigned int > filter::EventFilter::fSelSubRuns |
|
private |
The documentation for this class was generated from the following file: