CMS 3D CMS Logo

HLTJetMETValidation.h
Go to the documentation of this file.
1 /* HLTJetMET Path Validation Analyzer
2  Migrated to use DQMEDAnalyzer by: Jyothsna Rani Komaragiri, Oct 2014
3 */
4 
5 #ifndef HLTJetMETValidation_h
6 #define HLTJetMETValidation_h
7 
13 
17 
24 
30 
33 
36 
39 // Include DQM core
42 
44 
45 #include "TPRegexp.h"
46 #include <string>
47 #include <vector>
48 
49 namespace edm {
50  class TriggerNames;
51 }
52 
54 public:
55  explicit HLTJetMETValidation(const edm::ParameterSet &);
56  ~HLTJetMETValidation() override;
57 
58 private:
59  void analyze(const edm::Event &, const edm::EventSetup &) override;
60  void bookHistograms(DQMStore::IBooker &, edm::Run const &iRun, edm::EventSetup const &iSetup) override;
61  void dqmBeginRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override;
62 
64 
72 
73  // Just a tag for better file organization
75 
76  std::vector<MonitorElement *> _meHLTJetPt;
77  std::vector<MonitorElement *> _meHLTJetPtTrgMC;
78  std::vector<MonitorElement *> _meHLTJetPtTrg;
79  std::vector<MonitorElement *> _meHLTJetPtTrgLow;
80  std::vector<MonitorElement *> _meHLTJetEta;
81  std::vector<MonitorElement *> _meHLTJetEtaTrgMC;
82  std::vector<MonitorElement *> _meHLTJetEtaTrg;
83  std::vector<MonitorElement *> _meHLTJetEtaTrgLow;
84  std::vector<MonitorElement *> _meHLTJetPhi;
85  std::vector<MonitorElement *> _meHLTJetPhiTrgMC;
86  std::vector<MonitorElement *> _meHLTJetPhiTrg;
87  std::vector<MonitorElement *> _meHLTJetPhiTrgLow;
88 
89  std::vector<MonitorElement *> _meGenJetPt;
90  std::vector<MonitorElement *> _meGenJetPtTrgMC;
91  std::vector<MonitorElement *> _meGenJetPtTrg;
92  std::vector<MonitorElement *> _meGenJetPtTrgLow;
93  std::vector<MonitorElement *> _meGenJetEta;
94  std::vector<MonitorElement *> _meGenJetEtaTrgMC;
95  std::vector<MonitorElement *> _meGenJetEtaTrg;
96  std::vector<MonitorElement *> _meGenJetEtaTrgLow;
97  std::vector<MonitorElement *> _meGenJetPhi;
98  std::vector<MonitorElement *> _meGenJetPhiTrgMC;
99  std::vector<MonitorElement *> _meGenJetPhiTrg;
100  std::vector<MonitorElement *> _meGenJetPhiTrgLow;
101 
102  std::vector<MonitorElement *> _meHLTMET;
103  std::vector<MonitorElement *> _meHLTMETTrgMC;
104  std::vector<MonitorElement *> _meHLTMETTrg;
105  std::vector<MonitorElement *> _meHLTMETTrgLow;
106  std::vector<MonitorElement *> _meGenMET;
107  std::vector<MonitorElement *> _meGenMETTrgMC;
108  std::vector<MonitorElement *> _meGenMETTrg;
109  std::vector<MonitorElement *> _meGenMETTrgLow;
110 
112 
113  // Define Numbers
114  int evtCnt;
115 
117  std::vector<std::string> hltTrgJet;
118  std::vector<std::string> hltTrgJetLow;
119  std::vector<std::string> hltTrgMet;
120  std::vector<std::string> hltTrgMetLow;
121 
122  // store hlt information in a map
123  std::vector<bool> hlttrigs;
124  std::map<std::string, bool> hltTriggerMap;
125  std::map<std::string, bool>::iterator trig_iter;
126 
127  bool HLTinit_;
128 
130 };
131 #endif
std::vector< std::string > hltTrgMet
std::vector< MonitorElement * > _meHLTMETTrgMC
std::vector< MonitorElement * > _meGenJetPhiTrgLow
std::vector< MonitorElement * > _meHLTJetPtTrgLow
std::vector< MonitorElement * > _meHLTJetPhiTrg
std::vector< std::string > hltTrgJet
void bookHistograms(DQMStore::IBooker &, edm::Run const &iRun, edm::EventSetup const &iSetup) override
MonitorElement * _triggerResults
std::vector< bool > hlttrigs
std::vector< MonitorElement * > _meHLTMETTrg
std::vector< MonitorElement * > _meHLTJetEta
std::vector< MonitorElement * > _meHLTJetEtaTrg
std::vector< MonitorElement * > _meGenJetEta
void dqmBeginRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override
std::vector< MonitorElement * > _meGenMETTrg
std::vector< std::string > hltTrgMetLow
std::vector< MonitorElement * > _meGenJetEtaTrg
edm::EDGetTokenT< reco::GenMETCollection > GenMETColl
HLTJetMETValidation(const edm::ParameterSet &)
std::vector< MonitorElement * > _meHLTJetPt
std::vector< MonitorElement * > _meGenJetPtTrg
std::vector< MonitorElement * > _meGenJetPt
std::vector< MonitorElement * > _meHLTJetPhi
std::vector< MonitorElement * > _meHLTJetPtTrg
std::vector< MonitorElement * > _meGenJetPhiTrg
edm::EDGetTokenT< edm::TriggerResults > HLTriggerResults
std::vector< MonitorElement * > _meGenMETTrgMC
std::vector< MonitorElement * > _meHLTJetPtTrgMC
std::vector< MonitorElement * > _meGenJetPtTrgMC
std::vector< MonitorElement * > _meGenMET
std::vector< MonitorElement * > _meHLTMETTrgLow
std::vector< MonitorElement * > _meHLTJetEtaTrgLow
edm::EDGetTokenT< reco::PFJetCollection > PFJetAlgorithm
void getHLTResults(const edm::TriggerResults &, const edm::TriggerNames &triggerNames)
std::vector< MonitorElement * > _meHLTJetPhiTrgMC
edm::EDGetTokenT< reco::GenJetCollection > GenJetAlgorithm
std::vector< MonitorElement * > _meHLTJetPhiTrgLow
std::vector< MonitorElement * > _meGenJetEtaTrgLow
HLTConfigProvider hltConfig_
std::vector< MonitorElement * > _meGenJetPtTrgLow
std::map< std::string, bool > hltTriggerMap
std::map< std::string, bool >::iterator trig_iter
HLT enums.
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< MonitorElement * > _meGenMETTrgLow
std::vector< MonitorElement * > _meHLTMET
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventObject_
InputTag of TriggerEventWithRefs to analyze.
std::vector< std::string > hltTrgJetLow
std::vector< MonitorElement * > _meHLTJetEtaTrgMC
std::vector< MonitorElement * > _meGenJetEtaTrgMC
std::vector< MonitorElement * > _meGenJetPhi
edm::EDGetTokenT< reco::CaloMETCollection > CaloMETColl
Definition: Run.h:45
std::vector< MonitorElement * > _meGenJetPhiTrgMC