CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
B2GDQM.h
Go to the documentation of this file.
1 #ifndef B2GDQM_H
2 #define B2GDQM_H
3 
14 
15 // Trigger stuff
18 
27 
32 
34 
35 // ParticleFlow
37 
38 // EGamma
43 
44 // Muon
49 
50 // Jets
54 
55 // MET
63 
64 //
67 
69 
71 
72 #include <iostream>
73 #include <fstream>
74 #include <string>
75 #include <vector>
76 #include <map>
77 #include <cmath>
78 
79 class DQMStore;
80 
81 class B2GDQM : public DQMEDAnalyzer {
82 
83  public:
84  B2GDQM(const edm::ParameterSet& ps);
85  virtual ~B2GDQM();
86 
87  protected:
88  virtual void analyze(edm::Event const& e, edm::EventSetup const& eSetup);
89 
90  virtual void analyzeJets(edm::Event const& e, edm::EventSetup const& eSetup);
91  virtual void analyzeSemiMu(edm::Event const& e,
92  edm::EventSetup const& eSetup);
93  virtual void analyzeSemiE(edm::Event const& e, edm::EventSetup const& eSetup);
94  virtual void analyzeAllHad(edm::Event const& e,
95  edm::EventSetup const& eSetup);
96 
97  private:
98  virtual void bookHistograms(DQMStore::IBooker& bei, edm::Run const&,
99  edm::EventSetup const&) override;
102 
105 
106  // Variables from config file
109 
111 
112  std::vector<edm::InputTag> jetLabels_;
113  std::vector<edm::EDGetTokenT<edm::View<reco::Jet> > > jetTokens_;
116 
119 
122 
125 
127  // Parameters
129 
130  std::vector<double> jetPtMins_;
131 
132  double allHadPtCut_; // pt of both jets
133  double allHadRapidityCut_; // rapidity difference |y0-y1| max
134  double allHadDeltaPhiCut_; // |phi0 - phi1| min
135 
136  double semiMu_HadJetPtCut_; // min pt of hadronic-side jet
137  double semiMu_LepJetPtCut_; // min pt of leptonic-side jet
138  double semiMu_dphiHadCut_; // min deltaPhi between muon and hadronic-side jet
139  double semiMu_dRMin_; // min deltaR between muon and nearest jet for 2d cut
140  double semiMu_ptRel_; // max ptRel between muon and nearest jet for 2d cut
141  std::shared_ptr<StringCutObjectSelector<reco::Muon> >
142  muonSelect_; // Selection on all muons
143 
144  double semiE_HadJetPtCut_; // pt of hadronic-side jet
145  double semiE_LepJetPtCut_; // min pt of leptonic-side jet
146  double semiE_dphiHadCut_; // min deltaPhi between electron and hadronic-side
147  // jet
148  double semiE_dRMin_; // min deltaR between electron and nearest jet for 2d
149  // cut
150  double semiE_ptRel_; // max ptRel between electron and nearest jet for 2d cut
151  std::shared_ptr<StringCutObjectSelector<reco::GsfElectron> >
152  elecSelect_; // Kinematic selection on all electrons
153 
156  // Histograms
158  std::vector<MonitorElement*> pfJet_pt;
159  std::vector<MonitorElement*> pfJet_y;
160  std::vector<MonitorElement*> pfJet_phi;
161  std::vector<MonitorElement*> pfJet_m;
162  std::vector<MonitorElement*> pfJet_chef;
163  std::vector<MonitorElement*> pfJet_nhef;
164  std::vector<MonitorElement*> pfJet_cemf;
165  std::vector<MonitorElement*> pfJet_nemf;
166  std::vector<MonitorElement*> boostedJet_subjetPt;
167  std::vector<MonitorElement*> boostedJet_subjetY;
168  std::vector<MonitorElement*> boostedJet_subjetPhi;
169  std::vector<MonitorElement*> boostedJet_subjetM;
170  std::vector<MonitorElement*> boostedJet_subjetN;
171  std::vector<MonitorElement*> boostedJet_massDrop;
172  std::vector<MonitorElement*> boostedJet_minMass;
175 
188 
201 
213 };
214 
215 #endif
double semiMu_dphiHadCut_
Definition: B2GDQM.h:138
std::vector< MonitorElement * > pfJet_nhef
Definition: B2GDQM.h:163
MonitorElement * semiE_hadJetPhi
Definition: B2GDQM.h:197
std::vector< MonitorElement * > boostedJet_subjetY
Definition: B2GDQM.h:167
std::vector< MonitorElement * > pfJet_phi
Definition: B2GDQM.h:160
MonitorElement * pfMet_pt
Definition: B2GDQM.h:173
MonitorElement * semiMu_muPtRel
Definition: B2GDQM.h:180
edm::InputTag cmsTagLabel_
Definition: B2GDQM.h:117
virtual void analyzeSemiMu(edm::Event const &e, edm::EventSetup const &eSetup)
Definition: B2GDQM.cc:459
double semiMu_HadJetPtCut_
Definition: B2GDQM.h:136
virtual void analyzeAllHad(edm::Event const &e, edm::EventSetup const &eSetup)
Definition: B2GDQM.cc:415
double semiE_HadJetPtCut_
Definition: B2GDQM.h:144
MonitorElement * semiE_eEta
Definition: B2GDQM.h:190
MonitorElement * semiMu_muPt
Definition: B2GDQM.h:176
MonitorElement * semiE_ePtRel
Definition: B2GDQM.h:193
std::vector< MonitorElement * > pfJet_cemf
Definition: B2GDQM.h:164
MonitorElement * allHad_y0
Definition: B2GDQM.h:203
std::vector< MonitorElement * > pfJet_nemf
Definition: B2GDQM.h:165
MonitorElement * allHad_pt0
Definition: B2GDQM.h:202
MonitorElement * semiE_hadJetMinMass
Definition: B2GDQM.h:199
MonitorElement * semiE_ePt
Definition: B2GDQM.h:189
std::vector< double > jetPtMins_
Definition: B2GDQM.h:130
MonitorElement * semiMu_mttbar
Definition: B2GDQM.h:187
edm::InputTag theTriggerResultsCollection
Definition: B2GDQM.h:107
double semiE_ptRel_
Definition: B2GDQM.h:150
MonitorElement * allHad_minMass1
Definition: B2GDQM.h:211
std::vector< MonitorElement * > boostedJet_subjetPhi
Definition: B2GDQM.h:168
int ievt
Definition: B2GDQM.h:101
edm::InputTag electronLabel_
Definition: B2GDQM.h:123
std::vector< MonitorElement * > pfJet_y
Definition: B2GDQM.h:159
MonitorElement * allHad_phi0
Definition: B2GDQM.h:204
virtual void bookHistograms(DQMStore::IBooker &bei, edm::Run const &, edm::EventSetup const &) override
Definition: B2GDQM.cc:152
edm::InputTag muonLabel_
Definition: B2GDQM.h:120
MonitorElement * allHad_y1
Definition: B2GDQM.h:208
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
Definition: B2GDQM.h:121
MonitorElement * semiMu_muPhi
Definition: B2GDQM.h:178
MonitorElement * allHad_minMass0
Definition: B2GDQM.h:206
Definition: B2GDQM.h:81
double allHadDeltaPhiCut_
Definition: B2GDQM.h:134
double semiE_dphiHadCut_
Definition: B2GDQM.h:146
MonitorElement * semiE_eDRMin
Definition: B2GDQM.h:192
MonitorElement * semiMu_hadJetY
Definition: B2GDQM.h:183
MonitorElement * semiMu_muDRMin
Definition: B2GDQM.h:179
MonitorElement * semiMu_hadJetDR
Definition: B2GDQM.h:181
HLTConfigProvider hltConfigProvider_
Definition: B2GDQM.h:103
std::string PFJetCorService_
Definition: B2GDQM.h:154
MonitorElement * semiE_hadJetPt
Definition: B2GDQM.h:195
edm::EDGetTokenT< edm::View< reco::BasicJet > > cmsTagToken_
Definition: B2GDQM.h:118
int irun
Definition: B2GDQM.h:101
MonitorElement * allHad_mass0
Definition: B2GDQM.h:205
std::vector< MonitorElement * > boostedJet_subjetN
Definition: B2GDQM.h:170
std::vector< MonitorElement * > boostedJet_subjetPt
Definition: B2GDQM.h:166
int nLumiSecs_
Definition: B2GDQM.h:100
double semiE_dRMin_
Definition: B2GDQM.h:148
std::shared_ptr< StringCutObjectSelector< reco::Muon > > muonSelect_
Definition: B2GDQM.h:142
MonitorElement * allHad_mass1
Definition: B2GDQM.h:210
virtual void analyzeSemiE(edm::Event const &e, edm::EventSetup const &eSetup)
Definition: B2GDQM.cc:536
MonitorElement * semiE_hadJetMass
Definition: B2GDQM.h:198
MonitorElement * semiE_mttbar
Definition: B2GDQM.h:200
std::vector< edm::InputTag > jetLabels_
Definition: B2GDQM.h:112
MonitorElement * semiE_hadJetDR
Definition: B2GDQM.h:194
std::vector< MonitorElement * > boostedJet_minMass
Definition: B2GDQM.h:172
MonitorElement * semiMu_muEta
Definition: B2GDQM.h:177
double semiMu_ptRel_
Definition: B2GDQM.h:140
double allHadPtCut_
Definition: B2GDQM.h:132
std::vector< edm::EDGetTokenT< edm::View< reco::Jet > > > jetTokens_
Definition: B2GDQM.h:113
double semiE_LepJetPtCut_
Definition: B2GDQM.h:145
MonitorElement * semiMu_hadJetMinMass
Definition: B2GDQM.h:186
B2GDQM(const edm::ParameterSet &ps)
Definition: B2GDQM.cc:82
MonitorElement * allHad_pt1
Definition: B2GDQM.h:207
std::vector< MonitorElement * > pfJet_m
Definition: B2GDQM.h:161
MonitorElement * semiMu_hadJetPt
Definition: B2GDQM.h:182
MonitorElement * semiE_hadJetY
Definition: B2GDQM.h:196
edm::EDGetTokenT< edm::TriggerResults > triggerToken_
Definition: B2GDQM.h:108
MonitorElement * allHad_mttbar
Definition: B2GDQM.h:212
bool isValidHltConfig_
Definition: B2GDQM.h:104
double allHadRapidityCut_
Definition: B2GDQM.h:133
int nEvents_
Definition: B2GDQM.h:101
virtual void analyzeJets(edm::Event const &e, edm::EventSetup const &eSetup)
Definition: B2GDQM.cc:319
std::vector< MonitorElement * > pfJet_pt
Definition: B2GDQM.h:158
edm::Handle< edm::TriggerResults > triggerResults_
Definition: B2GDQM.h:110
std::shared_ptr< StringCutObjectSelector< reco::GsfElectron > > elecSelect_
Definition: B2GDQM.h:152
std::vector< MonitorElement * > boostedJet_massDrop
Definition: B2GDQM.h:171
MonitorElement * semiE_ePhi
Definition: B2GDQM.h:191
std::vector< MonitorElement * > pfJet_chef
Definition: B2GDQM.h:162
double semiMu_dRMin_
Definition: B2GDQM.h:139
edm::EDGetTokenT< std::vector< reco::PFMET > > PFMETToken_
Definition: B2GDQM.h:115
MonitorElement * semiMu_hadJetPhi
Definition: B2GDQM.h:184
virtual ~B2GDQM()
Definition: B2GDQM.cc:144
double semiMu_LepJetPtCut_
Definition: B2GDQM.h:137
MonitorElement * pfMet_phi
Definition: B2GDQM.h:174
MonitorElement * allHad_phi1
Definition: B2GDQM.h:209
Definition: Run.h:41
MonitorElement * semiMu_hadJetMass
Definition: B2GDQM.h:185
edm::InputTag PFMETLabel_
Definition: B2GDQM.h:114
edm::EDGetTokenT< edm::View< reco::GsfElectron > > electronToken_
Definition: B2GDQM.h:124
std::vector< MonitorElement * > boostedJet_subjetM
Definition: B2GDQM.h:169
virtual void analyze(edm::Event const &e, edm::EventSetup const &eSetup)
Definition: B2GDQM.cc:311