CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
JetDQM Class Reference

#include <JetDQM.h>

Inheritance diagram for JetDQM:
TriggerDQMBase

Public Member Functions

void bookHistograms (DQMStore::IBooker &)
 
void fillHistograms (const std::vector< reco::PFJet > &jets, const reco::PFMET &pfmet, const int ls, const bool passCond)
 
void initialise (const edm::ParameterSet &iConfig)
 
 JetDQM ()
 
 ~JetDQM () override
 
- Public Member Functions inherited from TriggerDQMBase
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbins, const double xmin, const double xmax, const bool bookDen=true)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const bool bookDen=true)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbinsX, const double xmin, const double xmax, const double ymin, const double ymax, const bool bookDen=true)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbinsX, const double xmin, const double xmax, const uint nbinsY, const double ymin, const double ymax, const bool bookDen=true)
 
void bookME (DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const std::vector< double > &binningX, const std::vector< double > &binningY, const bool bookDen=true)
 
void setMETitle (ObjME &me, const std::string &titleX, const std::string &titleY)
 
 TriggerDQMBase ()=default
 
virtual ~TriggerDQMBase ()=default
 

Static Public Member Functions

static void fillJetDescription (edm::ParameterSetDescription &histoPSet)
 
- Static Public Member Functions inherited from TriggerDQMBase
static void fillHistoLSPSetDescription (edm::ParameterSetDescription &pset)
 
static void fillHistoPSetDescription (edm::ParameterSetDescription &pset)
 
static MEbinning getHistoLSPSet (const edm::ParameterSet &pset)
 
static MEbinning getHistoPSet (const edm::ParameterSet &pset)
 

Private Attributes

ObjME cjetetaME_
 
ObjME cjetptME_
 
MEbinning detajj_binning_
 
ObjME detajjME_
 
MEbinning dphijj_binning_
 
ObjME dphijjME_
 
ObjME fjetetaME_
 
ObjME fjetptME_
 
ObjME jet1etaME_
 
ObjME jet1etaVsLS_
 
std::vector< double > jet1pt_variable_binning_
 
ObjME jet1ptME_
 
ObjME jet2etaME_
 
std::vector< double > jet2pt_variable_binning_
 
ObjME jet2ptME_
 
MEbinning jeteta_binning_
 
std::vector< double > jetpt_variable_binning_
 
MEbinning ls_binning_
 
MEbinning mindphijmet_binning_
 
ObjME mindphijmetME_
 
ObjME mindphijmetVsLS_
 
std::vector< double > mjj_variable_binning_
 
ObjME mjjME_
 
ObjME mjjVsLS_
 

Additional Inherited Members

- Public Types inherited from TriggerDQMBase
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Detailed Description

Definition at line 13 of file JetDQM.h.

Constructor & Destructor Documentation

◆ JetDQM()

JetDQM::JetDQM ( )
default

◆ ~JetDQM()

JetDQM::~JetDQM ( )
overridedefault

Member Function Documentation

◆ bookHistograms()

void JetDQM::bookHistograms ( DQMStore::IBooker ibooker)

Definition at line 29 of file JetDQM.cc.

References TriggerDQMBase::bookME(), cjetetaME_, cjetptME_, detajj_binning_, detajjME_, dphijj_binning_, dphijjME_, fjetetaME_, fjetptME_, jet1etaME_, jet1etaVsLS_, jet1pt_variable_binning_, jet1ptME_, jet2etaME_, jet2pt_variable_binning_, jet2ptME_, jeteta_binning_, jetpt_variable_binning_, ls_binning_, mindphijmet_binning_, mindphijmetME_, mindphijmetVsLS_, mjj_variable_binning_, mjjME_, mjjVsLS_, TriggerDQMBase::MEbinning::nbins, TriggerDQMBase::setMETitle(), AlCaHLTBitMon_QueryRunRegistry::string, TriggerDQMBase::MEbinning::xmax, and TriggerDQMBase::MEbinning::xmin.

Referenced by ObjMonitor::bookHistograms().

29  {
30  std::string histname, histtitle;
31 
32  histname = "jet1pt";
33  histtitle = "PFJet1 pT";
34  bookME(ibooker, jet1ptME_, histname, histtitle, jet1pt_variable_binning_);
35  setMETitle(jet1ptME_, "PFJet1 p_{T} [GeV]", "events / [GeV]");
36 
37  histname = "jet2pt";
38  histtitle = "PFJet2 pT";
39  bookME(ibooker, jet2ptME_, histname, histtitle, jet2pt_variable_binning_);
40  setMETitle(jet2ptME_, "PFJet2 p_{T} [GeV]", "events / [GeV]");
41 
42  histname = "jet1eta";
43  histtitle = "PFJet1 eta";
45  setMETitle(jet1etaME_, "PFJet1 #eta", "events / [rad]");
46 
47  histname = "jet2eta";
48  histtitle = "PFJet2 eta";
50  setMETitle(jet2etaME_, "PFJet2 #eta", "events / [rad]");
51 
52  histname = "cjetpt";
53  histtitle = "central PFJet pT";
54  bookME(ibooker, cjetptME_, histname, histtitle, jetpt_variable_binning_);
55  setMETitle(cjetptME_, "central PFJet p_{T} [GeV]", "events / [GeV]");
56 
57  histname = "fjetpt";
58  histtitle = "forward PFJet pT";
59  bookME(ibooker, fjetptME_, histname, histtitle, jetpt_variable_binning_);
60  setMETitle(fjetptME_, "forward PFJet p_{T} [GeV]", "events / [GeV]");
61 
62  histname = "cjeteta";
63  histtitle = "central PFJet eta";
65  setMETitle(cjetetaME_, "central PFJet #eta", "events / [rad]");
66 
67  histname = "fjeteta";
68  histtitle = "forward PFJet eta";
70  setMETitle(fjetetaME_, "forward PFJet #eta", "events / [rad]");
71 
72  histname = "mjj";
73  histtitle = "PFDiJet M";
74  bookME(ibooker, mjjME_, histname, histtitle, mjj_variable_binning_);
75  setMETitle(mjjME_, "PFDiJet M [GeV]", "events / [GeV]");
76 
77  histname = "detajj";
78  histtitle = "PFDiJet DeltaEta";
80  setMETitle(detajjME_, "PFDiJet #Delta#eta", "events / [rad]");
81 
82  histname = "dphijj";
83  histtitle = "PFDiJet DeltaPhi";
85  setMETitle(dphijjME_, "PFDiJet #Delta#phi", "events / [rad]");
86 
87  histname = "mindphijmet";
88  histtitle = "minDeltaPhi(PFJets,MET)";
89  bookME(ibooker,
91  histname,
92  histtitle,
96  setMETitle(mindphijmetME_, "min#Delta#phi(jets,MET)", "events / [rad]");
97 
98  histname = "jet1etaVsLS";
99  histtitle = "PFJet1 eta vs LS";
100  bookME(ibooker,
101  jet1etaVsLS_,
102  histname,
103  histtitle,
109  setMETitle(jet1etaVsLS_, "LS", "PF Jet1 #eta");
110 
111  histname = "mjjVsLS";
112  histtitle = "PFDiJet M vs LS";
113  bookME(ibooker, mjjVsLS_, histname, histtitle, ls_binning_.nbins, ls_binning_.xmin, ls_binning_.xmax, 0, 14000);
114  setMETitle(mjjVsLS_, "LS", "PFDiJet M [GeV]");
115 
116  histname = "mindphijmetVsLS";
117  histtitle = "minDeltaPhi(PFJets,MET) vs LS";
118  bookME(ibooker,
120  histname,
121  histtitle,
127  setMETitle(mindphijmetVsLS_, "LS", "min#Delta#phi(jets,MET)");
128 }
ObjME dphijjME_
Definition: JetDQM.h:50
ObjME cjetptME_
Definition: JetDQM.h:44
ObjME detajjME_
Definition: JetDQM.h:49
ObjME fjetetaME_
Definition: JetDQM.h:43
ObjME mindphijmetME_
Definition: JetDQM.h:53
ObjME jet1etaME_
Definition: JetDQM.h:38
MEbinning ls_binning_
Definition: JetDQM.h:33
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
std::vector< double > jet1pt_variable_binning_
Definition: JetDQM.h:25
ObjME jet2etaME_
Definition: JetDQM.h:39
MEbinning mindphijmet_binning_
Definition: JetDQM.h:32
ObjME jet2ptME_
Definition: JetDQM.h:37
ObjME jet1ptME_
Definition: JetDQM.h:36
std::vector< double > mjj_variable_binning_
Definition: JetDQM.h:27
ObjME mjjVsLS_
Definition: JetDQM.h:56
MEbinning jeteta_binning_
Definition: JetDQM.h:29
ObjME mindphijmetVsLS_
Definition: JetDQM.h:57
std::vector< double > jetpt_variable_binning_
Definition: JetDQM.h:24
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, const uint nbins, const double xmin, const double xmax, const bool bookDen=true)
ObjME cjetetaME_
Definition: JetDQM.h:42
std::vector< double > jet2pt_variable_binning_
Definition: JetDQM.h:26
MEbinning dphijj_binning_
Definition: JetDQM.h:31
MEbinning detajj_binning_
Definition: JetDQM.h:30
ObjME fjetptME_
Definition: JetDQM.h:45
ObjME jet1etaVsLS_
Definition: JetDQM.h:55
ObjME mjjME_
Definition: JetDQM.h:48

◆ fillHistograms()

void JetDQM::fillHistograms ( const std::vector< reco::PFJet > &  jets,
const reco::PFMET pfmet,
const int  ls,
const bool  passCond 
)

Definition at line 130 of file JetDQM.cc.

References cjetetaME_, cjetptME_, reco::deltaPhi(), TriggerDQMBase::ObjME::denominator, detajjME_, dphijjME_, HLT_2022v12_cff::eta1, HLT_2022v12_cff::eta2, dqm::impl::MonitorElement::Fill(), fjetetaME_, fjetptME_, jet1etaME_, jet1etaVsLS_, jet1ptME_, jet2etaME_, jet2ptME_, PDWG_EXODelayedJetMET_cff::jets, eostools::ls(), EgHLTOffHistBins_cfi::mass, mindphijmetME_, mindphijmetVsLS_, mjjME_, mjjVsLS_, TriggerDQMBase::ObjME::numerator, phi, reco::LeafCandidate::phi(), and DiDispStaMuonMonitor_cfi::pt.

Referenced by ObjMonitor::analyze().

133  {
134  // filling histograms (denominator)
135  if (!jets.empty()) {
136  double eta1 = jets[0].eta();
140  if (jets.size() > 1) {
141  double eta2 = jets[1].eta();
144  if (fabs(eta1) < fabs(eta2)) {
149  } else {
154  }
155  double mass = (jets[0].p4() + jets[1].p4()).mass();
158  detajjME_.denominator->Fill(fabs(eta1 - eta2));
159  dphijjME_.denominator->Fill(fabs(reco::deltaPhi(jets[0].phi(), jets[1].phi())));
160 
161  double mindphi = fabs(reco::deltaPhi(jets[0].phi(), pfmet.phi()));
162  for (unsigned ij(0); ij < jets.size(); ++ij) {
163  if (ij > 4)
164  break;
165  double dphi = fabs(reco::deltaPhi(jets[ij].phi(), pfmet.phi()));
166  if (dphi < mindphi)
167  mindphi = dphi;
168  }
169 
170  mindphijmetME_.denominator->Fill(mindphi);
171  mindphijmetVsLS_.denominator->Fill(ls, mindphi);
172  }
173  } //at least 1 jet
174 
175  // applying selection for numerator
176  if (passCond) {
177  // filling histograms (num_genTriggerEventFlag_)
178  if (!jets.empty()) {
179  double eta1 = jets[0].eta();
180  jet1ptME_.numerator->Fill(jets[0].pt());
183  if (jets.size() > 1) {
184  double eta2 = jets[1].eta();
185  jet2ptME_.numerator->Fill(jets[1].pt());
187  if (fabs(eta1) < fabs(eta2)) {
190  cjetptME_.numerator->Fill(jets[0].pt());
191  fjetptME_.numerator->Fill(jets[1].pt());
192  } else {
195  cjetptME_.numerator->Fill(jets[1].pt());
196  fjetptME_.numerator->Fill(jets[0].pt());
197  }
198  double mass = (jets[0].p4() + jets[1].p4()).mass();
201  detajjME_.numerator->Fill(fabs(eta1 - eta2));
202  dphijjME_.numerator->Fill(fabs(reco::deltaPhi(jets[0].phi(), jets[1].phi())));
203 
204  double mindphi = fabs(reco::deltaPhi(jets[0].phi(), pfmet.phi()));
205  for (unsigned ij(0); ij < jets.size(); ++ij) {
206  if (ij > 4)
207  break;
208  double dphi = fabs(reco::deltaPhi(jets[ij].phi(), pfmet.phi()));
209  if (dphi < mindphi)
210  mindphi = dphi;
211  }
212 
213  mindphijmetME_.numerator->Fill(mindphi);
214  mindphijmetVsLS_.numerator->Fill(ls, mindphi);
215  }
216  } //at least 1 jet
217  }
218 }
ObjME dphijjME_
Definition: JetDQM.h:50
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
ObjME cjetptME_
Definition: JetDQM.h:44
ObjME detajjME_
Definition: JetDQM.h:49
ObjME fjetetaME_
Definition: JetDQM.h:43
ObjME mindphijmetME_
Definition: JetDQM.h:53
ObjME jet1etaME_
Definition: JetDQM.h:38
ObjME jet2etaME_
Definition: JetDQM.h:39
void Fill(long long x)
ObjME jet2ptME_
Definition: JetDQM.h:37
ObjME jet1ptME_
Definition: JetDQM.h:36
MonitorElement * denominator
MonitorElement * numerator
ObjME mjjVsLS_
Definition: JetDQM.h:56
ObjME mindphijmetVsLS_
Definition: JetDQM.h:57
def ls(path, rec=False)
Definition: eostools.py:349
ObjME cjetetaME_
Definition: JetDQM.h:42
double phi() const final
momentum azimuthal angle
ObjME fjetptME_
Definition: JetDQM.h:45
ObjME jet1etaVsLS_
Definition: JetDQM.h:55
ObjME mjjME_
Definition: JetDQM.h:48

◆ fillJetDescription()

void JetDQM::fillJetDescription ( edm::ParameterSetDescription histoPSet)
static

Definition at line 220 of file JetDQM.cc.

References trigObjTnPSource_cfi::bins, ObjMonitor_cfi::detajjPSet, ObjMonitor_cfi::dphijjPSet, TriggerDQMBase::fillHistoLSPSetDescription(), TriggerDQMBase::fillHistoPSetDescription(), LumiMonitor_cff::histoPSet, ObjMonitor_cfi::jetetaPSet, LumiMonitor_cff::lsPSet, and ObjMonitor_cfi::mindphijmetPSet.

Referenced by ObjMonitor::fillDescriptions().

220  {
224 
228 
232 
235  histoPSet.add<edm::ParameterSetDescription>("mindphijmetPSet", mindphijmetPSet);
236 
237  std::vector<double> bins = {0., 20., 40., 60., 80., 100., 120., 140., 160., 180., 200., 220.,
238  240., 260., 280., 300., 350., 400., 450., 500, 750, 1000., 1500.};
239  histoPSet.add<std::vector<double> >("jetptBinning", bins);
240 
241  std::vector<double> pt1bins = {0., 20., 40., 60., 80., 90., 100., 110., 120., 130., 140., 150., 160.,
242  180., 210., 240., 270., 300., 330., 360., 400., 450., 500., 750., 1000., 1500.};
243  histoPSet.add<std::vector<double> >("jet1ptBinning", pt1bins);
244 
245  std::vector<double> pt2bins = {0., 20., 40., 45., 50., 55., 60., 65., 70., 80., 90., 100.,
246  110., 120., 150., 180., 210., 240., 270., 300., 350., 400., 1000.};
247  histoPSet.add<std::vector<double> >("jet2ptBinning", pt2bins);
248 
249  std::vector<double> mjjbins = {0., 200, 400, 600, 620, 640, 660, 680, 700, 720, 740, 760, 780, 800,
250  850, 900, 950, 1000, 1200, 1400, 1600, 1800, 2000, 2500, 3000, 4000, 6000};
251  histoPSet.add<std::vector<double> >("mjjBinning", mjjbins);
252 
255  histoPSet.add<edm::ParameterSetDescription>("jetlsPSet", lsPSet);
256 }
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)

◆ initialise()

void JetDQM::initialise ( const edm::ParameterSet iConfig)

Definition at line 8 of file JetDQM.cc.

References detajj_binning_, dphijj_binning_, TriggerDQMBase::getHistoPSet(), edm::ParameterSet::getParameter(), jet1pt_variable_binning_, jet2pt_variable_binning_, jeteta_binning_, jetpt_variable_binning_, ls_binning_, mindphijmet_binning_, and mjj_variable_binning_.

Referenced by ObjMonitor::ObjMonitor().

8  {
10  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("jetptBinning");
12  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("jet1ptBinning");
14  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("jet2ptBinning");
16  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<std::vector<double> >("mjjBinning");
18  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("jetetaPSet"));
20  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("detajjPSet"));
22  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("dphijjPSet"));
24  iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("mindphijmetPSet"));
25  ls_binning_ =
26  getHistoPSet(iConfig.getParameter<edm::ParameterSet>("histoPSet").getParameter<edm::ParameterSet>("jetlsPSet"));
27 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MEbinning ls_binning_
Definition: JetDQM.h:33
std::vector< double > jet1pt_variable_binning_
Definition: JetDQM.h:25
MEbinning mindphijmet_binning_
Definition: JetDQM.h:32
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
std::vector< double > mjj_variable_binning_
Definition: JetDQM.h:27
MEbinning jeteta_binning_
Definition: JetDQM.h:29
std::vector< double > jetpt_variable_binning_
Definition: JetDQM.h:24
std::vector< double > jet2pt_variable_binning_
Definition: JetDQM.h:26
MEbinning dphijj_binning_
Definition: JetDQM.h:31
MEbinning detajj_binning_
Definition: JetDQM.h:30

Member Data Documentation

◆ cjetetaME_

ObjME JetDQM::cjetetaME_
private

Definition at line 42 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ cjetptME_

ObjME JetDQM::cjetptME_
private

Definition at line 44 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ detajj_binning_

MEbinning JetDQM::detajj_binning_
private

Definition at line 30 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ detajjME_

ObjME JetDQM::detajjME_
private

Definition at line 49 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ dphijj_binning_

MEbinning JetDQM::dphijj_binning_
private

Definition at line 31 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ dphijjME_

ObjME JetDQM::dphijjME_
private

Definition at line 50 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ fjetetaME_

ObjME JetDQM::fjetetaME_
private

Definition at line 43 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ fjetptME_

ObjME JetDQM::fjetptME_
private

Definition at line 45 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ jet1etaME_

ObjME JetDQM::jet1etaME_
private

Definition at line 38 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ jet1etaVsLS_

ObjME JetDQM::jet1etaVsLS_
private

Definition at line 55 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ jet1pt_variable_binning_

std::vector<double> JetDQM::jet1pt_variable_binning_
private

Definition at line 25 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ jet1ptME_

ObjME JetDQM::jet1ptME_
private

Definition at line 36 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ jet2etaME_

ObjME JetDQM::jet2etaME_
private

Definition at line 39 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ jet2pt_variable_binning_

std::vector<double> JetDQM::jet2pt_variable_binning_
private

Definition at line 26 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ jet2ptME_

ObjME JetDQM::jet2ptME_
private

Definition at line 37 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ jeteta_binning_

MEbinning JetDQM::jeteta_binning_
private

Definition at line 29 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ jetpt_variable_binning_

std::vector<double> JetDQM::jetpt_variable_binning_
private

Definition at line 24 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ ls_binning_

MEbinning JetDQM::ls_binning_
private

Definition at line 33 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ mindphijmet_binning_

MEbinning JetDQM::mindphijmet_binning_
private

Definition at line 32 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ mindphijmetME_

ObjME JetDQM::mindphijmetME_
private

Definition at line 53 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ mindphijmetVsLS_

ObjME JetDQM::mindphijmetVsLS_
private

Definition at line 57 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ mjj_variable_binning_

std::vector<double> JetDQM::mjj_variable_binning_
private

Definition at line 27 of file JetDQM.h.

Referenced by bookHistograms(), and initialise().

◆ mjjME_

ObjME JetDQM::mjjME_
private

Definition at line 48 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().

◆ mjjVsLS_

ObjME JetDQM::mjjVsLS_
private

Definition at line 56 of file JetDQM.h.

Referenced by bookHistograms(), and fillHistograms().