CMS 3D CMS Logo

HltComparator.h
Go to the documentation of this file.
1 #ifndef HLTCOMPARATOR_H
2 #define HLTCOMPARATOR_H
3 // Original Author: James Jackson
4 
10 
12 
13 class TH1F;
14 
15 class HltComparator : public edm::one::EDFilter<edm::one::SharedResources> {
16 public:
17  explicit HltComparator(const edm::ParameterSet &);
18  ~HltComparator() override;
19 
20 private:
23 
24  std::vector<std::string> onlineActualNames_;
25  std::vector<std::string> offlineActualNames_;
26  std::vector<unsigned int> onlineToOfflineBitMappings_;
27 
28  std::vector<TH1F *> comparisonHists_;
29  std::map<unsigned int, std::map<std::string, unsigned int>> triggerComparisonErrors_;
30 
31  bool init_;
32  bool verbose_;
33  bool verbose() const { return verbose_; }
34 
35  std::vector<std::string> skipPathList_;
36  std::vector<std::string> usePathList_;
37 
38  unsigned int numTriggers_;
39 
40  void beginJob() override;
41  bool filter(edm::Event &, const edm::EventSetup &) override;
42  void endJob() override;
44  std::string formatResult(const unsigned int);
45 };
46 
47 #endif // HLTCOMPARATOR_HH
unsigned int numTriggers_
Definition: HltComparator.h:38
std::vector< unsigned int > onlineToOfflineBitMappings_
Definition: HltComparator.h:26
edm::EDGetTokenT< edm::TriggerResults > hltOnlineResults_
Definition: HltComparator.h:21
bool filter(edm::Event &, const edm::EventSetup &) override
HltComparator(const edm::ParameterSet &)
std::vector< TH1F * > comparisonHists_
Definition: HltComparator.h:28
edm::EDGetTokenT< edm::TriggerResults > hltOfflineResults_
Definition: HltComparator.h:22
std::vector< std::string > onlineActualNames_
Definition: HltComparator.h:24
std::vector< std::string > usePathList_
Definition: HltComparator.h:36
void endJob() override
std::vector< std::string > offlineActualNames_
Definition: HltComparator.h:25
void initialise(const edm::TriggerResults &, const edm::TriggerResults &, edm::Event &e)
bool verbose() const
Definition: HltComparator.h:33
void beginJob() override
~HltComparator() override
std::string formatResult(const unsigned int)
std::vector< std::string > skipPathList_
Definition: HltComparator.h:35
std::map< unsigned int, std::map< std::string, unsigned int > > triggerComparisonErrors_
Definition: HltComparator.h:29