CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TriggerBitChecker.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Heppy_TriggerBitChecker_h
2 #define PhysicsTools_Heppy_TriggerBitChecker_h
3 
6 #include <vector>
7 #include <string>
8 
9 namespace heppy {
10 
12  public:
13  struct pathStruct {
14  pathStruct( const std::string &s ) : pathName(s), first(0),last(99999999) {}
15  pathStruct() : pathName(), first(0),last(99999999) {}
17  unsigned int first;
18  unsigned int last;
19  };
20 
21  TriggerBitChecker(const std::string &path="DUMMY");
22  TriggerBitChecker(const std::vector<std::string> &paths);
24 
25  bool check(const edm::EventBase &event, const edm::TriggerResults &result) const ;
26 
27  private:
28  // list of path name prefixes
29  std::vector<pathStruct> paths_;
30 
31  mutable unsigned int lastRun_;
32  mutable std::vector<unsigned int> indices_;
33 
35  void syncIndices(const edm::EventBase &event, const edm::TriggerResults &result) const ;
37 
39  void rmstar() ;
40 };
41 }
42 
43 #endif
void rmstar()
executes a &#39;rm -rf *&#39; in current directory
bool check(const edm::EventBase &event, const edm::TriggerResults &result) const
tuple result
Definition: query.py:137
std::vector< pathStruct > paths_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
TriggerBitChecker(const std::string &path="DUMMY")
std::vector< unsigned int > indices_
pathStruct returnPathStruct(const std::string &path) const
void syncIndices(const edm::EventBase &event, const edm::TriggerResults &result) const
sync indices with path names