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 
14 
18 
25 
31 
34 
37 
40 // Include DQM core
43 
45 
46 #include "TPRegexp.h"
47 #include <string>
48 #include <vector>
49 
50 namespace edm {
51  class TriggerNames;
52 }
53 
55 public:
56  explicit HLTJetMETValidation(const edm::ParameterSet &);
57  ~HLTJetMETValidation() override;
58 
59 private:
60  void analyze(const edm::Event &, const edm::EventSetup &) override;
61  void bookHistograms(DQMStore::IBooker &, edm::Run const &iRun, edm::EventSetup const &iSetup) override;
62  void dqmBeginRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override;
63 
65 
73 
74  // Just a tag for better file organization
76 
77  std::vector<MonitorElement *> _meHLTJetPt;
78  std::vector<MonitorElement *> _meHLTJetPtTrgMC;
79  std::vector<MonitorElement *> _meHLTJetPtTrg;
80  std::vector<MonitorElement *> _meHLTJetPtTrgLow;
81  std::vector<MonitorElement *> _meHLTJetEta;
82  std::vector<MonitorElement *> _meHLTJetEtaTrgMC;
83  std::vector<MonitorElement *> _meHLTJetEtaTrg;
84  std::vector<MonitorElement *> _meHLTJetEtaTrgLow;
85  std::vector<MonitorElement *> _meHLTJetPhi;
86  std::vector<MonitorElement *> _meHLTJetPhiTrgMC;
87  std::vector<MonitorElement *> _meHLTJetPhiTrg;
88  std::vector<MonitorElement *> _meHLTJetPhiTrgLow;
89 
90  std::vector<MonitorElement *> _meGenJetPt;
91  std::vector<MonitorElement *> _meGenJetPtTrgMC;
92  std::vector<MonitorElement *> _meGenJetPtTrg;
93  std::vector<MonitorElement *> _meGenJetPtTrgLow;
94  std::vector<MonitorElement *> _meGenJetEta;
95  std::vector<MonitorElement *> _meGenJetEtaTrgMC;
96  std::vector<MonitorElement *> _meGenJetEtaTrg;
97  std::vector<MonitorElement *> _meGenJetEtaTrgLow;
98  std::vector<MonitorElement *> _meGenJetPhi;
99  std::vector<MonitorElement *> _meGenJetPhiTrgMC;
100  std::vector<MonitorElement *> _meGenJetPhiTrg;
101  std::vector<MonitorElement *> _meGenJetPhiTrgLow;
102 
103  std::vector<MonitorElement *> _meHLTMET;
104  std::vector<MonitorElement *> _meHLTMETTrgMC;
105  std::vector<MonitorElement *> _meHLTMETTrg;
106  std::vector<MonitorElement *> _meHLTMETTrgLow;
107  std::vector<MonitorElement *> _meGenMET;
108  std::vector<MonitorElement *> _meGenMETTrgMC;
109  std::vector<MonitorElement *> _meGenMETTrg;
110  std::vector<MonitorElement *> _meGenMETTrgLow;
111 
113 
114  // Define Numbers
115  int evtCnt;
116 
118  std::vector<std::string> hltTrgJet;
119  std::vector<std::string> hltTrgJetLow;
120  std::vector<std::string> hltTrgMet;
121  std::vector<std::string> hltTrgMetLow;
122 
123  // store hlt information in a map
124  std::vector<bool> hlttrigs;
125  std::map<std::string, bool> hltTriggerMap;
126  std::map<std::string, bool>::iterator trig_iter;
127 
128  bool HLTinit_;
129 
131 };
132 #endif
HLTJetMETValidation::_meHLTJetEtaTrgMC
std::vector< MonitorElement * > _meHLTJetEtaTrgMC
Definition: HLTJetMETValidation.h:82
HLTJetMETValidation::~HLTJetMETValidation
~HLTJetMETValidation() override
Definition: HLTJetMETValidation.cc:29
CaloJetCollection.h
HLTJetMETValidation::_meHLTJetPt
std::vector< MonitorElement * > _meHLTJetPt
Definition: HLTJetMETValidation.h:77
CaloJet.h
HLTJetMETValidation::HLTinit_
bool HLTinit_
Definition: HLTJetMETValidation.h:128
HLTJetMETValidation::hltTrgJet
std::vector< std::string > hltTrgJet
Definition: HLTJetMETValidation.h:118
MessageLogger.h
L1MuonParticleFwd.h
TriggerResults.h
HLTJetMETValidation::dqmBeginRun
void dqmBeginRun(edm::Run const &iRun, edm::EventSetup const &iSetup) override
Definition: HLTJetMETValidation.cc:36
GenMETCollection.h
HLTJetMETValidation
Definition: HLTJetMETValidation.h:54
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< trigger::TriggerEventWithRefs >
HLTJetMETValidation::_meGenJetEtaTrg
std::vector< MonitorElement * > _meGenJetEtaTrg
Definition: HLTJetMETValidation.h:96
HLTJetMETValidation::triggerEventObject_
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventObject_
InputTag of TriggerEventWithRefs to analyze.
Definition: HLTJetMETValidation.h:67
HLTJetMETValidation::trig_iter
std::map< std::string, bool >::iterator trig_iter
Definition: HLTJetMETValidation.h:126
edm
HLT enums.
Definition: AlignableModifier.h:19
HLTJetMETValidation::_meHLTJetPtTrgLow
std::vector< MonitorElement * > _meHLTJetPtTrgLow
Definition: HLTJetMETValidation.h:80
HLTJetMETValidation::evtCnt
int evtCnt
Definition: HLTJetMETValidation.h:115
PFJet.h
PFJetCollection.h
TriggerEventWithRefs.h
DQMStore.h
HLTJetMETValidation::_meHLTJetPhi
std::vector< MonitorElement * > _meHLTJetPhi
Definition: HLTJetMETValidation.h:85
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
EDAnalyzer.h
HLTJetMETValidation::_meGenJetPhiTrgLow
std::vector< MonitorElement * > _meGenJetPhiTrgLow
Definition: HLTJetMETValidation.h:101
HLTJetMETValidation::CaloMETColl
edm::EDGetTokenT< reco::CaloMETCollection > CaloMETColl
Definition: HLTJetMETValidation.h:70
HLTJetMETValidation::_meGenJetPhiTrgMC
std::vector< MonitorElement * > _meGenJetPhiTrgMC
Definition: HLTJetMETValidation.h:99
HLTJetMETValidation::_meHLTMETTrgMC
std::vector< MonitorElement * > _meHLTMETTrgMC
Definition: HLTJetMETValidation.h:104
CaloMETCollection.h
HLTJetMETValidation::_meHLTJetPhiTrgMC
std::vector< MonitorElement * > _meHLTJetPhiTrgMC
Definition: HLTJetMETValidation.h:86
HLTJetMETValidation::patternMetTrg_
std::string patternMetTrg_
Definition: HLTJetMETValidation.h:75
HLTJetMETValidation::_meGenMETTrgLow
std::vector< MonitorElement * > _meGenMETTrgLow
Definition: HLTJetMETValidation.h:110
HLTJetMETValidation::_meHLTJetPtTrg
std::vector< MonitorElement * > _meHLTJetPtTrg
Definition: HLTJetMETValidation.h:79
HLTJetMETValidation::_meHLTMETTrg
std::vector< MonitorElement * > _meHLTMETTrg
Definition: HLTJetMETValidation.h:105
HLTJetMETValidation::patternJetTrg_
std::string patternJetTrg_
Definition: HLTJetMETValidation.h:75
CaloMET.h
L1TEGammaOffline_cfi.triggerNames
triggerNames
Definition: L1TEGammaOffline_cfi.py:40
Service.h
HLTJetMETValidation::HLTJetMETValidation
HLTJetMETValidation(const edm::ParameterSet &)
Definition: HLTJetMETValidation.cc:13
HLTJetMETValidation::writeFile_
bool writeFile_
Definition: HLTJetMETValidation.h:130
HLTJetMETValidation::_meGenJetPtTrg
std::vector< MonitorElement * > _meGenJetPtTrg
Definition: HLTJetMETValidation.h:92
HLTJetMETValidation::_meGenMETTrgMC
std::vector< MonitorElement * > _meGenMETTrgMC
Definition: HLTJetMETValidation.h:108
HLTJetMETValidation::HLTriggerResults
edm::EDGetTokenT< edm::TriggerResults > HLTriggerResults
Definition: HLTJetMETValidation.h:72
HLTJetMETValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &iRun, edm::EventSetup const &iSetup) override
Definition: HLTJetMETValidation.cc:133
DQMEDAnalyzer.h
L1EmParticleFwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTJetMETValidation::PFJetAlgorithm
edm::EDGetTokenT< reco::PFJetCollection > PFJetAlgorithm
Definition: HLTJetMETValidation.h:68
HLTJetMETValidation::patternMuTrg_
std::string patternMuTrg_
Definition: HLTJetMETValidation.h:75
GenMET.h
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
HLTJetMETValidation::_meGenJetPt
std::vector< MonitorElement * > _meGenJetPt
Definition: HLTJetMETValidation.h:90
HLTJetMETValidation::hltTrgMet
std::vector< std::string > hltTrgMet
Definition: HLTJetMETValidation.h:120
HLTJetMETValidation::_meHLTMETTrgLow
std::vector< MonitorElement * > _meHLTMETTrgLow
Definition: HLTJetMETValidation.h:106
L1JetParticleFwd.h
edm::ParameterSet
Definition: ParameterSet.h:47
HLTJetMETValidation::_meGenMET
std::vector< MonitorElement * > _meGenMET
Definition: HLTJetMETValidation.h:107
Event.h
HLTJetMETValidation::_meHLTJetPhiTrg
std::vector< MonitorElement * > _meHLTJetPhiTrg
Definition: HLTJetMETValidation.h:87
HLTJetMETValidation::_meHLTJetPhiTrgLow
std::vector< MonitorElement * > _meHLTJetPhiTrgLow
Definition: HLTJetMETValidation.h:88
HLTJetMETValidation::_meHLTJetEtaTrgLow
std::vector< MonitorElement * > _meHLTJetEtaTrgLow
Definition: HLTJetMETValidation.h:84
LorentzVector.h
edm::EventSetup
Definition: EventSetup.h:57
HLTJetMETValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: HLTJetMETValidation.cc:206
HLTJetMETValidation::_meGenJetPhi
std::vector< MonitorElement * > _meGenJetPhi
Definition: HLTJetMETValidation.h:98
L1EmParticle.h
HLTJetMETValidation::_triggerResults
MonitorElement * _triggerResults
Definition: HLTJetMETValidation.h:112
HLTConfigProvider.h
HLTJetMETValidation::_meGenJetPhiTrg
std::vector< MonitorElement * > _meGenJetPhiTrg
Definition: HLTJetMETValidation.h:100
HLTJetMETValidation::_meHLTJetEta
std::vector< MonitorElement * > _meHLTJetEta
Definition: HLTJetMETValidation.h:81
HLTJetMETValidation::hltTrgJetLow
std::vector< std::string > hltTrgJetLow
Definition: HLTJetMETValidation.h:119
HLTJetMETValidation::hltTriggerMap
std::map< std::string, bool > hltTriggerMap
Definition: HLTJetMETValidation.h:125
HLTJetMETValidation::_meGenJetPtTrgMC
std::vector< MonitorElement * > _meGenJetPtTrgMC
Definition: HLTJetMETValidation.h:91
HLTJetMETValidation::_meHLTJetPtTrgMC
std::vector< MonitorElement * > _meHLTJetPtTrgMC
Definition: HLTJetMETValidation.h:78
HLTJetMETValidation::_meGenMETTrg
std::vector< MonitorElement * > _meGenMETTrg
Definition: HLTJetMETValidation.h:109
Electron.h
HLTConfigProvider
Definition: HLTConfigProvider.h:29
HLTJetMETValidation::triggerTag_
std::string triggerTag_
Definition: HLTJetMETValidation.h:75
L1MuonParticle.h
HLTJetMETValidation::_meGenJetEtaTrgLow
std::vector< MonitorElement * > _meGenJetEtaTrgLow
Definition: HLTJetMETValidation.h:97
RecoChargedCandidate.h
HLTJetMETValidation::_meGenJetPtTrgLow
std::vector< MonitorElement * > _meGenJetPtTrgLow
Definition: HLTJetMETValidation.h:93
HLTJetMETValidation::hltConfig_
HLTConfigProvider hltConfig_
Definition: HLTJetMETValidation.h:117
edm::TriggerNames
Definition: TriggerNames.h:55
HLTJetMETValidation::hlttrigs
std::vector< bool > hlttrigs
Definition: HLTJetMETValidation.h:124
TriggerRefsCollections.h
HLTJetMETValidation::_meGenJetEtaTrgMC
std::vector< MonitorElement * > _meGenJetEtaTrgMC
Definition: HLTJetMETValidation.h:95
dqm::implementation::IBooker
Definition: DQMStore.h:43
HLTJetMETValidation::_meHLTMET
std::vector< MonitorElement * > _meHLTMET
Definition: HLTJetMETValidation.h:103
GenJet.h
HLTJetMETValidation::_meHLTJetEtaTrg
std::vector< MonitorElement * > _meHLTJetEtaTrg
Definition: HLTJetMETValidation.h:83
ParameterSet.h
HLTJetMETValidation::GenMETColl
edm::EDGetTokenT< reco::GenMETCollection > GenMETColl
Definition: HLTJetMETValidation.h:71
HLTJetMETValidation::_meGenJetEta
std::vector< MonitorElement * > _meGenJetEta
Definition: HLTJetMETValidation.h:94
edm::Event
Definition: Event.h:73
HLTJetMETValidation::hltTrgMetLow
std::vector< std::string > hltTrgMetLow
Definition: HLTJetMETValidation.h:121
L1JetParticle.h
edm::TriggerResults
Definition: TriggerResults.h:35
HLTJetMETValidation::GenJetAlgorithm
edm::EDGetTokenT< reco::GenJetCollection > GenJetAlgorithm
Definition: HLTJetMETValidation.h:69
HLTJetMETValidation::getHLTResults
void getHLTResults(const edm::TriggerResults &, const edm::TriggerNames &triggerNames)
Definition: HLTJetMETValidation.cc:447