47 std::ifstream inStream(fFile.c_str());
51 if(tokens.size() != 3) {
55 events_.push_back(
Event(atoi(tokens[0].c_str()), atoi(tokens[1].c_str()), atoi(tokens[2].c_str())));
59 while( getline(inStream, line) ){
61 if(tokens.size() != 3) {
65 events_.push_back(
Event(atoi(tokens[0].c_str()), atoi(tokens[1].c_str()), atoi(tokens[2].c_str())));
76 for (
unsigned int i = 0;
i <
events_.size(); ++
i) {
82 iEvent.
put(std::make_unique<bool>(pass));
edm::LuminosityBlockNumber_t lumi
T getParameter(std::string const &) const
EventNumber_t event() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool filter(edm::Event &iEvent, const edm::EventSetup &iSetup) override
unsigned long long EventNumber_t
LuminosityBlockNumber_t luminosityBlock() const
unsigned int LuminosityBlockNumber_t
std::vector< Event > events_
const std::vector< std::string > eventList_
#define DEFINE_FWK_MODULE(type)
MultiEventFilter(const edm::ParameterSet &iConfig)
Event(edm::RunNumber_t r, edm::LuminosityBlockNumber_t l, edm::EventNumber_t e)
std::string fullPath() const
~MultiEventFilter() override
std::vector< std::string > tokenize(std::string const &input, std::string const &separator)
breaks the input string into tokens, delimited by the separator