CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SkipBadEvents.cc
Go to the documentation of this file.
2 
4  std::vector<int> badrunevent = config.getParameter<std::vector<int> >("RunEvent");
5  // Convert to a map for easy lookup
6  for (unsigned int i=0; i<badrunevent.size(); i+=2) {
7  skip_[ badrunevent[i] ].insert( badrunevent[i+1] );
8  }
9 }
10 
12 
14  edm::RunNumber_t run = e.id().run();
15  edm::EventNumber_t evt = e.id().event();
16 
17  bool pass = ( skip_[run].find(evt) == skip_[run].end() );
18 
19  return pass;
20 }
RunNumber_t run() const
Definition: EventID.h:39
T getParameter(std::string const &) const
EventNumber_t event() const
Definition: EventID.h:41
int i
Definition: DBlmapReader.cc:9
virtual bool filter(edm::Event &e, const edm::EventSetup &s)
unsigned long long EventNumber_t
SkipBadEvents(const edm::ParameterSet &config)
Definition: SkipBadEvents.cc:3
virtual ~SkipBadEvents()
std::map< edm::RunNumber_t, std::set< edm::EventNumber_t > > skip_
Definition: SkipBadEvents.h:28
edm::EventID id() const
Definition: EventBase.h:60
unsigned int RunNumber_t