10 #include "art/Framework/Core/EDFilter.h"
11 #include "art/Framework/Core/ModuleMacros.h"
12 #include "art/Framework/Principal/Event.h"
13 #include "art/Framework/Principal/Handle.h"
14 #include "art/Framework/Principal/Run.h"
15 #include "art/Framework/Principal/SubRun.h"
16 #include "canvas/Utilities/InputTag.h"
17 #include "fhiclcpp/ParameterSet.h"
18 #include "messagefacility/MessageLogger/MessageLogger.h"
42 bool filter(art::Event&
e)
override;
59 fConfig(
p.get<std::vector<std::string>>(
"Select"))
61 for (
const std::string &
s: fConfig) {
62 fFileNoSelect.push_back(-1);
63 fEvtSelect.push_back(-1);
64 sscanf(
s.c_str(),
"%d:%d", &fFileNoSelect.back(), &fEvtSelect.back());
76 for (
unsigned i = 0; i < fFileNoSelect.size(); i++) {
77 if (fFileNoSelect[i] == fFileNo && fEvtSelect[i] == (
int)e.event()) {
EventSelect & operator=(EventSelect const &)=delete
std::vector< std::string > fConfig
EventSelect(fhicl::ParameterSet const &p)
std::vector< int > fEvtSelect
void respondToOpenInputFile(const art::FileBlock &fb) override
then echo File list $list not found else cat $list while read file do echo $file sed s
bool filter(art::Event &e) override
std::vector< int > fFileNoSelect