CMS 3D CMS Logo

TriggerBitChecker.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Heppy_TriggerBitChecker_h
2 #define PhysicsTools_Heppy_TriggerBitChecker_h
3 
7 #include <vector>
8 #include <string>
9 
10 namespace heppy {
11 
13  public:
14  struct pathStruct {
15  pathStruct(const std::string &s) : pathName(s), first(0), last(99999999) {}
16  pathStruct() : pathName(), first(0), last(99999999) {}
18  unsigned int first;
19  unsigned int last;
20  };
21 
22  TriggerBitChecker(const std::string &path = "DUMMY");
23  TriggerBitChecker(const std::vector<std::string> &paths);
25 
26  bool check(const edm::EventBase &event, const edm::TriggerResults &result) const;
28  const edm::TriggerResults &result_tr,
29  const pat::PackedTriggerPrescales &result) const;
30  int getprescale(const edm::EventBase &event,
31  const edm::TriggerResults &result_tr,
32  const pat::PackedTriggerPrescales &result) const;
33 
34  private:
35  // list of path name prefixes
36  std::vector<pathStruct> paths_;
37 
39  mutable std::vector<unsigned int> indices_;
40 
42  void syncIndices(const edm::EventBase &event, const edm::TriggerResults &result) const;
44 
46  void rmstar();
47  };
48 } // namespace heppy
49 
50 #endif
void rmstar()
executes a &#39;rm -rf *&#39; in current directory
int getprescale(const edm::EventBase &event, const edm::TriggerResults &result_tr, const pat::PackedTriggerPrescales &result) const
bool check_unprescaled(const edm::EventBase &event, const edm::TriggerResults &result_tr, const pat::PackedTriggerPrescales &result) const
pathStruct returnPathStruct(const std::string &path) const
bool check(const edm::EventBase &event, const edm::TriggerResults &result) const
TAKEN FROM http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/ElectroWeakAnalysis/Utilities/src/PdfWeig...
Definition: AlphaT.h:16
std::vector< pathStruct > paths_
TriggerBitChecker(const std::string &path="DUMMY")
void syncIndices(const edm::EventBase &event, const edm::TriggerResults &result) const
sync indices with path names
std::vector< unsigned int > indices_
edm::ParameterSetID lastID_
Definition: event.py:1