|
| DiJetMonitor (const edm::ParameterSet &) |
|
| ~DiJetMonitor () override throw () |
|
void | accumulate (edm::Event const &event, edm::EventSetup const &setup) final |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
void | beginStream (edm::StreamID id) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
void | endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual bool | getCanSaveByLumi () |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
const EDProducer & | operator= (const EDProducer &)=delete |
|
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 |
|
Definition at line 32 of file DiJetMonitor.cc.
Reimplemented from DQMEDAnalyzer.
Definition at line 266 of file DiJetMonitor.cc.
References den_genTriggerEventFlag_, TriggerDQMBase::ObjME::denominator, dijet_selection(), dijetSrc_, edm::EventID::event(), dqm::impl::MonitorElement::Fill(), edm::Event::getByToken(), hltPathsAreValid_, edm::EventBase::id(), edm::HandleBase::isValid(), jetAsyEtaME_, jetEtaPhiME_, jetetaPrbME_, jetetaTagME_, jetphiPrbME_, jetpt1ME_, jetpt2ME_, jetptAsyME_, jetptAvgaME_, jetptAvgaThrME_, jetptAvgbME_, jetptPrbME_, jetptTagME_, num_genTriggerEventFlag_, TriggerDQMBase::ObjME::numerator, ptcut_, and requireValidHLTPaths_.
277 std::vector<double> v_jetpt;
278 std::vector<double> v_jeteta;
279 std::vector<double> v_jetphi;
291 for (reco::PFJetCollection::const_iterator ibegin = offjets->begin(), iend = offjets->end(), ijet = ibegin;
294 if (ijet->pt() <
ptcut_) {
297 v_jetpt.push_back(ijet->pt());
298 v_jeteta.push_back(ijet->eta());
299 v_jetphi.push_back(ijet->phi());
301 if (v_jetpt.size() < 2) {
304 double pt_1 = v_jetpt[0];
305 double eta_1 = v_jeteta[0];
306 double phi_1 = v_jetphi[0];
307 double pt_2 = v_jetpt[1];
308 double eta_2 = v_jeteta[1];
309 double phi_2 = v_jetphi[1];
310 double pt_avg_b = (pt_1 + pt_2) * 0.5;
311 int tag_id = -999, probe_id = -999;
317 if (
dijet_selection(eta_1, phi_1, eta_2, phi_2, pt_1, pt_2, tag_id, probe_id,
iEvent.id().event())) {
318 if (tag_id == 0 && probe_id == 1) {
319 double pt_asy = (pt_2 - pt_1) / (pt_1 + pt_2);
320 double pt_avg = (pt_1 + pt_2) * 0.5;
332 if (tag_id == 1 && probe_id == 0) {
333 double pt_asy = (pt_1 - pt_2) / (pt_2 + pt_1);
334 double pt_avg = (pt_2 + pt_1) * 0.5;
354 if (tag_id == 0 && probe_id == 1) {
355 double pt_asy = (pt_2 - pt_1) / (pt_1 + pt_2);
356 double pt_avg = (pt_1 + pt_2) * 0.5;
368 if (tag_id == 1 && probe_id == 0) {
369 double pt_asy = (pt_1 - pt_2) / (pt_2 + pt_1);
370 double pt_avg = (pt_2 + pt_1) * 0.5;
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
edm::EDGetTokenT< reco::PFJetCollection > dijetSrc_
const bool requireValidHLTPaths_
bool dijet_selection(double eta_1, double phi_1, double eta_2, double phi_2, double pt_1, double pt_2, int &tag_id, int &probe_id, int Event)
MonitorElement * denominator
MonitorElement * numerator
Log< level::Warning, false > LogWarning
Implements DQMEDAnalyzer.
Definition at line 130 of file DiJetMonitor.cc.
References asy_binning, TriggerDQMBase::bookME(), den_genTriggerEventFlag_, dijet_eta_binning, dijet_phi_binning, dijetpt_binning_, dijetptThr_binning_, folderName_, hltPathsAreValid_, jetAsyEtaME_, jetEtaPhiME_, jetetaPrbME_, jetetaTagME_, jetphiPrbME_, jetpt1ME_, jetpt2ME_, jetptAsyME_, jetptAvgaME_, jetptAvgaThrME_, jetptAvgbME_, jetptPrbME_, jetptTagME_, TriggerDQMBase::MEbinning::nbins, num_genTriggerEventFlag_, requireValidHLTPaths_, dqm::implementation::NavigatorBase::setCurrentFolder(), TriggerDQMBase::setMETitle(), AlCaHLTBitMon_QueryRunRegistry::string, TriggerDQMBase::MEbinning::xmax, and TriggerDQMBase::MEbinning::xmin.
155 histtitle =
"leading Jet Pt";
160 histtitle =
"second leading Jet Pt";
164 histname =
"jetptAvgB";
165 histtitle =
"Pt average before offline selection";
170 histname =
"jetptAvgA";
171 histtitle =
"Pt average after offline selection";
176 histname =
"jetptAvgAThr";
177 histtitle =
"Pt average after offline selection";
187 histname =
"jetptTag";
188 histtitle =
"Tag Jet Pt";
193 histname =
"jetptPrb";
194 histtitle =
"Probe Jet Pt";
199 histname =
"jetptAsym";
200 histtitle =
"Jet Pt Asymetry";
204 histname =
"jetetaPrb";
205 histtitle =
"Probe Jet eta";
215 histname =
"jetetaTag";
216 histtitle =
"Tag Jet eta";
226 histname =
"ptAsymVSetaPrb";
227 histtitle =
"Pt_Asym vs eta_prb";
240 histname =
"etaPrbVSphiPrb";
241 histtitle =
"eta_prb vs phi_prb";
254 histname =
"jetphiPrb";
255 histtitle =
"Probe Jet phi";
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
virtual void setCurrentFolder(std::string const &fullpath)
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
MEbinning dijetpt_binning_
MEbinning dijetptThr_binning_
const std::string folderName_
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
const bool requireValidHLTPaths_
MEbinning dijet_phi_binning
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)
MEbinning dijet_eta_binning