70 m_bitAlgTechTrig_ = -1;
75 fill_jet_high_level_histo = pSet.
getParameter<
bool>(
"filljetHighLevel"),
76 filljetsubstruc_ = pSet.
getParameter<
bool>(
"fillsubstructure");
77 pt_min_boosted_ = pSet.
getParameter<
double>(
"ptMinBoosted");
83 isMiniAODJet_ = (
std::string(
"miniaod") == jetType_);
86 jetCorrectorToken_ = consumes<reco::JetCorrector>(jetCorrectorTag_);
90 caloJetsToken_ = consumes<reco::CaloJetCollection>(mInputCollection_);
97 pfJetsToken_ = consumes<reco::PFJetCollection>(mInputCollection_);
103 puppiJetsToken_ = consumes<reco::PFJetCollection>(mInputCollection_);
109 patJetsToken_ = consumes<pat::JetCollection>(mInputCollection_);
112 cutBasedPUDiscriminantToken_ =
116 mvaFullPUDiscriminantToken_ =
124 fill_CHS_histos = pSet.
getParameter<
bool>(
"fillCHShistos");
126 JetIDQuality_ = pSet.
getParameter<
string>(
"JetIDQuality");
127 JetIDVersion_ = pSet.
getParameter<
string>(
"JetIDVersion");
132 jetID_ValueMapToken_ = consumes<edm::ValueMap<reco::JetID> >(inputJetIDValueMap);
133 if (JetIDVersion_ ==
"PURE09") {
135 }
else if (JetIDVersion_ ==
"DQM09") {
137 }
else if (JetIDVersion_ ==
"CRAFT08") {
141 std::cout <<
"no Valid JetID version given" << std::endl;
143 if (JetIDQuality_ ==
"MINIMAL") {
145 }
else if (JetIDQuality_ ==
"LOOSE_AOD") {
147 }
else if (JetIDQuality_ ==
"LOOSE") {
149 }
else if (JetIDQuality_ ==
"TIGHT") {
153 std::cout <<
"no Valid JetID quality given" << std::endl;
159 if (isPFJet_ || isMiniAODJet_ || isPUPPIJet_) {
160 if (JetIDVersion_ ==
"FIRSTDATA") {
162 }
else if (JetIDVersion_ ==
"RUNIISTARTUP") {
164 }
else if (JetIDVersion_ ==
"WINTER16") {
166 }
else if (JetIDVersion_ ==
"WINTER17") {
168 }
else if (JetIDVersion_ ==
"WINTER17PUPPI") {
170 }
else if (JetIDVersion_ ==
"RUN2ULCHS") {
172 }
else if (JetIDVersion_ ==
"RUN2ULPUPPI") {
176 std::cout <<
"no valid PF JetID version given" << std::endl;
178 if (JetIDQuality_ ==
"LOOSE") {
180 }
else if (JetIDQuality_ ==
"TIGHT") {
184 std::cout <<
"no Valid PFJetID quality given" << std::endl;
193 ptThresholdUnc_ = 20.;
194 asymmetryThirdJetCut_ = 5.;
195 balanceThirdJetCut_ = 0.2;
198 triggerResultsToken_ = consumes<edm::TriggerResults>(
edm::InputTag(theTriggerResultsLabel_));
204 jetCleaningFlag_ =
false;
212 DCSFilterForDCSMonitoring_ =
new JetMETDQMDCSFilter(
"ecal:hbhe:hf:ho:pixel:sistrip:es:muon", iC);
218 highPtJetEventFlag_ =
223 highPtJetExpr_ = highptjetparms.
getParameter<std::vector<std::string> >(
"hltPaths");
224 lowPtJetExpr_ = lowptjetparms.getParameter<std::vector<std::string> >(
"hltPaths");
231 bypassAllPVChecks_ = cleaningParameters_.
getParameter<
bool>(
"bypassAllPVChecks");
232 vertexLabel_ = cleaningParameters_.getParameter<
edm::InputTag>(
"vertexCollection");
233 vertexToken_ = consumes<std::vector<reco::Vertex> >(
edm::InputTag(vertexLabel_));
235 gtLabel_ = cleaningParameters_.getParameter<
edm::InputTag>(
"gtLabel");
236 gtToken_ = consumes<L1GlobalTriggerReadoutRecord>(
edm::InputTag(gtLabel_));
238 std::string inputCollectionLabel(mInputCollection_.label());
239 verbose_ = parameters_.getParameter<
int>(
"verbose");
241 etaBin_ = parameters_.getParameter<
int>(
"etaBin");
242 etaMin_ = parameters_.getParameter<
double>(
"etaMin");
243 etaMax_ = parameters_.getParameter<
double>(
"etaMax");
245 phiBin_ = parameters_.getParameter<
int>(
"phiBin");
246 phiMin_ = parameters_.getParameter<
double>(
"phiMin");
247 phiMax_ = parameters_.getParameter<
double>(
"phiMax");
249 ptBin_ = parameters_.getParameter<
int>(
"ptBin");
250 ptMin_ = parameters_.getParameter<
double>(
"ptMin");
251 ptMax_ = parameters_.getParameter<
double>(
"ptMax");
253 eBin_ = parameters_.getParameter<
int>(
"eBin");
254 eMin_ = parameters_.getParameter<
double>(
"eMin");
255 eMax_ = parameters_.getParameter<
double>(
"eMax");
257 pBin_ = parameters_.getParameter<
int>(
"pBin");
258 pMin_ = parameters_.getParameter<
double>(
"pMin");
259 pMax_ = parameters_.getParameter<
double>(
"pMax");
261 nbinsPV_ = parameters_.getParameter<
int>(
"pVBin");
262 nPVlow_ = parameters_.getParameter<
double>(
"pVMin");
263 nPVhigh_ = parameters_.getParameter<
double>(
"pVMax");
265 ptThreshold_ = parameters_.getParameter<
double>(
"ptThreshold");
266 ptThresholdUnc_ = parameters_.getParameter<
double>(
"ptThresholdUnc");
267 asymmetryThirdJetCut_ = parameters_.getParameter<
double>(
"asymmetryThirdJetCut");
268 balanceThirdJetCut_ = parameters_.getParameter<
double>(
"balanceThirdJetCut");
270 l1gtTrigMenuToken_ = esConsumes<edm::Transition::BeginRun>();
275 delete highPtJetEventFlag_;
276 delete lowPtJetEventFlag_;
278 delete DCSFilterForDCSMonitoring_;
279 delete DCSFilterForJetMonitoring_;
280 LogTrace(
"JetAnalyzer") <<
"[JetAnalyzer] Saving the histos";
285 if (jetCleaningFlag_) {
287 DirName =
"JetMET/Jet/Cleaned" + mInputCollection_.label();
289 ibooker.
setCurrentFolder(
"JetMET/Jet/Uncleaned" + mInputCollection_.label());
290 DirName =
"JetMET/Jet/Uncleaned" + mInputCollection_.label();
293 jetME = ibooker.
book1D(
"jetReco",
"jetReco", 5, 1, 5);
295 jetME->setBinLabel(2,
"PFJets", 1);
296 jetME->setBinLabel(3,
"JPTJets", 1);
297 jetME->setBinLabel(4,
"MiniAODJets", 1);
298 jetME->setBinLabel(5,
"PUPPIJets", 1);
300 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"jetReco", jetME));
302 mPt = ibooker.
book1D(
"Pt",
"pt", ptBin_, ptMin_, ptMax_);
303 mEta = ibooker.
book1D(
"Eta",
"eta", etaBin_, etaMin_, etaMax_);
304 mPhi = ibooker.
book1D(
"Phi",
"phi", phiBin_, phiMin_, phiMax_);
305 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt", mPt));
306 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta", mEta));
307 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi", mPhi));
310 mConstituents = ibooker.
book1D(
"Constituents",
"# of constituents", 50, 0, 100);
311 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Constituents", mConstituents));
313 mJetEnergyCorr = ibooker.
book1D(
"JetEnergyCorr",
"jet energy correction factor", 50, 0.0, 3.0);
315 "JetEnergyCorrVSEta",
"jet energy correction factor VS eta", etaBin_, etaMin_, etaMax_, 0.0, 3.0);
317 ibooker.
bookProfile(
"JetEnergyCorrVSPt",
"jet energy correction factor VS pt", ptBin_, ptMin_, ptMax_, 0.0, 3.0);
318 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetEnergyCorr", mJetEnergyCorr));
319 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetEnergyCorrVSEta", mJetEnergyCorrVSEta));
320 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetEnergyCorrVSPt", mJetEnergyCorrVSPt));
322 mPt_uncor = ibooker.
book1D(
"Pt_uncor",
"pt for uncorrected jets", ptBin_, ptThresholdUnc_, ptMax_);
323 mEta_uncor = ibooker.
book1D(
"Eta_uncor",
"eta for uncorrected jets", etaBin_, etaMin_, etaMax_);
324 mPhi_uncor = ibooker.
book1D(
"Phi_uncor",
"phi for uncorrected jets", phiBin_, phiMin_, phiMax_);
325 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_uncor", mPt_uncor));
326 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta_uncor", mEta_uncor));
327 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_uncor", mPhi_uncor));
329 mConstituents_uncor = ibooker.
book1D(
"Constituents_uncor",
"# of constituents for uncorrected jets", 50, 0, 100);
330 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Constituents_uncor", mConstituents_uncor));
333 mDPhi = ibooker.
book1D(
"DPhi",
"dPhi btw the two leading jets", 100, 0., acos(-1.));
334 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DPhi", mDPhi));
338 mPt_profile = ibooker.
bookProfile(
"Pt_profile",
"pt", nbinsPV_, nPVlow_, nPVhigh_, ptBin_, ptMin_, ptMax_);
339 mEta_profile = ibooker.
bookProfile(
"Eta_profile",
"eta", nbinsPV_, nPVlow_, nPVhigh_, etaBin_, etaMin_, etaMax_);
340 mPhi_profile = ibooker.
bookProfile(
"Phi_profile",
"phi", nbinsPV_, nPVlow_, nPVhigh_, phiBin_, phiMin_, phiMax_);
342 mConstituents_profile =
343 ibooker.
bookProfile(
"Constituents_profile",
"# of constituents", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
345 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_profile", mPt_profile));
346 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta_profile", mEta_profile));
347 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_profile", mPhi_profile));
350 mLooseJIDPassFractionVSeta =
351 ibooker.
bookProfile(
"JetIDPassFractionVSeta",
"JetIDPassFractionVSeta", etaBin_, etaMin_, etaMax_, 0., 1.2);
352 mLooseJIDPassFractionVSpt =
353 ibooker.
bookProfile(
"JetIDPassFractionVSpt",
"JetIDPassFractionVSpt", ptBin_, ptMin_, ptMax_, 0., 1.2);
354 mLooseJIDPassFractionVSptNoHF =
355 ibooker.
bookProfile(
"JetIDPassFractionVSptNoHF",
"JetIDPassFractionVSptNoHF", ptBin_, ptMin_, ptMax_, 0., 1.2);
357 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetIDPassFractionVSeta", mLooseJIDPassFractionVSeta));
359 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetIDPassFractionVSpt", mLooseJIDPassFractionVSpt));
360 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetIDPassFractionVSptNoHF",
361 mLooseJIDPassFractionVSptNoHF));
364 mNJets_profile = ibooker.
bookProfile(
"NJets_profile",
"number of jets", nbinsPV_, nPVlow_, nPVhigh_, 100, 0, 100);
369 mEta_profile->setAxisTitle(
"nvtx", 1);
370 mPhi_profile->setAxisTitle(
"nvtx", 1);
372 mConstituents_profile->setAxisTitle(
"nvtx", 1);
374 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Constituents_profile", mConstituents_profile));
376 mNJets_profile->setAxisTitle(
"nvtx", 1);
378 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_profile", mPt_profile));
379 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta_profile", mEta_profile));
380 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_profile", mPhi_profile));
381 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NJets_profile", mNJets_profile));
383 mPhiVSEta = ibooker.
book2D(
"PhiVSEta",
"PhiVSEta", 50, etaMin_, etaMax_, 24, phiMin_, phiMax_);
385 mPhiVSEta->setAxisTitle(
"#eta", 1);
386 mPhiVSEta->setAxisTitle(
"#phi", 2);
387 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhiVSEta", mPhiVSEta));
389 mPt_1 = ibooker.
book1D(
"Pt_1",
"Pt spectrum of jets - range 1", 20, 0, 100);
390 mPt_2 = ibooker.
book1D(
"Pt_2",
"Pt spectrum of jets - range 2", 60, 0, 300);
391 mPt_3 = ibooker.
book1D(
"Pt_3",
"Pt spectrum of jets - range 3", 100, 0, 5000);
392 mPt_log = ibooker.
book1D(
"Pt_log",
"Pt spectrum of jets - log", 100, 0, 50);
394 mPt_Lo = ibooker.
book1D(
"Pt_Lo",
"Pt (Pass Low Pt Jet Trigger)", 20, 0, 100);
396 mPhi_Lo = ibooker.
book1D(
"Phi_Lo",
"Phi (Pass Low Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
398 mPt_Hi = ibooker.
book1D(
"Pt_Hi",
"Pt (Pass Hi Pt Jet Trigger)", 60, 0, 300);
399 mEta_Hi = ibooker.
book1D(
"Eta_Hi",
"Eta (Pass Hi Pt Jet Trigger)", etaBin_, etaMin_, etaMax_);
400 mPhi_Hi = ibooker.
book1D(
"Phi_Hi",
"Phi (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
401 mNJets = ibooker.
book1D(
"NJets",
"number of jets", 100, 0, 100);
403 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_1", mPt_1));
404 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_2", mPt_2));
405 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_3", mPt_3));
406 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_log", mPt_log));
407 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_Lo", mPt_Lo));
408 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_Lo", mPhi_Lo));
409 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_Hi", mPt_Hi));
410 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta_Hi", mEta_Hi));
411 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_Hi", mPhi_Hi));
412 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NJets", mNJets));
417 mConstituents_Barrel = ibooker.
book1D(
"Constituents_Barrel",
"Constituents Barrel", 50, 0, 100);
419 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Constituents_Barrel", mConstituents_Barrel));
425 mConstituents_EndCap = ibooker.
book1D(
"Constituents_EndCap",
"Constituents EndCap", 50, 0, 100);
427 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Constituents_EndCap", mConstituents_EndCap));
433 mConstituents_Forward = ibooker.
book1D(
"Constituents_Forward",
"Constituents Forward", 50, 0, 100);
435 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Constituents_Forward", mConstituents_Forward));
438 mPt_Barrel_Hi = ibooker.
book1D(
"Pt_Barrel_Hi",
"Pt Barrel (Pass Hi Pt Jet Trigger)", 60, 0, 300);
439 mPhi_Barrel_Hi = ibooker.
book1D(
"Phi_Barrel_Hi",
"Phi Barrel (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
441 mPt_EndCap_Hi = ibooker.
book1D(
"Pt_EndCap_Hi",
"Pt EndCap (Pass Hi Pt Jet Trigger)", 60, 0, 300);
442 mPhi_EndCap_Hi = ibooker.
book1D(
"Phi_EndCap_Hi",
"Phi EndCap (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
444 mPt_Forward_Hi = ibooker.
book1D(
"Pt_Forward_Hi",
"Pt Forward (Pass Hi Pt Jet Trigger)", 60, 0, 300);
445 mPhi_Forward_Hi = ibooker.
book1D(
"Phi_Forward_Hi",
"Phi Forward (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
447 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_Barrel_Hi", mPt_Barrel_Hi));
448 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_Barrel_Hi", mPhi_Barrel_Hi));
449 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_EndCap_Hi", mPt_EndCap_Hi));
450 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_EndCap_Hi", mPhi_EndCap_Hi));
451 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_Forward_Hi", mPt_Forward_Hi));
452 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_Forward_Hi", mPhi_Forward_Hi));
454 mPhi_Barrel = ibooker.
book1D(
"Phi_Barrel",
"Phi_Barrel", phiBin_, phiMin_, phiMax_);
455 mPt_Barrel = ibooker.
book1D(
"Pt_Barrel",
"Pt_Barrel", ptBin_, ptMin_, ptMax_);
457 mPhi_EndCap = ibooker.
book1D(
"Phi_EndCap",
"Phi_EndCap", phiBin_, phiMin_, phiMax_);
458 mPt_EndCap = ibooker.
book1D(
"Pt_EndCap",
"Pt_EndCap", ptBin_, ptMin_, ptMax_);
460 mPhi_Forward = ibooker.
book1D(
"Phi_Forward",
"Phi_Forward", phiBin_, phiMin_, phiMax_);
461 mPt_Forward = ibooker.
book1D(
"Pt_Forward",
"Pt_Forward", ptBin_, ptMin_, ptMax_);
463 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_Barrel", mPt_Barrel));
464 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_Barrel", mPhi_Barrel));
465 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_EndCap", mPt_EndCap));
466 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_EndCap", mPhi_EndCap));
467 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_Forward", mPt_Forward));
468 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_Forward", mPhi_Forward));
471 mEtaFirst = ibooker.
book1D(
"EtaFirst",
"EtaFirst", 50, -5, 5);
472 mPhiFirst = ibooker.
book1D(
"PhiFirst",
"PhiFirst", 70, phiMin_, phiMax_);
473 mPtFirst = ibooker.
book1D(
"PtFirst",
"PtFirst", ptBin_, ptMin_, ptMax_);
475 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EtaFirst", mEtaFirst));
476 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtFirst", mPtFirst));
477 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhiFirst", mPhiFirst));
482 mHadEnergyInHO = ibooker.
book1D(
"HadEnergyInHO",
"HadEnergyInHO", 50, 0, 20);
483 mHadEnergyInHB = ibooker.
book1D(
"HadEnergyInHB",
"HadEnergyInHB", 50, 0, 100);
484 mHadEnergyInHF = ibooker.
book1D(
"HadEnergyInHF",
"HadEnergyInHF", 50, 0, 100);
485 mHadEnergyInHE = ibooker.
book1D(
"HadEnergyInHE",
"HadEnergyInHE", 50, 0, 200);
486 mEmEnergyInEB = ibooker.
book1D(
"EmEnergyInEB",
"EmEnergyInEB", 50, 0, 100);
487 mEmEnergyInEE = ibooker.
book1D(
"EmEnergyInEE",
"EmEnergyInEE", 50, 0, 100);
488 mEmEnergyInHF = ibooker.
book1D(
"EmEnergyInHF",
"EmEnergyInHF", 60, -20, 200);
489 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HadEnergyInHO", mHadEnergyInHO));
490 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HadEnergyInHB", mHadEnergyInHB));
491 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HadEnergyInHF", mHadEnergyInHF));
492 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HadEnergyInHE", mHadEnergyInHE));
493 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EmEnergyInEB", mEmEnergyInEB));
494 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EmEnergyInEE", mEmEnergyInEE));
495 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EmEnergyInHF", mEmEnergyInHF));
498 mresEMF = ibooker.
book1D(
"resEMF",
"resEMF", 50, 0., 1.);
499 mN90Hits = ibooker.
book1D(
"N90Hits",
"N90Hits", 50, 0., 50);
500 mfHPD = ibooker.
book1D(
"fHPD",
"fHPD", 50, 0., 1.);
501 mfRBX = ibooker.
book1D(
"fRBX",
"fRBX", 50, 0., 1.);
502 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"resEMF", mresEMF));
503 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"N90Hits", mN90Hits));
504 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"fHPD", mfHPD));
505 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"fRBX", mfRBX));
507 mHFrac = ibooker.
book1D(
"HFrac",
"HFrac", 70, -0.2, 1.2);
508 mEFrac = ibooker.
book1D(
"EFrac",
"EFrac", 52, -0.02, 1.02);
509 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFrac", mHFrac));
510 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EFrac", mEFrac));
511 mHFrac_profile = ibooker.
bookProfile(
"HFrac_profile",
"HFrac", nbinsPV_, nPVlow_, nPVhigh_, 70, -0.2, 1.2);
512 mEFrac_profile = ibooker.
bookProfile(
"EFrac_profile",
"EFrac", nbinsPV_, nPVlow_, nPVhigh_, 52, -0.02, 1.02);
514 mEFrac_profile->setAxisTitle(
"nvtx", 1);
515 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFrac_profile", mHFrac_profile));
516 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EFrac_profile", mEFrac_profile));
517 mHFrac_Barrel = ibooker.
book1D(
"HFrac_Barrel",
"HFrac Barrel", 50, 0, 1);
518 mEFrac_Barrel = ibooker.
book1D(
"EFrac_Barrel",
"EFrac Barrel", 52, -0.02, 1.02);
519 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFrac_Barrel", mHFrac_Barrel));
520 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EFrac_Barrel", mEFrac_Barrel));
521 mHFrac_EndCap = ibooker.
book1D(
"HFrac_EndCap",
"HFrac EndCap", 50, 0, 1);
522 mEFrac_EndCap = ibooker.
book1D(
"EFrac_EndCap",
"EFrac EndCap", 52, -0.02, 1.02);
523 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFrac_EndCap", mHFrac_EndCap));
524 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EFrac_EndCap", mEFrac_EndCap));
525 mHFrac_Forward = ibooker.
book1D(
"HFrac_Forward",
"HFrac Forward", 70, -0.2, 1.2);
526 mEFrac_Forward = ibooker.
book1D(
"EFrac_Forward",
"EFrac Forward", 52, -0.02, 1.02);
527 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFrac_Forward", mHFrac_Forward));
528 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EFrac_Forward", mEFrac_Forward));
617 ibooker.
bookProfile(
"CHFracVSeta_lowPt",
"CHFracVSeta_lowPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
619 ibooker.
bookProfile(
"NHFacVSeta_lowPt",
"NHFracVSeta_lowPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
621 ibooker.
bookProfile(
"PhFracVSeta_lowPt",
"PhFracVSeta_lowPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
622 mCHFracVSeta_mediumPt =
623 ibooker.
bookProfile(
"CHFracVSeta_mediumPt",
"CHFracVSeta_mediumPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
624 mNHFracVSeta_mediumPt =
625 ibooker.
bookProfile(
"NHFracVSeta_mediumPt",
"NHFracVSeta_mediumPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
626 mPhFracVSeta_mediumPt =
627 ibooker.
bookProfile(
"PhFracVSeta_mediumPt",
"PhFracVSeta_mediumPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
628 mCHFracVSeta_highPt =
629 ibooker.
bookProfile(
"CHFracVSeta_highPt",
"CHFracVSeta_highPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
630 mNHFracVSeta_highPt =
631 ibooker.
bookProfile(
"NHFracVSeta_highPt",
"NHFracVSeta_highPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
632 mPhFracVSeta_highPt =
633 ibooker.
bookProfile(
"PhFracVSeta_highPt",
"PhFracVSeta_highPt", etaBin_, etaMin_, etaMax_, 0., 1.2);
635 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracVSeta_lowPt", mCHFracVSeta_lowPt));
636 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracVSeta_lowPt", mNHFracVSeta_lowPt));
637 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracVSeta_lowPt", mPhFracVSeta_lowPt));
639 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracVSeta_mediumPt", mCHFracVSeta_mediumPt));
641 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracVSeta_mediumPt", mNHFracVSeta_mediumPt));
643 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracVSeta_mediumPt", mPhFracVSeta_mediumPt));
645 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracVSeta_highPt", mCHFracVSeta_highPt));
647 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracVSeta_highPt", mNHFracVSeta_highPt));
649 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracVSeta_highPt", mPhFracVSeta_highPt));
651 mLooseMVAPUJIDPassFractionVSeta = ibooker.
bookProfile(
652 "LooseMVAPUIDPassFractionVSeta",
"LooseMVAPUIDPassFractionVSeta", etaBin_, etaMin_, etaMax_, 0., 1.2);
653 mLooseMVAPUJIDPassFractionVSpt = ibooker.
bookProfile(
654 "LooseMVAPUIDPassFractionVSpt",
"LooseMVAPUIDPassFractionVSpt", ptBin_, ptMin_, ptMax_, 0., 1.2);
655 mMediumMVAPUJIDPassFractionVSeta = ibooker.
bookProfile(
656 "MediumMVAPUIDPassFractionVSeta",
"MediumMVAPUIDPassFractionVSeta", etaBin_, etaMin_, etaMax_, 0., 1.2);
657 mMediumMVAPUJIDPassFractionVSpt = ibooker.
bookProfile(
658 "MediumMVAPUIDPassFractionVSpt",
"MediumMVAPUIDPassFractionVSpt", ptBin_, ptMin_, ptMax_, 0., 1.2);
659 mTightMVAPUJIDPassFractionVSeta = ibooker.
bookProfile(
660 "TightMVAPUIDPassFractionVSeta",
"TightMVAPUIDPassFractionVSeta", etaBin_, etaMin_, etaMax_, 0., 1.2);
661 mTightMVAPUJIDPassFractionVSpt = ibooker.
bookProfile(
662 "TightMVAPUIDPassFractionVSpt",
"TightMVAPUIDPassFractionVSpt", ptBin_, ptMin_, ptMax_, 0., 1.2);
664 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"LooseMVAPUIDPassFractionVSeta",
665 mLooseMVAPUJIDPassFractionVSeta));
666 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"LooseMVAPUIDPassFractionVSpt",
667 mLooseMVAPUJIDPassFractionVSpt));
668 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MediumMVAPUIDPassFractionVSeta",
669 mMediumMVAPUJIDPassFractionVSeta));
670 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MediumMVAPUIDPassFractionVSpt",
671 mMediumMVAPUJIDPassFractionVSpt));
672 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"TightMVAPUIDPassFractionVSeta",
673 mTightMVAPUJIDPassFractionVSeta));
674 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"TightMVAPUIDPassFractionVSpt",
675 mTightMVAPUJIDPassFractionVSpt));
677 mLooseCutPUJIDPassFractionVSeta = ibooker.
bookProfile(
678 "LooseCutPUIDPassFractionVSeta",
"LooseCutPUIDPassFractionVSeta", etaBin_, etaMin_, etaMax_, 0., 1.2);
679 mLooseCutPUJIDPassFractionVSpt = ibooker.
bookProfile(
680 "LooseCutPUIDPassFractionVSpt",
"LooseCutPUIDPassFractionVSpt", ptBin_, ptMin_, ptMax_, 0., 1.2);
681 mMediumCutPUJIDPassFractionVSeta = ibooker.
bookProfile(
682 "MediumCutPUIDPassFractionVSeta",
"MediumCutPUIDPassFractionVSeta", etaBin_, etaMin_, etaMax_, 0., 1.2);
683 mMediumCutPUJIDPassFractionVSpt = ibooker.
bookProfile(
684 "MediumCutPUIDPassFractionVSpt",
"MediumCutPUIDPassFractionVSpt", ptBin_, ptMin_, ptMax_, 0., 1.2);
685 mTightCutPUJIDPassFractionVSeta = ibooker.
bookProfile(
686 "TightCutPUIDPassFractionVSeta",
"TightCutPUIDPassFractionVSeta", etaBin_, etaMin_, etaMax_, 0., 1.2);
687 mTightCutPUJIDPassFractionVSpt = ibooker.
bookProfile(
688 "TightCutPUIDPassFractionVSpt",
"TightCutPUIDPassFractionVSpt", ptBin_, ptMin_, ptMax_, 0., 1.2);
689 mCutPUJIDDiscriminant_lowPt_Barrel =
690 ibooker.
book1D(
"CutPUJIDDiscriminant_lowPt_Barrel",
"CutPUJIDDiscriminant_lowPt_Barrel", 50, -1.00, 1.00);
691 mCutPUJIDDiscriminant_lowPt_EndCap =
692 ibooker.
book1D(
"CutPUJIDDiscriminant_lowPt_EndCap",
"CutPUJIDDiscriminant_lowPt_EndCap", 50, -1.00, 1.00);
693 mCutPUJIDDiscriminant_lowPt_Forward =
694 ibooker.
book1D(
"CutPUJIDDiscriminant_lowPt_Forward",
"CutPUJIDDiscriminant_lowPt_Forward", 50, -1.00, 1.00);
695 mCutPUJIDDiscriminant_mediumPt_Barrel =
696 ibooker.
book1D(
"CutPUJIDDiscriminant_mediumPt_Barrel",
"CutPUJIDDiscriminant_mediumPt_Barrel", 50, -1.00, 1.00);
697 mCutPUJIDDiscriminant_mediumPt_EndCap =
698 ibooker.
book1D(
"CutPUJIDDiscriminant_mediumPt_EndCap",
"CutPUJIDDiscriminant_mediumPt_EndCap", 50, -1.00, 1.00);
699 mCutPUJIDDiscriminant_mediumPt_Forward = ibooker.
book1D(
700 "CutPUJIDDiscriminant_mediumPt_Forward",
"CutPUJIDDiscriminant_mediumPt_Forward", 50, -1.00, 1.00);
701 mCutPUJIDDiscriminant_highPt_Barrel =
702 ibooker.
book1D(
"CutPUJIDDiscriminant_highPt_Barrel",
"CutPUJIDDiscriminant_highPt_Barrel", 50, -1.00, 1.00);
703 mCutPUJIDDiscriminant_highPt_EndCap =
704 ibooker.
book1D(
"CutPUJIDDiscriminant_highPt_EndCap",
"CutPUJIDDiscriminant_highPt_EndCap", 50, -1.00, 1.00);
705 mCutPUJIDDiscriminant_highPt_Forward =
706 ibooker.
book1D(
"CutPUJIDDiscriminant_highPt_Forward",
"CutPUJIDDiscriminant_highPt_Forward", 50, -1.00, 1.00);
708 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"LooseCutPUIDPassFractionVSeta",
709 mLooseCutPUJIDPassFractionVSeta));
710 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"LooseCutPUIDPassFractionVSpt",
711 mLooseCutPUJIDPassFractionVSpt));
712 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MediumCutPUIDPassFractionVSeta",
713 mMediumCutPUJIDPassFractionVSeta));
714 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MediumCutPUIDPassFractionVSpt",
715 mMediumCutPUJIDPassFractionVSpt));
716 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"TightCutPUIDPassFractionVSeta",
717 mTightCutPUJIDPassFractionVSeta));
718 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"TightCutPUIDPassFractionVSpt",
719 mTightCutPUJIDPassFractionVSpt));
720 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_lowPt_Barrel",
721 mCutPUJIDDiscriminant_lowPt_Barrel));
722 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_lowPt_EndCap",
723 mCutPUJIDDiscriminant_lowPt_EndCap));
724 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_lowPt_Forward",
725 mCutPUJIDDiscriminant_lowPt_Forward));
726 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_mediumPt_Barrel",
727 mCutPUJIDDiscriminant_mediumPt_Barrel));
728 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_mediumPt_EndCap",
729 mCutPUJIDDiscriminant_mediumPt_EndCap));
730 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_mediumPt_Forward",
731 mCutPUJIDDiscriminant_mediumPt_Forward));
732 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_highPt_Barrel",
733 mCutPUJIDDiscriminant_highPt_Barrel));
734 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_highPt_EndCap",
735 mCutPUJIDDiscriminant_highPt_EndCap));
736 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CutPUJIDDiscriminant_highPt_Forward",
737 mCutPUJIDDiscriminant_highPt_Forward));
740 mCHFrac_lowPt_Barrel = ibooker.
book1D(
"CHFrac_lowPt_Barrel",
"CHFrac_lowPt_Barrel", 120, -0.1, 1.1);
741 mNHFrac_lowPt_Barrel = ibooker.
book1D(
"NHFrac_lowPt_Barrel",
"NHFrac_lowPt_Barrel", 120, -0.1, 1.1);
742 mPhFrac_lowPt_Barrel = ibooker.
book1D(
"PhFrac_lowPt_Barrel",
"PhFrac_lowPt_Barrel", 120, -0.1, 1.1);
743 mCHFrac_mediumPt_Barrel = ibooker.
book1D(
"CHFrac_mediumPt_Barrel",
"CHFrac_mediumPt_Barrel", 120, -0.1, 1.1);
744 mNHFrac_mediumPt_Barrel = ibooker.
book1D(
"NHFrac_mediumPt_Barrel",
"NHFrac_mediumPt_Barrel", 120, -0.1, 1.1);
745 mPhFrac_mediumPt_Barrel = ibooker.
book1D(
"PhFrac_mediumPt_Barrel",
"PhFrac_mediumPt_Barrel", 120, -0.1, 1.1);
746 mCHFrac_highPt_Barrel = ibooker.
book1D(
"CHFrac_highPt_Barrel",
"CHFrac_highPt_Barrel", 120, -0.1, 1.1);
747 mNHFrac_highPt_Barrel = ibooker.
book1D(
"NHFrac_highPt_Barrel",
"NHFrac_highPt_Barrel", 120, -0.1, 1.1);
748 mPhFrac_highPt_Barrel = ibooker.
book1D(
"PhFrac_highPt_Barrel",
"PhFrac_highPt_Barrel", 120, -0.1, 1.1);
751 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFrac_lowPt_Barrel", mCHFrac_lowPt_Barrel));
753 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFrac_lowPt_Barrel", mNHFrac_lowPt_Barrel));
755 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFrac_lowPt_Barrel", mPhFrac_lowPt_Barrel));
757 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFrac_mediumPt_Barrel", mCHFrac_mediumPt_Barrel));
759 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFrac_mediumPt_Barrel", mNHFrac_mediumPt_Barrel));
761 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFrac_mediumPt_Barrel", mPhFrac_mediumPt_Barrel));
763 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFrac_highPt_Barrel", mCHFrac_highPt_Barrel));
765 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFrac_highPt_Barrel", mNHFrac_highPt_Barrel));
767 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFrac_highPt_Barrel", mPhFrac_highPt_Barrel));
769 mMass_lowPt_Barrel = ibooker.
book1D(
"JetMass_lowPt_Barrel",
"JetMass_lowPt_Barrel", 50, 0, 150);
770 mMass_lowPt_EndCap = ibooker.
book1D(
"JetMass_lowPt_EndCap",
"JetMass_lowPt_EndCap", 50, 0, 150);
771 mMass_lowPt_Forward = ibooker.
book1D(
"JetMass_lowPt_Forward",
"JetMass_lowPt_Forward", 50, 0, 150);
772 mMass_mediumPt_Barrel = ibooker.
book1D(
"JetMass_mediumPt_Barrel",
"JetMass_mediumPt_Barrel", 50, 0, 150);
773 mMass_mediumPt_EndCap = ibooker.
book1D(
"JetMass_mediumPt_EndCap",
"JetMass_mediumPt_EndCap", 50, 0, 150);
774 mMass_mediumPt_Forward = ibooker.
book1D(
"JetMass_mediumPt_Forward",
"JetMass_mediumPt_Forward", 75, 0, 150);
775 mMass_highPt_Barrel = ibooker.
book1D(
"JetMass_highPt_Barrel",
"JetMass_highPt_Barrel", 50, 0, 150);
776 mMass_highPt_EndCap = ibooker.
book1D(
"JetMass_highPt_EndCap",
"JetMass_highPt_EndCap", 50, 0, 150);
777 mMass_highPt_Forward = ibooker.
book1D(
"JetMass_highPt_Forward",
"JetMass_highPt_Forward", 50, 0, 150);
780 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_lowPt_Barrel", mMass_lowPt_Barrel));
782 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_lowPt_EndCap", mMass_lowPt_EndCap));
784 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_lowPt_Forward", mMass_lowPt_Forward));
786 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_mediumPt_Barrel", mMass_mediumPt_Barrel));
788 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_mediumPt_EndCap", mMass_mediumPt_EndCap));
790 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_mediumPt_Forward", mMass_mediumPt_Forward));
792 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_highPt_Barrel", mMass_highPt_Barrel));
794 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_highPt_EndCap", mMass_highPt_EndCap));
796 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_highPt_Forward", mMass_highPt_Forward));
799 mCHEn_lowPt_Barrel = ibooker.
book1D(
"CHEn_lowPt_Barrel",
"CHEn_lowPt_Barrel", ptBin_, 0., ptMax_);
800 mNHEn_lowPt_Barrel = ibooker.
book1D(
"NHEn_lowPt_Barrel",
"NHEn_lowPt_Barrel", ptBin_, 0., ptMax_);
801 mPhEn_lowPt_Barrel = ibooker.
book1D(
"PhEn_lowPt_Barrel",
"PhEn_lowPt_Barrel", ptBin_, 0., ptMax_);
802 mElEn_lowPt_Barrel = ibooker.
book1D(
"ElEn_lowPt_Barrel",
"ElEn_lowPt_Barrel", ptBin_, 0., 100);
803 mMuEn_lowPt_Barrel = ibooker.
book1D(
"MuEn_lowPt_Barrel",
"MuEn_lowPt_Barrel", ptBin_, 0., 100);
804 mCHEn_mediumPt_Barrel = ibooker.
book1D(
"CHEn_mediumPt_Barrel",
"CHEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
805 mNHEn_mediumPt_Barrel = ibooker.
book1D(
"NHEn_mediumPt_Barrel",
"NHEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
806 mPhEn_mediumPt_Barrel = ibooker.
book1D(
"PhEn_mediumPt_Barrel",
"PhEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
807 mElEn_mediumPt_Barrel = ibooker.
book1D(
"ElEn_mediumPt_Barrel",
"ElEn_mediumPt_Barrel", ptBin_, 0., 100);
808 mMuEn_mediumPt_Barrel = ibooker.
book1D(
"MuEn_mediumPt_Barrel",
"MuEn_mediumPt_Barrel", ptBin_, 0., 100);
809 mCHEn_highPt_Barrel = ibooker.
book1D(
"CHEn_highPt_Barrel",
"CHEn_highPt_Barrel", ptBin_, 0., 1.1 * ptMax_);
810 mNHEn_highPt_Barrel = ibooker.
book1D(
"NHEn_highPt_Barrel",
"NHEn_highPt_Barrel", ptBin_, 0., ptMax_);
811 mPhEn_highPt_Barrel = ibooker.
book1D(
"PhEn_highPt_Barrel",
"PhEn_highPt_Barrel", ptBin_, 0., ptMax_);
812 mElEn_highPt_Barrel = ibooker.
book1D(
"ElEn_highPt_Barrel",
"ElEn_highPt_Barrel", ptBin_, 0., 100);
813 mMuEn_highPt_Barrel = ibooker.
book1D(
"MuEn_highPt_Barrel",
"MuEn_highPt_Barrel", ptBin_, 0., 100);
815 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHEn_lowPt_Barrel", mCHEn_lowPt_Barrel));
816 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHEn_lowPt_Barrel", mNHEn_lowPt_Barrel));
817 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhEn_lowPt_Barrel", mPhEn_lowPt_Barrel));
818 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ElEn_lowPt_Barrel", mElEn_lowPt_Barrel));
819 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuEn_lowPt_Barrel", mMuEn_lowPt_Barrel));
821 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHEn_mediumPt_Barrel", mCHEn_mediumPt_Barrel));
823 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHEn_mediumPt_Barrel", mNHEn_mediumPt_Barrel));
825 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhEn_mediumPt_Barrel", mPhEn_mediumPt_Barrel));
827 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ElEn_mediumPt_Barrel", mElEn_mediumPt_Barrel));
829 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuEn_mediumPt_Barrel", mMuEn_mediumPt_Barrel));
831 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHEn_highPt_Barrel", mCHEn_highPt_Barrel));
833 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHEn_highPt_Barrel", mNHEn_highPt_Barrel));
835 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhEn_highPt_Barrel", mPhEn_highPt_Barrel));
837 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ElEn_highPt_Barrel", mElEn_highPt_Barrel));
839 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuEn_highPt_Barrel", mMuEn_highPt_Barrel));
842 mChMultiplicity_lowPt_Barrel =
843 ibooker.
book1D(
"ChMultiplicity_lowPt_Barrel",
"ChMultiplicity_lowPt_Barrel", 60, 0, 60);
844 mNeutMultiplicity_lowPt_Barrel =
845 ibooker.
book1D(
"NeutMultiplicity_lowPt_Barrel",
"NeutMultiplicity_lowPt_Barrel", 60, 0, 60);
846 mMuMultiplicity_lowPt_Barrel =
847 ibooker.
book1D(
"MuMultiplicity_lowPt_Barrel",
"MuMultiplicity_lowPt_Barrel", 10, 0, 10);
848 mChMultiplicity_mediumPt_Barrel =
849 ibooker.
book1D(
"ChMultiplicity_mediumPt_Barrel",
"ChMultiplicity_mediumPt_Barrel", 60, 0, 60);
850 mNeutMultiplicity_mediumPt_Barrel =
851 ibooker.
book1D(
"NeutMultiplicity_mediumPt_Barrel",
"NeutMultiplicity_mediumPt_Barrel", 60, 0, 60);
852 mMuMultiplicity_mediumPt_Barrel =
853 ibooker.
book1D(
"MuMultiplicity_mediumPt_Barrel",
"MuMultiplicity_mediumPt_Barrel", 10, 0, 10);
854 mChMultiplicity_highPt_Barrel =
855 ibooker.
book1D(
"ChMultiplicity_highPt_Barrel",
"ChMultiplicity_highPt_Barrel", 60, 0, 60);
856 mNeutMultiplicity_highPt_Barrel =
857 ibooker.
book1D(
"NeutMultiplicity_highPt_Barrel",
"NeutMultiplicity_highPt_Barrel", 60, 0, 60);
858 mMuMultiplicity_highPt_Barrel =
859 ibooker.
book1D(
"MuMultiplicity_highPt_Barrel",
"MuMultiplicity_highPt_Barrel", 10, 0, 10);
861 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChMultiplicity_lowPt_Barrel",
862 mChMultiplicity_lowPt_Barrel));
863 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_lowPt_Barrel",
864 mNeutMultiplicity_lowPt_Barrel));
865 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuMultiplicity_lowPt_Barrel",
866 mMuMultiplicity_lowPt_Barrel));
867 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChMultiplicity_mediumPt_Barrel",
868 mChMultiplicity_mediumPt_Barrel));
869 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_mediumPt_Barrel",
870 mNeutMultiplicity_mediumPt_Barrel));
871 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuMultiplicity_mediumPt_Barrel",
872 mMuMultiplicity_mediumPt_Barrel));
873 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChMultiplicity_highPt_Barrel",
874 mChMultiplicity_highPt_Barrel));
875 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_highPt_Barrel",
876 mNeutMultiplicity_highPt_Barrel));
877 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuMultiplicity_highPt_Barrel",
878 mMuMultiplicity_highPt_Barrel));
881 if (isMiniAODJet_ || isPFJet_ || isPUPPIJet_) {
882 if (!filljetsubstruc_) {
883 mMVAPUJIDDiscriminant_lowPt_Barrel =
884 ibooker.
book1D(
"MVAPUJIDDiscriminant_lowPt_Barrel",
"MVAPUJIDDiscriminant_lowPt_Barrel", 50, -1.00, 1.00);
885 mMVAPUJIDDiscriminant_lowPt_EndCap =
886 ibooker.
book1D(
"MVAPUJIDDiscriminant_lowPt_EndCap",
"MVAPUJIDDiscriminant_lowPt_EndCap", 50, -1.00, 1.00);
887 mMVAPUJIDDiscriminant_lowPt_Forward =
888 ibooker.
book1D(
"MVAPUJIDDiscriminant_lowPt_Forward",
"MVAPUJIDDiscriminant_lowPt_Forward", 50, -1.00, 1.00);
889 mMVAPUJIDDiscriminant_mediumPt_Barrel = ibooker.
book1D(
890 "MVAPUJIDDiscriminant_mediumPt_Barrel",
"MVAPUJIDDiscriminant_mediumPt_Barrel", 50, -1.00, 1.00);
891 mMVAPUJIDDiscriminant_mediumPt_EndCap = ibooker.
book1D(
892 "MVAPUJIDDiscriminant_mediumPt_EndCap",
"MVAPUJIDDiscriminant_mediumPt_EndCap", 50, -1.00, 1.00);
893 mMVAPUJIDDiscriminant_mediumPt_Forward = ibooker.
book1D(
894 "MVAPUJIDDiscriminant_mediumPt_Forward",
"MVAPUJIDDiscriminant_mediumPt_Forward", 50, -1.00, 1.00);
895 mMVAPUJIDDiscriminant_highPt_Barrel =
896 ibooker.
book1D(
"MVAPUJIDDiscriminant_highPt_Barrel",
"MVAPUJIDDiscriminant_highPt_Barrel", 50, -1.00, 1.00);
897 mMVAPUJIDDiscriminant_highPt_EndCap =
898 ibooker.
book1D(
"MVAPUJIDDiscriminant_highPt_EndCap",
"MVAPUJIDDiscriminant_highPt_EndCap", 50, -1.00, 1.00);
899 mMVAPUJIDDiscriminant_highPt_Forward =
900 ibooker.
book1D(
"MVAPUJIDDiscriminant_highPt_Forward",
"MVAPUJIDDiscriminant_highPt_Forward", 50, -1.00, 1.00);
902 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_Barrel",
903 mMVAPUJIDDiscriminant_lowPt_Barrel));
904 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_EndCap",
905 mMVAPUJIDDiscriminant_lowPt_EndCap));
906 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_Forward",
907 mMVAPUJIDDiscriminant_lowPt_Forward));
908 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_Barrel",
909 mMVAPUJIDDiscriminant_mediumPt_Barrel));
910 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_EndCap",
911 mMVAPUJIDDiscriminant_mediumPt_EndCap));
912 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_Forward",
913 mMVAPUJIDDiscriminant_mediumPt_Forward));
914 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_Barrel",
915 mMVAPUJIDDiscriminant_highPt_Barrel));
916 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_EndCap",
917 mMVAPUJIDDiscriminant_highPt_EndCap));
918 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_Forward",
919 mMVAPUJIDDiscriminant_highPt_Forward));
921 mCHFracVSpT_Barrel = ibooker.
bookProfile(
"CHFracVSpT_Barrel",
"CHFracVSpT_Barrel", ptBin_, ptMin_, ptMax_, 0., 1.2);
922 mNHFracVSpT_Barrel = ibooker.
bookProfile(
"NHFracVSpT_Barrel",
"NHFracVSpT_Barrel", ptBin_, ptMin_, ptMax_, 0., 1.2);
923 mPhFracVSpT_Barrel = ibooker.
bookProfile(
"PhFracVSpT_Barrel",
"PhFracVSpT_Barrel", ptBin_, ptMin_, ptMax_, 0., 1.2);
924 mCHFracVSpT_EndCap = ibooker.
bookProfile(
"CHFracVSpT_EndCap",
"CHFracVSpT_EndCap", ptBin_, ptMin_, ptMax_, 0., 1.2);
925 mNHFracVSpT_EndCap = ibooker.
bookProfile(
"NHFracVSpT_EndCap",
"NHFracVSpT_EndCap", ptBin_, ptMin_, ptMax_, 0., 1.2);
926 mPhFracVSpT_EndCap = ibooker.
bookProfile(
"PhFracVSpT_EndCap",
"PhFracVSpT_EndCap", ptBin_, ptMin_, ptMax_, 0., 1.2);
927 mHFHFracVSpT_Forward =
928 ibooker.
bookProfile(
"HFHFracVSpT_Forward",
"HFHFracVSpT_Forward", ptBin_, ptMin_, ptMax_, -0.2, 1.2);
929 mHFEFracVSpT_Forward =
930 ibooker.
bookProfile(
"HFEFracVSpT_Forward",
"HFEFracVSpT_Forward", ptBin_, ptMin_, ptMax_, -0.2, 1.2);
932 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracVSpT_Barrel", mCHFracVSpT_Barrel));
933 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracVSpT_Barrel", mNHFracVSpT_Barrel));
934 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracVSpT_Barrel", mPhFracVSpT_Barrel));
935 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracVSpT_EndCap", mCHFracVSpT_EndCap));
936 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracVSpT_EndCap", mNHFracVSpT_EndCap));
937 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracVSpT_EndCap", mPhFracVSpT_EndCap));
939 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFracVSpT_Forward", mHFHFracVSpT_Forward));
941 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEFracVSpT_Forward", mHFEFracVSpT_Forward));
946 mCHFrac_lowPt_EndCap = ibooker.
book1D(
"CHFrac_lowPt_EndCap",
"CHFrac_lowPt_EndCap", 120, -0.1, 1.1);
947 mNHFrac_lowPt_EndCap = ibooker.
book1D(
"NHFrac_lowPt_EndCap",
"NHFrac_lowPt_EndCap", 120, -0.1, 1.1);
948 mPhFrac_lowPt_EndCap = ibooker.
book1D(
"PhFrac_lowPt_EndCap",
"PhFrac_lowPt_EndCap", 120, -0.1, 1.1);
949 mCHFrac_mediumPt_EndCap = ibooker.
book1D(
"CHFrac_mediumPt_EndCap",
"CHFrac_mediumPt_EndCap", 120, -0.1, 1.1);
950 mNHFrac_mediumPt_EndCap = ibooker.
book1D(
"NHFrac_mediumPt_EndCap",
"NHFrac_mediumPt_EndCap", 120, -0.1, 1.1);
951 mPhFrac_mediumPt_EndCap = ibooker.
book1D(
"PhFrac_mediumPt_EndCap",
"PhFrac_mediumPt_EndCap", 120, -0.1, 1.1);
952 mCHFrac_highPt_EndCap = ibooker.
book1D(
"CHFrac_highPt_EndCap",
"CHFrac_highPt_EndCap", 120, -0.1, 1.1);
953 mNHFrac_highPt_EndCap = ibooker.
book1D(
"NHFrac_highPt_EndCap",
"NHFrac_highPt_EndCap", 120, -0.1, 1.1);
954 mPhFrac_highPt_EndCap = ibooker.
book1D(
"PhFrac_highPt_EndCap",
"PhFrac_highPt_EndCap", 120, -0.1, 1.1);
957 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFrac_lowPt_EndCap", mCHFrac_lowPt_EndCap));
959 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFrac_lowPt_EndCap", mNHFrac_lowPt_EndCap));
961 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFrac_lowPt_EndCap", mPhFrac_lowPt_EndCap));
963 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFrac_mediumPt_EndCap", mCHFrac_mediumPt_EndCap));
965 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFrac_mediumPt_EndCap", mNHFrac_mediumPt_EndCap));
967 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFrac_mediumPt_EndCap", mPhFrac_mediumPt_EndCap));
969 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFrac_highPt_EndCap", mCHFrac_highPt_EndCap));
971 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFrac_highPt_EndCap", mNHFrac_highPt_EndCap));
973 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFrac_highPt_EndCap", mPhFrac_highPt_EndCap));
976 mCHEn_lowPt_EndCap = ibooker.
book1D(
"CHEn_lowPt_EndCap",
"CHEn_lowPt_EndCap", ptBin_, 0., ptMax_);
977 mNHEn_lowPt_EndCap = ibooker.
book1D(
"NHEn_lowPt_EndCap",
"NHEn_lowPt_EndCap", ptBin_, 0., ptMax_);
978 mPhEn_lowPt_EndCap = ibooker.
book1D(
"PhEn_lowPt_EndCap",
"PhEn_lowPt_EndCap", ptBin_, 0., ptMax_);
979 mElEn_lowPt_EndCap = ibooker.
book1D(
"ElEn_lowPt_EndCap",
"ElEn_lowPt_EndCap", ptBin_, 0., 100);
980 mMuEn_lowPt_EndCap = ibooker.
book1D(
"MuEn_lowPt_EndCap",
"MuEn_lowPt_EndCap", ptBin_, 0., 100);
981 mCHEn_mediumPt_EndCap = ibooker.
book1D(
"CHEn_mediumPt_EndCap",
"CHEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
982 mNHEn_mediumPt_EndCap = ibooker.
book1D(
"NHEn_mediumPt_EndCap",
"NHEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
983 mPhEn_mediumPt_EndCap = ibooker.
book1D(
"PhEn_mediumPt_EndCap",
"PhEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
984 mElEn_mediumPt_EndCap = ibooker.
book1D(
"ElEn_mediumPt_EndCap",
"ElEn_mediumPt_EndCap", ptBin_, 0., 100);
985 mMuEn_mediumPt_EndCap = ibooker.
book1D(
"MuEn_mediumPt_EndCap",
"MuEn_mediumPt_EndCap", ptBin_, 0., 100);
986 mCHEn_highPt_EndCap = ibooker.
book1D(
"CHEn_highPt_EndCap",
"CHEn_highPt_EndCap", ptBin_, 0., 1.5 * ptMax_);
987 mNHEn_highPt_EndCap = ibooker.
book1D(
"NHEn_highPt_EndCap",
"NHEn_highPt_EndCap", ptBin_, 0., 1.5 * ptMax_);
988 mPhEn_highPt_EndCap = ibooker.
book1D(
"PhEn_highPt_EndCap",
"PhEn_highPt_EndCap", ptBin_, 0., 1.5 * ptMax_);
989 mElEn_highPt_EndCap = ibooker.
book1D(
"ElEn_highPt_EndCap",
"ElEn_highPt_EndCap", ptBin_, 0., 100);
990 mMuEn_highPt_EndCap = ibooker.
book1D(
"MuEn_highPt_EndCap",
"MuEn_highPt_EndCap", ptBin_, 0., 100);
992 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHEn_lowPt_EndCap", mCHEn_lowPt_EndCap));
993 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHEn_lowPt_EndCap", mNHEn_lowPt_EndCap));
994 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhEn_lowPt_EndCap", mPhEn_lowPt_EndCap));
995 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ElEn_lowPt_EndCap", mElEn_lowPt_EndCap));
996 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuEn_lowPt_EndCap", mMuEn_lowPt_EndCap));
998 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHEn_mediumPt_EndCap", mCHEn_mediumPt_EndCap));
1000 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHEn_mediumPt_EndCap", mNHEn_mediumPt_EndCap));
1002 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhEn_mediumPt_EndCap", mPhEn_mediumPt_EndCap));
1004 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ElEn_mediumPt_EndCap", mElEn_mediumPt_EndCap));
1006 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuEn_mediumPt_EndCap", mMuEn_mediumPt_EndCap));
1008 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHEn_highPt_EndCap", mCHEn_highPt_EndCap));
1010 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHEn_highPt_EndCap", mNHEn_highPt_EndCap));
1012 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhEn_highPt_EndCap", mPhEn_highPt_EndCap));
1014 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ElEn_highPt_EndCap", mElEn_highPt_EndCap));
1016 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuEn_highPt_EndCap", mMuEn_highPt_EndCap));
1097 mePhFracBarrel_BXm1Empty = ibooker.
book1D(
"PhFracBarrel_BXm1Empty",
"PHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
1098 mePhFracBarrel_BXm1Filled =
1099 ibooker.
book1D(
"PhFracBarrel_BXm1Filled",
"PHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
1100 meNHFracBarrel_BXm1Empty = ibooker.
book1D(
"NHFracBarrel_BXm1Empty",
"NHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
1101 meNHFracBarrel_BXm1Filled =
1102 ibooker.
book1D(
"NHFracBarrel_BXm1Filled",
"NHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
1103 meCHFracBarrel_BXm1Empty = ibooker.
book1D(
"CHFracBarrel_BXm1Empty",
"CHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
1104 meCHFracBarrel_BXm1Filled =
1105 ibooker.
book1D(
"CHFracBarrel_BXm1Filled",
"CHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
1106 mePtBarrel_BXm1Empty =
1107 ibooker.
book1D(
"PtBarrel_BXm1Empty",
"pT prev empty 1 bunch (Barrel)", ptBin_, ptMin_, ptMax_);
1108 mePtBarrel_BXm1Filled =
1109 ibooker.
book1D(
"PtBarrel_BXm1Filled",
"pT prev filled 1 bunch (Barrel)", ptBin_, ptMin_, ptMax_);
1110 mePhFracEndCapPlus_BXm1Empty =
1111 ibooker.
book1D(
"PhFracEndCapPlus_BXm1Empty",
"PHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
1112 mePhFracEndCapPlus_BXm1Filled =
1113 ibooker.
book1D(
"PhFracEndCapPlus_BXm1Filled",
"PHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
1114 meNHFracEndCapPlus_BXm1Empty =
1115 ibooker.
book1D(
"NHFracEndCapPlus_BXm1Empty",
"NHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
1116 meNHFracEndCapPlus_BXm1Filled =
1117 ibooker.
book1D(
"NHFracEndCapPlus_BXm1Filled",
"NHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
1118 meCHFracEndCapPlus_BXm1Empty =
1119 ibooker.
book1D(
"CHFracEndCapPlus_BXm1Empty",
"CHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
1120 meCHFracEndCapPlus_BXm1Filled =
1121 ibooker.
book1D(
"CHFracEndCapPlus_BXm1Filled",
"CHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
1122 mePtEndCapPlus_BXm1Empty =
1123 ibooker.
book1D(
"PtEndCapPlus_BXm1Empty",
"pT prev empty 1 bunch (EndCapPlus)", ptBin_, ptMin_, ptMax_);
1124 mePtEndCapPlus_BXm1Filled =
1125 ibooker.
book1D(
"PtEndCapPlus_BXm1Filled",
"pT prev filled 1 bunch (EndCapPlus)", ptBin_, ptMin_, ptMax_);
1126 meHFHFracPlus_BXm1Empty =
1127 ibooker.
book1D(
"HFHFracPlus_BXm1Empty",
"HFHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
1128 meHFHFracPlus_BXm1Filled =
1129 ibooker.
book1D(
"HFHFracPlus_BXm1Filled",
"HFHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
1130 meHFEMFracPlus_BXm1Empty =
1131 ibooker.
book1D(
"HFEMFracPlus_BXm1Empty",
"HFEMFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
1132 meHFEMFracPlus_BXm1Filled =
1133 ibooker.
book1D(
"HFEMFracPlus_BXm1Filled",
"HFEMFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
1134 mePtForwardPlus_BXm1Empty =
1135 ibooker.
book1D(
"PtForwardPlus_BXm1Empty",
"pT prev empty 1 bunch (ForwardPlus)", ptBin_, ptMin_, ptMax_);
1136 mePtForwardPlus_BXm1Filled =
1137 ibooker.
book1D(
"PtForwardPlus_BXm1Filled",
"pT prev filled 1 bunch (ForwardPlus)", ptBin_, ptMin_, ptMax_);
1138 mePhFracEndCapMinus_BXm1Empty =
1139 ibooker.
book1D(
"PhFracEndCapMinus_BXm1Empty",
"PHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
1140 mePhFracEndCapMinus_BXm1Filled =
1141 ibooker.
book1D(
"PhFracEndCapMinus_BXm1Filled",
"PHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
1142 meNHFracEndCapMinus_BXm1Empty =
1143 ibooker.
book1D(
"NHFracEndCapMinus_BXm1Empty",
"NHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
1144 meNHFracEndCapMinus_BXm1Filled =
1145 ibooker.
book1D(
"NHFracEndCapMinus_BXm1Filled",
"NHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
1146 meCHFracEndCapMinus_BXm1Empty =
1147 ibooker.
book1D(
"CHFracEndCapMinus_BXm1Empty",
"CHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
1148 meCHFracEndCapMinus_BXm1Filled =
1149 ibooker.
book1D(
"CHFracEndCapMinus_BXm1Filled",
"CHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
1150 mePtEndCapMinus_BXm1Empty =
1151 ibooker.
book1D(
"PtEndCapMinus_BXm1Empty",
"pT prev empty 1 bunch (EndCapMinus)", ptBin_, ptMin_, ptMax_);
1152 mePtEndCapMinus_BXm1Filled =
1153 ibooker.
book1D(
"PtEndCapMinus_BXm1Filled",
"pT prev filled 1 bunch (EndCapMinus)", ptBin_, ptMin_, ptMax_);
1154 meHFHFracMinus_BXm1Empty =
1155 ibooker.
book1D(
"HFHFracMinus_BXm1Empty",
"HFHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
1156 meHFHFracMinus_BXm1Filled =
1157 ibooker.
book1D(
"HFHFracMinus_BXm1Filled",
"HFHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
1158 meHFEMFracMinus_BXm1Empty =
1159 ibooker.
book1D(
"HFEMFracMinus_BXm1Empty",
"HFEMFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
1160 meHFEMFracMinus_BXm1Filled =
1161 ibooker.
book1D(
"HFEMFracMinus_BXm1Filled",
"HFEMFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
1162 mePtForwardMinus_BXm1Empty =
1163 ibooker.
book1D(
"PtForwardMinus_BXm1Empty",
"pT prev empty 1 bunch (ForwardMinus)", ptBin_, ptMin_, ptMax_);
1164 mePtForwardMinus_BXm1Filled =
1165 ibooker.
book1D(
"PtForwardMinus_BXm1Filled",
"pT prev filled 1 bunch (ForwardMinus)", ptBin_, ptMin_, ptMax_);
1166 meEta_BXm1Empty = ibooker.
book1D(
"Eta_BXm1Empty",
"eta prev empty 1 bunch", etaBin_, etaMin_, etaMax_);
1167 meEta_BXm1Filled = ibooker.
book1D(
"Eta_BXm1Filled",
"eta prev filled 1 bunch", etaBin_, etaMin_, etaMax_);
1170 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracBarrel_BXm1Empty", mePhFracBarrel_BXm1Empty));
1172 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracBarrel_BXm1Filled", mePhFracBarrel_BXm1Filled));
1174 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracBarrel_BXm1Empty", meNHFracBarrel_BXm1Empty));
1176 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracBarrel_BXm1Filled", meNHFracBarrel_BXm1Filled));
1178 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracBarrel_BXm1Empty", meCHFracBarrel_BXm1Empty));
1180 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracBarrel_BXm1Filled", meCHFracBarrel_BXm1Filled));
1182 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtBarrel_BXm1Empty", mePtBarrel_BXm1Empty));
1184 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtBarrel_BXm1Filled", mePtBarrel_BXm1Filled));
1185 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracEndCapPlus_BXm1Empty",
1186 mePhFracEndCapPlus_BXm1Empty));
1187 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracEndCapPlus_BXm1Filled",
1188 mePhFracEndCapPlus_BXm1Filled));
1189 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracEndCapPlus_BXm1Empty",
1190 meNHFracEndCapPlus_BXm1Empty));
1191 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracEndCapPlus_BXm1Filled",
1192 meNHFracEndCapPlus_BXm1Filled));
1193 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracEndCapPlus_BXm1Empty",
1194 meCHFracEndCapPlus_BXm1Empty));
1195 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracEndCapPlus_BXm1Filled",
1196 meCHFracEndCapPlus_BXm1Filled));
1198 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtEndCapPlus_BXm1Empty", mePtEndCapPlus_BXm1Empty));
1200 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtEndCapPlus_BXm1Filled", mePtEndCapPlus_BXm1Filled));
1202 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFracPlus_BXm1Empty", meHFHFracPlus_BXm1Empty));
1204 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFracPlus_BXm1Filled", meHFHFracPlus_BXm1Filled));
1206 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEMFracPlus_BXm1Empty", meHFEMFracPlus_BXm1Empty));
1208 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEMFracPlus_BXm1Filled", meHFEMFracPlus_BXm1Filled));
1210 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtForwardPlus_BXm1Empty", mePtForwardPlus_BXm1Empty));
1211 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtForwardPlus_BXm1Filled",
1212 mePtForwardPlus_BXm1Filled));
1213 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracEndCapMinus_BXm1Empty",
1214 mePhFracEndCapMinus_BXm1Empty));
1215 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFracEndCapMinus_BXm1Filled",
1216 mePhFracEndCapMinus_BXm1Filled));
1217 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracEndCapMinus_BXm1Empty",
1218 meNHFracEndCapMinus_BXm1Empty));
1219 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFracEndCapMinus_BXm1Filled",
1220 meNHFracEndCapMinus_BXm1Filled));
1221 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracEndCapMinus_BXm1Empty",
1222 meCHFracEndCapMinus_BXm1Empty));
1223 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFracEndCapMinus_BXm1Filled",
1224 meCHFracEndCapMinus_BXm1Filled));
1226 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtEndCapMinus_BXm1Empty", mePtEndCapMinus_BXm1Empty));
1227 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtEndCapMinus_BXm1Filled",
1228 mePtEndCapMinus_BXm1Filled));
1230 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFracMinus_BXm1Empty", meHFHFracMinus_BXm1Empty));
1232 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFracMinus_BXm1Filled", meHFHFracMinus_BXm1Filled));
1234 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEMFracMinus_BXm1Empty", meHFEMFracMinus_BXm1Empty));
1235 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEMFracMinus_BXm1Filled",
1236 meHFEMFracMinus_BXm1Filled));
1237 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtForwardMinus_BXm1Empty",
1238 mePtForwardMinus_BXm1Empty));
1239 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PtForwardMinus_BXm1Filled",
1240 mePtForwardMinus_BXm1Filled));
1241 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta_BXm1Empty", meEta_BXm1Empty));
1242 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta_BXm1Filled", meEta_BXm1Filled));
1245 mChMultiplicity_lowPt_EndCap =
1246 ibooker.
book1D(
"ChMultiplicity_lowPt_EndCap",
"ChMultiplicity_lowPt_EndCap", 60, 0, 60);
1247 mNeutMultiplicity_lowPt_EndCap =
1248 ibooker.
book1D(
"NeutMultiplicity_lowPt_EndCap",
"NeutMultiplicity_lowPt_EndCap", 60, 0, 60);
1249 mMuMultiplicity_lowPt_EndCap =
1250 ibooker.
book1D(
"MuMultiplicity_lowPt_EndCap",
"MuMultiplicity_lowPt_EndCap", 10, 0, 10);
1251 mChMultiplicity_mediumPt_EndCap =
1252 ibooker.
book1D(
"ChMultiplicity_mediumPt_EndCap",
"ChMultiplicity_mediumPt_EndCap", 60, 0, 60);
1253 mNeutMultiplicity_mediumPt_EndCap =
1254 ibooker.
book1D(
"NeutMultiplicity_mediumPt_EndCap",
"NeutMultiplicity_mediumPt_EndCap", 60, 0, 60);
1255 mMuMultiplicity_mediumPt_EndCap =
1256 ibooker.
book1D(
"MuMultiplicity_mediumPt_EndCap",
"MuMultiplicity_mediumPt_EndCap", 10, 0, 10);
1257 mChMultiplicity_highPt_EndCap =
1258 ibooker.
book1D(
"ChMultiplicity_highPt_EndCap",
"ChMultiplicity_highPt_EndCap", 60, 0, 60);
1259 mNeutMultiplicity_highPt_EndCap =
1260 ibooker.
book1D(
"NeutMultiplicity_highPt_EndCap",
"NeutMultiplicity_highPt_EndCap", 60, 0, 60);
1261 mMuMultiplicity_highPt_EndCap =
1262 ibooker.
book1D(
"MuMultiplicity_highPt_EndCap",
"MuMultiplicity_highPt_EndCap", 10, 0, 10);
1264 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChMultiplicity_lowPt_EndCap",
1265 mChMultiplicity_lowPt_EndCap));
1266 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_lowPt_EndCap",
1267 mNeutMultiplicity_lowPt_EndCap));
1268 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuMultiplicity_lowPt_EndCap",
1269 mMuMultiplicity_lowPt_EndCap));
1270 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChMultiplicity_mediumPt_EndCap",
1271 mChMultiplicity_mediumPt_EndCap));
1272 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_mediumPt_EndCap",
1273 mNeutMultiplicity_mediumPt_EndCap));
1274 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuMultiplicity_mediumPt_EndCap",
1275 mMuMultiplicity_mediumPt_EndCap));
1276 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChMultiplicity_highPt_EndCap",
1277 mChMultiplicity_highPt_EndCap));
1278 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_highPt_EndCap",
1279 mNeutMultiplicity_highPt_EndCap));
1280 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuMultiplicity_highPt_EndCap",
1281 mMuMultiplicity_highPt_EndCap));
1285 mHFEFrac_lowPt_Forward = ibooker.
book1D(
"HFEFrac_lowPt_Forward",
"HFEFrac_lowPt_Forward", 70, -0.2, 1.2);
1286 mHFHFrac_lowPt_Forward = ibooker.
book1D(
"HFHFrac_lowPt_Forward",
"HFHFrac_lowPt_Forward", 70, -0.2, 1.2);
1287 mHFEFrac_mediumPt_Forward = ibooker.
book1D(
"HFEFrac_mediumPt_Forward",
"HFEFrac_mediumPt_Forward", 70, -0.2, 1.2);
1288 mHFHFrac_mediumPt_Forward = ibooker.
book1D(
"HFHFrac_mediumPt_Forward",
"HFHFrac_mediumPt_Forward", 70, -0.2, 1.2);
1289 mHFEFrac_highPt_Forward = ibooker.
book1D(
"HFEFrac_highPt_Forward",
"HFEFrac_highPt_Forward", 70, -0.2, 1.2);
1290 mHFHFrac_highPt_Forward = ibooker.
book1D(
"HFHFrac_highPt_Forward",
"HFHFrac_highPt_Forward", 70, -0.2, 1.2);
1292 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFrac_lowPt_Forward", mHFHFrac_lowPt_Forward));
1294 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEFrac_lowPt_Forward", mHFEFrac_lowPt_Forward));
1296 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFrac_mediumPt_Forward", mHFHFrac_mediumPt_Forward));
1298 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEFrac_mediumPt_Forward", mHFEFrac_mediumPt_Forward));
1300 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFrac_highPt_Forward", mHFHFrac_highPt_Forward));
1302 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEFrac_highPt_Forward", mHFEFrac_highPt_Forward));
1305 mHFEEn_lowPt_Forward = ibooker.
book1D(
"HFEEn_lowPt_Forward",
"HFEEn_lowPt_Forward", ptBin_, 0., ptMax_);
1306 mHFHEn_lowPt_Forward = ibooker.
book1D(
"HFHEn_lowPt_Forward",
"HFHEn_lowPt_Forward", ptBin_, 0., 2.0 * ptMax_);
1307 mHFEEn_mediumPt_Forward =
1308 ibooker.
book1D(
"HFEEn_mediumPt_Forward",
"HFEEn_mediumPt_Forward", ptBin_, 0., 1.5 * ptMax_);
1309 mHFHEn_mediumPt_Forward =
1310 ibooker.
book1D(
"HFHEn_mediumPt_Forward",
"HFHEn_mediumPt_Forward", ptBin_, 0., 2.5 * ptMax_);
1311 mHFEEn_highPt_Forward = ibooker.
book1D(
"HFEEn_highPt_Forward",
"HFEEn_highPt_Forward", ptBin_, 0., 1.5 * ptMax_);
1312 mHFHEn_highPt_Forward = ibooker.
book1D(
"HFHEn_highPt_Forward",
"HFHEn_highPt_Forward", ptBin_, 0., 5.0 * ptMax_);
1314 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHEn_lowPt_Forward", mHFHEn_lowPt_Forward));
1316 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEEn_lowPt_Forward", mHFEEn_lowPt_Forward));
1318 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHEn_mediumPt_Forward", mHFHEn_mediumPt_Forward));
1320 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEEn_mediumPt_Forward", mHFEEn_mediumPt_Forward));
1322 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHEn_highPt_Forward", mHFHEn_highPt_Forward));
1324 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEEn_highPt_Forward", mHFEEn_highPt_Forward));
1326 mNeutMultiplicity_lowPt_Forward =
1327 ibooker.
book1D(
"NeutMultiplicity_lowPt_Forward",
"NeutMultiplicity_lowPt_Forward", 60, 0, 60);
1328 mNeutMultiplicity_mediumPt_Forward =
1329 ibooker.
book1D(
"NeutMultiplicity_mediumPt_Forward",
"NeutMultiplicity_mediumPt_Forward", 60, 0, 60);
1330 mNeutMultiplicity_highPt_Forward =
1331 ibooker.
book1D(
"NeutMultiplicity_highPt_Forward",
"NeutMultiplicity_highPt_Forward", 60, 0, 60);
1333 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_lowPt_Forward",
1334 mNeutMultiplicity_lowPt_Forward));
1335 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_mediumPt_Forward",
1336 mNeutMultiplicity_mediumPt_Forward));
1337 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutMultiplicity_highPt_Forward",
1338 mNeutMultiplicity_highPt_Forward));
1340 mChargedHadronEnergy = ibooker.
book1D(
"ChargedHadronEnergy",
"charged HAD energy", 50, 0, 100);
1341 mNeutralHadronEnergy = ibooker.
book1D(
"NeutralHadronEnergy",
"neutral HAD energy", 50, 0, 100);
1342 mChargedEmEnergy = ibooker.
book1D(
"ChargedEmEnergy",
"charged EM energy ", 50, 0, 100);
1343 mChargedMuEnergy = ibooker.
book1D(
"ChargedMuEnergy",
"charged Mu energy", 50, 0, 100);
1344 mNeutralEmEnergy = ibooker.
book1D(
"NeutralEmEnergy",
"neutral EM energy", 50, 0, 100);
1345 mChargedMultiplicity = ibooker.
book1D(
"ChargedMultiplicity",
"charged multiplicity ", 50, 0, 100);
1346 mNeutralMultiplicity = ibooker.
book1D(
"NeutralMultiplicity",
"neutral multiplicity", 50, 0, 100);
1347 mMuonMultiplicity = ibooker.
book1D(
"MuonMultiplicity",
"muon multiplicity", 50, 0, 100);
1349 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedHadronEnergy", mChargedHadronEnergy));
1351 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralHadronEnergy", mNeutralHadronEnergy));
1352 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedEmEnergy", mChargedEmEnergy));
1353 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedMuEnergy", mChargedMuEnergy));
1354 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralEmEnergy", mNeutralEmEnergy));
1356 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedMultiplicity", mChargedMultiplicity));
1358 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralMultiplicity", mNeutralMultiplicity));
1359 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuonMultiplicity", mMuonMultiplicity));
1363 mChargedHadronEnergy_profile = ibooker.
bookProfile(
1364 "ChargedHadronEnergy_profile",
"charged HAD energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1365 mNeutralHadronEnergy_profile = ibooker.
bookProfile(
1366 "NeutralHadronEnergy_profile",
"neutral HAD energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1367 mChargedEmEnergy_profile =
1368 ibooker.
bookProfile(
"ChargedEmEnergy_profile",
"charged EM energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1369 mChargedMuEnergy_profile =
1370 ibooker.
bookProfile(
"ChargedMuEnergy_profile",
"charged Mu energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1371 mNeutralEmEnergy_profile =
1372 ibooker.
bookProfile(
"NeutralEmEnergy_profile",
"neutral EM energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1373 mChargedMultiplicity_profile = ibooker.
bookProfile(
1374 "ChargedMultiplicity_profile",
"charged multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1375 mNeutralMultiplicity_profile = ibooker.
bookProfile(
1376 "NeutralMultiplicity_profile",
"neutral multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1377 mMuonMultiplicity_profile =
1378 ibooker.
bookProfile(
"MuonMultiplicity_profile",
"muon multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1383 mNeutralHadronEnergy_profile->setAxisTitle(
"nvtx", 1);
1384 mChargedEmEnergy_profile->setAxisTitle(
"nvtx", 1);
1385 mChargedMuEnergy_profile->setAxisTitle(
"nvtx", 1);
1386 mNeutralEmEnergy_profile->setAxisTitle(
"nvtx", 1);
1387 mChargedMultiplicity_profile->setAxisTitle(
"nvtx", 1);
1388 mNeutralMultiplicity_profile->setAxisTitle(
"nvtx", 1);
1389 mMuonMultiplicity_profile->setAxisTitle(
"nvtx", 1);
1391 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedHadronEnergy_profile",
1392 mChargedHadronEnergy_profile));
1393 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralHadronEnergy_profile",
1394 mNeutralHadronEnergy_profile));
1396 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedEmEnergy_profile", mChargedEmEnergy_profile));
1398 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedMuEnergy_profile", mChargedMuEnergy_profile));
1400 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralEmEnergy_profile", mNeutralEmEnergy_profile));
1401 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedMultiplicity_profile",
1402 mChargedMultiplicity_profile));
1403 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralMultiplicity_profile",
1404 mNeutralMultiplicity_profile));
1406 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuonMultiplicity_profile", mMuonMultiplicity_profile));
1408 mNeutralFraction = ibooker.
book1D(
"NeutralConstituentsFraction",
"Neutral Constituents Fraction", 100, 0, 1);
1410 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralConstituentsFraction", mNeutralFraction));
1414 if (isMiniAODJet_) {
1415 mMass_Barrel = ibooker.
book1D(
"JetMass_Barrel",
"JetMass_Barrel", 50, 0, 250);
1416 mMass_EndCap = ibooker.
book1D(
"JetMass_EndCap",
"JetMass_EndCap", 50, 0, 250);
1417 mMass_Forward = ibooker.
book1D(
"JetMass_Forward",
"JetMass_Forward", 50, 0, 250);
1419 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_Barrel", mMass_Barrel));
1420 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_EndCap", mMass_EndCap));
1421 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetMass_Forward", mMass_Forward));
1422 if (!filljetsubstruc_) {
1424 mPt_CaloJet = ibooker.
book1D(
"Pt_CaloJet",
"Pt_CaloJet", ptBin_, 10, ptMax_);
1425 mEMF_CaloJet = ibooker.
book1D(
"EMF_CaloJet",
"EMF_CaloJet", 52, -0.02, 1.02);
1426 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_CaloJet", mPt_CaloJet));
1427 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EMF_CaloJet", mEMF_CaloJet));
1429 if (filljetsubstruc_) {
1431 mSoftDropMass = ibooker.
book1D(
"SoftDropMass",
"SoftDropMass", 50, 0, 250);
1432 mPrunedMass = ibooker.
book1D(
"PrunedMass",
"PrunedMass", 50, 0, 250);
1433 mTrimmedMass = ibooker.
book1D(
"TrimmedMass",
"TrimmedMass", 50, 0, 250);
1434 mFilteredMass = ibooker.
book1D(
"FilteredMass",
"FilteredMass", 50, 0, 250);
1435 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SoftDropMass", mSoftDropMass));
1436 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PrunedMass", mPrunedMass));
1437 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"TrimmedMass", mTrimmedMass));
1438 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"FilteredMass", mFilteredMass));
1440 mtau2_over_tau1 = ibooker.
book1D(
"tau2_over_tau1",
"tau2_over_tau1", 50, 0, 1);
1441 mtau3_over_tau2 = ibooker.
book1D(
"tau3_over_tau2",
"tau3_over_tau2", 50, 0, 1);
1442 mCATopTag_topMass = ibooker.
book1D(
"CATopTag_topMass",
"CATopTag_topMass", 50, 50, 250);
1443 mCATopTag_minMass = ibooker.
book1D(
"CATopTag_minMass",
"CATopTag_minMass", 50, 0, 250);
1444 mCATopTag_nSubJets = ibooker.
book1D(
"nSubJets_CATopTag",
"nSubJets_CATopTag", 10, 0, 10);
1445 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"tau2_over_tau1", mtau2_over_tau1));
1446 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"tau3_over_tau2", mtau3_over_tau2));
1447 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CATopTag_topMass", mCATopTag_topMass));
1448 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CATopTag_minMass", mCATopTag_minMass));
1450 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"nSubJets_CATopTag", mCATopTag_nSubJets));
1452 mnSubJetsCMSTopTag = ibooker.
book1D(
"nSubJets_CMSTopTag",
"nSubJets_CMSTopTag", 10, 0, 10);
1453 mSubJet1_CMSTopTag_pt = ibooker.
book1D(
"SubJet1_CMSTopTag_pt",
"SubJet1_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1454 mSubJet1_CMSTopTag_eta =
1455 ibooker.
book1D(
"SubJet1_CMSTopTag_eta",
"SubJet1_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1456 mSubJet1_CMSTopTag_phi =
1457 ibooker.
book1D(
"SubJet1_CMSTopTag_phi",
"SubJet1_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1458 mSubJet1_CMSTopTag_mass = ibooker.
book1D(
"SubJet1_CMSTopTag_mass",
"SubJet1_CMSTopTag_mass", 50, 0, 250);
1459 mSubJet2_CMSTopTag_pt = ibooker.
book1D(
"SubJet2_CMSTopTag_pt",
"SubJet2_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1460 mSubJet2_CMSTopTag_eta =
1461 ibooker.
book1D(
"SubJet2_CMSTopTag_eta",
"SubJet2_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1462 mSubJet2_CMSTopTag_phi =
1463 ibooker.
book1D(
"SubJet2_CMSTopTag_phi",
"SubJet2_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1464 mSubJet2_CMSTopTag_mass = ibooker.
book1D(
"SubJet2_CMSTopTag_mass",
"SubJet2_CMSTopTag_mass", 50, 0, 250);
1465 mSubJet3_CMSTopTag_pt = ibooker.
book1D(
"SubJet3_CMSTopTag_pt",
"SubJet3_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1466 mSubJet3_CMSTopTag_eta =
1467 ibooker.
book1D(
"SubJet3_CMSTopTag_eta",
"SubJet3_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1468 mSubJet3_CMSTopTag_phi =
1469 ibooker.
book1D(
"SubJet3_CMSTopTag_phi",
"SubJet3_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1470 mSubJet3_CMSTopTag_mass = ibooker.
book1D(
"SubJet3_CMSTopTag_mass",
"SubJet3_CMSTopTag_mass", 50, 0, 250);
1471 mSubJet4_CMSTopTag_pt = ibooker.
book1D(
"SubJet4_CMSTopTag_pt",
"SubJet4_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1472 mSubJet4_CMSTopTag_eta =
1473 ibooker.
book1D(
"SubJet4_CMSTopTag_eta",
"SubJet4_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1474 mSubJet4_CMSTopTag_phi =
1475 ibooker.
book1D(
"SubJet4_CMSTopTag_phi",
"SubJet4_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1476 mSubJet4_CMSTopTag_mass = ibooker.
book1D(
"SubJet4_CMSTopTag_mass",
"SubJet4_CMSTopTag_mass", 50, 0, 250);
1479 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"nSubJets_CMSTopTag", mnSubJetsCMSTopTag));
1481 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_CMSTopTag_pt", mSubJet1_CMSTopTag_pt));
1483 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_CMSTopTag_eta", mSubJet1_CMSTopTag_eta));
1485 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_CMSTopTag_phi", mSubJet1_CMSTopTag_phi));
1487 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_CMSTopTag_mass", mSubJet1_CMSTopTag_mass));
1489 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_CMSTopTag_pt", mSubJet2_CMSTopTag_pt));
1491 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_CMSTopTag_eta", mSubJet2_CMSTopTag_eta));
1493 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_CMSTopTag_phi", mSubJet2_CMSTopTag_phi));
1495 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_CMSTopTag_mass", mSubJet2_CMSTopTag_mass));
1497 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet3_CMSTopTag_pt", mSubJet3_CMSTopTag_pt));
1499 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet3_CMSTopTag_eta", mSubJet3_CMSTopTag_eta));
1501 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet3_CMSTopTag_phi", mSubJet3_CMSTopTag_phi));
1503 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet3_CMSTopTag_mass", mSubJet3_CMSTopTag_mass));
1505 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet4_CMSTopTag_pt", mSubJet4_CMSTopTag_pt));
1507 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet4_CMSTopTag_eta", mSubJet4_CMSTopTag_eta));
1509 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet4_CMSTopTag_phi", mSubJet4_CMSTopTag_phi));
1511 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet4_CMSTopTag_mass", mSubJet4_CMSTopTag_mass));
1513 mnSubJetsSoftDrop = ibooker.
book1D(
"nSubJets_SoftDrop",
"nSubJets_SoftDrop", 10, 0, 10);
1514 mSubJet1_SoftDrop_pt = ibooker.
book1D(
"SubJet1_SoftDrop_pt",
"SubJet1_SoftDrop_pt", ptBin_, ptMin_, ptMax_);
1515 mSubJet1_SoftDrop_eta = ibooker.
book1D(
"SubJet1_SoftDrop_eta",
"SubJet1_SoftDrop_eta", etaBin_, etaMin_, etaMax_);
1516 mSubJet1_SoftDrop_phi = ibooker.
book1D(
"SubJet1_SoftDrop_phi",
"SubJet1_SoftDrop_phi", phiBin_, phiMin_, phiMax_);
1517 mSubJet1_SoftDrop_mass = ibooker.
book1D(
"SubJet1_SoftDrop_mass",
"SubJet1_SoftDrop_mass", 50, 0, 250);
1518 mSubJet2_SoftDrop_pt = ibooker.
book1D(
"SubJet2_SoftDrop_pt",
"SubJet2_SoftDrop_pt", ptBin_, ptMin_, ptMax_);
1519 mSubJet2_SoftDrop_eta = ibooker.
book1D(
"SubJet2_SoftDrop_eta",
"SubJet2_SoftDrop_eta", etaBin_, etaMin_, etaMax_);
1520 mSubJet2_SoftDrop_phi = ibooker.
book1D(
"SubJet2_SoftDrop_phi",
"SubJet2_SoftDrop_phi", phiBin_, phiMin_, phiMax_);
1521 mSubJet2_SoftDrop_mass = ibooker.
book1D(
"SubJet2_SoftDrop_mass",
"SubJet2_SoftDrop_mass", 50, 0, 250);
1524 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"nSubJets_SoftDrop", mnSubJetsSoftDrop));
1526 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_SoftDrop_pt", mSubJet1_SoftDrop_pt));
1528 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_SoftDrop_eta", mSubJet1_SoftDrop_eta));
1530 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_SoftDrop_phi", mSubJet1_SoftDrop_phi));
1532 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_SoftDrop_mass", mSubJet1_SoftDrop_mass));
1534 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_SoftDrop_pt", mSubJet2_SoftDrop_pt));
1536 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_SoftDrop_eta", mSubJet2_SoftDrop_eta));
1538 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_SoftDrop_phi", mSubJet2_SoftDrop_phi));
1540 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_SoftDrop_mass", mSubJet2_SoftDrop_mass));
1542 mSoftDropMass_boosted = ibooker.
book1D(
"SoftDropMass_boosted",
"SoftDropMass_boosted", 50, 0, 250);
1543 mPrunedMass_boosted = ibooker.
book1D(
"PrunedMass_boosted",
"PrunedMass_boosted", 50, 0, 250);
1544 mTrimmedMass_boosted = ibooker.
book1D(
"TrimmedMass_boosted",
"TrimmedMass_boosted", 50, 0, 250);
1545 mFilteredMass_boosted = ibooker.
book1D(
"FilteredMass_boosted",
"FilteredMass_boosted", 50, 0, 250);
1547 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SoftDropMass_boosted", mSoftDropMass_boosted));
1549 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PrunedMass_boosted", mPrunedMass_boosted));
1551 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"TrimmedMass_boosted", mTrimmedMass_boosted));
1553 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"FilteredMass_boosted", mFilteredMass_boosted));
1555 mtau2_over_tau1_boosted = ibooker.
book1D(
"tau2_over_tau1_boosted",
"tau2_over_tau1_boosted", 50, 0, 1);
1556 mtau3_over_tau2_boosted = ibooker.
book1D(
"tau3_over_tau2_boosted",
"tau3_over_tau2_boosted", 50, 0, 1);
1557 mCATopTag_topMass_boosted = ibooker.
book1D(
"CATopTag_topMass_boosted",
"CATopTag_topMass_boosted", 50, 50, 250);
1558 mCATopTag_minMass_boosted = ibooker.
book1D(
"CATopTag_minMass_boosted",
"CATopTag_minMass_boosted", 50, 0, 250);
1559 mCATopTag_nSubJets_boosted = ibooker.
book1D(
"nSubJets_CATopTag_boosted",
"nSubJets_CATopTag_boosted", 10, 0, 10);
1561 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"tau2_over_tau1_boosted", mtau2_over_tau1_boosted));
1563 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"tau3_over_tau2_boosted", mtau3_over_tau2_boosted));
1564 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CATopTag_topMass_boosted",
1565 mCATopTag_topMass_boosted));
1566 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CATopTag_minMass_boosted",
1567 mCATopTag_minMass_boosted));
1568 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"nSubJets_CATopTag_boosted",
1569 mCATopTag_nSubJets_boosted));
1571 mnSubJetsCMSTopTag_boosted =
1572 ibooker.
book1D(
"nSubJets_CMSTopTag_boosted",
"nSubJets_CMSTopTag_boosted", 10, 0, 10);
1573 mSubJet1_CMSTopTag_pt_boosted =
1574 ibooker.
book1D(
"SubJet1_CMSTopTag_pt_boosted",
"SubJet1_CMSTopTag_pt_boosted", ptBin_, ptMin_, 2 * ptMax_);
1575 mSubJet1_CMSTopTag_eta_boosted =
1576 ibooker.
book1D(
"SubJet1_CMSTopTag_eta_boosted",
"SubJet1_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1577 mSubJet1_CMSTopTag_phi_boosted =
1578 ibooker.
book1D(
"SubJet1_CMSTopTag_phi_boosted",
"SubJet1_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1579 mSubJet1_CMSTopTag_mass_boosted =
1580 ibooker.
book1D(
"SubJet1_CMSTopTag_mass_boosted",
"SubJet1_CMSTopTag_mass_boosted", 50, 0, 250);
1581 mSubJet2_CMSTopTag_pt_boosted =
1582 ibooker.
book1D(
"SubJet2_CMSTopTag_pt_boosted",
"SubJet2_CMSTopTag_pt_boosted", ptBin_, ptMin_, 2 * ptMax_);
1583 mSubJet2_CMSTopTag_eta_boosted =
1584 ibooker.
book1D(
"SubJet2_CMSTopTag_eta_boosted",
"SubJet2_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1585 mSubJet2_CMSTopTag_phi_boosted =
1586 ibooker.
book1D(
"SubJet2_CMSTopTag_phi_boosted",
"SubJet2_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1587 mSubJet2_CMSTopTag_mass_boosted =
1588 ibooker.
book1D(
"SubJet2_CMSTopTag_mass_boosted",
"SubJet2_CMSTopTag_mass_boosted", 50, 0, 250);
1589 mSubJet3_CMSTopTag_pt_boosted =
1590 ibooker.
book1D(
"SubJet3_CMSTopTag_pt_boosted",
"SubJet3_CMSTopTag_pt_boosted", ptBin_, ptMin_, ptMax_);
1591 mSubJet3_CMSTopTag_eta_boosted =
1592 ibooker.
book1D(
"SubJet3_CMSTopTag_eta_boosted",
"SubJet3_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1593 mSubJet3_CMSTopTag_phi_boosted =
1594 ibooker.
book1D(
"SubJet3_CMSTopTag_phi_boosted",
"SubJet3_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1595 mSubJet3_CMSTopTag_mass_boosted =
1596 ibooker.
book1D(
"SubJet3_CMSTopTag_mass_boosted",
"SubJet3_CMSTopTag_mass_boosted", 50, 0, 250);
1597 mSubJet4_CMSTopTag_pt_boosted =
1598 ibooker.
book1D(
"SubJet4_CMSTopTag_pt_boosted",
"SubJet4_CMSTopTag_pt_boosted", ptBin_, ptMin_, ptMax_);
1599 mSubJet4_CMSTopTag_eta_boosted =
1600 ibooker.
book1D(
"SubJet4_CMSTopTag_eta_boosted",
"SubJet4_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1601 mSubJet4_CMSTopTag_phi_boosted =
1602 ibooker.
book1D(
"SubJet4_CMSTopTag_phi_boosted",
"SubJet4_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1603 mSubJet4_CMSTopTag_mass_boosted =
1604 ibooker.
book1D(
"SubJet4_CMSTopTag_mass_boosted",
"SubJet4_CMSTopTag_mass_boosted", 50, 0, 250);
1606 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"nSubJets_CMSTopTag_boosted",
1607 mnSubJetsCMSTopTag_boosted));
1608 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_CMSTopTag_pt_boosted",
1609 mSubJet1_CMSTopTag_pt_boosted));
1610 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_CMSTopTag_eta_boosted",
1611 mSubJet1_CMSTopTag_eta_boosted));
1612 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_CMSTopTag_phi_boosted",
1613 mSubJet1_CMSTopTag_phi_boosted));
1614 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_CMSTopTag_mass_boosted",
1615 mSubJet1_CMSTopTag_mass_boosted));
1616 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_CMSTopTag_pt_boosted",
1617 mSubJet2_CMSTopTag_pt_boosted));
1618 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_CMSTopTag_eta_boosted",
1619 mSubJet2_CMSTopTag_eta_boosted));
1620 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_CMSTopTag_phi_boosted",
1621 mSubJet2_CMSTopTag_phi_boosted));
1622 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_CMSTopTag_mass_boosted",
1623 mSubJet2_CMSTopTag_mass_boosted));
1624 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet3_CMSTopTag_pt_boosted",
1625 mSubJet3_CMSTopTag_pt_boosted));
1626 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet3_CMSTopTag_eta_boosted",
1627 mSubJet3_CMSTopTag_eta_boosted));
1628 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet3_CMSTopTag_phi_boosted",
1629 mSubJet3_CMSTopTag_phi_boosted));
1630 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet3_CMSTopTag_mass_boosted",
1631 mSubJet3_CMSTopTag_mass_boosted));
1632 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet4_CMSTopTag_pt_boosted",
1633 mSubJet4_CMSTopTag_pt_boosted));
1634 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet4_CMSTopTag_eta_boosted",
1635 mSubJet4_CMSTopTag_eta_boosted));
1636 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet4_CMSTopTag_phi_boosted",
1637 mSubJet4_CMSTopTag_phi_boosted));
1638 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet4_CMSTopTag_mass_boosted",
1639 mSubJet4_CMSTopTag_mass_boosted));
1641 mnSubJetsSoftDrop_boosted = ibooker.
book1D(
"nSubJets_SoftDrop_boosted",
"nSubJets_SoftDrop_boosted", 10, 0, 10);
1642 mSubJet1_SoftDrop_pt_boosted =
1643 ibooker.
book1D(
"SubJet1_SoftDrop_pt_boosted",
"SubJet1_SoftDrop_pt_boosted", ptBin_, ptMin_, 2 * ptMax_);
1644 mSubJet1_SoftDrop_eta_boosted =
1645 ibooker.
book1D(
"SubJet1_SoftDrop_eta_boosted",
"SubJet1_SoftDrop_eta_boosted", etaBin_, etaMin_, etaMax_);
1646 mSubJet1_SoftDrop_phi_boosted =
1647 ibooker.
book1D(
"SubJet1_SoftDrop_phi_boosted",
"SubJet1_SoftDrop_phi_boosted", phiBin_, phiMin_, phiMax_);
1648 mSubJet1_SoftDrop_mass_boosted =
1649 ibooker.
book1D(
"SubJet1_SoftDrop_mass_boosted",
"SubJet1_SoftDrop_mass_boosted", 50, 0, 250);
1650 mSubJet2_SoftDrop_pt_boosted =
1651 ibooker.
book1D(
"SubJet2_SoftDrop_pt_boosted",
"SubJet2_SoftDrop_pt_boosted", ptBin_, ptMin_, 2 * ptMax_);
1652 mSubJet2_SoftDrop_eta_boosted =
1653 ibooker.
book1D(
"SubJet2_SoftDrop_eta_boosted",
"SubJet2_SoftDrop_eta_boosted", etaBin_, etaMin_, etaMax_);
1654 mSubJet2_SoftDrop_phi_boosted =
1655 ibooker.
book1D(
"SubJet2_SoftDrop_phi_boosted",
"SubJet2_SoftDrop_phi_boosted", phiBin_, phiMin_, phiMax_);
1656 mSubJet2_SoftDrop_mass_boosted =
1657 ibooker.
book1D(
"SubJet2_SoftDrop_mass_boosted",
"SubJet2_SoftDrop_mass_boosted", 50, 0, 250);
1659 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"nSubJets_SoftDrop_boosted",
1660 mnSubJetsSoftDrop_boosted));
1661 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_SoftDrop_pt_boosted",
1662 mSubJet1_SoftDrop_pt_boosted));
1663 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_SoftDrop_eta_boosted",
1664 mSubJet1_SoftDrop_eta_boosted));
1665 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_SoftDrop_phi_boosted",
1666 mSubJet1_SoftDrop_phi_boosted));
1667 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet1_SoftDrop_mass_boosted",
1668 mSubJet1_SoftDrop_mass_boosted));
1669 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_SoftDrop_pt_boosted",
1670 mSubJet2_SoftDrop_pt_boosted));
1671 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_SoftDrop_eta_boosted",
1672 mSubJet2_SoftDrop_eta_boosted));
1673 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_SoftDrop_phi_boosted",
1674 mSubJet2_SoftDrop_phi_boosted));
1675 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SubJet2_SoftDrop_mass_boosted",
1676 mSubJet2_SoftDrop_mass_boosted));
1680 if (jetCleaningFlag_) {
1682 folderNames_.push_back(
"DiJet");
1684 folderNames_.push_back(
"ZJets");
1687 for (std::vector<std::string>::const_iterator ic = folderNames_.begin(); ic != folderNames_.end(); ic++) {
1688 bookMESetSelection(
DirName +
"/" + *ic, ibooker);
1693 cleanupME = ibooker.
book1D(
"cleanup",
"cleanup", 10, 0., 10.);
1695 cleanupME->setBinLabel(2,
"DCS::Pixel");
1696 cleanupME->setBinLabel(3,
"DCS::SiStrip");
1697 cleanupME->setBinLabel(4,
"DCS::ECAL");
1698 cleanupME->setBinLabel(5,
"DCS::ES");
1699 cleanupME->setBinLabel(6,
"DCS::HBHE");
1700 cleanupME->setBinLabel(7,
"DCS::HF");
1701 cleanupME->setBinLabel(8,
"DCS::HO");
1702 cleanupME->setBinLabel(9,
"DCS::Muon");
1703 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
"JetMET/cleanup", cleanupME));
1705 verticesME = ibooker.
book1D(
"vertices",
"vertices", 100, 0, 100);
1706 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
"JetMET/vertices", verticesME));
1712 mPt = ibooker.
book1D(
"Pt",
"pt", ptBin_, ptMin_, ptMax_);
1713 mEta = ibooker.
book1D(
"Eta",
"eta", etaBin_, etaMin_, etaMax_);
1714 mPhi = ibooker.
book1D(
"Phi",
"phi", phiBin_, phiMin_, phiMax_);
1715 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt", mPt));
1716 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta", mEta));
1717 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi", mPhi));
1719 mConstituents = ibooker.
book1D(
"Constituents",
"# of constituents", 50, 0, 100);
1720 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Constituents", mConstituents));
1722 mJetEnergyCorr = ibooker.
book1D(
"JetEnergyCorr",
"jet energy correction factor", 50, 0.0, 3.0);
1724 "JetEnergyCorrVSEta",
"jet energy correction factor VS eta", etaBin_, etaMin_, etaMax_, 0.0, 3.0);
1725 mJetEnergyCorrVSPt =
1726 ibooker.
bookProfile(
"JetEnergyCorrVSPt",
"jet energy correction factor VS pt", ptBin_, ptMin_, ptMax_, 0.0, 3.0);
1728 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetEnergyCorr", mJetEnergyCorr));
1729 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetEnergyCorrVSEta", mJetEnergyCorrVSEta));
1730 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JetEnergyCorrVSPt", mJetEnergyCorrVSPt));
1734 if (fill_CHS_histos && isPFJet_) {
1735 mAxis2_lowPt_Barrel = ibooker.
book1D(
"qg_Axis2_lowPt_Barrel",
"qg Axis2 #sigma_{2} lowPt Barrel", 50, 0., 0.20);
1737 ibooker.
book1D(
"qg_pTD_lowPt_Barrel",
"qg fragmentation function p_{T}^{D} lowPt Barrel", 50, 0.15, 1.05);
1738 mMultiplicityQG_lowPt_Barrel =
1739 ibooker.
book1D(
"qg_multiplicity_lowPt_Barrel",
"qg multiplicity lowPt Barrel", 50, 0, 50);
1740 mqgLikelihood_lowPt_Barrel =
1741 ibooker.
book1D(
"qg_Likelihood_lowPt_Barrel",
"qg likelihood lowPt Barrel", 50, -1.1, 1.1);
1742 mAxis2_lowPt_EndCap = ibooker.
book1D(
"qg_Axis2_lowPt_EndCap",
"qg Axis2 #sigma_{2} lowPt EndCap", 50, 0., 0.20);
1744 ibooker.
book1D(
"qg_pTD_lowPt_EndCap",
"qg fragmentation function p_{T}^{D} lowPt EndCap", 50, 0.15, 1.05);
1745 mMultiplicityQG_lowPt_EndCap =
1746 ibooker.
book1D(
"qg_multiplicity_lowPt_EndCap",
"qg multiplicity lowPt EndCap", 50, 0, 100);
1747 mqgLikelihood_lowPt_EndCap =
1748 ibooker.
book1D(
"qg_Likelihood_lowPt_EndCap",
"qg likelihood lowPt EndCap", 50, -1.1, 1.1);
1749 mAxis2_lowPt_Forward = ibooker.
book1D(
"qg_Axis2_lowPt_Forward",
"qg Axis2 #sigma_{2} lowPt Forward", 50, 0., 0.20);
1750 mpTD_lowPt_Forward =
1751 ibooker.
book1D(
"qg_pTD_lowPt_Forward",
"qg fragmentation function p_{T}^{D} lowPt Forward", 50, 0.15, 1.05);
1752 mMultiplicityQG_lowPt_Forward =
1753 ibooker.
book1D(
"qg_multiplicity_lowPt_Forward",
"qg multiplicity lowPt Forward", 50, 0, 100);
1754 mqgLikelihood_lowPt_Forward =
1755 ibooker.
book1D(
"qg_Likelihood_lowPt_Forward",
"qg likelihood lowPt Forward", 50, -1.1, 1.1);
1758 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_lowPt_Barrel", mAxis2_lowPt_Barrel));
1760 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_lowPt_Barrel", mpTD_lowPt_Barrel));
1761 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_lowPt_Barrel",
1762 mMultiplicityQG_lowPt_Barrel));
1763 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_lowPt_Barrel",
1764 mqgLikelihood_lowPt_Barrel));
1766 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_lowPt_EndCap", mAxis2_lowPt_EndCap));
1768 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_lowPt_EndCap", mpTD_lowPt_EndCap));
1769 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_lowPt_EndCap",
1770 mMultiplicityQG_lowPt_EndCap));
1771 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_lowPt_EndCap",
1772 mqgLikelihood_lowPt_EndCap));
1774 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_lowPt_Forward", mAxis2_lowPt_Forward));
1776 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_lowPt_Forward", mpTD_lowPt_Forward));
1777 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_lowPt_Forward",
1778 mMultiplicityQG_lowPt_Forward));
1779 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_lowPt_Forward",
1780 mqgLikelihood_lowPt_Forward));
1782 mAxis2_mediumPt_Barrel =
1783 ibooker.
book1D(
"qg_Axis2_mediumPt_Barrel",
"qg Axis2 #sigma_{2} mediumPt Barrel", 50, 0., 0.20);
1784 mpTD_mediumPt_Barrel =
1785 ibooker.
book1D(
"qg_pTD_mediumPt_Barrel",
"qg fragmentation function p_{T}^{D} mediumPt Barrel", 50, 0.15, 1.05);
1786 mMultiplicityQG_mediumPt_Barrel =
1787 ibooker.
book1D(
"qg_multiplicity_mediumPt_Barrel",
"qg multiplicity mediumPt Barrel", 50, 0, 100);
1788 mqgLikelihood_mediumPt_Barrel =
1789 ibooker.
book1D(
"qg_Likelihood_mediumPt_Barrel",
"qg likelihood mediumPt Barrel", 50, -1.1, 1.1);
1790 mAxis2_mediumPt_EndCap =
1791 ibooker.
book1D(
"qg_Axis2_mediumPt_EndCap",
"qg Axis2 #sigma_{2} mediumPt EndCap", 50, 0., 0.20);
1792 mpTD_mediumPt_EndCap =
1793 ibooker.
book1D(
"qg_pTD_mediumPt_EndCap",
"qg fragmentation function p_{T}^{D} mediumPt EndCap", 50, 0.15, 1.05);
1794 mMultiplicityQG_mediumPt_EndCap =
1795 ibooker.
book1D(
"qg_multiplicity_mediumPt_EndCap",
"qg multiplicity mediumPt EndCap", 50, 0, 100);
1796 mqgLikelihood_mediumPt_EndCap =
1797 ibooker.
book1D(
"qg_Likelihood_mediumPt_EndCap",
"qg likelihood mediumPt EndCap", 50, -1.1, 1.1);
1798 mAxis2_mediumPt_Forward =
1799 ibooker.
book1D(
"qg_Axis2_mediumPt_Forward",
"qg Axis2 #sigma_{2} mediumPt Forward", 50, 0., 0.20);
1800 mpTD_mediumPt_Forward = ibooker.
book1D(
1801 "qg_pTD_mediumPt_Forward",
"qg fragmentation function p_{T}^{D} mediumPt Forward", 50, 0.15, 1.05);
1802 mMultiplicityQG_mediumPt_Forward =
1803 ibooker.
book1D(
"qg_multiplicity_mediumPt_Forward",
"qg multiplicity mediumPt Forward", 50, 0, 100);
1804 mqgLikelihood_mediumPt_Forward =
1805 ibooker.
book1D(
"qg_Likelihood_mediumPt_Forward",
"qg likelihood mediumPt Forward", 50, -1.1, 1.1);
1808 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_mediumPt_Barrel", mAxis2_mediumPt_Barrel));
1810 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_mediumPt_Barrel", mpTD_mediumPt_Barrel));
1811 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_mediumPt_Barrel",
1812 mMultiplicityQG_mediumPt_Barrel));
1813 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_mediumPt_Barrel",
1814 mqgLikelihood_mediumPt_Barrel));
1816 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_mediumPt_EndCap", mAxis2_mediumPt_EndCap));
1818 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_mediumPt_EndCap", mpTD_mediumPt_EndCap));
1819 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_mediumPt_EndCap",
1820 mMultiplicityQG_mediumPt_EndCap));
1821 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_mediumPt_EndCap",
1822 mqgLikelihood_mediumPt_EndCap));
1824 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_mediumPt_Forward", mAxis2_mediumPt_Forward));
1826 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_mediumPt_Forward", mpTD_mediumPt_Forward));
1827 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_mediumPt_Forward",
1828 mMultiplicityQG_mediumPt_Forward));
1829 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_mediumPt_Forward",
1830 mqgLikelihood_mediumPt_Forward));
1832 mAxis2_highPt_Barrel = ibooker.
book1D(
"qg_Axis2_highPt_Barrel",
"qg Axis2 #sigma_{2} highPt Barrel", 50, 0., 0.20);
1833 mpTD_highPt_Barrel =
1834 ibooker.
book1D(
"qg_pTD_highPt_Barrel",
"qg fragmentation function p_{T}^{D} highPt Barrel", 50, 0.15, 1.05);
1835 mMultiplicityQG_highPt_Barrel =
1836 ibooker.
book1D(
"qg_multiplicity_highPt_Barrel",
"qg multiplicity highPt Barrel", 50, 0, 100);
1837 mqgLikelihood_highPt_Barrel =
1838 ibooker.
book1D(
"qg_Likelihood_highPt_Barrel",
"qg likelihood highPt Barrel", 50, -1.1, 1.1);
1839 mAxis2_highPt_EndCap = ibooker.
book1D(
"qg_Axis2_highPt_EndCap",
"qg Axis2 #sigma_{2} highPt EndCap", 50, 0., 0.20);
1840 mpTD_highPt_EndCap =
1841 ibooker.
book1D(
"qg_pTD_highPt_EndCap",
"qg fragmentation function p_{T}^{D} highPt EndCap", 50, 0.15, 1.05);
1842 mMultiplicityQG_highPt_EndCap =
1843 ibooker.
book1D(
"qg_multiplicity_highPt_EndCap",
"qg multiplicity highPt EndCap", 50, 0, 100);
1844 mqgLikelihood_highPt_EndCap =
1845 ibooker.
book1D(
"qg_Likelihood_highPt_EndCap",
"qg likelihood highPt EndCap", 50, -1.1, 1.1);
1846 mAxis2_highPt_Forward =
1847 ibooker.
book1D(
"qg_Axis2_highPt_Forward",
"qg Axis2 #sigma_{2} highPt Forward", 50, 0., 0.20);
1848 mpTD_highPt_Forward =
1849 ibooker.
book1D(
"qg_pTD_highPt_Forward",
"qg fragmentation function p_{T}^{D} highPt Forward", 50, 0.15, 1.05);
1850 mMultiplicityQG_highPt_Forward =
1851 ibooker.
book1D(
"qg_multiplicity_highPt_Forward",
"qg multiplicity highPt Forward", 50, 0, 100);
1852 mqgLikelihood_highPt_Forward =
1853 ibooker.
book1D(
"qg_Likelihood_highPt_Forward",
"qg likelihood highPt Forward", 50, -1.1, 1.1);
1856 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_highPt_Barrel", mAxis2_highPt_Barrel));
1858 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_highPt_Barrel", mpTD_highPt_Barrel));
1859 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_highPt_Barrel",
1860 mMultiplicityQG_highPt_Barrel));
1861 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_highPt_Barrel",
1862 mqgLikelihood_highPt_Barrel));
1864 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_highPt_EndCap", mAxis2_highPt_EndCap));
1866 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_highPt_EndCap", mpTD_highPt_EndCap));
1867 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_highPt_EndCap",
1868 mMultiplicityQG_highPt_EndCap));
1869 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_highPt_EndCap",
1870 mqgLikelihood_highPt_EndCap));
1872 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Axis2_highPt_Forward", mAxis2_highPt_Forward));
1874 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_pTD_highPt_Forward", mpTD_highPt_Forward));
1875 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_multiplicity_highPt_Forward",
1876 mMultiplicityQG_highPt_Forward));
1877 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"qg_Likelihood_highPt_Forward",
1878 mqgLikelihood_highPt_Forward));
1881 if (
DirName.find(
"DiJet") != std::string::npos) {
1882 mDPhi = ibooker.
book1D(
"DPhi",
"dPhi btw the two leading jets", 100, 0., acos(-1.));
1883 mDijetAsymmetry = ibooker.
book1D(
"DijetAsymmetry",
"DijetAsymmetry", 100, -1., 1.);
1884 mDijetBalance = ibooker.
book1D(
"DijetBalance",
"DijetBalance", 100, -2., 2.);
1885 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DPhi", mDPhi));
1886 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DijetAsymmetry", mDijetAsymmetry));
1887 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DijetBalance", mDijetBalance));
1889 if (isPFJet_ || isMiniAODJet_) {
1890 mChargedMultiplicity = ibooker.
book1D(
"ChargedMultiplicity",
"charged multiplicity ", 50, 0, 100);
1891 mNeutralMultiplicity = ibooker.
book1D(
"NeutralMultiplicity",
"neutral multiplicity", 50, 0, 100);
1892 mMuonMultiplicity = ibooker.
book1D(
"MuonMultiplicity",
"muon multiplicity", 50, 0, 100);
1895 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedMultiplicity", mChargedMultiplicity));
1897 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralMultiplicity", mNeutralMultiplicity));
1898 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuonMultiplicity", mMuonMultiplicity));
1900 mChargedMultiplicity_profile = ibooker.
bookProfile(
1901 "ChargedMultiplicity_profile",
"charged multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1902 mNeutralMultiplicity_profile = ibooker.
bookProfile(
1903 "NeutralMultiplicity_profile",
"neutral multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1904 mMuonMultiplicity_profile =
1905 ibooker.
bookProfile(
"MuonMultiplicity_profile",
"muon multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1907 mNeutralMultiplicity_profile->setAxisTitle(
"nvtx", 1);
1908 mMuonMultiplicity_profile->setAxisTitle(
"nvtx", 1);
1910 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ChargedMultiplicity_profile",
1911 mChargedMultiplicity_profile));
1912 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralMultiplicity_profile",
1913 mNeutralMultiplicity_profile));
1914 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MuonMultiplicity_profile",
1915 mMuonMultiplicity_profile));
1917 mNeutralFraction = ibooker.
book1D(
"NeutralConstituentsFraction",
"Neutral Constituents Fraction", 100, 0, 1);
1919 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NeutralConstituentsFraction", mNeutralFraction));
1923 if (
DirName.find(
"ZJets") != std::string::npos) {
1924 mZMass = ibooker.
book1D(
"DiMuonMass",
"DiMuonMass", 50, 71., 111.);
1925 mDPhiZJet = ibooker.
book1D(
"DPhiZJ",
"dPhi btw Z and Jet1", 100, 0., acos(-1.));
1926 mZJetAsymmetry = ibooker.
book1D(
"ZJetAsymmetry",
"ZJetAsymmetry", 100, -1., 1.);
1927 mJetZBalance_lowZPt_J_Barrel =
1928 ibooker.
book1D(
"JZB_lowZPt_J_Barrel",
"ZJetBalance (pTJet1-pTZ) (30<pTZ<90), |#eta_{jet}|<1.3", 50, -75., 75);
1929 mJetZBalance_mediumZPt_J_Barrel =
1930 ibooker.
book1D(
"JZB_mediumZPt_J_Barrel",
"ZJetBalance (90<pTZ<140), |#eta_{jet}|<1.3", 50, -75., 75);
1931 mJetZBalance_highZPt_J_Barrel =
1932 ibooker.
book1D(
"JZB_highZPt_J_Barrel",
"ZJetBalance (pTZ>140), |#eta_{jet}|<1.3", 50, -75., 75.);
1933 mJetZBalance_lowZPt_J_EndCap =
1934 ibooker.
book1D(
"JZB_lowZPt_J_EndCap",
"ZJetBalance (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, -75., 75);
1935 mJetZBalance_mediumZPt_J_EndCap =
1936 ibooker.
book1D(
"JZB_mediumZPt_J_EndCap",
"ZJetBalance (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, -75., 75);
1937 mJetZBalance_highZPt_J_EndCap =
1938 ibooker.
book1D(
"JZB_highZPt_J_EndCap",
"ZJetBalance (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, -75., 75.);
1939 mJetZBalance_lowZPt_J_Forward =
1940 ibooker.
book1D(
"JZB_lowZPt_J_Forward",
"ZJetBalance (30<pTZ<90), |#eta_{jet}|>3.0", 50, -75., 75);
1941 mJetZBalance_mediumZPt_J_Forward =
1942 ibooker.
book1D(
"JZB_mediumZPt_J_Forward",
"ZJetBalance (90<pTZ<140), |#eta_{jet}|>3.0", 50, -75., 75);
1943 mJetZBalance_highZPt_J_Forward =
1944 ibooker.
book1D(
"JZB_highZPt_J_Forward",
"ZJetBalance (pTZ>140), |#eta_{jet}|>3.0", 50, -75., 75.);
1946 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DiMuonMass", mZMass));
1947 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DPhiZJ", mDPhiZJet));
1948 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"ZJetAsymmetry", mZJetAsymmetry));
1950 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_lowZPt_J_Barrel", mJetZBalance_lowZPt_J_Barrel));
1951 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_mediumZPt_J_Barrel",
1952 mJetZBalance_mediumZPt_J_Barrel));
1954 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_highZPt_J_Barrel", mJetZBalance_highZPt_J_Barrel));
1956 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_lowZPt_J_EndCap", mJetZBalance_lowZPt_J_EndCap));
1957 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_mediumZPt_J_EndCap",
1958 mJetZBalance_mediumZPt_J_EndCap));
1960 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_highZPt_J_EndCap", mJetZBalance_highZPt_J_EndCap));
1962 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_lowZPt_J_Forward", mJetZBalance_lowZPt_J_Forward));
1963 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_mediumZPt_J_Forward",
1964 mJetZBalance_mediumZPt_J_Forward));
1965 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"JZB_highZPt_J_Forward",
1966 mJetZBalance_highZPt_J_Forward));
1968 mJ1Pt_over_ZPt_J_Barrel = ibooker.
book1D(
"J1Pt_over_ZPt_J_Barrel",
"Jet1_Pt/ZPt, Barrel", 50, 0., 3.0);
1969 mJ1Pt_over_ZPt_J_EndCap = ibooker.
book1D(
"J1Pt_over_ZPt_J_EndCap",
"Jet1_Pt/ZPt, EndCap", 50, 0., 3.0);
1970 mJ1Pt_over_ZPt_J_Forward = ibooker.
book1D(
"J1Pt_over_ZPt_J_Forward",
"Jet1_Pt/ZPt, Forward", 50, 0., 3.0);
1973 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_J_Barrel", mJ1Pt_over_ZPt_J_Barrel));
1975 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_J_EndCap", mJ1Pt_over_ZPt_J_EndCap));
1977 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_J_Forward", mJ1Pt_over_ZPt_J_Forward));
1979 mJ1Pt_over_ZPt_lowZPt_J_Barrel =
1980 ibooker.
book1D(
"J1Pt_over_ZPt_lowZPt_J_Barrel",
"Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|<1.3", 50, 0., 3.0);
1981 mJ1Pt_over_ZPt_mediumZPt_J_Barrel =
1982 ibooker.
book1D(
"J1Pt_over_ZPt_mediumZPt_J_Barrel",
"Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|<1.3", 50, 0., 3.0);
1983 mJ1Pt_over_ZPt_highZPt_J_Barrel =
1984 ibooker.
book1D(
"J1Pt_over_ZPt_highPt_J_Barrel",
"Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|<1.3", 50, 0., 3.0);
1985 mJ1Pt_over_ZPt_lowZPt_J_EndCap =
1986 ibooker.
book1D(
"J1Pt_over_ZPt_lowZPt_J_EndCap",
"Jet1_Pt/ZPt (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, 0., 3.0);
1987 mJ1Pt_over_ZPt_mediumZPt_J_EndCap = ibooker.
book1D(
1988 "J1Pt_over_ZPt_mediumZPt_J_EndCap",
"Jet1_Pt/ZPt (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, 0., 3.0);
1989 mJ1Pt_over_ZPt_highZPt_J_EndCap =
1990 ibooker.
book1D(
"J1Pt_over_ZPt_highZPt_J_EndCap",
"Jet1_Pt/ZPt (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, 0., 3.0);
1991 mJ1Pt_over_ZPt_lowZPt_J_Forward =
1992 ibooker.
book1D(
"J1Pt_over_ZPt_lowZPt_J_Forward",
"Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|>3.0", 50, 0., 3.0);
1993 mJ1Pt_over_ZPt_mediumZPt_J_Forward =
1994 ibooker.
book1D(
"J1Pt_over_ZPt_mediumPt_J_Forward",
"Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|>3.0", 50, 0., 3.0);
1995 mJ1Pt_over_ZPt_highZPt_J_Forward =
1996 ibooker.
book1D(
"J1Pt_over_ZPt_highZPt_J_Forward",
"Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|>3.0", 50, 0., 3.0);
1998 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_lowZPt_J_Barrel",
1999 mJ1Pt_over_ZPt_lowZPt_J_Barrel));
2000 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_mediumZPt_J_Barrel",
2001 mJ1Pt_over_ZPt_mediumZPt_J_Barrel));
2002 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_highZPt_J_Barrel",
2003 mJ1Pt_over_ZPt_highZPt_J_Barrel));
2004 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_lowZPt_J_EndCap",
2005 mJ1Pt_over_ZPt_lowZPt_J_EndCap));
2006 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_mediumZPt_J_EndCap",
2007 mJ1Pt_over_ZPt_mediumZPt_J_EndCap));
2008 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_highZPt_J_EndCap",
2009 mJ1Pt_over_ZPt_highZPt_J_EndCap));
2010 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_lowZPt_J_Forward",
2011 mJ1Pt_over_ZPt_lowZPt_J_Forward));
2012 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_mediumZPt_J_Forward",
2013 mJ1Pt_over_ZPt_mediumZPt_J_Forward));
2014 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"J1Pt_over_ZPt_highZPt_J_Forward",
2015 mJ1Pt_over_ZPt_highZPt_J_Forward));
2017 mMPF_J_Barrel = ibooker.
book1D(
"MPF_J_Barrel",
"Jet1_Pt/ZPt, Barrel", 50, 0., 2.0);
2018 mMPF_J_EndCap = ibooker.
book1D(
"MPF_J_EndCap",
"Jet1_Pt/ZPt, EndCap", 50, 0., 2.0);
2019 mMPF_J_Forward = ibooker.
book1D(
"MPF_J_Forward",
"Jet1_Pt/ZPt, Forward", 50, 0., 2.0);
2021 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_J_Barrel", mMPF_J_Barrel));
2022 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_J_EndCap", mMPF_J_EndCap));
2023 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_J_Forward", mMPF_J_Forward));
2025 mMPF_lowZPt_J_Barrel =
2026 ibooker.
book1D(
"MPF_lowZPt_J_Barrel",
"Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|<1.3", 50, 0., 2.0);
2027 mMPF_mediumZPt_J_Barrel =
2028 ibooker.
book1D(
"MPF_mediumZPt_J_Barrel",
"Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|<1.3", 50, 0., 2.0);
2029 mMPF_highZPt_J_Barrel =
2030 ibooker.
book1D(
"MPF_highPt_J_Barrel",
"Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|<1.3", 50, 0., 2.0);
2031 mMPF_lowZPt_J_EndCap =
2032 ibooker.
book1D(
"MPF_lowZPt_J_EndCap",
"Jet1_Pt/ZPt (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, 0., 2.0);
2033 mMPF_mediumZPt_J_EndCap =
2034 ibooker.
book1D(
"MPF_mediumZPt_J_EndCap",
"Jet1_Pt/ZPt (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, 0., 2.0);
2035 mMPF_highZPt_J_EndCap =
2036 ibooker.
book1D(
"MPF_highZPt_J_EndCap",
"Jet1_Pt/ZPt (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, 0., 2.0);
2037 mMPF_lowZPt_J_Forward =
2038 ibooker.
book1D(
"MPF_lowZPt_J_Forward",
"Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|>3.0", 50, 0., 2.0);
2039 mMPF_mediumZPt_J_Forward =
2040 ibooker.
book1D(
"MPF_mediumPt_J_Forward",
"Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|>3.0", 50, 0., 2.0);
2041 mMPF_highZPt_J_Forward =
2042 ibooker.
book1D(
"MPF_highZPt_J_Forward",
"Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|>3.0", 50, 0., 2.0);
2045 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_lowZPt_J_Barrel", mMPF_lowZPt_J_Barrel));
2047 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_mediumZPt_J_Barrel", mMPF_mediumZPt_J_Barrel));
2049 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_highZPt_J_Barrel", mMPF_highZPt_J_Barrel));
2051 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_lowZPt_J_EndCap", mMPF_lowZPt_J_EndCap));
2053 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_mediumZPt_J_EndCap", mMPF_mediumZPt_J_EndCap));
2055 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_highZPt_J_EndCap", mMPF_highZPt_J_EndCap));
2057 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_lowZPt_J_Forward", mMPF_lowZPt_J_Forward));
2059 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_mediumZPt_J_Forward", mMPF_mediumZPt_J_Forward));
2061 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MPF_highZPt_J_Forward", mMPF_highZPt_J_Forward));
2063 mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel =
2064 ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel",
"DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel", 50, -1.00, 1.00);
2065 mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel =
2066 ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel",
"DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel", 50, -1.00, 1.00);
2067 mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel = ibooker.
book1D(
2068 "DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel",
"DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel", 50, -1.00, 1.00);
2069 mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel = ibooker.
book1D(
2070 "DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel",
"DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel", 50, -1.00, 1.00);
2071 mDeltaPt_Z_j1_over_ZPt_290_J_Barrel =
2072 ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_290_J_Barrel",
"DeltaPt_Z_j1_over_ZPt_290_J_Barrel", 50, -1.00, 1.00);
2073 mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap =
2074 ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap",
"DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap", 50, -1.00, 1.00);
2075 mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap =
2076 ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap",
"DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap", 50, -1.00, 1.00);
2077 mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap = ibooker.
book1D(
2078 "DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap",
"DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap", 50, -1.00, 1.00);
2079 mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap = ibooker.
book1D(
2080 "DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap",
"DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap", 50, -1.00, 1.00);
2081 mDeltaPt_Z_j1_over_ZPt_290_J_EndCap =
2082 ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_290_J_EndCap",
"DeltaPt_Z_j1_over_ZPt_290_J_EndCap", 50, -1.00, 1.00);
2083 mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward = ibooker.
book1D(
2084 "DeltaPt_Z_j1_over_ZPt_30_55_J_Forward",
"DeltaPt_Z_j1_over_ZPt_30_55_J_Forward", 50, -1.00, 1.00);
2085 mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward = ibooker.
book1D(
2086 "DeltaPt_Z_j1_over_ZPt_55_100_J_Forward",
"DeltaPt_Z_j1_over_ZPt_55_100_J_Forward", 50, -1.00, 1.00);
2087 mDeltaPt_Z_j1_over_ZPt_100_J_Forward =
2088 ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_100_J_Forward",
"DeltaPt_Z_j1_over_ZPt_100_J_Forward", 50, -1.00, 1.00);
2090 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel",
2091 mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel));
2092 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel",
2093 mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel));
2094 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel",
2095 mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel));
2096 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel",
2097 mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel));
2098 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_290_J_Barrel",
2099 mDeltaPt_Z_j1_over_ZPt_290_J_Barrel));
2100 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap",
2101 mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap));
2102 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap",
2103 mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap));
2104 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap",
2105 mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap));
2106 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap",
2107 mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap));
2108 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_290_J_EndCap",
2109 mDeltaPt_Z_j1_over_ZPt_290_J_EndCap));
2110 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_30_55_J_Forward",
2111 mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward));
2112 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_55_100_J_Forward",
2113 mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward));
2114 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_100_J_Forward",
2115 mDeltaPt_Z_j1_over_ZPt_100_J_Forward));
2119 mPt_profile = ibooker.
bookProfile(
"Pt_profile",
"pt", nbinsPV_, nPVlow_, nPVhigh_, ptBin_, ptMin_, ptMax_);
2120 mEta_profile = ibooker.
bookProfile(
"Eta_profile",
"eta", nbinsPV_, nPVlow_, nPVhigh_, etaBin_, etaMin_, etaMax_);
2121 mPhi_profile = ibooker.
bookProfile(
"Phi_profile",
"phi", nbinsPV_, nPVlow_, nPVhigh_, phiBin_, phiMin_, phiMax_);
2123 mConstituents_profile =
2124 ibooker.
bookProfile(
"Constituents_profile",
"# of constituents", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
2129 mEta_profile->setAxisTitle(
"nvtx", 1);
2130 mPhi_profile->setAxisTitle(
"nvtx", 1);
2132 mConstituents_profile->setAxisTitle(
"nvtx", 1);
2134 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Constituents_profile", mConstituents_profile));
2137 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Pt_profile", mPt_profile));
2138 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Eta_profile", mEta_profile));
2139 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"Phi_profile", mPhi_profile));
2144 mHFrac = ibooker.
book1D(
"HFrac",
"HFrac", 140, -0.2, 1.2);
2145 mEFrac = ibooker.
book1D(
"EFrac",
"EFrac", 140, -0.2, 1.2);
2146 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFrac", mHFrac));
2147 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EFrac", mEFrac));
2149 mHFrac_profile = ibooker.
bookProfile(
"HFrac_profile",
"HFrac", nbinsPV_, nPVlow_, nPVhigh_, 140, -0.2, 1.2);
2150 mEFrac_profile = ibooker.
bookProfile(
"EFrac_profile",
"EFrac", nbinsPV_, nPVlow_, nPVhigh_, 140, -0.2, 1.2);
2152 mEFrac_profile->setAxisTitle(
"nvtx", 1);
2153 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFrac_profile", mHFrac_profile));
2154 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"EFrac_profile", mEFrac_profile));
2158 mresEMF = ibooker.
book1D(
"resEMF",
"resEMF", 50, 0., 1.);
2159 mN90Hits = ibooker.
book1D(
"N90Hits",
"N90Hits", 50, 0., 100);
2160 mfHPD = ibooker.
book1D(
"fHPD",
"fHPD", 50, 0., 1.);
2161 mfRBX = ibooker.
book1D(
"fRBX",
"fRBX", 50, 0., 1.);
2163 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"resEMF", mresEMF));
2164 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"N90Hits", mN90Hits));
2165 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"fHPD", mfHPD));
2166 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"fRBX", mfRBX));
2169 if (isPFJet_ || isMiniAODJet_) {
2172 mCHFrac = ibooker.
book1D(
"CHFrac",
"CHFrac", 120, -0.1, 1.1);
2173 mNHFrac = ibooker.
book1D(
"NHFrac",
"NHFrac", 120, -0.1, 1.1);
2174 mPhFrac = ibooker.
book1D(
"PhFrac",
"PhFrac", 120, -0.1, 1.1);
2175 mHFEMFrac = ibooker.
book1D(
"HFEMFrac",
"HFEMFrac", 120, -0.1, 1.1);
2176 mHFHFrac = ibooker.
book1D(
"HFHFrac",
"HFHFrac", 120, -0.1, 1.1);
2178 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFrac", mCHFrac));
2179 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFrac", mNHFrac));
2180 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFrac", mPhFrac));
2181 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEMFrac", mHFEMFrac));
2182 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFrac", mHFHFrac));
2187 ibooker.
bookProfile(
"CHFrac_profile",
"charged HAD fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
2189 ibooker.
bookProfile(
"NHFrac_profile",
"neutral HAD fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
2191 ibooker.
bookProfile(
"PhFrac_profile",
"Photon Fraction Profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
2193 "HFEMFrac_profile",
"HF electomagnetic fraction Profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
2195 ibooker.
bookProfile(
"HFHFrac_profile",
"HF hadronic fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
2200 mNHFrac_profile->setAxisTitle(
"nvtx", 1);
2201 mPhFrac_profile->setAxisTitle(
"nvtx", 1);
2202 mHFEMFrac_profile->setAxisTitle(
"nvtx", 1);
2203 mHFHFrac_profile->setAxisTitle(
"nvtx", 1);
2205 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CHFrac_profile", mCHFrac_profile));
2206 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"NHFrac_profile", mNHFrac_profile));
2207 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PhFrac_profile", mPhFrac_profile));
2208 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFEMFrac_profile", mHFEMFrac_profile));
2209 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"HFHFrac_profile", mHFHFrac_profile));
2218 if (highPtJetEventFlag_->on())
2219 highPtJetEventFlag_->initRun(iRun, iSetup);
2220 if (lowPtJetEventFlag_->on())
2221 lowPtJetEventFlag_->initRun(iRun, iSetup);
2223 if (highPtJetEventFlag_->on() &&
2224 highPtJetEventFlag_->expressionsFromDB(highPtJetEventFlag_->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
2225 highPtJetExpr_ = highPtJetEventFlag_->expressionsFromDB(highPtJetEventFlag_->hltDBKey(), iSetup);
2226 if (lowPtJetEventFlag_->on() &&
2227 lowPtJetEventFlag_->expressionsFromDB(lowPtJetEventFlag_->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
2228 lowPtJetExpr_ = lowPtJetEventFlag_->expressionsFromDB(lowPtJetEventFlag_->hltDBKey(), iSetup);
2235 hltInitialized_ = hltConfig_.init(iRun, iSetup, processname_, changed);
2236 if (!hltInitialized_) {
2238 processname_ =
"FU";
2239 hltInitialized_ = hltConfig_.init(iRun, iSetup, processname_, changed);
2240 if (!hltInitialized_) {
2242 LogDebug(
"JetAnalyzer") <<
"HLTConfigProvider failed to initialize.";
2247 for (
CItAlgo techTrig =
menu->gtTechnicalTriggerMap().begin(); techTrig !=
menu->gtTechnicalTriggerMap().end();
2249 if ((techTrig->second).algoName() == m_l1algoname_) {
2250 m_bitAlgTechTrig_ = (techTrig->second).algoBitNumber();
2259 if (jetCleaningFlag_) {
2261 DirName =
"JetMET/Jet/Cleaned" + mInputCollection_.label();
2264 DirName =
"JetMET/Jet/Uncleaned" + mInputCollection_.label();
2278 if (fill_CHS_histos) {
2279 iEvent.getByToken(qgMultiplicityToken_, qgMultiplicity);
2280 iEvent.getByToken(qgLikelihoodToken_, qgLikelihood);
2281 iEvent.getByToken(qgptDToken_, qgptD);
2282 iEvent.getByToken(qgaxis2Token_, qgaxis2);
2285 if (!isMiniAODJet_) {
2286 iEvent.getByToken(mvaPUIDToken_, puJetIdFlagMva);
2287 iEvent.getByToken(cutBasedPUDiscriminantToken_, puJetId);
2288 iEvent.getByToken(cutBasedPUIDToken_, puJetIdFlag);
2289 iEvent.getByToken(mvaFullPUDiscriminantToken_, puJetIdMva);
2296 Int_t JetLoPass = 0;
2297 Int_t JetHiPass = 0;
2303 for (
unsigned int i = 0;
i < nTrig; ++
i) {
2304 if (
triggerNames.triggerName(
i).find(highPtJetExpr_[0].substr(0, highPtJetExpr_[0].rfind(
"_v") + 2)) !=
2305 std::string::npos &&
2308 else if (
triggerNames.triggerName(
i).find(lowPtJetExpr_[0].substr(0, lowPtJetExpr_[0].rfind(
"_v") + 2)) !=
2309 std::string::npos &&
2316 std::cout <<
"trigger label " << theTriggerResultsLabel_ << std::endl;
2319 std::cout <<
">>> Trigger Lo = " << JetLoPass <<
" Hi = " << JetHiPass << std::endl;
2325 iEvent.getByToken(vertexToken_, vertexHandle);
2327 if (!vertexHandle.
isValid()) {
2328 LogDebug(
"") <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
2330 std::cout <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
2337 bool bPrimaryVertex = (bypassAllPVChecks_ || (numPV > 0));
2338 if (fill_jet_high_level_histo) {
2339 verticesME = map_of_MEs[
"JetMET/vertices"];
2340 if (verticesME && verticesME->getRootObject())
2341 verticesME->Fill(numPV);
2345 iEvent.getByToken(gtToken_, gtReadoutRecord);
2347 if (!gtReadoutRecord.
isValid()) {
2348 LogInfo(
"JetAnalyzer") <<
"JetAnalyzer: Could not find GT readout record" << std::endl;
2350 std::cout <<
"JetAnalyzer: Could not find GT readout record product" << std::endl;
2354 bool techTriggerResultBxF =
false;
2355 bool techTriggerResultBx0 =
false;
2357 if (!gtReadoutRecord.
isValid()) {
2358 LogDebug(
"") <<
"CaloMETAnalyzer: Could not find GT readout record" << std::endl;
2360 std::cout <<
"CaloMETAnalyzer: Could not find GT readout record product" << std::endl;
2368 if (m_bitAlgTechTrig_ > -1 && !technicalTriggerWordBeforeMaskBx0.empty()) {
2369 techTriggerResultBx0 = technicalTriggerWordBeforeMaskBx0.at(m_bitAlgTechTrig_);
2370 if (techTriggerResultBx0 != 0) {
2372 techTriggerResultBxF = technicalTriggerWordBeforeMaskBxF.at(m_bitAlgTechTrig_);
2377 DCSFilterForDCSMonitoring_->filter(
iEvent, iSetup);
2378 if (fill_jet_high_level_histo) {
2379 cleanupME = map_of_MEs[
"JetMET/cleanup"];
2380 if (cleanupME && cleanupME->getRootObject()) {
2382 cleanupME->Fill(0.5);
2383 if (DCSFilterForDCSMonitoring_->passPIX)
2384 cleanupME->Fill(1.5);
2385 if (DCSFilterForDCSMonitoring_->passSiStrip)
2386 cleanupME->Fill(2.5);
2387 if (DCSFilterForDCSMonitoring_->passECAL)
2388 cleanupME->Fill(3.5);
2389 if (DCSFilterForDCSMonitoring_->passES)
2390 cleanupME->Fill(4.5);
2391 if (DCSFilterForDCSMonitoring_->passHBHE)
2392 cleanupME->Fill(5.5);
2393 if (DCSFilterForDCSMonitoring_->passHF)
2394 cleanupME->Fill(6.5);
2395 if (DCSFilterForDCSMonitoring_->passHO)
2396 cleanupME->Fill(7.5);
2397 if (DCSFilterForDCSMonitoring_->passMuon)
2398 cleanupME->Fill(8.5);
2409 bool pass_Z_selection =
false;
2424 if (jetCleaningFlag_ &&
Muons.isValid() &&
Muons->size() > 1) {
2425 for (
unsigned int i = 0;
i <
Muons->size();
i++) {
2426 bool pass_muon_id =
false;
2427 bool pass_muon_iso =
false;
2429 double dz = fabs((*
Muons)[
i].muonBestTrack()->
dz());
2435 if ((*
Muons)[
i].isGlobalMuon() && (*
Muons)[
i].isPFMuon() &&
2437 (*
Muons)[
i].numberOfMatchedStations() > 1 &&
dxy < 0.2 && (*
Muons)[
i].numberOfMatchedStations() > 1 &&
2439 (*
Muons)[
i].
innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5) {
2440 pass_muon_id =
true;
2444 ((*Muons)[
i].pfIsolationR04().sumChargedHadronPt +
2449 if (muonIsoPFdb < 0.12) {
2450 pass_muon_iso =
true;
2453 if (pass_muon_id && pass_muon_iso) {
2455 mu_index1 = mu_index0;
2458 pt0 = (*Muons)[
i].pt();
2461 pt1 = (*Muons)[
i].pt();
2466 if (mu_index0 >= 0 && mu_index1 >= 0) {
2468 zCand = (*Muons)[mu_index0].polarP4() + (*Muons)[mu_index1].polarP4();
2469 if (fabs(zCand.M() - 91.) < 20 && zCand.Pt() > 30) {
2470 pass_Z_selection =
true;
2477 iEvent.getByToken(puppiJetsToken_, puppiJets);
2481 if (jetCleaningFlag_ &&
Muons.isValid() &&
Muons->size() > 1) {
2482 for (
unsigned int i = 0;
i <
Muons->size();
i++) {
2483 bool pass_muon_id =
false;
2484 bool pass_muon_iso =
false;
2486 double dz = fabs((*
Muons)[
i].muonBestTrack()->
dz());
2492 if ((*
Muons)[
i].isGlobalMuon() && (*
Muons)[
i].isPFMuon() &&
2494 (*
Muons)[
i].numberOfMatchedStations() > 1 &&
dxy < 0.2 && (*
Muons)[
i].numberOfMatchedStations() > 1 &&
2496 (*
Muons)[
i].
innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5) {
2497 pass_muon_id =
true;
2501 ((*Muons)[
i].pfIsolationR04().sumChargedHadronPt +
2506 if (muonIsoPFdb < 0.12) {
2507 pass_muon_iso =
true;
2510 if (pass_muon_id && pass_muon_iso) {
2512 mu_index1 = mu_index0;
2515 pt0 = (*Muons)[
i].pt();
2518 pt1 = (*Muons)[
i].pt();
2523 if (mu_index0 >= 0 && mu_index1 >= 0) {
2525 zCand = (*Muons)[mu_index0].polarP4() + (*Muons)[mu_index1].polarP4();
2526 if (fabs(zCand.M() - 91.) < 20 && zCand.Pt() > 30) {
2527 pass_Z_selection =
true;
2539 iEvent.getByToken(jetID_ValueMapToken_, jetID_ValueMap_Handle);
2544 bool dcsDecision = DCSFilterForJetMonitoring_->filter(
iEvent, iSetup);
2545 bool jetCollectionIsValid =
false;
2547 jetCollectionIsValid =
caloJets.isValid();
2550 jetCollectionIsValid =
pfJets.isValid();
2552 jetCollectionIsValid = puppiJets.
isValid();
2554 jetCollectionIsValid =
patJets.isValid();
2556 if (jetCleaningFlag_ && (!jetCollectionIsValid || !bPrimaryVertex || !dcsDecision))
2559 unsigned int collSize = -1;
2571 collSize =
pfJets->size();
2575 collSize = puppiJets->size();
2580 std::vector<Jet> corJets;
2591 bool cleaned_first_jet =
false;
2592 bool cleaned_second_jet =
false;
2595 int ind1_mu_vetoed = -1;
2596 double pt1_mu_vetoed = -1;
2597 int ind2_mu_vetoed = -1;
2598 double pt2_mu_vetoed = -1;
2599 bool cleaned_first_jet_mu_vetoed =
false;
2600 bool cleaned_second_jet_mu_vetoed =
false;
2609 bool pass_correction_flag =
false;
2610 if (!isMiniAODJet_ && !jetCorrectorTag_.label().empty()) {
2611 iEvent.getByToken(jetCorrectorToken_, jetCorr);
2613 pass_correction_flag =
true;
2616 if (isMiniAODJet_) {
2617 pass_correction_flag =
true;
2620 for (
unsigned int ijet = 0; ijet < collSize; ijet++) {
2623 bool pass_uncorrected =
false;
2624 bool pass_corrected =
false;
2626 correctedJet = (*caloJets)[ijet];
2632 correctedJet = (*pfJets)[ijet];
2635 correctedJet = (*puppiJets)[ijet];
2637 if (isMiniAODJet_) {
2638 correctedJet = (*patJets)[ijet];
2640 if (!isMiniAODJet_ && correctedJet.
pt() > ptThresholdUnc_) {
2641 pass_uncorrected =
true;
2643 if (isMiniAODJet_ && (correctedJet.
pt() * (*patJets)[ijet].jecFactor(
"Uncorrected")) > ptThresholdUnc_) {
2644 pass_uncorrected =
true;
2646 if (pass_correction_flag && !isMiniAODJet_) {
2655 if (correctedJet.
pt() > ptThreshold_) {
2656 pass_corrected =
true;
2661 if (pass_corrected) {
2664 bool jetpassid =
true;
2665 bool Thiscleaned =
true;
2666 bool JetIDWPU =
true;
2671 reco::JetID jetID = (*jetID_ValueMap_Handle)[calojetref];
2672 jetpassid = jetIDFunctor((*
caloJets)[ijet], jetID);
2673 JetIDWPU = jetpassid;
2674 if (jetCleaningFlag_) {
2675 Thiscleaned = jetpassid;
2677 if (Thiscleaned && pass_corrected) {
2678 mN90Hits = map_of_MEs[
DirName +
"/" +
"N90Hits"];
2679 if (mN90Hits && mN90Hits->getRootObject())
2680 mN90Hits->Fill(jetID.
n90Hits);
2681 mfHPD = map_of_MEs[
DirName +
"/" +
"fHPD"];
2682 if (mfHPD && mfHPD->getRootObject())
2683 mfHPD->Fill(jetID.
fHPD);
2684 mresEMF = map_of_MEs[
DirName +
"/" +
"resEMF"];
2685 if (mresEMF && mresEMF->getRootObject())
2687 mfRBX = map_of_MEs[
DirName +
"/" +
"fRBX"];
2688 if (mfRBX && mfRBX->getRootObject())
2689 mfRBX->Fill(jetID.
fRBX);
2692 if (jetCleaningFlag_) {
2693 Thiscleaned = jetpassid;
2695 if (Thiscleaned && pass_uncorrected) {
2696 mPt_uncor = map_of_MEs[
DirName +
"/" +
"Pt_uncor"];
2697 if (mPt_uncor && mPt_uncor->getRootObject())
2698 mPt_uncor->Fill((*
caloJets)[ijet].pt());
2699 mEta_uncor = map_of_MEs[
DirName +
"/" +
"Eta_uncor"];
2700 if (mEta_uncor && mEta_uncor->getRootObject())
2701 mEta_uncor->Fill((*
caloJets)[ijet].eta());
2702 mPhi_uncor = map_of_MEs[
DirName +
"/" +
"Phi_uncor"];
2703 if (mPhi_uncor && mPhi_uncor->getRootObject())
2704 mPhi_uncor->Fill((*
caloJets)[ijet].phi());
2705 mConstituents_uncor = map_of_MEs[
DirName +
"/" +
"Constituents_uncor"];
2706 if (mConstituents_uncor && mConstituents_uncor->getRootObject())
2707 mConstituents_uncor->Fill((*
caloJets)[ijet].nConstituents());
2710 if (Thiscleaned && pass_corrected) {
2711 mHFrac = map_of_MEs[
DirName +
"/" +
"HFrac"];
2712 if (mHFrac && mHFrac->getRootObject())
2713 mHFrac->Fill((*
caloJets)[ijet].energyFractionHadronic());
2714 mEFrac = map_of_MEs[
DirName +
"/" +
"EFrac"];
2715 if (mEFrac && mHFrac->getRootObject())
2716 mEFrac->Fill((*
caloJets)[ijet].emEnergyFraction());
2717 mHFrac_profile = map_of_MEs[
DirName +
"/" +
"HFrac_profile"];
2718 if (mHFrac_profile && mHFrac_profile->getRootObject())
2719 mHFrac_profile->Fill(numPV, (*
caloJets)[ijet].energyFractionHadronic());
2720 mEFrac_profile = map_of_MEs[
DirName +
"/" +
"EFrac_profile"];
2721 if (mEFrac_profile && mEFrac_profile->getRootObject())
2722 mEFrac_profile->Fill(numPV, (*
caloJets)[ijet].emEnergyFraction());
2724 mHFrac_Barrel = map_of_MEs[
DirName +
"/" +
"HFrac_Barrel"];
2725 if (mHFrac_Barrel && mHFrac_Barrel->getRootObject())
2726 mHFrac_Barrel->Fill((*
caloJets)[ijet].energyFractionHadronic());
2727 mEFrac_Barrel = map_of_MEs[
DirName +
"/" +
"EFrac_Barrel"];
2728 if (mEFrac_Barrel && mEFrac_Barrel->getRootObject())
2729 mEFrac_Barrel->Fill((*
caloJets)[ijet].emEnergyFraction());
2731 mHFrac_EndCap = map_of_MEs[
DirName +
"/" +
"HFrac_EndCap"];
2732 if (mHFrac_EndCap && mHFrac_EndCap->getRootObject())
2733 mHFrac_EndCap->Fill((*
caloJets)[ijet].energyFractionHadronic());
2734 mEFrac_EndCap = map_of_MEs[
DirName +
"/" +
"EFrac_EndCap"];
2735 if (mEFrac_EndCap && mEFrac_EndCap->getRootObject())
2736 mEFrac_EndCap->Fill((*
caloJets)[ijet].emEnergyFraction());
2738 mHFrac_Forward = map_of_MEs[
DirName +
"/" +
"HFrac_Forward"];
2739 if (mHFrac_Forward && mHFrac_Forward->getRootObject())
2740 mHFrac_Forward->Fill((*
caloJets)[ijet].energyFractionHadronic());
2741 mEFrac_Forward = map_of_MEs[
DirName +
"/" +
"EFrac_Forward"];
2742 if (mEFrac_Forward && mEFrac_Forward->getRootObject())
2743 mEFrac_Forward->Fill((*
caloJets)[ijet].emEnergyFraction());
2745 mHadEnergyInHO = map_of_MEs[
DirName +
"/" +
"HadEnergyInHO"];
2746 if (mHadEnergyInHO && mHadEnergyInHO->getRootObject())
2747 mHadEnergyInHO->Fill((*
caloJets)[ijet].hadEnergyInHO());
2748 mHadEnergyInHB = map_of_MEs[
DirName +
"/" +
"HadEnergyInHB"];
2749 if (mHadEnergyInHB && mHadEnergyInHB->getRootObject())
2750 mHadEnergyInHB->Fill((*
caloJets)[ijet].hadEnergyInHB());
2751 mHadEnergyInHF = map_of_MEs[
DirName +
"/" +
"HadEnergyInHF"];
2752 if (mHadEnergyInHF && mHadEnergyInHF->getRootObject())
2753 mHadEnergyInHF->Fill((*
caloJets)[ijet].hadEnergyInHF());
2754 mHadEnergyInHE = map_of_MEs[
DirName +
"/" +
"HadEnergyInHE"];
2755 if (mHadEnergyInHE && mHadEnergyInHE->getRootObject())
2756 mHadEnergyInHE->Fill((*
caloJets)[ijet].hadEnergyInHE());
2757 mEmEnergyInEB = map_of_MEs[
DirName +
"/" +
"EmEnergyInEB"];
2758 if (mEmEnergyInEB && mEmEnergyInEB->getRootObject())
2759 mEmEnergyInEB->Fill((*
caloJets)[ijet].emEnergyInEB());
2760 mEmEnergyInEE = map_of_MEs[
DirName +
"/" +
"EmEnergyInEE"];
2761 if (mEmEnergyInEE && mEmEnergyInEE->getRootObject())
2762 mEmEnergyInEE->Fill((*
caloJets)[ijet].emEnergyInEE());
2763 mEmEnergyInHF = map_of_MEs[
DirName +
"/" +
"EmEnergyInHF"];
2764 if (mEmEnergyInHF && mEmEnergyInHF->getRootObject())
2765 mEmEnergyInHF->Fill((*
caloJets)[ijet].emEnergyInHF());
2768 if (isMiniAODJet_ && (*
patJets)[ijet].isPFJet()) {
2771 if (!(*
patJets)[ijet].hasPFSpecific())
2775 jetpassid = pfjetIDFunctor((*
patJets)[ijet], stringbitset);
2776 if (jetCleaningFlag_) {
2777 Thiscleaned = jetpassid;
2778 JetIDWPU = jetpassid;
2780 if (Thiscleaned && pass_uncorrected) {
2781 mPt_uncor = map_of_MEs[
DirName +
"/" +
"Pt_uncor"];
2782 if (mPt_uncor && mPt_uncor->getRootObject())
2784 mPt_uncor->Fill((*
patJets)[ijet].
pt() * (*
patJets)[ijet].jecFactor(
"Uncorrected"));
2785 mEta_uncor = map_of_MEs[
DirName +
"/" +
"Eta_uncor"];
2786 if (mEta_uncor && mEta_uncor->getRootObject())
2789 mPhi_uncor = map_of_MEs[
DirName +
"/" +
"Phi_uncor"];
2790 if (mPhi_uncor && mPhi_uncor->getRootObject())
2792 mPhi_uncor->Fill((*
patJets)[ijet].phi());
2793 mConstituents_uncor = map_of_MEs[
DirName +
"/" +
"Constituents_uncor"];
2794 if (mConstituents_uncor && mConstituents_uncor->getRootObject())
2795 if (mConstituents_uncor)
2798 if (Thiscleaned && pass_corrected) {
2799 mPt_CaloJet = map_of_MEs[
DirName +
"/" +
"Pt_CaloJet"];
2800 if (mPt_CaloJet && mPt_CaloJet->getRootObject() && (*patJets)[ijet].hasUserFloat(
"caloJetMap:pt"))
2801 mPt_CaloJet->Fill((*
patJets)[ijet].userFloat(
"caloJetMap:pt"));
2802 mEMF_CaloJet = map_of_MEs[
DirName +
"/" +
"EMF_CaloJet"];
2803 if (mEMF_CaloJet && mEMF_CaloJet->getRootObject() &&
2804 (*patJets)[ijet].hasUserFloat(
"caloJetMap:emEnergyFraction"))
2805 mEMF_CaloJet->Fill((*
patJets)[ijet].userFloat(
"caloJetMap:emEnergyFraction"));
2806 if (fabs(correctedJet.
eta()) <= 1.3) {
2807 if (correctedJet.
pt() <= 50.) {
2808 mMVAPUJIDDiscriminant_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_Barrel"];
2809 if (mMVAPUJIDDiscriminant_lowPt_Barrel && mMVAPUJIDDiscriminant_lowPt_Barrel->getRootObject()) {
2810 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2811 mMVAPUJIDDiscriminant_lowPt_Barrel->Fill((*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2814 if (correctedJet.
pt() > 50. && correctedJet.
pt() <= 140.) {
2815 mMVAPUJIDDiscriminant_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_Barrel"];
2816 if (mMVAPUJIDDiscriminant_mediumPt_Barrel && mMVAPUJIDDiscriminant_mediumPt_Barrel->getRootObject()) {
2817 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2818 mMVAPUJIDDiscriminant_mediumPt_Barrel->Fill((*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2821 if (correctedJet.
pt() > 140.) {
2822 mMVAPUJIDDiscriminant_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_Barrel"];
2823 if (mMVAPUJIDDiscriminant_highPt_Barrel && mMVAPUJIDDiscriminant_highPt_Barrel->getRootObject()) {
2824 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2825 mMVAPUJIDDiscriminant_highPt_Barrel->Fill((*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2828 mMass_Barrel = map_of_MEs[
DirName +
"/" +
"JetMass_Barrel"];
2829 if (mMass_Barrel && mMass_Barrel->getRootObject())
2830 mMass_Barrel->Fill((*
patJets)[ijet].mass());
2831 mCHFracVSpT_Barrel = map_of_MEs[
DirName +
"/" +
"CHFracVSpT_Barrel"];
2832 if (mCHFracVSpT_Barrel && mCHFracVSpT_Barrel->getRootObject())
2833 mCHFracVSpT_Barrel->Fill(correctedJet.
pt(), (*patJets)[ijet].chargedHadronEnergyFraction());
2834 mNHFracVSpT_Barrel = map_of_MEs[
DirName +
"/" +
"NHFracVSpT_Barrel"];
2835 if (mNHFracVSpT_Barrel && mNHFracVSpT_Barrel->getRootObject())
2836 mNHFracVSpT_Barrel->Fill(correctedJet.
pt(), (*patJets)[ijet].neutralHadronEnergyFraction());
2837 mPhFracVSpT_Barrel = map_of_MEs[
DirName +
"/" +
"PhFracVSpT_Barrel"];
2838 if (mPhFracVSpT_Barrel && mPhFracVSpT_Barrel->getRootObject())
2839 mPhFracVSpT_Barrel->Fill(correctedJet.
pt(), (*patJets)[ijet].neutralEmEnergyFraction());
2840 }
else if (fabs(correctedJet.
eta()) <= 3) {
2841 if (correctedJet.
pt() <= 50.) {
2842 mMVAPUJIDDiscriminant_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_EndCap"];
2843 if (mMVAPUJIDDiscriminant_lowPt_EndCap && mMVAPUJIDDiscriminant_lowPt_EndCap->getRootObject()) {
2844 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2845 mMVAPUJIDDiscriminant_lowPt_EndCap->Fill((*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2848 if (correctedJet.
pt() > 50. && correctedJet.
pt() <= 140.) {
2849 mMVAPUJIDDiscriminant_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_EndCap"];
2850 if (mMVAPUJIDDiscriminant_mediumPt_EndCap && mMVAPUJIDDiscriminant_mediumPt_EndCap->getRootObject()) {
2851 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2852 mMVAPUJIDDiscriminant_mediumPt_EndCap->Fill((*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2855 if (correctedJet.
pt() > 140.) {
2856 mMVAPUJIDDiscriminant_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_EndCap"];
2857 if (mMVAPUJIDDiscriminant_highPt_EndCap && mMVAPUJIDDiscriminant_highPt_EndCap->getRootObject()) {
2858 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2859 mMVAPUJIDDiscriminant_highPt_EndCap->Fill((*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2862 mMass_EndCap = map_of_MEs[
DirName +
"/" +
"JetMass_EndCap"];
2863 if (mMass_EndCap && mMass_EndCap->getRootObject())
2864 mMass_EndCap->Fill((*
patJets)[ijet].mass());
2865 mCHFracVSpT_EndCap = map_of_MEs[
DirName +
"/" +
"CHFracVSpT_EndCap"];
2866 if (mCHFracVSpT_EndCap && mCHFracVSpT_EndCap->getRootObject())
2867 mCHFracVSpT_EndCap->Fill(correctedJet.
pt(), (*patJets)[ijet].chargedHadronEnergyFraction());
2868 mNHFracVSpT_EndCap = map_of_MEs[
DirName +
"/" +
"NHFracVSpT_EndCap"];
2869 if (mNHFracVSpT_EndCap && mNHFracVSpT_EndCap->getRootObject())
2870 mNHFracVSpT_EndCap->Fill(correctedJet.
pt(), (*patJets)[ijet].neutralHadronEnergyFraction());
2871 mPhFracVSpT_EndCap = map_of_MEs[
DirName +
"/" +
"PhFracVSpT_EndCap"];
2872 if (mPhFracVSpT_EndCap && mPhFracVSpT_EndCap->getRootObject())
2873 mPhFracVSpT_EndCap->Fill(correctedJet.
pt(), (*patJets)[ijet].neutralEmEnergyFraction());
2874 }
else if (fabs(correctedJet.
eta()) <= 5) {
2875 if (correctedJet.
pt() <= 50.) {
2876 mMVAPUJIDDiscriminant_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_Forward"];
2877 if (mMVAPUJIDDiscriminant_lowPt_Forward && mMVAPUJIDDiscriminant_lowPt_Forward->getRootObject()) {
2878 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2879 mMVAPUJIDDiscriminant_lowPt_Forward->Fill((*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2882 if (correctedJet.
pt() > 50. && correctedJet.
pt() <= 140.) {
2883 mMVAPUJIDDiscriminant_mediumPt_Forward =
2884 map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_Forward"];
2885 if (mMVAPUJIDDiscriminant_mediumPt_Forward && mMVAPUJIDDiscriminant_mediumPt_Forward->getRootObject()) {
2886 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2887 mMVAPUJIDDiscriminant_mediumPt_Forward->Fill(
2888 (*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2891 if (correctedJet.
pt() > 140.) {
2892 mMVAPUJIDDiscriminant_highPt_Forward = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_Forward"];
2893 if (mMVAPUJIDDiscriminant_highPt_Forward && mMVAPUJIDDiscriminant_highPt_Forward->getRootObject()) {
2894 if ((*
patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant"))
2895 mMVAPUJIDDiscriminant_highPt_Forward->Fill((*
patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));
2898 mMass_Forward = map_of_MEs[
DirName +
"/" +
"JetMass_Forward"];
2899 if (mMass_Forward && mMass_Forward->getRootObject())
2900 mMass_Forward->Fill((*
patJets)[ijet].mass());
2901 mHFHFracVSpT_Forward = map_of_MEs[
DirName +
"/" +
"HFHFracVSpT_Forward"];
2902 if (mHFHFracVSpT_Forward && mHFHFracVSpT_Forward->getRootObject())
2903 mHFHFracVSpT_Forward->Fill(correctedJet.
pt(), (*patJets)[ijet].HFHadronEnergyFraction());
2904 mHFEFracVSpT_Forward = map_of_MEs[
DirName +
"/" +
"HFEFracVSpT_Forward"];
2905 if (mHFEFracVSpT_Forward && mHFEFracVSpT_Forward->getRootObject())
2906 mHFEFracVSpT_Forward->Fill(correctedJet.
pt(), (*patJets)[ijet].HFEMEnergyFraction());
2914 int puidmvaflag = -10;
2915 int puidcutflag = -10;
2916 puidmva = (*puJetIdMva)[pfjetref];
2917 puidcut = (*puJetId)[pfjetref];
2918 puidmvaflag = (*puJetIdFlagMva)[pfjetref];
2919 puidcutflag = (*puJetIdFlag)[pfjetref];
2920 jetpassid = pfjetIDFunctor((*
pfJets)[ijet]);
2921 if (jetCleaningFlag_) {
2922 Thiscleaned = jetpassid;
2923 JetIDWPU = jetpassid;
2925 if (Thiscleaned && pass_uncorrected) {
2926 mPt_uncor = map_of_MEs[
DirName +
"/" +
"Pt_uncor"];
2927 if (mPt_uncor && mPt_uncor->getRootObject())
2928 mPt_uncor->Fill((*
pfJets)[ijet].pt());
2929 mEta_uncor = map_of_MEs[
DirName +
"/" +
"Eta_uncor"];
2930 if (mEta_uncor && mEta_uncor->getRootObject())
2931 mEta_uncor->Fill((*
pfJets)[ijet].eta());
2932 mPhi_uncor = map_of_MEs[
DirName +
"/" +
"Phi_uncor"];
2933 if (mPhi_uncor && mPhi_uncor->getRootObject())
2934 mPhi_uncor->Fill((*
pfJets)[ijet].phi());
2935 mConstituents_uncor = map_of_MEs[
DirName +
"/" +
"Constituents_uncor"];
2936 if (mConstituents_uncor && mConstituents_uncor->getRootObject())
2937 mConstituents_uncor->Fill((*
pfJets)[ijet].nConstituents());
2939 if (Thiscleaned && pass_corrected) {
2941 mLooseCutPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"LooseCutPUIDPassFractionVSeta"];
2942 if (mLooseCutPUJIDPassFractionVSeta && mLooseCutPUJIDPassFractionVSeta->getRootObject())
2943 mLooseCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 1.);
2944 mLooseCutPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"LooseCutPUIDPassFractionVSpt"];
2945 if (mLooseCutPUJIDPassFractionVSpt && mLooseCutPUJIDPassFractionVSpt->getRootObject())
2946 mLooseCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 1.);
2948 mLooseCutPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"LooseCutPUIDPassFractionVSeta"];
2949 if (mLooseCutPUJIDPassFractionVSeta && mLooseCutPUJIDPassFractionVSeta->getRootObject())
2950 mLooseCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 0.);
2951 mLooseCutPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"LooseCutPUIDPassFractionVSpt"];
2952 if (mLooseCutPUJIDPassFractionVSpt && mLooseCutPUJIDPassFractionVSpt->getRootObject())
2953 mLooseCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 0.);
2956 mMediumCutPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"MediumCutPUIDPassFractionVSeta"];
2957 if (mMediumCutPUJIDPassFractionVSeta && mMediumCutPUJIDPassFractionVSeta->getRootObject())
2958 mMediumCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 1.);
2959 mMediumCutPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"MediumCutPUIDPassFractionVSpt"];
2960 if (mMediumCutPUJIDPassFractionVSpt && mMediumCutPUJIDPassFractionVSpt->getRootObject())
2961 mMediumCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 1.);
2963 mMediumCutPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"MediumCutPUIDPassFractionVSeta"];
2964 if (mMediumCutPUJIDPassFractionVSeta && mMediumCutPUJIDPassFractionVSeta->getRootObject())
2965 mMediumCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 0.);
2966 mMediumCutPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"MediumCutPUIDPassFractionVSpt"];
2967 if (mMediumCutPUJIDPassFractionVSpt && mMediumCutPUJIDPassFractionVSpt->getRootObject())
2968 mMediumCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 0.);
2971 mTightCutPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"TightCutPUIDPassFractionVSeta"];
2972 if (mTightCutPUJIDPassFractionVSeta && mTightCutPUJIDPassFractionVSeta->getRootObject())
2973 mTightCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 1.);
2974 mTightCutPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"TightCutPUIDPassFractionVSpt"];
2975 if (mTightCutPUJIDPassFractionVSpt && mTightCutPUJIDPassFractionVSpt->getRootObject())
2976 mTightCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 1.);
2978 mTightCutPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"TightCutPUIDPassFractionVSeta"];
2979 if (mTightCutPUJIDPassFractionVSeta && mTightCutPUJIDPassFractionVSeta->getRootObject())
2980 mTightCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 0.);
2981 mTightCutPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"TightCutPUIDPassFractionVSpt"];
2982 if (mTightCutPUJIDPassFractionVSpt && mTightCutPUJIDPassFractionVSpt->getRootObject())
2983 mTightCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 0.);
2986 mLooseMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"LooseMVAPUIDPassFractionVSeta"];
2987 if (mLooseMVAPUJIDPassFractionVSeta && mLooseMVAPUJIDPassFractionVSeta->getRootObject())
2988 mLooseMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 1.);
2989 mLooseMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"LooseMVAPUIDPassFractionVSpt"];
2990 if (mLooseMVAPUJIDPassFractionVSpt && mLooseMVAPUJIDPassFractionVSpt->getRootObject())
2991 mLooseMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 1.);
2993 mLooseMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"LooseMVAPUIDPassFractionVSeta"];
2994 if (mLooseMVAPUJIDPassFractionVSeta && mLooseMVAPUJIDPassFractionVSeta->getRootObject())
2995 mLooseMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 0.);
2996 mLooseMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"LooseMVAPUIDPassFractionVSpt"];
2997 if (mLooseMVAPUJIDPassFractionVSpt && mLooseMVAPUJIDPassFractionVSpt->getRootObject())
2998 mLooseMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 0.);
3001 mMediumMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"MediumMVAPUIDPassFractionVSeta"];
3002 if (mMediumMVAPUJIDPassFractionVSeta && mMediumMVAPUJIDPassFractionVSeta->getRootObject())
3003 mMediumMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 1.);
3004 mMediumMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"MediumMVAPUIDPassFractionVSpt"];
3005 if (mMediumMVAPUJIDPassFractionVSpt && mMediumMVAPUJIDPassFractionVSpt->getRootObject())
3006 mMediumMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 1.);
3008 mMediumMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"MediumMVAPUIDPassFractionVSeta"];
3009 if (mMediumMVAPUJIDPassFractionVSeta && mMediumMVAPUJIDPassFractionVSeta->getRootObject())
3010 mMediumMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 0.);
3011 mMediumMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"MediumMVAPUIDPassFractionVSpt"];
3012 if (mMediumMVAPUJIDPassFractionVSpt && mMediumMVAPUJIDPassFractionVSpt->getRootObject())
3013 mMediumMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 0.);
3016 mTightMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"TightMVAPUIDPassFractionVSeta"];
3017 if (mTightMVAPUJIDPassFractionVSeta && mTightMVAPUJIDPassFractionVSeta->getRootObject())
3018 mTightMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 1.);
3019 mTightMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"TightMVAPUIDPassFractionVSpt"];
3020 if (mTightMVAPUJIDPassFractionVSpt && mTightMVAPUJIDPassFractionVSpt->getRootObject())
3021 mTightMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 1.);
3023 mTightMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"TightMVAPUIDPassFractionVSeta"];
3024 if (mTightMVAPUJIDPassFractionVSeta && mTightMVAPUJIDPassFractionVSeta->getRootObject())
3025 mTightMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(), 0.);
3026 mTightMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"TightMVAPUIDPassFractionVSpt"];
3027 if (mTightMVAPUJIDPassFractionVSpt && mTightMVAPUJIDPassFractionVSpt->getRootObject())
3028 mTightMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(), 0.);
3030 if (correctedJet.
pt() <= 50) {
3031 mCHFracVSeta_lowPt = map_of_MEs[
DirName +
"/" +
"CHFracVSeta_lowPt"];
3032 if (mCHFracVSeta_lowPt && mCHFracVSeta_lowPt->getRootObject())
3033 mCHFracVSeta_lowPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].chargedHadronEnergyFraction());
3034 mNHFracVSeta_lowPt = map_of_MEs[
DirName +
"/" +
"NHFracVSeta_lowPt"];
3035 if (mNHFracVSeta_lowPt && mNHFracVSeta_lowPt->getRootObject())
3036 mNHFracVSeta_lowPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].neutralHadronEnergyFraction());
3037 mPhFracVSeta_lowPt = map_of_MEs[
DirName +
"/" +
"PhFracVSeta_lowPt"];
3038 if (mPhFracVSeta_lowPt && mPhFracVSeta_lowPt->getRootObject())
3039 mPhFracVSeta_lowPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].neutralEmEnergyFraction());
3041 if (correctedJet.
pt() > 50. && correctedJet.
pt() <= 140.) {
3042 mCHFracVSeta_mediumPt = map_of_MEs[
DirName +
"/" +
"CHFracVSeta_mediumPt"];
3043 if (mCHFracVSeta_mediumPt && mCHFracVSeta_mediumPt->getRootObject())
3044 mCHFracVSeta_mediumPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].chargedHadronEnergyFraction());
3045 mNHFracVSeta_mediumPt = map_of_MEs[
DirName +
"/" +
"NHFracVSeta_mediumPt"];
3046 if (mNHFracVSeta_mediumPt && mNHFracVSeta_mediumPt->getRootObject())
3047 mNHFracVSeta_mediumPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].neutralHadronEnergyFraction());
3048 mPhFracVSeta_mediumPt = map_of_MEs[
DirName +
"/" +
"PhFracVSeta_mediumPt"];
3049 if (mPhFracVSeta_mediumPt && mPhFracVSeta_mediumPt->getRootObject())
3050 mPhFracVSeta_mediumPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].neutralEmEnergyFraction());
3052 if (correctedJet.
pt() > 140.) {
3053 mCHFracVSeta_highPt = map_of_MEs[
DirName +
"/" +
"CHFracVSeta_highPt"];
3054 if (mCHFracVSeta_highPt && mCHFracVSeta_highPt->getRootObject())
3055 mCHFracVSeta_highPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].chargedHadronEnergyFraction());
3056 mNHFracVSeta_highPt = map_of_MEs[
DirName +
"/" +
"NHFracVSeta_highPt"];
3057 if (mNHFracVSeta_highPt && mNHFracVSeta_highPt->getRootObject())
3058 mNHFracVSeta_highPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].neutralHadronEnergyFraction());
3059 mPhFracVSeta_highPt = map_of_MEs[
DirName +
"/" +
"PhFracVSeta_highPt"];
3060 if (mPhFracVSeta_highPt && mPhFracVSeta_highPt->getRootObject())
3061 mPhFracVSeta_highPt->Fill((*
pfJets)[ijet].eta(), (*pfJets)[ijet].neutralEmEnergyFraction());
3063 if (fabs(correctedJet.
eta()) <= 1.3) {
3065 if (correctedJet.
pt() <= 50.) {
3070 mMass_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"JetMass_lowPt_Barrel"];
3071 if (mMass_lowPt_Barrel && mMass_lowPt_Barrel->getRootObject())
3072 mMass_lowPt_Barrel->Fill((*
pfJets)[ijet].mass());
3073 mMVAPUJIDDiscriminant_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_Barrel"];
3074 if (mMVAPUJIDDiscriminant_lowPt_Barrel && mMVAPUJIDDiscriminant_lowPt_Barrel->getRootObject())
3075 mMVAPUJIDDiscriminant_lowPt_Barrel->Fill(puidmva);
3076 mCutPUJIDDiscriminant_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_lowPt_Barrel"];
3077 if (mCutPUJIDDiscriminant_lowPt_Barrel && mCutPUJIDDiscriminant_lowPt_Barrel->getRootObject())
3078 mCutPUJIDDiscriminant_lowPt_Barrel->Fill(puidcut);
3079 mCHFrac_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"CHFrac_lowPt_Barrel"];
3080 if (mCHFrac_lowPt_Barrel && mCHFrac_lowPt_Barrel->getRootObject())
3081 mCHFrac_lowPt_Barrel->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3082 mNHFrac_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"NHFrac_lowPt_Barrel"];
3083 if (mNHFrac_lowPt_Barrel && mNHFrac_lowPt_Barrel->getRootObject())
3084 mNHFrac_lowPt_Barrel->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3085 mPhFrac_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"PhFrac_lowPt_Barrel"];
3086 if (mPhFrac_lowPt_Barrel && mPhFrac_lowPt_Barrel->getRootObject())
3087 mPhFrac_lowPt_Barrel->Fill((*
pfJets)[ijet].neutralEmEnergyFraction());
3088 mCHEn_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"CHEn_lowPt_Barrel"];
3089 if (mCHEn_lowPt_Barrel && mCHEn_lowPt_Barrel->getRootObject())
3090 mCHEn_lowPt_Barrel->Fill((*
pfJets)[ijet].chargedHadronEnergy());
3091 mNHEn_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"NHEn_lowPt_Barrel"];
3092 if (mNHEn_lowPt_Barrel && mNHEn_lowPt_Barrel->getRootObject())
3093 mNHEn_lowPt_Barrel->Fill((*
pfJets)[ijet].neutralHadronEnergy());
3094 mPhEn_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"PhEn_lowPt_Barrel"];
3095 if (mPhEn_lowPt_Barrel && mPhEn_lowPt_Barrel->getRootObject())
3096 mPhEn_lowPt_Barrel->Fill((*
pfJets)[ijet].neutralEmEnergy());
3097 mElEn_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"ElEn_lowPt_Barrel"];
3098 if (mElEn_lowPt_Barrel && mElEn_lowPt_Barrel->getRootObject())
3099 mElEn_lowPt_Barrel->Fill((*
pfJets)[ijet].chargedEmEnergy());
3100 mMuEn_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"MuEn_lowPt_Barrel"];
3101 if (mMuEn_lowPt_Barrel && mMuEn_lowPt_Barrel->getRootObject())
3102 mMuEn_lowPt_Barrel->Fill((*
pfJets)[ijet].chargedMuEnergy());
3103 mChMultiplicity_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"ChMultiplicity_lowPt_Barrel"];
3104 if (mChMultiplicity_lowPt_Barrel && mChMultiplicity_lowPt_Barrel->getRootObject())
3105 mChMultiplicity_lowPt_Barrel->Fill((*
pfJets)[ijet].chargedMultiplicity());
3106 mNeutMultiplicity_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_lowPt_Barrel"];
3107 if (mNeutMultiplicity_lowPt_Barrel && mNeutMultiplicity_lowPt_Barrel->getRootObject())
3108 mNeutMultiplicity_lowPt_Barrel->Fill((*
pfJets)[ijet].neutralMultiplicity());
3109 mMuMultiplicity_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"MuMultiplicity_lowPt_Barrel"];
3110 if (mMuMultiplicity_lowPt_Barrel && mMuMultiplicity_lowPt_Barrel->getRootObject())
3111 mMuMultiplicity_lowPt_Barrel->Fill((*
pfJets)[ijet].muonMultiplicity());
3113 if (correctedJet.
pt() > 50. && correctedJet.
pt() <= 140.) {
3118 mMass_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"JetMass_mediumPt_Barrel"];
3119 if (mMass_mediumPt_Barrel && mMass_mediumPt_Barrel->getRootObject())
3120 mMass_mediumPt_Barrel->Fill((*
pfJets)[ijet].mass());
3121 mMVAPUJIDDiscriminant_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_Barrel"];
3122 if (mMVAPUJIDDiscriminant_mediumPt_Barrel && mMVAPUJIDDiscriminant_mediumPt_Barrel->getRootObject())
3123 mMVAPUJIDDiscriminant_mediumPt_Barrel->Fill(puidmva);
3124 mCutPUJIDDiscriminant_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_mediumPt_Barrel"];
3125 if (mCutPUJIDDiscriminant_mediumPt_Barrel && mCutPUJIDDiscriminant_mediumPt_Barrel->getRootObject())
3126 mCutPUJIDDiscriminant_mediumPt_Barrel->Fill(puidcut);
3127 mCHFrac_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"CHFrac_mediumPt_Barrel"];
3128 if (mCHFrac_mediumPt_Barrel && mCHFrac_mediumPt_Barrel->getRootObject())
3129 mCHFrac_mediumPt_Barrel->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3130 mNHFrac_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"NHFrac_mediumPt_Barrel"];
3131 if (mNHFrac_mediumPt_Barrel && mNHFrac_mediumPt_Barrel->getRootObject())
3132 mNHFrac_mediumPt_Barrel->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3133 mPhFrac_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"PhFrac_mediumPt_Barrel"];
3134 if (mPhFrac_mediumPt_Barrel && mPhFrac_mediumPt_Barrel->getRootObject())
3135 mPhFrac_mediumPt_Barrel->Fill((*
pfJets)[ijet].neutralEmEnergyFraction());
3136 mCHEn_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"CHEn_mediumPt_Barrel"];
3137 if (mCHEn_mediumPt_Barrel && mCHEn_mediumPt_Barrel->getRootObject())
3138 mCHEn_mediumPt_Barrel->Fill((*
pfJets)[ijet].chargedHadronEnergy());
3139 mNHEn_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"NHEn_mediumPt_Barrel"];
3140 if (mNHEn_mediumPt_Barrel && mNHEn_mediumPt_Barrel->getRootObject())
3141 mNHEn_mediumPt_Barrel->Fill((*
pfJets)[ijet].neutralHadronEnergy());
3142 mPhEn_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"PhEn_mediumPt_Barrel"];
3143 if (mPhEn_mediumPt_Barrel && mPhEn_mediumPt_Barrel->getRootObject())
3144 mPhEn_mediumPt_Barrel->Fill((*
pfJets)[ijet].neutralEmEnergy());
3145 mElEn_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"ElEn_mediumPt_Barrel"];
3146 if (mElEn_mediumPt_Barrel && mElEn_mediumPt_Barrel->getRootObject())
3147 mElEn_mediumPt_Barrel->Fill((*
pfJets)[ijet].chargedEmEnergy());
3148 mMuEn_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"MuEn_mediumPt_Barrel"];
3149 if (mMuEn_mediumPt_Barrel && mMuEn_mediumPt_Barrel->getRootObject())
3150 mMuEn_mediumPt_Barrel->Fill((*
pfJets)[ijet].chargedMuEnergy());
3151 mChMultiplicity_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"ChMultiplicity_mediumPt_Barrel"];
3152 if (mChMultiplicity_mediumPt_Barrel && mChMultiplicity_mediumPt_Barrel->getRootObject())
3153 mChMultiplicity_mediumPt_Barrel->Fill((*
pfJets)[ijet].chargedMultiplicity());
3154 mNeutMultiplicity_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_mediumPt_Barrel"];
3155 if (mNeutMultiplicity_mediumPt_Barrel && mNeutMultiplicity_mediumPt_Barrel->getRootObject())
3156 mNeutMultiplicity_mediumPt_Barrel->Fill((*
pfJets)[ijet].neutralMultiplicity());
3157 mMuMultiplicity_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"MuMultiplicity_mediumPt_Barrel"];
3158 if (mMuMultiplicity_mediumPt_Barrel && mMuMultiplicity_mediumPt_Barrel->getRootObject())
3159 mMuMultiplicity_mediumPt_Barrel->Fill((*
pfJets)[ijet].muonMultiplicity());
3161 if (correctedJet.
pt() > 140.) {
3166 mMass_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"JetMass_highPt_Barrel"];
3167 if (mMass_highPt_Barrel && mMass_highPt_Barrel->getRootObject())
3168 mMass_highPt_Barrel->Fill((*
pfJets)[ijet].mass());
3169 mMVAPUJIDDiscriminant_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_Barrel"];
3170 if (mMVAPUJIDDiscriminant_highPt_Barrel && mMVAPUJIDDiscriminant_highPt_Barrel->getRootObject())
3171 mMVAPUJIDDiscriminant_highPt_Barrel->Fill(puidmva);
3172 mCutPUJIDDiscriminant_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_highPt_Barrel"];
3173 if (mCutPUJIDDiscriminant_highPt_Barrel && mCutPUJIDDiscriminant_highPt_Barrel->getRootObject())
3174 mCutPUJIDDiscriminant_highPt_Barrel->Fill(puidcut);
3175 mCHFrac_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"CHFrac_highPt_Barrel"];
3176 if (mCHFrac_highPt_Barrel && mCHFrac_highPt_Barrel->getRootObject())
3177 mCHFrac_highPt_Barrel->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3178 mNHFrac_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"NHFrac_highPt_Barrel"];
3179 if (mNHFrac_highPt_Barrel && mNHFrac_highPt_Barrel->getRootObject())
3180 mNHFrac_highPt_Barrel->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3181 mPhFrac_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"PhFrac_highPt_Barrel"];
3182 if (mPhFrac_highPt_Barrel && mPhFrac_highPt_Barrel->getRootObject())
3183 mPhFrac_highPt_Barrel->Fill((*
pfJets)[ijet].neutralEmEnergyFraction());
3184 mCHEn_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"CHEn_highPt_Barrel"];
3185 if (mCHEn_highPt_Barrel && mCHEn_highPt_Barrel->getRootObject())
3186 mCHEn_highPt_Barrel->Fill((*
pfJets)[ijet].chargedHadronEnergy());
3187 mNHEn_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"NHEn_highPt_Barrel"];
3188 if (mNHEn_highPt_Barrel && mNHEn_highPt_Barrel->getRootObject())
3189 mNHEn_highPt_Barrel->Fill((*
pfJets)[ijet].neutralHadronEnergy());
3190 mPhEn_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"PhEn_highPt_Barrel"];
3191 if (mPhEn_highPt_Barrel && mPhEn_highPt_Barrel->getRootObject())
3192 mPhEn_highPt_Barrel->Fill((*
pfJets)[ijet].neutralEmEnergy());
3193 mElEn_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"ElEn_highPt_Barrel"];
3194 if (mElEn_highPt_Barrel && mElEn_highPt_Barrel->getRootObject())
3195 mElEn_highPt_Barrel->Fill((*
pfJets)[ijet].chargedEmEnergy());
3196 mMuEn_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"MuEn_highPt_Barrel"];
3197 if (mMuEn_highPt_Barrel && mMuEn_highPt_Barrel->getRootObject())
3198 mMuEn_highPt_Barrel->Fill((*
pfJets)[ijet].chargedMuEnergy());
3199 mChMultiplicity_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"ChMultiplicity_highPt_Barrel"];
3200 if (mChMultiplicity_highPt_Barrel && mChMultiplicity_highPt_Barrel->getRootObject())
3201 mChMultiplicity_highPt_Barrel->Fill((*
pfJets)[ijet].chargedMultiplicity());
3202 mNeutMultiplicity_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_highPt_Barrel"];
3203 if (mNeutMultiplicity_highPt_Barrel && mNeutMultiplicity_highPt_Barrel->getRootObject())
3204 mNeutMultiplicity_highPt_Barrel->Fill((*
pfJets)[ijet].neutralMultiplicity());
3205 mMuMultiplicity_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"MuMultiplicity_highPt_Barrel"];
3206 if (mMuMultiplicity_highPt_Barrel && mMuMultiplicity_highPt_Barrel->getRootObject())
3207 mMuMultiplicity_highPt_Barrel->Fill((*
pfJets)[ijet].muonMultiplicity());
3209 mCHFracVSpT_Barrel = map_of_MEs[
DirName +
"/" +
"CHFracVSpT_Barrel"];
3210 if (mCHFracVSpT_Barrel && mCHFracVSpT_Barrel->getRootObject())
3211 mCHFracVSpT_Barrel->Fill(correctedJet.
pt(), (*pfJets)[ijet].chargedHadronEnergyFraction());
3212 mNHFracVSpT_Barrel = map_of_MEs[
DirName +
"/" +
"NHFracVSpT_Barrel"];
3213 if (mNHFracVSpT_Barrel && mNHFracVSpT_Barrel->getRootObject())
3214 mNHFracVSpT_Barrel->Fill(correctedJet.
pt(), (*pfJets)[ijet].neutralHadronEnergyFraction());
3215 mPhFracVSpT_Barrel = map_of_MEs[
DirName +
"/" +
"PhFracVSpT_Barrel"];
3216 if (mPhFracVSpT_Barrel && mPhFracVSpT_Barrel->getRootObject())
3217 mPhFracVSpT_Barrel->Fill(correctedJet.
pt(), (*pfJets)[ijet].neutralEmEnergyFraction());
3218 }
else if (fabs(correctedJet.
eta()) <= 3) {
3220 if (correctedJet.
pt() <= 50.) {
3225 mMass_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"JetMass_lowPt_EndCap"];
3226 if (mMass_lowPt_EndCap && mMass_lowPt_EndCap->getRootObject())
3227 mMass_lowPt_EndCap->Fill((*
pfJets)[ijet].mass());
3228 mMVAPUJIDDiscriminant_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_EndCap"];
3229 if (mMVAPUJIDDiscriminant_lowPt_EndCap && mMVAPUJIDDiscriminant_lowPt_EndCap->getRootObject())
3230 mMVAPUJIDDiscriminant_lowPt_EndCap->Fill(puidmva);
3231 mCutPUJIDDiscriminant_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_lowPt_EndCap"];
3232 if (mCutPUJIDDiscriminant_lowPt_EndCap && mCutPUJIDDiscriminant_lowPt_EndCap->getRootObject())
3233 mCutPUJIDDiscriminant_lowPt_EndCap->Fill(puidcut);
3234 mCHFrac_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"CHFrac_lowPt_EndCap"];
3235 if (mCHFrac_lowPt_EndCap && mCHFrac_lowPt_EndCap->getRootObject())
3236 mCHFrac_lowPt_EndCap->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3237 mNHFrac_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"NHFrac_lowPt_EndCap"];
3238 if (mNHFrac_lowPt_EndCap && mNHFrac_lowPt_EndCap->getRootObject())
3239 mNHFrac_lowPt_EndCap->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3240 mPhFrac_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"PhFrac_lowPt_EndCap"];
3241 if (mPhFrac_lowPt_EndCap && mPhFrac_lowPt_EndCap->getRootObject())
3242 mPhFrac_lowPt_EndCap->Fill((*
pfJets)[ijet].neutralEmEnergyFraction());
3243 mCHEn_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"CHEn_lowPt_EndCap"];
3244 if (mCHEn_lowPt_EndCap && mCHEn_lowPt_EndCap->getRootObject())
3245 mCHEn_lowPt_EndCap->Fill((*
pfJets)[ijet].chargedHadronEnergy());
3246 mNHEn_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"NHEn_lowPt_EndCap"];
3247 if (mNHEn_lowPt_EndCap && mNHEn_lowPt_EndCap->getRootObject())
3248 mNHEn_lowPt_EndCap->Fill((*
pfJets)[ijet].neutralHadronEnergy());
3249 mPhEn_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"PhEn_lowPt_EndCap"];
3250 if (mPhEn_lowPt_EndCap && mPhEn_lowPt_EndCap->getRootObject())
3251 mPhEn_lowPt_EndCap->Fill((*
pfJets)[ijet].neutralEmEnergy());
3252 mElEn_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"ElEn_lowPt_EndCap"];
3253 if (mElEn_lowPt_EndCap && mElEn_lowPt_EndCap->getRootObject())
3254 mElEn_lowPt_EndCap->Fill((*
pfJets)[ijet].chargedEmEnergy());
3255 mMuEn_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"MuEn_lowPt_EndCap"];
3256 if (mMuEn_lowPt_EndCap && mMuEn_lowPt_EndCap->getRootObject())
3257 mMuEn_lowPt_EndCap->Fill((*
pfJets)[ijet].chargedMuEnergy());
3258 mChMultiplicity_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"ChMultiplicity_lowPt_EndCap"];
3259 if (mChMultiplicity_lowPt_EndCap && mChMultiplicity_lowPt_EndCap->getRootObject())
3260 mChMultiplicity_lowPt_EndCap->Fill((*
pfJets)[ijet].chargedMultiplicity());
3261 mNeutMultiplicity_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_lowPt_EndCap"];
3262 if (mNeutMultiplicity_lowPt_EndCap && mNeutMultiplicity_lowPt_EndCap->getRootObject())
3263 mNeutMultiplicity_lowPt_EndCap->Fill((*
pfJets)[ijet].neutralMultiplicity());
3264 mMuMultiplicity_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"MuMultiplicity_lowPt_EndCap"];
3265 if (mMuMultiplicity_lowPt_EndCap && mMuMultiplicity_lowPt_EndCap->getRootObject())
3266 mMuMultiplicity_lowPt_EndCap->Fill((*
pfJets)[ijet].muonMultiplicity());
3268 if (correctedJet.
pt() > 50. && correctedJet.
pt() <= 140.) {
3273 mMass_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"JetMass_mediumPt_EndCap"];
3274 if (mMass_mediumPt_EndCap && mMass_mediumPt_EndCap->getRootObject())
3275 mMass_mediumPt_EndCap->Fill((*
pfJets)[ijet].mass());
3276 mMVAPUJIDDiscriminant_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_EndCap"];
3277 if (mMVAPUJIDDiscriminant_mediumPt_EndCap && mMVAPUJIDDiscriminant_mediumPt_EndCap->getRootObject())
3278 mMVAPUJIDDiscriminant_mediumPt_EndCap->Fill(puidmva);
3279 mCutPUJIDDiscriminant_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_mediumPt_EndCap"];
3280 if (mCutPUJIDDiscriminant_mediumPt_EndCap && mCutPUJIDDiscriminant_mediumPt_EndCap->getRootObject())
3281 mCutPUJIDDiscriminant_mediumPt_EndCap->Fill(puidcut);
3282 mCHFrac_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"CHFrac_mediumPt_EndCap"];
3283 if (mCHFrac_mediumPt_EndCap && mCHFrac_mediumPt_EndCap->getRootObject())
3284 mCHFrac_mediumPt_EndCap->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3285 mNHFrac_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"NHFrac_mediumPt_EndCap"];
3286 if (mNHFrac_mediumPt_EndCap && mNHFrac_mediumPt_EndCap->getRootObject())
3287 mNHFrac_mediumPt_EndCap->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3288 mPhFrac_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"PhFrac_mediumPt_EndCap"];
3289 if (mPhFrac_mediumPt_EndCap && mPhFrac_mediumPt_EndCap->getRootObject())
3290 mPhFrac_mediumPt_EndCap->Fill((*
pfJets)[ijet].neutralEmEnergyFraction());
3291 mCHEn_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"CHEn_mediumPt_EndCap"];
3292 if (mCHEn_mediumPt_EndCap && mCHEn_mediumPt_EndCap->getRootObject())
3293 mCHEn_mediumPt_EndCap->Fill((*
pfJets)[ijet].chargedHadronEnergy());
3294 mNHEn_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"NHEn_mediumPt_EndCap"];
3295 if (mNHEn_mediumPt_EndCap && mNHEn_mediumPt_EndCap->getRootObject())
3296 mNHEn_mediumPt_EndCap->Fill((*
pfJets)[ijet].neutralHadronEnergy());
3297 mPhEn_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"PhEn_mediumPt_EndCap"];
3298 if (mPhEn_mediumPt_EndCap && mPhEn_mediumPt_EndCap->getRootObject())
3299 mPhEn_mediumPt_EndCap->Fill((*
pfJets)[ijet].neutralEmEnergy());
3300 mElEn_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"ElEn_mediumPt_EndCap"];
3301 if (mElEn_mediumPt_EndCap && mElEn_mediumPt_EndCap->getRootObject())
3302 mElEn_mediumPt_EndCap->Fill((*
pfJets)[ijet].chargedEmEnergy());
3303 mMuEn_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"MuEn_mediumPt_EndCap"];
3304 if (mMuEn_mediumPt_EndCap && mMuEn_mediumPt_EndCap->getRootObject())
3305 mMuEn_mediumPt_EndCap->Fill((*
pfJets)[ijet].chargedMuEnergy());
3306 mChMultiplicity_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"ChMultiplicity_mediumPt_EndCap"];
3307 if (mChMultiplicity_mediumPt_EndCap && mChMultiplicity_mediumPt_EndCap->getRootObject())
3308 mChMultiplicity_mediumPt_EndCap->Fill((*
pfJets)[ijet].chargedMultiplicity());
3309 mNeutMultiplicity_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_mediumPt_EndCap"];
3310 if (mNeutMultiplicity_mediumPt_EndCap && mNeutMultiplicity_mediumPt_EndCap->getRootObject())
3311 mNeutMultiplicity_mediumPt_EndCap->Fill((*
pfJets)[ijet].neutralMultiplicity());
3312 mMuMultiplicity_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"MuMultiplicity_mediumPt_EndCap"];
3313 if (mMuMultiplicity_mediumPt_EndCap && mMuMultiplicity_mediumPt_EndCap->getRootObject())
3314 mMuMultiplicity_mediumPt_EndCap->Fill((*
pfJets)[ijet].muonMultiplicity());
3316 if (correctedJet.
pt() > 140.) {
3321 mMass_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"JetMass_highPt_EndCap"];
3322 if (mMass_highPt_EndCap && mMass_highPt_EndCap->getRootObject())
3323 mMass_highPt_EndCap->Fill((*
pfJets)[ijet].mass());
3324 mMVAPUJIDDiscriminant_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_EndCap"];
3325 if (mMVAPUJIDDiscriminant_highPt_EndCap && mMVAPUJIDDiscriminant_highPt_EndCap->getRootObject())
3326 mMVAPUJIDDiscriminant_highPt_EndCap->Fill(puidmva);
3327 mCutPUJIDDiscriminant_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_highPt_EndCap"];
3328 if (mCutPUJIDDiscriminant_highPt_EndCap && mCutPUJIDDiscriminant_highPt_EndCap->getRootObject())
3329 mCutPUJIDDiscriminant_highPt_EndCap->Fill(puidcut);
3330 mCHFrac_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"CHFrac_highPt_EndCap"];
3331 if (mCHFrac_highPt_EndCap && mCHFrac_highPt_EndCap->getRootObject())
3332 mCHFrac_highPt_EndCap->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3333 mNHFrac_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"NHFrac_highPt_EndCap"];
3334 if (mNHFrac_highPt_EndCap && mNHFrac_highPt_EndCap->getRootObject())
3335 mNHFrac_highPt_EndCap->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3336 mPhFrac_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"PhFrac_highPt_EndCap"];
3337 if (mPhFrac_highPt_EndCap && mPhFrac_highPt_EndCap->getRootObject())
3338 mPhFrac_highPt_EndCap->Fill((*
pfJets)[ijet].neutralEmEnergyFraction());
3339 mCHEn_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"CHEn_highPt_EndCap"];
3340 if (mCHEn_highPt_EndCap && mCHEn_highPt_EndCap->getRootObject())
3341 mCHEn_highPt_EndCap->Fill((*
pfJets)[ijet].chargedHadronEnergy());
3342 mNHEn_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"NHEn_highPt_EndCap"];
3343 if (mNHEn_highPt_EndCap && mNHEn_highPt_EndCap->getRootObject())
3344 mNHEn_highPt_EndCap->Fill((*
pfJets)[ijet].neutralHadronEnergy());
3345 mPhEn_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"PhEn_highPt_EndCap"];
3346 if (mPhEn_highPt_EndCap && mPhEn_highPt_EndCap->getRootObject())
3347 mPhEn_highPt_EndCap->Fill((*
pfJets)[ijet].neutralEmEnergy());
3348 mElEn_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"ElEn_highPt_EndCap"];
3349 if (mElEn_highPt_EndCap && mElEn_highPt_EndCap->getRootObject())
3350 mElEn_highPt_EndCap->Fill((*
pfJets)[ijet].chargedEmEnergy());
3351 mMuEn_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"MuEn_highPt_EndCap"];
3352 if (mMuEn_highPt_EndCap && mMuEn_highPt_EndCap->getRootObject())
3353 mMuEn_highPt_EndCap->Fill((*
pfJets)[ijet].chargedMuEnergy());
3354 mChMultiplicity_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"ChMultiplicity_highPt_EndCap"];
3355 if (mChMultiplicity_highPt_EndCap && mChMultiplicity_highPt_EndCap->getRootObject())
3356 mChMultiplicity_highPt_EndCap->Fill((*
pfJets)[ijet].chargedMultiplicity());
3357 mNeutMultiplicity_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_highPt_EndCap"];
3358 if (mNeutMultiplicity_highPt_EndCap && mNeutMultiplicity_highPt_EndCap->getRootObject())
3359 mNeutMultiplicity_highPt_EndCap->Fill((*
pfJets)[ijet].neutralMultiplicity());
3360 mMuMultiplicity_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"MuMultiplicity_highPt_EndCap"];
3361 if (mMuMultiplicity_highPt_EndCap && mMuMultiplicity_highPt_EndCap->getRootObject())
3362 mMuMultiplicity_highPt_EndCap->Fill((*
pfJets)[ijet].muonMultiplicity());
3364 mCHFracVSpT_EndCap = map_of_MEs[
DirName +
"/" +
"CHFracVSpT_EndCap"];
3365 if (mCHFracVSpT_EndCap && mCHFracVSpT_EndCap->getRootObject())
3366 mCHFracVSpT_EndCap->Fill(correctedJet.
pt(), (*pfJets)[ijet].chargedHadronEnergyFraction());
3367 mNHFracVSpT_EndCap = map_of_MEs[
DirName +
"/" +
"NHFracVSpT_EndCap"];
3368 if (mNHFracVSpT_EndCap && mNHFracVSpT_EndCap->getRootObject())
3369 mNHFracVSpT_EndCap->Fill(correctedJet.
pt(), (*pfJets)[ijet].neutralHadronEnergyFraction());
3370 mPhFracVSpT_EndCap = map_of_MEs[
DirName +
"/" +
"PhFracVSpT_EndCap"];
3371 if (mPhFracVSpT_EndCap && mPhFracVSpT_EndCap->getRootObject())
3372 mPhFracVSpT_EndCap->Fill(correctedJet.
pt(), (*pfJets)[ijet].neutralEmEnergyFraction());
3374 mHFHFracVSpT_Forward = map_of_MEs[
DirName +
"/" +
"HFHFracVSpT_Forward"];
3375 if (mHFHFracVSpT_Forward && mHFHFracVSpT_Forward->getRootObject())
3376 mHFHFracVSpT_Forward->Fill(correctedJet.
pt(), (*pfJets)[ijet].HFHadronEnergyFraction());
3377 mHFEFracVSpT_Forward = map_of_MEs[
DirName +
"/" +
"HFEFracVSpT_Forward"];
3378 if (mHFEFracVSpT_Forward && mHFEFracVSpT_Forward->getRootObject())
3379 mHFEFracVSpT_Forward->Fill(correctedJet.
pt(), (*pfJets)[ijet].HFEMEnergyFraction());
3381 if (correctedJet.
pt() <= 50.) {
3386 mMass_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"JetMass_lowPt_Forward"];
3387 if (mMass_lowPt_Forward && mMass_lowPt_Forward->getRootObject())
3388 mMass_lowPt_Forward->Fill((*
pfJets)[ijet].mass());
3389 mMVAPUJIDDiscriminant_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_lowPt_Forward"];
3390 if (mMVAPUJIDDiscriminant_lowPt_Forward && mMVAPUJIDDiscriminant_lowPt_Forward->getRootObject())
3391 mMVAPUJIDDiscriminant_lowPt_Forward->Fill(puidmva);
3392 mCutPUJIDDiscriminant_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_lowPt_Forward"];
3393 if (mCutPUJIDDiscriminant_lowPt_Forward && mCutPUJIDDiscriminant_lowPt_Forward->getRootObject())
3394 mCutPUJIDDiscriminant_lowPt_Forward->Fill(puidcut);
3395 mHFEFrac_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"HFEFrac_lowPt_Forward"];
3396 if (mHFEFrac_lowPt_Forward && mHFEFrac_lowPt_Forward->getRootObject())
3397 mHFEFrac_lowPt_Forward->Fill((*
pfJets)[ijet].HFEMEnergyFraction());
3398 mHFHFrac_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"HFHFrac_lowPt_Forward"];
3399 if (mHFHFrac_lowPt_Forward && mHFHFrac_lowPt_Forward->getRootObject())
3400 mHFHFrac_lowPt_Forward->Fill((*
pfJets)[ijet].HFHadronEnergyFraction());
3401 mHFEEn_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"HFEEn_lowPt_Forward"];
3402 if (mHFEEn_lowPt_Forward && mHFEEn_lowPt_Forward->getRootObject())
3403 mHFEEn_lowPt_Forward->Fill((*
pfJets)[ijet].HFEMEnergy());
3404 mHFHEn_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"HFHEn_lowPt_Forward"];
3405 if (mHFHEn_lowPt_Forward && mHFHEn_lowPt_Forward->getRootObject())
3406 mHFHEn_lowPt_Forward->Fill((*
pfJets)[ijet].HFHadronEnergy());
3407 mNeutMultiplicity_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_lowPt_Forward"];
3408 if (mNeutMultiplicity_lowPt_Forward && mNeutMultiplicity_lowPt_Forward->getRootObject())
3409 mNeutMultiplicity_lowPt_Forward->Fill((*
pfJets)[ijet].neutralMultiplicity());
3411 if (correctedJet.
pt() > 50. && correctedJet.
pt() <= 140.) {
3416 mMass_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"JetMass_mediumPt_Forward"];
3417 if (mMass_mediumPt_Forward && mMass_mediumPt_Forward->getRootObject())
3418 mMass_mediumPt_Forward->Fill((*
pfJets)[ijet].mass());
3419 mMVAPUJIDDiscriminant_mediumPt_Forward =
3420 map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_mediumPt_Forward"];
3421 if (mMVAPUJIDDiscriminant_mediumPt_Forward && mMVAPUJIDDiscriminant_mediumPt_Forward->getRootObject())
3422 mMVAPUJIDDiscriminant_mediumPt_Forward->Fill(puidmva);
3423 mCutPUJIDDiscriminant_mediumPt_Forward =
3424 map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_mediumPt_Forward"];
3425 if (mCutPUJIDDiscriminant_mediumPt_Forward && mCutPUJIDDiscriminant_mediumPt_Forward->getRootObject())
3426 mCutPUJIDDiscriminant_mediumPt_Forward->Fill(puidcut);
3427 mHFEFrac_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"HFEFrac_mediumPt_Forward"];
3428 if (mHFEFrac_mediumPt_Forward && mHFEFrac_mediumPt_Forward->getRootObject())
3429 mHFEFrac_mediumPt_Forward->Fill((*
pfJets)[ijet].HFEMEnergyFraction());
3430 mHFHFrac_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"HFHFrac_mediumPt_Forward"];
3431 if (mHFHFrac_mediumPt_Forward && mHFHFrac_mediumPt_Forward->getRootObject())
3432 mHFHFrac_mediumPt_Forward->Fill((*
pfJets)[ijet].HFHadronEnergyFraction());
3433 mHFEEn_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"HFEEn_mediumPt_Forward"];
3434 if (mHFEEn_mediumPt_Forward && mHFEEn_mediumPt_Forward->getRootObject())
3435 mHFEEn_mediumPt_Forward->Fill((*
pfJets)[ijet].HFEMEnergy());
3436 mHFHEn_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"HFHEn_mediumPt_Forward"];
3437 if (mHFHEn_mediumPt_Forward && mHFHEn_mediumPt_Forward->getRootObject())
3438 mHFHEn_mediumPt_Forward->Fill((*
pfJets)[ijet].HFHadronEnergy());
3439 mNeutMultiplicity_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_mediumPt_Forward"];
3440 if (mNeutMultiplicity_mediumPt_Forward && mNeutMultiplicity_mediumPt_Forward->getRootObject())
3441 mNeutMultiplicity_mediumPt_Forward->Fill((*
pfJets)[ijet].neutralMultiplicity());
3443 if (correctedJet.
pt() > 140.) {
3448 mMass_highPt_Forward = map_of_MEs[
DirName +
"/" +
"JetMass_highPt_Forward"];
3449 if (mMass_highPt_Forward && mMass_highPt_Forward->getRootObject())
3450 mMass_highPt_Forward->Fill((*
pfJets)[ijet].mass());
3451 mMVAPUJIDDiscriminant_highPt_Forward = map_of_MEs[
DirName +
"/" +
"MVAPUJIDDiscriminant_highPt_Forward"];
3452 if (mMVAPUJIDDiscriminant_highPt_Forward && mMVAPUJIDDiscriminant_highPt_Forward->getRootObject())
3453 mMVAPUJIDDiscriminant_highPt_Forward->Fill(puidmva);
3454 mCutPUJIDDiscriminant_highPt_Forward = map_of_MEs[
DirName +
"/" +
"CutPUJIDDiscriminant_highPt_Forward"];
3455 if (mCutPUJIDDiscriminant_highPt_Forward && mCutPUJIDDiscriminant_highPt_Forward->getRootObject())
3456 mCutPUJIDDiscriminant_highPt_Forward->Fill(puidcut);
3457 mHFEFrac_highPt_Forward = map_of_MEs[
DirName +
"/" +
"HFEFrac_highPt_Forward"];
3458 if (mHFEFrac_highPt_Forward && mHFEFrac_highPt_Forward->getRootObject())
3459 mHFEFrac_highPt_Forward->Fill((*
pfJets)[ijet].HFEMEnergyFraction());
3460 mHFHFrac_highPt_Forward = map_of_MEs[
DirName +
"/" +
"HFHFrac_highPt_Forward"];
3461 if (mHFHFrac_highPt_Forward && mHFHFrac_highPt_Forward->getRootObject())
3462 mHFHFrac_highPt_Forward->Fill((*
pfJets)[ijet].HFHadronEnergyFraction());
3463 mHFEEn_highPt_Forward = map_of_MEs[
DirName +
"/" +
"HFEEn_highPt_Forward"];
3464 if (mHFEEn_highPt_Forward && mHFEEn_highPt_Forward->getRootObject())
3465 mHFEEn_highPt_Forward->Fill((*
pfJets)[ijet].HFEMEnergy());
3466 mHFHEn_highPt_Forward = map_of_MEs[
DirName +
"/" +
"HFHEn_highPt_Forward"];
3467 if (mHFHEn_highPt_Forward && mHFHEn_highPt_Forward->getRootObject())
3468 mHFHEn_highPt_Forward->Fill((*
pfJets)[ijet].HFHadronEnergy());
3469 mNeutMultiplicity_highPt_Forward = map_of_MEs[
DirName +
"/" +
"NeutMultiplicity_highPt_Forward"];
3470 if (mNeutMultiplicity_highPt_Forward && mNeutMultiplicity_highPt_Forward->getRootObject())
3471 mNeutMultiplicity_highPt_Forward->Fill((*
pfJets)[ijet].neutralMultiplicity());
3503 if (techTriggerResultBx0 && techTriggerResultBxF) {
3504 meEta_BXm1Filled = map_of_MEs[
DirName +
"/" +
"Eta_BXm1Filled"];
3505 if (meEta_BXm1Filled && meEta_BXm1Filled->getRootObject())
3506 meEta_BXm1Filled->Fill((*
pfJets)[ijet].eta());
3507 if (fabs(correctedJet.
eta()) <= 1.3) {
3508 mePhFracBarrel_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PhFracBarrel_BXm1Filled"];
3509 if (mePhFracBarrel_BXm1Filled && mePhFracBarrel_BXm1Filled->getRootObject())
3510 mePhFracBarrel_BXm1Filled->Fill((*
pfJets)[ijet].photonEnergyFraction());
3511 meNHFracBarrel_BXm1Filled = map_of_MEs[
DirName +
"/" +
"NHFracBarrel_BXm1Filled"];
3512 if (meNHFracBarrel_BXm1Filled && meNHFracBarrel_BXm1Filled->getRootObject())
3513 meNHFracBarrel_BXm1Filled->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3514 meCHFracBarrel_BXm1Filled = map_of_MEs[
DirName +
"/" +
"CHFracBarrel_BXm1Filled"];
3515 if (meCHFracBarrel_BXm1Filled && meCHFracBarrel_BXm1Filled->getRootObject())
3516 meCHFracBarrel_BXm1Filled->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3517 mePtBarrel_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PtBarrel_BXm1Filled"];
3518 if (mePtBarrel_BXm1Filled && mePtBarrel_BXm1Filled->getRootObject())
3519 mePtBarrel_BXm1Filled->Fill((*
pfJets)[ijet].pt());
3520 }
else if (correctedJet.
eta() > -3.0 && correctedJet.
eta() <= -1.3) {
3521 mePhFracEndCapMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PhFracEndCapMinus_BXm1Filled"];
3522 if (mePhFracEndCapMinus_BXm1Filled && mePhFracEndCapMinus_BXm1Filled->getRootObject())
3523 mePhFracEndCapMinus_BXm1Filled->Fill((*
pfJets)[ijet].photonEnergyFraction());
3524 meNHFracEndCapMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"NHFracEndCapMinus_BXm1Filled"];
3525 if (meNHFracEndCapMinus_BXm1Filled && meNHFracEndCapMinus_BXm1Filled->getRootObject())
3526 meNHFracEndCapMinus_BXm1Filled->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3527 meCHFracEndCapMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"CHFracEndCapMinus_BXm1Filled"];
3528 if (meCHFracEndCapMinus_BXm1Filled && meCHFracEndCapMinus_BXm1Filled->getRootObject())
3529 meCHFracEndCapMinus_BXm1Filled->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3530 mePtEndCapMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PtEndCapMinus_BXm1Filled"];
3531 if (mePtEndCapMinus_BXm1Filled && mePtEndCapMinus_BXm1Filled->getRootObject())
3532 mePtEndCapMinus_BXm1Filled->Fill((*
pfJets)[ijet].pt());
3533 }
else if (correctedJet.
eta() >= 1.3 && correctedJet.
eta() < 3.0) {
3534 mePhFracEndCapPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PhFracEndCapPlus_BXm1Filled"];
3535 if (mePhFracEndCapPlus_BXm1Filled && mePhFracEndCapPlus_BXm1Filled->getRootObject())
3536 mePhFracEndCapPlus_BXm1Filled->Fill((*
pfJets)[ijet].photonEnergyFraction());
3537 meNHFracEndCapPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"NHFracEndCapPlus_BXm1Filled"];
3538 if (meNHFracEndCapPlus_BXm1Filled && meNHFracEndCapPlus_BXm1Filled->getRootObject())
3539 meNHFracEndCapPlus_BXm1Filled->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3540 meCHFracEndCapPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"CHFracEndCapPlus_BXm1Filled"];
3541 if (meCHFracEndCapPlus_BXm1Filled && meCHFracEndCapPlus_BXm1Filled->getRootObject())
3542 meCHFracEndCapPlus_BXm1Filled->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3543 mePtEndCapPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PtEndCapPlus_BXm1Filled"];
3544 if (mePtEndCapPlus_BXm1Filled && mePtEndCapPlus_BXm1Filled->getRootObject())
3545 mePtEndCapPlus_BXm1Filled->Fill((*
pfJets)[ijet].pt());
3546 }
else if (correctedJet.
eta() > -5.0 && correctedJet.
eta() <= -3.0) {
3547 mePtForwardMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PtForwardMinus_BXm1Filled"];
3548 if (mePtForwardMinus_BXm1Filled && mePtForwardMinus_BXm1Filled->getRootObject())
3549 mePtForwardMinus_BXm1Filled->Fill((*
pfJets)[ijet].pt());
3550 meHFHFracMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"HFHFracMinus_BXm1Filled"];
3551 if (meHFHFracMinus_BXm1Filled && meHFHFracMinus_BXm1Filled->getRootObject())
3552 meHFHFracMinus_BXm1Filled->Fill((*
pfJets)[ijet].HFHadronEnergyFraction());
3553 meHFEMFracMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"HFEMFracMinus_BXm1Filled"];
3554 if (meHFEMFracMinus_BXm1Filled && meHFEMFracMinus_BXm1Filled->getRootObject())
3555 meHFEMFracMinus_BXm1Filled->Fill((*
pfJets)[ijet].HFEMEnergyFraction());
3556 }
else if (correctedJet.
eta() >= 3.0 && correctedJet.
eta() < 5.0) {
3557 mePtForwardPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PtForwardPlus_BXm1Filled"];
3558 if (mePtForwardPlus_BXm1Filled && mePtForwardPlus_BXm1Filled->getRootObject())
3559 mePtForwardPlus_BXm1Filled->Fill((*
pfJets)[ijet].pt());
3560 meHFHFracPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"HFHFracPlus_BXm1Filled"];
3561 if (meHFHFracPlus_BXm1Filled && meHFHFracPlus_BXm1Filled->getRootObject())
3562 meHFHFracPlus_BXm1Filled->Fill((*
pfJets)[ijet].HFHadronEnergyFraction());
3563 meHFEMFracPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"HFEMFracPlus_BXm1Filled"];
3564 if (meHFEMFracPlus_BXm1Filled && meHFEMFracPlus_BXm1Filled->getRootObject())
3565 meHFEMFracPlus_BXm1Filled->Fill((*
pfJets)[ijet].HFEMEnergyFraction());
3595 if (techTriggerResultBx0 && !techTriggerResultBxF) {
3596 meEta_BXm1Empty = map_of_MEs[
DirName +
"/" +
"Eta_BXm1Empty"];
3597 if (meEta_BXm1Empty && meEta_BXm1Empty->getRootObject())
3598 meEta_BXm1Empty->Fill((*
pfJets)[ijet].eta());
3599 if (fabs(correctedJet.
eta()) <= 1.3) {
3600 mePhFracBarrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PhFracBarrel_BXm1Empty"];
3601 if (mePhFracBarrel_BXm1Empty && mePhFracBarrel_BXm1Empty->getRootObject())
3602 mePhFracBarrel_BXm1Empty->Fill((*
pfJets)[ijet].photonEnergyFraction());
3603 meNHFracBarrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"NHFracBarrel_BXm1Empty"];
3604 if (meNHFracBarrel_BXm1Empty && meNHFracBarrel_BXm1Empty->getRootObject())
3605 meNHFracBarrel_BXm1Empty->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3606 meCHFracBarrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"CHFracBarrel_BXm1Empty"];
3607 if (meCHFracBarrel_BXm1Empty && meCHFracBarrel_BXm1Empty->getRootObject())
3608 meCHFracBarrel_BXm1Empty->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3609 mePtBarrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PtBarrel_BXm1Empty"];
3610 if (mePtBarrel_BXm1Empty && mePtBarrel_BXm1Empty->getRootObject())
3611 mePtBarrel_BXm1Empty->Fill((*
pfJets)[ijet].pt());
3612 }
else if (correctedJet.
eta() > -3.0 && correctedJet.
eta() <= -1.3) {
3613 mePhFracEndCapMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PhFracEndCapMinus_BXm1Empty"];
3614 if (mePhFracEndCapMinus_BXm1Empty && mePhFracEndCapMinus_BXm1Empty->getRootObject())
3615 mePhFracEndCapMinus_BXm1Empty->Fill((*
pfJets)[ijet].photonEnergyFraction());
3616 meNHFracEndCapMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"NHFracEndCapMinus_BXm1Empty"];
3617 if (meNHFracEndCapMinus_BXm1Empty && meNHFracEndCapMinus_BXm1Empty->getRootObject())
3618 meNHFracEndCapMinus_BXm1Empty->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3619 meCHFracEndCapMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"CHFracEndCapMinus_BXm1Empty"];
3620 if (meCHFracEndCapMinus_BXm1Empty && meCHFracEndCapMinus_BXm1Empty->getRootObject())
3621 meCHFracEndCapMinus_BXm1Empty->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3622 mePtEndCapMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PtEndCapMinus_BXm1Empty"];
3623 if (mePtEndCapMinus_BXm1Empty && mePtEndCapMinus_BXm1Empty->getRootObject())
3624 mePtEndCapMinus_BXm1Empty->Fill((*
pfJets)[ijet].pt());
3625 }
else if (correctedJet.
eta() >= 1.3 && correctedJet.
eta() < 3.0) {
3626 mePhFracEndCapPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PhFracEndCapPlus_BXm1Empty"];
3627 if (mePhFracEndCapPlus_BXm1Empty && mePhFracEndCapPlus_BXm1Empty->getRootObject())
3628 mePhFracEndCapPlus_BXm1Empty->Fill((*
pfJets)[ijet].photonEnergyFraction());
3629 meNHFracEndCapPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"NHFracEndCapPlus_BXm1Empty"];
3630 if (meNHFracEndCapPlus_BXm1Empty && meNHFracEndCapPlus_BXm1Empty->getRootObject())
3631 meNHFracEndCapPlus_BXm1Empty->Fill((*
pfJets)[ijet].neutralHadronEnergyFraction());
3632 meCHFracEndCapPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"CHFracEndCapPlus_BXm1Empty"];
3633 if (meCHFracEndCapPlus_BXm1Empty && meCHFracEndCapPlus_BXm1Empty->getRootObject())
3634 meCHFracEndCapPlus_BXm1Empty->Fill((*
pfJets)[ijet].chargedHadronEnergyFraction());
3635 mePtEndCapPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PtEndCapPlus_BXm1Empty"];
3636 if (mePtEndCapPlus_BXm1Empty && mePtEndCapPlus_BXm1Empty->getRootObject())
3637 mePtEndCapPlus_BXm1Empty->Fill((*
pfJets)[ijet].pt());
3638 }
else if (correctedJet.
eta() > -5.0 && correctedJet.
eta() <= -3.0) {
3639 mePtForwardMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PtForwardMinus_BXm1Empty"];
3640 if (mePtForwardMinus_BXm1Empty && mePtForwardMinus_BXm1Empty->getRootObject())
3641 mePtForwardMinus_BXm1Empty->Fill((*
pfJets)[ijet].pt());
3642 meHFHFracMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"HFHFracMinus_BXm1Empty"];
3643 if (meHFHFracMinus_BXm1Empty && meHFHFracMinus_BXm1Empty->getRootObject())
3644 meHFHFracMinus_BXm1Empty->Fill((*
pfJets)[ijet].HFHadronEnergyFraction());
3645 meHFEMFracMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"HFEMFracMinus_BXm1Empty"];
3646 if (meHFEMFracMinus_BXm1Empty && meHFEMFracMinus_BXm1Empty->getRootObject())
3647 meHFEMFracMinus_BXm1Empty->Fill((*
pfJets)[ijet].HFEMEnergyFraction());
3648 }
else if (correctedJet.
eta() >= 3.0 && correctedJet.
eta() < 5.0) {
3649 mePtForwardPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PtForwardPlus_BXm1Empty"];
3650 if (mePtForwardPlus_BXm1Empty && mePtForwardPlus_BXm1Empty->getRootObject())
3651 mePtForwardPlus_BXm1Empty->Fill((*
pfJets)[ijet].pt());
3652 meHFHFracPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"HFHFracPlus_BXm1Empty"];
3653 if (meHFHFracPlus_BXm1Empty && meHFHFracPlus_BXm1Empty->getRootObject())
3654 meHFHFracPlus_BXm1Empty->Fill((*
pfJets)[ijet].HFHadronEnergyFraction());
3655 meHFEMFracPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"HFEMFracPlus_BXm1Empty"];
3656 if (meHFEMFracPlus_BXm1Empty && meHFEMFracPlus_BXm1Empty->getRootObject())
3657 meHFEMFracPlus_BXm1Empty->Fill((*
pfJets)[ijet].HFEMEnergyFraction());
3660 mChargedHadronEnergy = map_of_MEs[
DirName +
"/" +
"ChargedHadronEnergy"];
3661 if (mChargedHadronEnergy && mChargedHadronEnergy->getRootObject())
3662 mChargedHadronEnergy->Fill((*
pfJets)[ijet].chargedHadronEnergy());
3663 mNeutralHadronEnergy = map_of_MEs[
DirName +
"/" +
"NeutralHadronEnergy"];
3664 if (mNeutralHadronEnergy && mNeutralHadronEnergy->getRootObject())
3665 mNeutralHadronEnergy->Fill((*
pfJets)[ijet].neutralHadronEnergy());
3666 mChargedEmEnergy = map_of_MEs[
DirName +
"/" +
"ChargedEmEnergy"];
3667 if (mChargedEmEnergy && mChargedEmEnergy->getRootObject())
3668 mChargedEmEnergy->Fill((*
pfJets)[ijet].chargedEmEnergy());
3669 mChargedMuEnergy = map_of_MEs[
DirName +
"/" +
"ChargedMuEnergy"];
3670 if (mChargedMuEnergy && mChargedMuEnergy->getRootObject())
3671 mChargedMuEnergy->Fill((*
pfJets)[ijet].chargedMuEnergy());
3672 mNeutralEmEnergy = map_of_MEs[
DirName +
"/" +
"NeutralEmEnergy"];
3673 if (mNeutralEmEnergy && mNeutralEmEnergy->getRootObject())
3674 mNeutralEmEnergy->Fill((*
pfJets)[ijet].neutralEmEnergy());
3675 mChargedMultiplicity = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity"];
3676 if (mChargedMultiplicity && mChargedMultiplicity->getRootObject())
3677 mChargedMultiplicity->Fill((*
pfJets)[ijet].chargedMultiplicity());
3678 mNeutralMultiplicity = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity"];
3679 if (mNeutralMultiplicity && mNeutralMultiplicity->getRootObject())
3680 mNeutralMultiplicity->Fill((*
pfJets)[ijet].neutralMultiplicity());
3681 mMuonMultiplicity = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity"];
3682 if (mMuonMultiplicity && mMuonMultiplicity->getRootObject())
3683 mMuonMultiplicity->Fill((*
pfJets)[ijet].muonMultiplicity());
3685 mNeutralFraction = map_of_MEs[
DirName +
"/" +
"NeutralConstituentsFraction"];
3686 if (mNeutralFraction && mNeutralFraction->getRootObject())
3687 mNeutralFraction->Fill((
double)(*
pfJets)[ijet].neutralMultiplicity() /
3688 (double)(*
pfJets)[ijet].nConstituents());
3689 mChargedHadronEnergy_profile = map_of_MEs[
DirName +
"/" +
"ChargedHadronEnergy_profile"];
3690 if (mChargedHadronEnergy_profile && mChargedHadronEnergy_profile->getRootObject())
3691 mChargedHadronEnergy_profile->Fill(numPV, (*
pfJets)[ijet].chargedHadronEnergy());
3692 mNeutralHadronEnergy_profile = map_of_MEs[
DirName +
"/" +
"NeutralHadronEnergy_profile"];
3693 if (mNeutralHadronEnergy_profile && mNeutralHadronEnergy_profile->getRootObject())
3694 mNeutralHadronEnergy_profile->Fill(numPV, (*
pfJets)[ijet].neutralHadronEnergy());
3695 mChargedEmEnergy_profile = map_of_MEs[
DirName +
"/" +
"ChargedEmEnergy_profile"];
3696 if (mChargedEmEnergy_profile && mChargedEmEnergy_profile->getRootObject())
3697 mChargedEmEnergy_profile->Fill(numPV, (*
pfJets)[ijet].chargedEmEnergy());
3698 mChargedMuEnergy_profile = map_of_MEs[
DirName +
"/" +
"ChargedMuEnergy_profile"];
3699 if (mChargedMuEnergy_profile && mChargedMuEnergy_profile->getRootObject())
3700 mChargedMuEnergy_profile->Fill(numPV, (*
pfJets)[ijet].chargedMuEnergy());
3701 mNeutralEmEnergy_profile = map_of_MEs[
DirName +
"/" +
"NeutralEmEnergy_profile"];
3702 if (mNeutralEmEnergy_profile && mNeutralEmEnergy_profile->getRootObject())
3703 mNeutralEmEnergy_profile->Fill(numPV, (*
pfJets)[ijet].neutralEmEnergy());
3704 mChargedMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity_profile"];
3705 if (mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject())
3706 mChargedMultiplicity_profile->Fill(numPV, (*
pfJets)[ijet].chargedMultiplicity());
3707 mNeutralMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity_profile"];
3708 if (mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject())
3709 mNeutralMultiplicity_profile->Fill(numPV, (*
pfJets)[ijet].neutralMultiplicity());
3710 mMuonMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity_profile"];
3711 if (mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject())
3712 mMuonMultiplicity_profile->Fill(numPV, (*
pfJets)[ijet].muonMultiplicity());
3718 if (pass_Z_selection) {
3720 deltaR((*
Muons)[mu_index1].eta(), (*Muons)[mu_index1].phi(), correctedJet.
eta(), correctedJet.
phi()) > 0.2) {
3721 if (correctedJet.
pt() > pt1_mu_vetoed) {
3722 pt2_mu_vetoed = pt1_mu_vetoed;
3723 ind2_mu_vetoed = ind1_mu_vetoed;
3724 cleaned_second_jet_mu_vetoed = cleaned_first_jet_mu_vetoed;
3725 pt1_mu_vetoed = correctedJet.
pt();
3726 ind1_mu_vetoed = ijet;
3727 cleaned_first_jet_mu_vetoed = JetIDWPU;
3728 }
else if (correctedJet.
pt() > pt2_mu_vetoed) {
3729 pt2_mu_vetoed = correctedJet.
pt();
3730 ind2_mu_vetoed = ijet;
3731 cleaned_second_jet_mu_vetoed = JetIDWPU;
3736 if (correctedJet.
pt() >
pt1) {
3742 cleaned_second_jet = cleaned_first_jet;
3743 pt1 = correctedJet.
pt();
3745 cleaned_first_jet = JetIDWPU;
3746 }
else if (correctedJet.
pt() >
pt2) {
3750 pt2 = correctedJet.
pt();
3752 cleaned_second_jet = JetIDWPU;
3753 }
else if (correctedJet.
pt() > pt3) {
3754 pt3 = correctedJet.
pt();
3758 if (!pass_corrected) {
3763 if (!runcosmics_ && pass_corrected) {
3765 mLooseJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"JetIDPassFractionVSeta"];
3766 if (mLooseJIDPassFractionVSeta && mLooseJIDPassFractionVSeta->getRootObject())
3767 mLooseJIDPassFractionVSeta->Fill(correctedJet.
eta(), 1.);
3768 mLooseJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"JetIDPassFractionVSpt"];
3769 if (mLooseJIDPassFractionVSpt && mLooseJIDPassFractionVSpt->getRootObject())
3770 mLooseJIDPassFractionVSpt->Fill(correctedJet.
pt(), 1.);
3771 if (fabs(correctedJet.
eta()) < 3.0) {
3772 mLooseJIDPassFractionVSptNoHF = map_of_MEs[
DirName +
"/" +
"JetIDPassFractionVSptNoHF"];
3773 if (mLooseJIDPassFractionVSptNoHF && mLooseJIDPassFractionVSptNoHF->getRootObject())
3774 mLooseJIDPassFractionVSptNoHF->Fill(correctedJet.
pt(), 1.);
3777 mLooseJIDPassFractionVSeta = map_of_MEs[
DirName +
"/" +
"JetIDPassFractionVSeta"];
3778 if (mLooseJIDPassFractionVSeta && mLooseJIDPassFractionVSeta->getRootObject())
3779 mLooseJIDPassFractionVSeta->Fill(correctedJet.
eta(), 0.);
3780 mLooseJIDPassFractionVSpt = map_of_MEs[
DirName +
"/" +
"JetIDPassFractionVSpt"];
3781 if (mLooseJIDPassFractionVSpt && mLooseJIDPassFractionVSpt->getRootObject())
3782 mLooseJIDPassFractionVSpt->Fill(correctedJet.
pt(), 0.);
3783 if (fabs(correctedJet.
eta()) < 3.0) {
3784 mLooseJIDPassFractionVSptNoHF = map_of_MEs[
DirName +
"/" +
"JetIDPassFractionVSptNoHF"];
3785 if (mLooseJIDPassFractionVSptNoHF && mLooseJIDPassFractionVSptNoHF->getRootObject())
3786 mLooseJIDPassFractionVSptNoHF->Fill(correctedJet.
pt(), 0.);
3791 if (Thiscleaned && pass_corrected) {
3794 jetME = map_of_MEs[
DirName +
"/" +
"jetReco"];
3795 if (jetME && jetME->getRootObject())
3797 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
3798 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
3799 mJetEnergyCorr->Fill(correctedJet.
pt() / (*caloJets)[ijet].pt());
3800 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
3801 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
3802 mJetEnergyCorrVSEta->Fill(correctedJet.
eta(), correctedJet.
pt() / (*caloJets)[ijet].pt());
3803 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
3804 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
3805 mJetEnergyCorrVSPt->Fill(correctedJet.
pt(), correctedJet.
pt() / (*caloJets)[ijet].pt());
3808 jetME = map_of_MEs[
DirName +
"/" +
"jetReco"];
3809 if (jetME && jetME->getRootObject())
3811 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
3812 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
3813 mJetEnergyCorr->Fill(correctedJet.
pt() / (*pfJets)[ijet].pt());
3814 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
3815 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
3816 mJetEnergyCorrVSEta->Fill(correctedJet.
eta(), correctedJet.
pt() / (*pfJets)[ijet].pt());
3817 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
3818 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
3819 mJetEnergyCorrVSPt->Fill(correctedJet.
pt(), correctedJet.
pt() / (*pfJets)[ijet].pt());
3821 if (isMiniAODJet_) {
3822 jetME = map_of_MEs[
DirName +
"/" +
"jetReco"];
3823 if (jetME && jetME->getRootObject())
3825 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
3826 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
3827 mJetEnergyCorr->Fill(1. / (*
patJets)[ijet].jecFactor(
"Uncorrected"));
3828 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
3829 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
3830 mJetEnergyCorrVSEta->Fill(correctedJet.
eta(), 1. / (*patJets)[ijet].jecFactor(
"Uncorrected"));
3831 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
3832 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
3833 mJetEnergyCorrVSPt->Fill(correctedJet.
pt(), 1. / (*patJets)[ijet].jecFactor(
"Uncorrected"));
3834 if (filljetsubstruc_) {
3836 mSoftDropMass = map_of_MEs[
DirName +
"/" +
"SoftDropMass"];
3837 if (mSoftDropMass && mSoftDropMass->getRootObject() &&
3838 (*patJets)[ijet].hasUserFloat(
"ak8PFJetsPuppiSoftDropMass"))
3839 mSoftDropMass->Fill((*
patJets)[ijet].userFloat(
"ak8PFJetsPuppiSoftDropMass"));
3840 mPrunedMass = map_of_MEs[
DirName +
"/" +
"PrunedMass"];
3841 mtau2_over_tau1 = map_of_MEs[
DirName +
"/" +
"tau2_over_tau1"];
3842 if (mtau2_over_tau1 && mtau2_over_tau1->getRootObject() &&
3843 ((*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau1") &&
3844 (*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau2")))
3845 mtau2_over_tau1->Fill((*
patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau2") /
3846 (*
patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau1"));
3847 mtau3_over_tau2 = map_of_MEs[
DirName +
"/" +
"tau3_over_tau2"];
3848 if (mtau3_over_tau2 && mtau3_over_tau2->getRootObject() &&
3849 ((*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau2") &&
3850 (*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau3")))
3851 mtau3_over_tau2->Fill((*
patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau3") /
3852 (*
patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau2"));
3854 if ((*
patJets)[ijet].hasSubjets(
"SoftDropPuppi")) {
3855 mnSubJetsSoftDrop = map_of_MEs[
DirName +
"/" +
"nSubJets_SoftDrop"];
3856 if (mnSubJetsSoftDrop && mnSubJetsSoftDrop->getRootObject())
3857 mnSubJetsSoftDrop->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi").size());
3859 if ((*
patJets)[ijet].hasSubjets(
"SoftDropPuppi") && !(*patJets)[ijet].subjets(
"SoftDropPuppi").empty()) {
3860 mSubJet1_SoftDrop_pt = map_of_MEs[
DirName +
"/" +
"SubJet1_SoftDrop_pt"];
3861 if (mSubJet1_SoftDrop_pt && mSubJet1_SoftDrop_pt->getRootObject())
3862 mSubJet1_SoftDrop_pt->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[0]->pt());
3863 mSubJet1_SoftDrop_eta = map_of_MEs[
DirName +
"/" +
"SubJet1_SoftDrop_eta"];
3864 if (mSubJet1_SoftDrop_eta && mSubJet1_SoftDrop_eta->getRootObject())
3865 mSubJet1_SoftDrop_eta->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[0]->eta());
3866 mSubJet1_SoftDrop_phi = map_of_MEs[
DirName +
"/" +
"SubJet1_SoftDrop_phi"];
3867 if (mSubJet1_SoftDrop_phi && mSubJet1_SoftDrop_phi->getRootObject())
3868 mSubJet1_SoftDrop_phi->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[0]->phi());
3869 mSubJet1_SoftDrop_mass = map_of_MEs[
DirName +
"/" +
"SubJet1_SoftDrop_mass"];
3870 if (mSubJet1_SoftDrop_mass && mSubJet1_SoftDrop_mass->getRootObject())
3871 mSubJet1_SoftDrop_mass->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[0]->mass());
3872 if ((*
patJets)[ijet].subjets(
"SoftDropPuppi").size() > 1) {
3873 mSubJet2_SoftDrop_pt = map_of_MEs[
DirName +
"/" +
"SubJet2_SoftDrop_pt"];
3874 if (mSubJet2_SoftDrop_pt && mSubJet2_SoftDrop_pt->getRootObject())
3875 mSubJet2_SoftDrop_pt->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[1]->pt());
3876 mSubJet2_SoftDrop_eta = map_of_MEs[
DirName +
"/" +
"SubJet2_SoftDrop_eta"];
3877 if (mSubJet2_SoftDrop_eta && mSubJet2_SoftDrop_eta->getRootObject())
3878 mSubJet2_SoftDrop_eta->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[1]->eta());
3879 mSubJet2_SoftDrop_phi = map_of_MEs[
DirName +
"/" +
"SubJet2_SoftDrop_phi"];
3880 if (mSubJet2_SoftDrop_phi && mSubJet2_SoftDrop_phi->getRootObject())
3881 mSubJet2_SoftDrop_phi->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[1]->phi());
3882 mSubJet2_SoftDrop_mass = map_of_MEs[
DirName +
"/" +
"SubJet2_SoftDrop_mass"];
3883 if (mSubJet2_SoftDrop_mass && mSubJet2_SoftDrop_mass->getRootObject())
3884 mSubJet2_SoftDrop_mass->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[1]->mass());
3887 if ((*
patJets)[ijet].pt() > pt_min_boosted_) {
3889 mSoftDropMass_boosted = map_of_MEs[
DirName +
"/" +
"SoftDropMass_boosted"];
3890 if (mSoftDropMass_boosted && mSoftDropMass_boosted->getRootObject() &&
3891 (*patJets)[ijet].hasUserFloat(
"ak8PFJetsPuppiSoftDropMass"))
3892 mSoftDropMass_boosted->Fill((*
patJets)[ijet].userFloat(
"ak8PFJetsPuppiSoftDropMass"));
3893 mPrunedMass_boosted = map_of_MEs[
DirName +
"/" +
"PrunedMass_boosted"];
3894 mtau2_over_tau1_boosted = map_of_MEs[
DirName +
"/" +
"tau2_over_tau1_boosted"];
3895 if (mtau2_over_tau1_boosted && mtau2_over_tau1_boosted->getRootObject() &&
3896 ((*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau1") &&
3897 (*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau2")))
3898 mtau2_over_tau1_boosted->Fill((*
patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau2") /
3899 (*
patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau1"));
3900 mtau3_over_tau2_boosted = map_of_MEs[
DirName +
"/" +
"tau3_over_tau2_boosted"];
3901 if (mtau3_over_tau2_boosted && mtau3_over_tau2_boosted->getRootObject() &&
3902 ((*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau2") &&
3903 (*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau3")))
3904 mtau3_over_tau2_boosted->Fill((*
patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau3") /
3905 (*
patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau2"));
3906 if ((*
patJets)[ijet].hasSubjets(
"SoftDropPuppi")) {
3907 mnSubJetsSoftDrop_boosted = map_of_MEs[
DirName +
"/" +
"nSubJets_SoftDrop_boosted"];
3908 if (mnSubJetsSoftDrop_boosted && mnSubJetsSoftDrop_boosted->getRootObject())
3909 mnSubJetsSoftDrop_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi").size());
3911 if ((*
patJets)[ijet].hasSubjets(
"SoftDropPuppi") && !(*patJets)[ijet].subjets(
"SoftDropPuppi").empty()) {
3912 mSubJet1_SoftDrop_pt_boosted = map_of_MEs[
DirName +
"/" +
"SubJet1_SoftDrop_pt_boosted"];
3913 if (mSubJet1_SoftDrop_pt_boosted && mSubJet1_SoftDrop_pt_boosted->getRootObject())
3914 mSubJet1_SoftDrop_pt_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[0]->pt());
3915 mSubJet1_SoftDrop_eta_boosted = map_of_MEs[
DirName +
"/" +
"SubJet1_SoftDrop_eta_boosted"];
3916 if (mSubJet1_SoftDrop_eta_boosted && mSubJet1_SoftDrop_eta_boosted->getRootObject())
3917 mSubJet1_SoftDrop_eta_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[0]->eta());
3918 mSubJet1_SoftDrop_phi_boosted = map_of_MEs[
DirName +
"/" +
"SubJet1_SoftDrop_phi_boosted"];
3919 if (mSubJet1_SoftDrop_phi_boosted && mSubJet1_SoftDrop_phi_boosted->getRootObject())
3920 mSubJet1_SoftDrop_phi_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[0]->phi());
3921 mSubJet1_SoftDrop_mass_boosted = map_of_MEs[
DirName +
"/" +
"SubJet1_SoftDrop_mass_boosted"];
3922 if (mSubJet1_SoftDrop_mass_boosted && mSubJet1_SoftDrop_mass_boosted->getRootObject())
3923 mSubJet1_SoftDrop_mass_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[0]->mass());
3924 if ((*
patJets)[ijet].subjets(
"SoftDropPuppi").size() > 1) {
3925 mSubJet2_SoftDrop_pt_boosted = map_of_MEs[
DirName +
"/" +
"SubJet2_SoftDrop_pt_boosted"];
3926 if (mSubJet2_SoftDrop_pt_boosted && mSubJet2_SoftDrop_pt_boosted->getRootObject())
3927 mSubJet2_SoftDrop_pt_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[1]->pt());
3928 mSubJet2_SoftDrop_eta_boosted = map_of_MEs[
DirName +
"/" +
"SubJet2_SoftDrop_eta_boosted"];
3929 if (mSubJet2_SoftDrop_eta_boosted && mSubJet2_SoftDrop_eta_boosted->getRootObject())
3930 mSubJet2_SoftDrop_eta_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[1]->eta());
3931 mSubJet2_SoftDrop_phi_boosted = map_of_MEs[
DirName +
"/" +
"SubJet2_SoftDrop_phi_boosted"];
3932 if (mSubJet2_SoftDrop_phi_boosted && mSubJet2_SoftDrop_phi_boosted->getRootObject())
3933 mSubJet2_SoftDrop_phi_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[1]->phi());
3934 mSubJet2_SoftDrop_mass_boosted = map_of_MEs[
DirName +
"/" +
"SubJet2_SoftDrop_mass_boosted"];
3935 if (mSubJet2_SoftDrop_mass_boosted && mSubJet2_SoftDrop_mass_boosted->getRootObject())
3936 mSubJet2_SoftDrop_mass_boosted->Fill((*
patJets)[ijet].subjets(
"SoftDropPuppi")[1]->mass());
3943 if (jetLoPass_ == 1) {
3944 mPhi_Lo = map_of_MEs[
DirName +
"/" +
"Phi_Lo"];
3945 if (mPhi_Lo && mPhi_Lo->getRootObject())
3946 mPhi_Lo->Fill(correctedJet.
phi());
3947 mPt_Lo = map_of_MEs[
DirName +
"/" +
"Pt_Lo"];
3948 if (mPt_Lo && mPt_Lo->getRootObject())
3949 mPt_Lo->Fill(correctedJet.
pt());
3952 if (jetHiPass_ == 1 && correctedJet.
pt() > 100.) {
3953 mEta_Hi = map_of_MEs[
DirName +
"/" +
"Eta_Hi"];
3954 if (mEta_Hi && mEta_Hi->getRootObject())
3955 mEta_Hi->Fill(correctedJet.
eta());
3956 mPhi_Hi = map_of_MEs[
DirName +
"/" +
"Phi_Hi"];
3957 if (mPhi_Hi && mPhi_Hi->getRootObject())
3958 mPhi_Hi->Fill(correctedJet.
phi());
3959 mPt_Hi = map_of_MEs[
DirName +
"/" +
"Pt_Hi"];
3960 if (mPt_Hi && mPt_Hi->getRootObject())
3961 mPt_Hi->Fill(correctedJet.
pt());
3963 mPt = map_of_MEs[
DirName +
"/" +
"Pt"];
3964 if (mPt && mPt->getRootObject())
3965 mPt->Fill(correctedJet.
pt());
3966 mPt_1 = map_of_MEs[
DirName +
"/" +
"Pt_1"];
3967 if (mPt_1 && mPt_1->getRootObject())
3968 mPt_1->Fill(correctedJet.
pt());
3969 mPt_2 = map_of_MEs[
DirName +
"/" +
"Pt_2"];
3970 if (mPt_2 && mPt_2->getRootObject())
3971 mPt_2->Fill(correctedJet.
pt());
3972 mPt_3 = map_of_MEs[
DirName +
"/" +
"Pt_3"];
3973 if (mPt_3 && mPt_3->getRootObject())
3974 mPt_3->Fill(correctedJet.
pt());
3975 mPt_log = map_of_MEs[
DirName +
"/" +
"Pt_log"];
3976 if (mPt_log && mPt_log->getRootObject())
3977 mPt_log->Fill(log10(correctedJet.
pt()));
3978 mEta = map_of_MEs[
DirName +
"/" +
"Eta"];
3979 if (mEta && mEta->getRootObject())
3980 mEta->Fill(correctedJet.
eta());
3981 mPhi = map_of_MEs[
DirName +
"/" +
"Phi"];
3982 if (mPhi && mPhi->getRootObject())
3983 mPhi->Fill(correctedJet.
phi());
3985 mPhiVSEta = map_of_MEs[
DirName +
"/" +
"PhiVSEta"];
3986 if (mPhiVSEta && mPhiVSEta->getRootObject())
3987 mPhiVSEta->Fill(correctedJet.
eta(), correctedJet.
phi());
3990 mConstituents = map_of_MEs[
DirName +
"/" +
"Constituents"];
3991 if (mConstituents && mConstituents->getRootObject())
3996 mPt_profile = map_of_MEs[
DirName +
"/" +
"Pt_profile"];
3997 if (mPt_profile && mPt_profile->getRootObject())
3998 mPt_profile->Fill(numPV, correctedJet.
pt());
3999 mEta_profile = map_of_MEs[
DirName +
"/" +
"Eta_profile"];
4000 if (mEta_profile && mEta_profile->getRootObject())
4001 mEta_profile->Fill(numPV, correctedJet.
eta());
4002 mPhi_profile = map_of_MEs[
DirName +
"/" +
"Phi_profile"];
4003 if (mPhi_profile && mPhi_profile->getRootObject())
4004 mPhi_profile->Fill(numPV, correctedJet.
phi());
4006 mConstituents_profile = map_of_MEs[
DirName +
"/" +
"Constituents_profile"];
4007 if (mConstituents_profile && mConstituents_profile->getRootObject())
4010 if (fabs(correctedJet.
eta()) <= 1.3) {
4011 mPt_Barrel = map_of_MEs[
DirName +
"/" +
"Pt_Barrel"];
4012 if (mPt_Barrel && mPt_Barrel->getRootObject())
4013 mPt_Barrel->Fill(correctedJet.
pt());
4014 mPhi_Barrel = map_of_MEs[
DirName +
"/" +
"Phi_Barrel"];
4015 if (mPhi_Barrel && mPhi_Barrel->getRootObject())
4016 mPhi_Barrel->Fill(correctedJet.
phi());
4019 mConstituents_Barrel = map_of_MEs[
DirName +
"/" +
"Constituents_Barrel"];
4020 if (mConstituents_Barrel && mConstituents_Barrel->getRootObject())
4023 }
else if (fabs(correctedJet.
eta()) <= 3) {
4024 mPt_EndCap = map_of_MEs[
DirName +
"/" +
"Pt_EndCap"];
4025 if (mPt_EndCap && mPt_EndCap->getRootObject())
4026 mPt_EndCap->Fill(correctedJet.
pt());
4027 mPhi_EndCap = map_of_MEs[
DirName +
"/" +
"Phi_EndCap"];
4028 if (mPhi_EndCap && mPhi_EndCap->getRootObject())
4029 mPhi_EndCap->Fill(correctedJet.
phi());
4032 mConstituents_EndCap = map_of_MEs[
DirName +
"/" +
"Constituents_EndCap"];
4033 if (mConstituents_EndCap && mConstituents_EndCap->getRootObject())
4037 mPt_Forward = map_of_MEs[
DirName +
"/" +
"Pt_Forward"];
4038 if (mPt_Forward && mPt_Forward->getRootObject())
4039 mPt_Forward->Fill(correctedJet.
pt());
4040 mPhi_Forward = map_of_MEs[
DirName +
"/" +
"Phi_Forward"];
4041 if (mPhi_Forward && mPhi_Forward->getRootObject())
4042 mPhi_Forward->Fill(correctedJet.
phi());
4045 mConstituents_Forward = map_of_MEs[
DirName +
"/" +
"Constituents_Forward"];
4046 if (mConstituents_Forward && mConstituents_Forward->getRootObject())
4053 mNJets = map_of_MEs[
DirName +
"/" +
"NJets"];
4054 if (mNJets && mNJets->getRootObject())
4055 mNJets->Fill(numofjets);
4056 mNJets_profile = map_of_MEs[
DirName +
"/" +
"NJets_profile"];
4057 if (mNJets_profile && mNJets_profile->getRootObject())
4058 mNJets_profile->Fill(numPV, numofjets);
4063 if (numofjets > 0) {
4066 if (cleaned_first_jet) {
4067 mEtaFirst = map_of_MEs[
DirName +
"/" +
"EtaFirst"];
4068 if (mEtaFirst && mEtaFirst->getRootObject())
4069 mEtaFirst->Fill((
recoJets)[0].eta());
4070 mPhiFirst = map_of_MEs[
DirName +
"/" +
"PhiFirst"];
4071 if (mPhiFirst && mPhiFirst->getRootObject())
4072 mPhiFirst->Fill((
recoJets)[0].phi());
4073 mPtFirst = map_of_MEs[
DirName +
"/" +
"PtFirst"];
4074 if (mPtFirst && mPtFirst->getRootObject())
4075 mPtFirst->Fill((
recoJets)[0].pt());
4077 if (numofjets > 1 && cleaned_second_jet) {
4079 if (dphi > acos(-1.)) {
4080 dphi = 2 * acos(-1.) - dphi;
4082 mDPhi = map_of_MEs[
DirName +
"/" +
"DPhi"];
4083 if (mDPhi && mDPhi->getRootObject())
4095 if (jetCleaningFlag_ &&
recoJets.size() > 1 && cleaned_first_jet && cleaned_second_jet) {
4097 if (jetCleaningFlag_) {
4098 DirName =
"JetMET/Jet/Cleaned" + mInputCollection_.label() +
"/DiJet";
4103 if (dphi > acos(-1.)) {
4104 dphi = 2 * acos(-1.) - dphi;
4106 mDPhi = map_of_MEs[
DirName +
"/" +
"DPhi"];
4107 if (mDPhi && mDPhi->getRootObject())
4111 if (fabs(dphi) > 2.1) {
4115 reco::JetID jetID1 = (*jetID_ValueMap_Handle)[calojetref1];
4117 reco::JetID jetID2 = (*jetID_ValueMap_Handle)[calojetref2];
4118 mN90Hits = map_of_MEs[
DirName +
"/" +
"N90Hits"];
4119 if (mN90Hits && mN90Hits->getRootObject())
4120 mN90Hits->Fill(jetID1.
n90Hits);
4121 mfHPD = map_of_MEs[
DirName +
"/" +
"fHPD"];
4122 if (mfHPD && mfHPD->getRootObject())
4123 mfHPD->Fill(jetID1.
fHPD);
4124 mresEMF = map_of_MEs[
DirName +
"/" +
"resEMF"];
4125 if (mresEMF && mresEMF->getRootObject())
4127 mfRBX = map_of_MEs[
DirName +
"/" +
"fRBX"];
4128 if (mfRBX && mfRBX->getRootObject())
4129 mfRBX->Fill(jetID1.
fRBX);
4130 mN90Hits = map_of_MEs[
DirName +
"/" +
"N90Hits"];
4131 if (mN90Hits && mN90Hits->getRootObject())
4132 mN90Hits->Fill(jetID2.
n90Hits);
4133 mfHPD = map_of_MEs[
DirName +
"/" +
"fHPD"];
4134 if (mfHPD && mfHPD->getRootObject())
4135 mfHPD->Fill(jetID2.
fHPD);
4136 mresEMF = map_of_MEs[
DirName +
"/" +
"resEMF"];
4137 if (mresEMF && mresEMF->getRootObject())
4139 mfRBX = map_of_MEs[
DirName +
"/" +
"fRBX"];
4140 if (mfRBX && mfRBX->getRootObject())
4141 mfRBX->Fill(jetID2.
fRBX);
4143 mHFrac = map_of_MEs[
DirName +
"/" +
"HFrac"];
4144 if (mHFrac && mHFrac->getRootObject())
4145 mHFrac->Fill((*
caloJets)[ind1].energyFractionHadronic());
4146 mEFrac = map_of_MEs[
DirName +
"/" +
"EFrac"];
4147 if (mEFrac && mHFrac->getRootObject())
4148 mEFrac->Fill((*
caloJets)[ind1].emEnergyFraction());
4149 mHFrac = map_of_MEs[
DirName +
"/" +
"HFrac"];
4150 if (mHFrac && mHFrac->getRootObject())
4151 mHFrac->Fill((*
caloJets)[ind2].energyFractionHadronic());
4152 mEFrac = map_of_MEs[
DirName +
"/" +
"EFrac"];
4153 if (mEFrac && mHFrac->getRootObject())
4154 mEFrac->Fill((*
caloJets)[ind2].emEnergyFraction());
4155 mHFrac_profile = map_of_MEs[
DirName +
"/" +
"HFrac_profile"];
4156 if (mHFrac_profile && mHFrac_profile->getRootObject())
4157 mHFrac_profile->Fill(numPV, (*
caloJets)[ind1].energyFractionHadronic());
4158 mEFrac_profile = map_of_MEs[
DirName +
"/" +
"EFrac_profile"];
4159 if (mEFrac_profile && mEFrac_profile->getRootObject())
4160 mEFrac_profile->Fill(numPV, (*
caloJets)[ind1].emEnergyFraction());
4161 mHFrac_profile = map_of_MEs[
DirName +
"/" +
"HFrac_profile"];
4162 if (mHFrac_profile && mHFrac_profile->getRootObject())
4163 mHFrac_profile->Fill(numPV, (*
caloJets)[ind2].energyFractionHadronic());
4164 mEFrac_profile = map_of_MEs[
DirName +
"/" +
"EFrac_profile"];
4165 if (mEFrac_profile && mEFrac_profile->getRootObject())
4166 mEFrac_profile->Fill(numPV, (*
caloJets)[ind2].emEnergyFraction());
4168 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
4169 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
4170 mJetEnergyCorr->Fill(
recoJets[0].pt() / (*caloJets)[ind1].pt());
4171 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
4172 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
4173 mJetEnergyCorrVSEta->Fill(
recoJets[0].eta(),
recoJets[0].pt() / (*caloJets)[ind1].pt());
4174 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
4175 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
4176 mJetEnergyCorrVSPt->Fill(
recoJets[0].pt(),
recoJets[0].pt() / (*caloJets)[ind1].pt());
4177 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
4178 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
4179 mJetEnergyCorr->Fill(
recoJets[1].pt() / (*caloJets)[ind2].pt());
4180 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
4181 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
4182 mJetEnergyCorrVSEta->Fill(
recoJets[1].eta(),
recoJets[1].pt() / (*caloJets)[ind2].pt());
4183 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
4184 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
4185 mJetEnergyCorrVSPt->Fill(
recoJets[1].pt(),
recoJets[1].pt() / (*caloJets)[ind2].pt());
4205 mCHFrac = map_of_MEs[
DirName +
"/" +
"CHFrac"];
4206 if (mCHFrac && mCHFrac->getRootObject())
4207 mCHFrac->Fill((*
pfJets)[ind1].chargedHadronEnergyFraction());
4208 mNHFrac = map_of_MEs[
DirName +
"/" +
"NHFrac"];
4209 if (mNHFrac && mNHFrac->getRootObject())
4210 mNHFrac->Fill((*
pfJets)[ind1].neutralHadronEnergyFraction());
4211 mPhFrac = map_of_MEs[
DirName +
"/" +
"PhFrac"];
4212 if (mPhFrac && mPhFrac->getRootObject())
4213 mPhFrac->Fill((*
pfJets)[ind1].neutralEmEnergyFraction());
4214 mHFEMFrac = map_of_MEs[
DirName +
"/" +
"HFEMFrac"];
4215 if (mHFEMFrac && mHFEMFrac->getRootObject())
4216 mHFEMFrac->Fill((*
pfJets)[ind1].HFEMEnergyFraction());
4217 mHFHFrac = map_of_MEs[
DirName +
"/" +
"HFHFrac"];
4218 if (mHFHFrac && mHFHFrac->getRootObject())
4219 mHFHFrac->Fill((*
pfJets)[ind1].HFHadronEnergyFraction());
4221 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
4222 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
4223 mJetEnergyCorr->Fill(
recoJets[0].pt() / (*pfJets)[ind1].pt());
4224 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
4225 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
4226 mJetEnergyCorrVSEta->Fill(
recoJets[0].eta(),
recoJets[0].pt() / (*pfJets)[ind1].pt());
4227 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
4228 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
4229 mJetEnergyCorrVSPt->Fill(
recoJets[0].pt(),
recoJets[0].pt() / (*pfJets)[ind1].pt());
4230 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
4231 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
4232 mJetEnergyCorr->Fill(
recoJets[1].pt() / (*pfJets)[ind2].pt());
4233 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
4234 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
4235 mJetEnergyCorrVSEta->Fill(
recoJets[1].eta(),
recoJets[1].pt() / (*pfJets)[ind2].pt());
4236 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
4237 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
4238 mJetEnergyCorrVSPt->Fill(
recoJets[1].pt(),
recoJets[1].pt() / (*pfJets)[ind2].pt());
4240 mChargedMultiplicity = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity"];
4241 if (mChargedMultiplicity && mChargedMultiplicity->getRootObject())
4242 mChargedMultiplicity->Fill((*
pfJets)[ind1].chargedMultiplicity());
4243 mNeutralMultiplicity = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity"];
4244 if (mNeutralMultiplicity && mNeutralMultiplicity->getRootObject())
4245 mNeutralMultiplicity->Fill((*
pfJets)[ind1].neutralMultiplicity());
4246 mMuonMultiplicity = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity"];
4247 if (mMuonMultiplicity && mMuonMultiplicity->getRootObject())
4248 mMuonMultiplicity->Fill((*
pfJets)[ind1].muonMultiplicity());
4250 mCHFrac = map_of_MEs[
DirName +
"/" +
"CHFrac"];
4251 if (mCHFrac && mCHFrac->getRootObject())
4252 mCHFrac->Fill((*
pfJets)[ind2].chargedHadronEnergyFraction());
4253 mNHFrac = map_of_MEs[
DirName +
"/" +
"NHFrac"];
4254 if (mNHFrac && mNHFrac->getRootObject())
4255 mNHFrac->Fill((*
pfJets)[ind2].neutralHadronEnergyFraction());
4256 mPhFrac = map_of_MEs[
DirName +
"/" +
"PhFrac"];
4257 if (mPhFrac && mPhFrac->getRootObject())
4258 mPhFrac->Fill((*
pfJets)[ind2].neutralEmEnergyFraction());
4259 mHFEMFrac = map_of_MEs[
DirName +
"/" +
"HFEMFrac"];
4260 if (mHFEMFrac && mHFEMFrac->getRootObject())
4261 mHFEMFrac->Fill((*
pfJets)[ind2].HFEMEnergyFraction());
4262 mHFHFrac = map_of_MEs[
DirName +
"/" +
"HFHFrac"];
4263 if (mHFHFrac && mHFHFrac->getRootObject())
4264 mHFHFrac->Fill((*
pfJets)[ind2].HFHadronEnergyFraction());
4266 mNeutralFraction = map_of_MEs[
DirName +
"/" +
"NeutralConstituentsFraction"];
4267 if (mNeutralFraction && mNeutralFraction->getRootObject())
4268 mNeutralFraction->Fill((
double)(*
pfJets)[ind1].neutralMultiplicity() /
4269 (double)(*
pfJets)[ind1].nConstituents());
4271 mChargedMultiplicity = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity"];
4272 if (mChargedMultiplicity && mChargedMultiplicity->getRootObject())
4273 mChargedMultiplicity->Fill((*
pfJets)[ind2].chargedMultiplicity());
4274 mNeutralMultiplicity = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity"];
4275 if (mNeutralMultiplicity && mNeutralMultiplicity->getRootObject())
4276 mNeutralMultiplicity->Fill((*
pfJets)[ind2].neutralMultiplicity());
4277 mMuonMultiplicity = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity"];
4278 if (mMuonMultiplicity && mMuonMultiplicity->getRootObject())
4279 mMuonMultiplicity->Fill((*
pfJets)[ind2].muonMultiplicity());
4282 mCHFrac_profile = map_of_MEs[
DirName +
"/" +
"CHFrac_profile"];
4283 if (mCHFrac_profile && mCHFrac_profile->getRootObject())
4284 mCHFrac_profile->Fill(numPV, (*
pfJets)[ind1].chargedHadronEnergyFraction());
4285 mNHFrac_profile = map_of_MEs[
DirName +
"/" +
"NHFrac_profile"];
4286 if (mNHFrac_profile && mNHFrac_profile->getRootObject())
4287 mNHFrac_profile->Fill(numPV, (*
pfJets)[ind1].neutralHadronEnergyFraction());
4288 mPhFrac_profile = map_of_MEs[
DirName +
"/" +
"PhFrac_profile"];
4289 if (mPhFrac_profile && mPhFrac_profile->getRootObject())
4290 mPhFrac_profile->Fill(numPV, (*
pfJets)[ind1].neutralEmEnergyFraction());
4291 mHFEMFrac_profile = map_of_MEs[
DirName +
"/" +
"HFEMFrac_profile"];
4292 if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject())
4293 mHFEMFrac_profile->Fill(numPV, (*
pfJets)[ind1].HFEMEnergyFraction());
4294 mHFHFrac_profile = map_of_MEs[
DirName +
"/" +
"HFHFrac_profile"];
4295 if (mHFHFrac_profile && mHFHFrac_profile->getRootObject())
4296 mHFHFrac_profile->Fill(numPV, (*
pfJets)[ind1].HFHadronEnergyFraction());
4298 mNeutralFraction = map_of_MEs[
DirName +
"/" +
"NeutralConstituentsFraction"];
4299 if (mNeutralFraction && mNeutralFraction->getRootObject())
4300 mNeutralFraction->Fill((
double)(*
pfJets)[ind2].neutralMultiplicity() /
4301 (double)(*
pfJets)[ind2].nConstituents());
4303 mChargedMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity_profile"];
4304 if (mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject())
4305 mChargedMultiplicity_profile->Fill(numPV, (*
pfJets)[ind1].chargedMultiplicity());
4306 mNeutralMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity_profile"];
4307 if (mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject())
4308 mNeutralMultiplicity_profile->Fill(numPV, (*
pfJets)[ind1].neutralMultiplicity());
4309 mMuonMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity_profile"];
4310 if (mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject())
4311 mMuonMultiplicity->Fill(numPV, (*
pfJets)[ind1].muonMultiplicity());
4313 mCHFrac_profile = map_of_MEs[
DirName +
"/" +
"CHFrac_profile"];
4314 if (mCHFrac_profile && mCHFrac_profile->getRootObject())
4315 mCHFrac_profile->Fill(numPV, (*
pfJets)[ind2].chargedHadronEnergyFraction());
4316 mNHFrac_profile = map_of_MEs[
DirName +
"/" +
"NHFrac_profile"];
4317 if (mNHFrac_profile && mNHFrac_profile->getRootObject())
4318 mNHFrac_profile->Fill(numPV, (*
pfJets)[ind2].neutralHadronEnergyFraction());
4319 mPhFrac_profile = map_of_MEs[
DirName +
"/" +
"PhFrac_profile"];
4320 if (mPhFrac_profile && mPhFrac_profile->getRootObject())
4321 mPhFrac_profile->Fill(numPV, (*
pfJets)[ind2].neutralEmEnergyFraction());
4322 mHFEMFrac_profile = map_of_MEs[
DirName +
"/" +
"HFEMFrac_profile"];
4323 if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject())
4324 mHFEMFrac_profile->Fill(numPV, (*
pfJets)[ind2].HFEMEnergyFraction());
4325 mHFHFrac_profile = map_of_MEs[
DirName +
"/" +
"HFHFrac_profile"];
4326 if (mHFHFrac_profile && mHFHFrac_profile->getRootObject())
4327 mHFHFrac_profile->Fill(numPV, (*
pfJets)[ind2].HFHadronEnergyFraction());
4329 mChargedMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity_profile"];
4330 if (mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject())
4331 mChargedMultiplicity_profile->Fill(numPV, (*
pfJets)[ind2].chargedMultiplicity());
4332 mNeutralMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity_profile"];
4333 if (mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject())
4334 mNeutralMultiplicity_profile->Fill(numPV, (*
pfJets)[ind2].neutralMultiplicity());
4335 mMuonMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity_profile"];
4336 if (mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject())
4337 mMuonMultiplicity_profile->Fill(numPV, (*
pfJets)[ind2].muonMultiplicity());
4340 float QGLikelihood = -10;
4342 float QGaxis2 = -10;
4343 if (fill_CHS_histos) {
4345 QGmulti = (*qgMultiplicity)[pfjetref];
4346 QGLikelihood = (*qgLikelihood)[pfjetref];
4347 QGptD = (*qgptD)[pfjetref];
4348 QGaxis2 = (*qgaxis2)[pfjetref];
4352 mAxis2_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_Barrel"];
4353 if (mAxis2_lowPt_Barrel && mAxis2_lowPt_Barrel->getRootObject())
4354 mAxis2_lowPt_Barrel->Fill(QGaxis2);
4355 mpTD_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_Barrel"];
4356 if (mpTD_lowPt_Barrel && mpTD_lowPt_Barrel->getRootObject())
4357 mpTD_lowPt_Barrel->Fill(QGptD);
4358 mMultiplicityQG_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_Barrel"];
4359 if (mMultiplicityQG_lowPt_Barrel && mMultiplicityQG_lowPt_Barrel->getRootObject())
4360 mMultiplicityQG_lowPt_Barrel->Fill(QGmulti);
4361 mqgLikelihood_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_Barrel"];
4362 if (mqgLikelihood_lowPt_Barrel && mqgLikelihood_lowPt_Barrel->getRootObject())
4363 mqgLikelihood_lowPt_Barrel->Fill(QGLikelihood);
4366 mAxis2_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_Barrel"];
4367 if (mAxis2_mediumPt_Barrel && mAxis2_mediumPt_Barrel->getRootObject())
4368 mAxis2_mediumPt_Barrel->Fill(QGaxis2);
4369 mpTD_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_Barrel"];
4370 if (mpTD_mediumPt_Barrel && mpTD_mediumPt_Barrel->getRootObject())
4371 mpTD_mediumPt_Barrel->Fill(QGptD);
4372 mMultiplicityQG_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_Barrel"];
4373 if (mMultiplicityQG_mediumPt_Barrel && mMultiplicityQG_mediumPt_Barrel->getRootObject())
4374 mMultiplicityQG_mediumPt_Barrel->Fill(QGmulti);
4375 mqgLikelihood_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_Barrel"];
4376 if (mqgLikelihood_mediumPt_Barrel && mqgLikelihood_mediumPt_Barrel->getRootObject())
4377 mqgLikelihood_mediumPt_Barrel->Fill(QGLikelihood);
4380 mAxis2_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_Barrel"];
4381 if (mAxis2_highPt_Barrel && mAxis2_highPt_Barrel->getRootObject())
4382 mAxis2_highPt_Barrel->Fill(QGaxis2);
4383 mpTD_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_Barrel"];
4384 if (mpTD_highPt_Barrel && mpTD_highPt_Barrel->getRootObject())
4385 mpTD_highPt_Barrel->Fill(QGptD);
4386 mMultiplicityQG_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_Barrel"];
4387 if (mMultiplicityQG_highPt_Barrel && mMultiplicityQG_highPt_Barrel->getRootObject())
4388 mMultiplicityQG_highPt_Barrel->Fill(QGmulti);
4389 mqgLikelihood_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_Barrel"];
4390 if (mqgLikelihood_highPt_Barrel && mqgLikelihood_highPt_Barrel->getRootObject())
4391 mqgLikelihood_highPt_Barrel->Fill(QGLikelihood);
4395 mAxis2_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_EndCap"];
4396 if (mAxis2_lowPt_EndCap && mAxis2_lowPt_EndCap->getRootObject())
4397 mAxis2_lowPt_EndCap->Fill(QGaxis2);
4398 mpTD_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_EndCap"];
4399 if (mpTD_lowPt_EndCap && mpTD_lowPt_EndCap->getRootObject())
4400 mpTD_lowPt_EndCap->Fill(QGptD);
4401 mMultiplicityQG_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_EndCap"];
4402 if (mMultiplicityQG_lowPt_EndCap && mMultiplicityQG_lowPt_EndCap->getRootObject())
4403 mMultiplicityQG_lowPt_EndCap->Fill(QGmulti);
4404 mqgLikelihood_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_EndCap"];
4405 if (mqgLikelihood_lowPt_EndCap && mqgLikelihood_lowPt_EndCap->getRootObject())
4406 mqgLikelihood_lowPt_EndCap->Fill(QGLikelihood);
4409 mAxis2_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_EndCap"];
4410 if (mAxis2_mediumPt_EndCap && mAxis2_mediumPt_EndCap->getRootObject())
4411 mAxis2_mediumPt_EndCap->Fill(QGaxis2);
4412 mpTD_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_EndCap"];
4413 if (mpTD_mediumPt_EndCap && mpTD_mediumPt_EndCap->getRootObject())
4414 mpTD_mediumPt_EndCap->Fill(QGptD);
4415 mMultiplicityQG_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_EndCap"];
4416 if (mMultiplicityQG_mediumPt_EndCap && mMultiplicityQG_mediumPt_EndCap->getRootObject())
4417 mMultiplicityQG_mediumPt_EndCap->Fill(QGmulti);
4418 mqgLikelihood_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_EndCap"];
4419 if (mqgLikelihood_mediumPt_EndCap && mqgLikelihood_mediumPt_EndCap->getRootObject())
4420 mqgLikelihood_mediumPt_EndCap->Fill(QGLikelihood);
4423 mAxis2_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_EndCap"];
4424 if (mAxis2_highPt_EndCap && mAxis2_highPt_EndCap->getRootObject())
4425 mAxis2_highPt_EndCap->Fill(QGaxis2);
4426 mpTD_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_EndCap"];
4427 if (mpTD_highPt_EndCap && mpTD_highPt_EndCap->getRootObject())
4428 mpTD_highPt_EndCap->Fill(QGptD);
4429 mMultiplicityQG_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_EndCap"];
4430 if (mMultiplicityQG_highPt_EndCap && mMultiplicityQG_highPt_EndCap->getRootObject())
4431 mMultiplicityQG_highPt_EndCap->Fill(QGmulti);
4432 mqgLikelihood_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_EndCap"];
4433 if (mqgLikelihood_highPt_EndCap && mqgLikelihood_highPt_EndCap->getRootObject())
4434 mqgLikelihood_highPt_EndCap->Fill(QGLikelihood);
4438 mAxis2_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_Forward"];
4439 if (mAxis2_lowPt_Forward && mAxis2_lowPt_Forward->getRootObject())
4440 mAxis2_lowPt_Forward->Fill(QGaxis2);
4441 mpTD_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_Forward"];
4442 if (mpTD_lowPt_Forward && mpTD_lowPt_Forward->getRootObject())
4443 mpTD_lowPt_Forward->Fill(QGptD);
4444 mMultiplicityQG_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_Forward"];
4445 if (mMultiplicityQG_lowPt_Forward && mMultiplicityQG_lowPt_Forward->getRootObject())
4446 mMultiplicityQG_lowPt_Forward->Fill(QGmulti);
4447 mqgLikelihood_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_Forward"];
4448 if (mqgLikelihood_lowPt_Forward && mqgLikelihood_lowPt_Forward->getRootObject())
4449 mqgLikelihood_lowPt_Forward->Fill(QGLikelihood);
4452 mAxis2_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_Forward"];
4453 if (mAxis2_mediumPt_Forward && mAxis2_mediumPt_Forward->getRootObject())
4454 mAxis2_mediumPt_Forward->Fill(QGaxis2);
4455 mpTD_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_Forward"];
4456 if (mpTD_mediumPt_Forward && mpTD_mediumPt_Forward->getRootObject())
4457 mpTD_mediumPt_Forward->Fill(QGptD);
4458 mMultiplicityQG_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_Forward"];
4459 if (mMultiplicityQG_mediumPt_Forward && mMultiplicityQG_mediumPt_Forward->getRootObject())
4460 mMultiplicityQG_mediumPt_Forward->Fill(QGmulti);
4461 mqgLikelihood_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_Forward"];
4462 if (mqgLikelihood_mediumPt_Forward && mqgLikelihood_mediumPt_Forward->getRootObject())
4463 mqgLikelihood_mediumPt_Forward->Fill(QGLikelihood);
4466 mAxis2_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_Forward"];
4467 if (mAxis2_highPt_Forward && mAxis2_highPt_Forward->getRootObject())
4468 mAxis2_highPt_Forward->Fill(QGaxis2);
4469 mpTD_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_Forward"];
4470 if (mpTD_highPt_Forward && mpTD_highPt_Forward->getRootObject())
4471 mpTD_highPt_Forward->Fill(QGptD);
4472 mMultiplicityQG_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_Forward"];
4473 if (mMultiplicityQG_highPt_Forward && mMultiplicityQG_highPt_Forward->getRootObject())
4474 mMultiplicityQG_highPt_Forward->Fill(QGmulti);
4475 mqgLikelihood_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_Forward"];
4476 if (mqgLikelihood_highPt_Forward && mqgLikelihood_highPt_Forward->getRootObject())
4477 mqgLikelihood_highPt_Forward->Fill(QGLikelihood);
4481 QGmulti = (*qgMultiplicity)[pfjetref1];
4482 QGLikelihood = (*qgLikelihood)[pfjetref1];
4483 QGptD = (*qgptD)[pfjetref1];
4484 QGaxis2 = (*qgaxis2)[pfjetref1];
4488 mAxis2_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_Barrel"];
4489 if (mAxis2_lowPt_Barrel && mAxis2_lowPt_Barrel->getRootObject())
4490 mAxis2_lowPt_Barrel->Fill(QGaxis2);
4491 mpTD_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_Barrel"];
4492 if (mpTD_lowPt_Barrel && mpTD_lowPt_Barrel->getRootObject())
4493 mpTD_lowPt_Barrel->Fill(QGptD);
4494 mMultiplicityQG_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_Barrel"];
4495 if (mMultiplicityQG_lowPt_Barrel && mMultiplicityQG_lowPt_Barrel->getRootObject())
4496 mMultiplicityQG_lowPt_Barrel->Fill(QGmulti);
4497 mqgLikelihood_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_Barrel"];
4498 if (mqgLikelihood_lowPt_Barrel && mqgLikelihood_lowPt_Barrel->getRootObject())
4499 mqgLikelihood_lowPt_Barrel->Fill(QGLikelihood);
4502 mAxis2_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_Barrel"];
4503 if (mAxis2_mediumPt_Barrel && mAxis2_mediumPt_Barrel->getRootObject())
4504 mAxis2_mediumPt_Barrel->Fill(QGaxis2);
4505 mpTD_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_Barrel"];
4506 if (mpTD_mediumPt_Barrel && mpTD_mediumPt_Barrel->getRootObject())
4507 mpTD_mediumPt_Barrel->Fill(QGptD);
4508 mMultiplicityQG_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_Barrel"];
4509 if (mMultiplicityQG_mediumPt_Barrel && mMultiplicityQG_mediumPt_Barrel->getRootObject())
4510 mMultiplicityQG_mediumPt_Barrel->Fill(QGmulti);
4511 mqgLikelihood_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_Barrel"];
4512 if (mqgLikelihood_mediumPt_Barrel && mqgLikelihood_mediumPt_Barrel->getRootObject())
4513 mqgLikelihood_mediumPt_Barrel->Fill(QGLikelihood);
4516 mAxis2_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_Barrel"];
4517 if (mAxis2_highPt_Barrel && mAxis2_highPt_Barrel->getRootObject())
4518 mAxis2_highPt_Barrel->Fill(QGaxis2);
4519 mpTD_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_Barrel"];
4520 if (mpTD_highPt_Barrel && mpTD_highPt_Barrel->getRootObject())
4521 mpTD_highPt_Barrel->Fill(QGptD);
4522 mMultiplicityQG_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_Barrel"];
4523 if (mMultiplicityQG_highPt_Barrel && mMultiplicityQG_highPt_Barrel->getRootObject())
4524 mMultiplicityQG_highPt_Barrel->Fill(QGmulti);
4525 mqgLikelihood_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_Barrel"];
4526 if (mqgLikelihood_highPt_Barrel && mqgLikelihood_highPt_Barrel->getRootObject())
4527 mqgLikelihood_highPt_Barrel->Fill(QGLikelihood);
4531 mAxis2_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_EndCap"];
4532 if (mAxis2_lowPt_EndCap && mAxis2_lowPt_EndCap->getRootObject())
4533 mAxis2_lowPt_EndCap->Fill(QGaxis2);
4534 mpTD_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_EndCap"];
4535 if (mpTD_lowPt_EndCap && mpTD_lowPt_EndCap->getRootObject())
4536 mpTD_lowPt_EndCap->Fill(QGptD);
4537 mMultiplicityQG_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_EndCap"];
4538 if (mMultiplicityQG_lowPt_EndCap && mMultiplicityQG_lowPt_EndCap->getRootObject())
4539 mMultiplicityQG_lowPt_EndCap->Fill(QGmulti);
4540 mqgLikelihood_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_EndCap"];
4541 if (mqgLikelihood_lowPt_EndCap && mqgLikelihood_lowPt_EndCap->getRootObject())
4542 mqgLikelihood_lowPt_EndCap->Fill(QGLikelihood);
4545 mAxis2_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_EndCap"];
4546 if (mAxis2_mediumPt_EndCap && mAxis2_mediumPt_EndCap->getRootObject())
4547 mAxis2_mediumPt_EndCap->Fill(QGaxis2);
4548 mpTD_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_EndCap"];
4549 if (mpTD_mediumPt_EndCap && mpTD_mediumPt_EndCap->getRootObject())
4550 mpTD_mediumPt_EndCap->Fill(QGptD);
4551 mMultiplicityQG_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_EndCap"];
4552 if (mMultiplicityQG_mediumPt_EndCap && mMultiplicityQG_mediumPt_EndCap->getRootObject())
4553 mMultiplicityQG_mediumPt_EndCap->Fill(QGmulti);
4554 mqgLikelihood_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_EndCap"];
4555 if (mqgLikelihood_mediumPt_EndCap && mqgLikelihood_mediumPt_EndCap->getRootObject())
4556 mqgLikelihood_mediumPt_EndCap->Fill(QGLikelihood);
4559 mAxis2_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_EndCap"];
4560 if (mAxis2_highPt_EndCap && mAxis2_highPt_EndCap->getRootObject())
4561 mAxis2_highPt_EndCap->Fill(QGaxis2);
4562 mpTD_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_EndCap"];
4563 if (mpTD_highPt_EndCap && mpTD_highPt_EndCap->getRootObject())
4564 mpTD_highPt_EndCap->Fill(QGptD);
4565 mMultiplicityQG_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_EndCap"];
4566 if (mMultiplicityQG_highPt_EndCap && mMultiplicityQG_highPt_EndCap->getRootObject())
4567 mMultiplicityQG_highPt_EndCap->Fill(QGmulti);
4568 mqgLikelihood_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_EndCap"];
4569 if (mqgLikelihood_highPt_EndCap && mqgLikelihood_highPt_EndCap->getRootObject())
4570 mqgLikelihood_highPt_EndCap->Fill(QGLikelihood);
4574 mAxis2_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_Forward"];
4575 if (mAxis2_lowPt_Forward && mAxis2_lowPt_Forward->getRootObject())
4576 mAxis2_lowPt_Forward->Fill(QGaxis2);
4577 mpTD_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_Forward"];
4578 if (mpTD_lowPt_Forward && mpTD_lowPt_Forward->getRootObject())
4579 mpTD_lowPt_Forward->Fill(QGptD);
4580 mMultiplicityQG_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_Forward"];
4581 if (mMultiplicityQG_lowPt_Forward && mMultiplicityQG_lowPt_Forward->getRootObject())
4582 mMultiplicityQG_lowPt_Forward->Fill(QGmulti);
4583 mqgLikelihood_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_Forward"];
4584 if (mqgLikelihood_lowPt_Forward && mqgLikelihood_lowPt_Forward->getRootObject())
4585 mqgLikelihood_lowPt_Forward->Fill(QGLikelihood);
4588 mAxis2_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_Forward"];
4589 if (mAxis2_mediumPt_Forward && mAxis2_mediumPt_Forward->getRootObject())
4590 mAxis2_mediumPt_Forward->Fill(QGaxis2);
4591 mpTD_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_Forward"];
4592 if (mpTD_mediumPt_Forward && mpTD_mediumPt_Forward->getRootObject())
4593 mpTD_mediumPt_Forward->Fill(QGptD);
4594 mMultiplicityQG_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_Forward"];
4595 if (mMultiplicityQG_mediumPt_Forward && mMultiplicityQG_mediumPt_Forward->getRootObject())
4596 mMultiplicityQG_mediumPt_Forward->Fill(QGmulti);
4597 mqgLikelihood_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_Forward"];
4598 if (mqgLikelihood_mediumPt_Forward && mqgLikelihood_mediumPt_Forward->getRootObject())
4599 mqgLikelihood_mediumPt_Forward->Fill(QGLikelihood);
4602 mAxis2_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_Forward"];
4603 if (mAxis2_highPt_Forward && mAxis2_highPt_Forward->getRootObject())
4604 mAxis2_highPt_Forward->Fill(QGaxis2);
4605 mpTD_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_Forward"];
4606 if (mpTD_highPt_Forward && mpTD_highPt_Forward->getRootObject())
4607 mpTD_highPt_Forward->Fill(QGptD);
4608 mMultiplicityQG_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_Forward"];
4609 if (mMultiplicityQG_highPt_Forward && mMultiplicityQG_highPt_Forward->getRootObject())
4610 mMultiplicityQG_highPt_Forward->Fill(QGmulti);
4611 mqgLikelihood_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_Forward"];
4612 if (mqgLikelihood_highPt_Forward && mqgLikelihood_highPt_Forward->getRootObject())
4613 mqgLikelihood_highPt_Forward->Fill(QGLikelihood);
4618 if (isMiniAODJet_) {
4619 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
4620 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
4621 mJetEnergyCorr->Fill(1. / (*
patJets)[ind1].jecFactor(
"Uncorrected"));
4622 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
4623 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
4624 mJetEnergyCorrVSEta->Fill(
recoJets[0].eta(), 1. / (*patJets)[ind1].jecFactor(
"Uncorrected"));
4625 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
4626 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
4627 mJetEnergyCorrVSPt->Fill(
recoJets[0].pt(), 1. / (*patJets)[ind1].jecFactor(
"Uncorrected"));
4628 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
4629 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
4630 mJetEnergyCorr->Fill(1. / (*
patJets)[ind2].jecFactor(
"Uncorrected"));
4631 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
4632 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
4633 mJetEnergyCorrVSEta->Fill(
recoJets[0].eta(), 1. / (*patJets)[ind2].jecFactor(
"Uncorrected"));
4634 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
4635 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
4636 mJetEnergyCorrVSPt->Fill(
recoJets[0].pt(), 1. / (*patJets)[ind2].jecFactor(
"Uncorrected"));
4639 if ((*
patJets)[ind1].hasPFSpecific()) {
4640 mCHFrac = map_of_MEs[
DirName +
"/" +
"CHFrac"];
4641 if (mCHFrac && mCHFrac->getRootObject())
4642 mCHFrac->Fill((*
patJets)[ind1].chargedHadronEnergyFraction());
4643 mNHFrac = map_of_MEs[
DirName +
"/" +
"NHFrac"];
4644 if (mNHFrac && mNHFrac->getRootObject())
4645 mNHFrac->Fill((*
patJets)[ind1].neutralHadronEnergyFraction());
4646 mPhFrac = map_of_MEs[
DirName +
"/" +
"PhFrac"];
4647 if (mPhFrac && mPhFrac->getRootObject())
4648 mPhFrac->Fill((*
patJets)[ind1].neutralEmEnergyFraction());
4649 mHFEMFrac = map_of_MEs[
DirName +
"/" +
"HFEMFrac"];
4650 if (mHFEMFrac && mHFEMFrac->getRootObject())
4651 mHFEMFrac->Fill((*
patJets)[ind1].HFEMEnergyFraction());
4652 mHFHFrac = map_of_MEs[
DirName +
"/" +
"HFHFrac"];
4653 if (mHFHFrac && mHFHFrac->getRootObject())
4654 mHFHFrac->Fill((*
patJets)[ind1].HFHadronEnergyFraction());
4655 mChargedMultiplicity = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity"];
4656 if (mChargedMultiplicity && mChargedMultiplicity->getRootObject())
4657 mChargedMultiplicity->Fill((*
patJets)[ind1].chargedMultiplicity());
4658 mNeutralMultiplicity = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity"];
4659 if (mNeutralMultiplicity && mNeutralMultiplicity->getRootObject())
4660 mNeutralMultiplicity->Fill((*
patJets)[ind1].neutralMultiplicity());
4661 mMuonMultiplicity = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity"];
4662 if (mMuonMultiplicity && mMuonMultiplicity->getRootObject())
4663 mMuonMultiplicity->Fill((*
patJets)[ind1].muonMultiplicity());
4664 mNeutralFraction = map_of_MEs[
DirName +
"/" +
"NeutralConstituentsFraction"];
4665 if (mNeutralFraction && mNeutralFraction->getRootObject())
4666 mNeutralFraction->Fill((
double)(*
patJets)[ind1].neutralMultiplicity() /
4667 (double)(*
patJets)[ind1].nConstituents());
4668 mCHFrac_profile = map_of_MEs[
DirName +
"/" +
"CHFrac_profile"];
4669 if (mCHFrac_profile && mCHFrac_profile->getRootObject())
4670 mCHFrac_profile->Fill(numPV, (*
patJets)[ind1].chargedHadronEnergyFraction());
4671 mNHFrac_profile = map_of_MEs[
DirName +
"/" +
"NHFrac_profile"];
4672 if (mNHFrac_profile && mNHFrac_profile->getRootObject())
4673 mNHFrac_profile->Fill(numPV, (*
patJets)[ind1].neutralHadronEnergyFraction());
4674 mPhFrac_profile = map_of_MEs[
DirName +
"/" +
"PhFrac_profile"];
4675 if (mPhFrac_profile && mPhFrac_profile->getRootObject())
4676 mPhFrac_profile->Fill(numPV, (*
patJets)[ind1].neutralEmEnergyFraction());
4677 mHFEMFrac_profile = map_of_MEs[
DirName +
"/" +
"HFEMFrac_profile"];
4678 if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject())
4679 mHFEMFrac_profile->Fill(numPV, (*
patJets)[ind1].HFEMEnergyFraction());
4680 mHFHFrac_profile = map_of_MEs[
DirName +
"/" +
"HFHFrac_profile"];
4681 if (mHFHFrac_profile && mHFHFrac_profile->getRootObject())
4682 mHFHFrac_profile->Fill(numPV, (*
patJets)[ind1].HFHadronEnergyFraction());
4683 mChargedMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity_profile"];
4684 if (mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject())
4685 mChargedMultiplicity_profile->Fill(numPV, (*
patJets)[ind1].chargedMultiplicity());
4686 mNeutralMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity_profile"];
4687 if (mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject())
4688 mNeutralMultiplicity_profile->Fill(numPV, (*
patJets)[ind1].neutralMultiplicity());
4689 mMuonMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity_profile"];
4690 if (mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject())
4691 mMuonMultiplicity->Fill(numPV, (*
patJets)[ind1].muonMultiplicity());
4696 if ((*
patJets)[ind2].hasPFSpecific()) {
4697 mCHFrac = map_of_MEs[
DirName +
"/" +
"CHFrac"];
4698 if (mCHFrac && mCHFrac->getRootObject())
4699 mCHFrac->Fill((*
patJets)[ind2].chargedHadronEnergyFraction());
4700 mNHFrac = map_of_MEs[
DirName +
"/" +
"NHFrac"];
4701 if (mNHFrac && mNHFrac->getRootObject())
4702 mNHFrac->Fill((*
patJets)[ind2].neutralHadronEnergyFraction());
4703 mPhFrac = map_of_MEs[
DirName +
"/" +
"PhFrac"];
4704 if (mPhFrac && mPhFrac->getRootObject())
4705 mPhFrac->Fill((*
patJets)[ind2].neutralEmEnergyFraction());
4706 mHFEMFrac = map_of_MEs[
DirName +
"/" +
"HFEMFrac"];
4707 if (mHFEMFrac && mHFEMFrac->getRootObject())
4708 mHFEMFrac->Fill((*
patJets)[ind2].HFEMEnergyFraction());
4709 mHFHFrac = map_of_MEs[
DirName +
"/" +
"HFHFrac"];
4710 if (mHFHFrac && mHFHFrac->getRootObject())
4711 mHFHFrac->Fill((*
patJets)[ind2].HFHadronEnergyFraction());
4713 mChargedMultiplicity = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity"];
4714 if (mChargedMultiplicity && mChargedMultiplicity->getRootObject())
4715 mChargedMultiplicity->Fill((*
patJets)[ind2].chargedMultiplicity());
4716 mNeutralMultiplicity = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity"];
4717 if (mNeutralMultiplicity && mNeutralMultiplicity->getRootObject())
4718 mNeutralMultiplicity->Fill((*
patJets)[ind2].neutralMultiplicity());
4719 mMuonMultiplicity = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity"];
4720 if (mMuonMultiplicity && mMuonMultiplicity->getRootObject())
4721 mMuonMultiplicity->Fill((*
patJets)[ind2].muonMultiplicity());
4723 mNeutralFraction = map_of_MEs[
DirName +
"/" +
"NeutralConstituentsFraction"];
4724 if (mNeutralFraction && mNeutralFraction->getRootObject())
4725 mNeutralFraction->Fill((
double)(*
patJets)[ind2].neutralMultiplicity() /
4726 (double)(*
patJets)[ind2].nConstituents());
4729 mCHFrac_profile = map_of_MEs[
DirName +
"/" +
"CHFrac_profile"];
4730 if (mCHFrac_profile && mCHFrac_profile->getRootObject())
4731 mCHFrac_profile->Fill(numPV, (*
patJets)[ind2].chargedHadronEnergyFraction());
4732 mNHFrac_profile = map_of_MEs[
DirName +
"/" +
"NHFrac_profile"];
4733 if (mNHFrac_profile && mNHFrac_profile->getRootObject())
4734 mNHFrac_profile->Fill(numPV, (*
patJets)[ind2].neutralHadronEnergyFraction());
4735 mPhFrac_profile = map_of_MEs[
DirName +
"/" +
"PhFrac_profile"];
4736 if (mPhFrac_profile && mPhFrac_profile->getRootObject())
4737 mPhFrac_profile->Fill(numPV, (*
patJets)[ind2].neutralEmEnergyFraction());
4738 mHFEMFrac_profile = map_of_MEs[
DirName +
"/" +
"HFEMFrac_profile"];
4739 if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject())
4740 mHFEMFrac_profile->Fill(numPV, (*
patJets)[ind2].HFEMEnergyFraction());
4741 mHFHFrac_profile = map_of_MEs[
DirName +
"/" +
"HFHFrac_profile"];
4742 if (mHFHFrac_profile && mHFHFrac_profile->getRootObject())
4743 mHFHFrac_profile->Fill(numPV, (*
patJets)[ind2].HFHadronEnergyFraction());
4745 mChargedMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"ChargedMultiplicity_profile"];
4746 if (mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject())
4747 mChargedMultiplicity_profile->Fill(numPV, (*
patJets)[ind2].chargedMultiplicity());
4748 mNeutralMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"NeutralMultiplicity_profile"];
4749 if (mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject())
4750 mNeutralMultiplicity_profile->Fill(numPV, (*
patJets)[ind2].neutralMultiplicity());
4751 mMuonMultiplicity_profile = map_of_MEs[
DirName +
"/" +
"MuonMultiplicity_profile"];
4752 if (mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject())
4753 mMuonMultiplicity_profile->Fill(numPV, (*
patJets)[ind2].muonMultiplicity());
4758 mPt = map_of_MEs[
DirName +
"/" +
"Pt"];
4759 if (mPt && mPt->getRootObject())
4761 mEta = map_of_MEs[
DirName +
"/" +
"Eta"];
4762 if (mEta && mEta->getRootObject())
4764 mPhi = map_of_MEs[
DirName +
"/" +
"Phi"];
4765 if (mPhi && mPhi->getRootObject())
4767 mPhiVSEta = map_of_MEs[
DirName +
"/" +
"PhiVSEta"];
4768 if (mPhiVSEta && mPhiVSEta->getRootObject())
4771 mConstituents = map_of_MEs[
DirName +
"/" +
"Constituents"];
4772 if (mConstituents && mConstituents->getRootObject())
4773 mConstituents->Fill(
recoJets[0].nConstituents());
4775 mPt = map_of_MEs[
DirName +
"/" +
"Pt"];
4776 if (mPt && mPt->getRootObject())
4778 mEta = map_of_MEs[
DirName +
"/" +
"Eta"];
4779 if (mEta && mEta->getRootObject())
4781 mPhi = map_of_MEs[
DirName +
"/" +
"Phi"];
4782 if (mPhi && mPhi->getRootObject())
4784 mPhiVSEta = map_of_MEs[
DirName +
"/" +
"PhiVSEta"];
4785 if (mPhiVSEta && mPhiVSEta->getRootObject())
4788 mConstituents = map_of_MEs[
DirName +
"/" +
"Constituents"];
4789 if (mConstituents && mConstituents->getRootObject())
4790 mConstituents->Fill(
recoJets[1].nConstituents());
4793 mPt_profile = map_of_MEs[
DirName +
"/" +
"Pt_profile"];
4794 if (mPt_profile && mPt_profile->getRootObject())
4795 mPt_profile->Fill(numPV,
recoJets[0].pt());
4796 mEta_profile = map_of_MEs[
DirName +
"/" +
"Eta_profile"];
4797 if (mEta_profile && mEta_profile->getRootObject())
4798 mEta_profile->Fill(numPV,
recoJets[0].eta());
4799 mPhi_profile = map_of_MEs[
DirName +
"/" +
"Phi_profile"];
4800 if (mPhi_profile && mPhi_profile->getRootObject())
4801 mPhi_profile->Fill(numPV,
recoJets[0].phi());
4803 mConstituents_profile = map_of_MEs[
DirName +
"/" +
"Constituents_profile"];
4804 if (mConstituents_profile && mConstituents_profile->getRootObject())
4805 mConstituents_profile->Fill(numPV,
recoJets[0].nConstituents());
4807 mPt_profile = map_of_MEs[
DirName +
"/" +
"Pt_profile"];
4808 if (mPt_profile && mPt_profile->getRootObject())
4809 mPt_profile->Fill(numPV,
recoJets[1].pt());
4810 mEta_profile = map_of_MEs[
DirName +
"/" +
"Eta_profile"];
4811 if (mEta_profile && mEta_profile->getRootObject())
4812 mEta_profile->Fill(numPV,
recoJets[1].eta());
4813 mPhi_profile = map_of_MEs[
DirName +
"/" +
"Phi_profile"];
4814 if (mPhi_profile && mPhi_profile->getRootObject())
4815 mPhi_profile->Fill(numPV,
recoJets[1].phi());
4817 mConstituents_profile = map_of_MEs[
DirName +
"/" +
"Constituents_profile"];
4818 if (mConstituents_profile && mConstituents_profile->getRootObject())
4819 mConstituents_profile->Fill(numPV,
recoJets[1].nConstituents());
4828 int randJet =
iEvent.id().event() % 2;
4844 bool thirdJetCut =
true;
4852 if (pt3 > asymmetryThirdJetCut_) {
4853 thirdJetCut =
false;
4857 double dijetAsymmetry =
4859 mDijetAsymmetry = map_of_MEs[
DirName +
"/" +
"DijetAsymmetry"];
4860 if (mDijetAsymmetry && mDijetAsymmetry->getRootObject())
4861 mDijetAsymmetry->Fill(dijetAsymmetry);
4880 bool thirdJetCut =
true;
4882 if (pt3 / pt_dijet > balanceThirdJetCut_) {
4883 thirdJetCut =
false;
4887 double dijetBalance = (pt_probe - pt_barrel) / pt_dijet;
4888 mDijetBalance = map_of_MEs[
DirName +
"/" +
"DijetBalance"];
4889 if (mDijetBalance && mDijetBalance->getRootObject())
4890 mDijetBalance->Fill(dijetBalance);
4898 if (pass_Z_selection && ind1_mu_vetoed >= 0 && pt1_mu_vetoed > 12 && cleaned_first_jet_mu_vetoed && isPFJet_) {
4899 bool pass_second_jet_mu_vetoed =
false;
4900 if (cleaned_second_jet_mu_vetoed) {
4901 if (ind2_mu_vetoed >= 0 && pt2_mu_vetoed / zCand.Pt() < 0.2) {
4902 pass_second_jet_mu_vetoed =
true;
4905 if (pass_second_jet_mu_vetoed) {
4908 recoJet1 = (*pfJets)[ind1_mu_vetoed];
4910 if (pass_correction_flag && !isMiniAODJet_) {
4920 double dphi = fabs(recoJet1.
phi() - zCand.Phi());
4921 if (dphi > acos(-1.)) {
4922 dphi = 2 * acos(-1.) - dphi;
4924 if (jetCleaningFlag_) {
4925 DirName =
"JetMET/Jet/Cleaned" + mInputCollection_.label() +
"/ZJets";
4927 mDPhiZJet = map_of_MEs[
DirName +
"/" +
"DPhiZJ"];
4928 if (mDPhiZJet && mDPhiZJet->getRootObject())
4929 mDPhiZJet->Fill(dphi);
4930 if (fabs(dphi - acos(-1.)) < 0.34) {
4935 const MET*
met =
nullptr;
4937 iEvent.getByToken(caloMetToken_, calometcoll);
4940 met = &(calometcoll->front());
4943 iEvent.getByToken(pfMetToken_, pfmetcoll);
4946 met = &(pfmetcoll->front());
4953 mZMass = map_of_MEs[
DirName +
"/" +
"DiMuonMass"];
4954 if (mZMass && mZMass->getRootObject())
4955 mZMass->Fill(zCand.M());
4956 mZJetAsymmetry = map_of_MEs[
DirName +
"/" +
"ZJetAsymmetry"];
4957 if (mZJetAsymmetry && mZJetAsymmetry->getRootObject())
4958 mZJetAsymmetry->Fill((zCand.Pt() - recoJet1.
pt()) / (zCand.Pt() + recoJet1.
pt()));
4959 if (recoJet1.
pt() > 20) {
4960 mPt = map_of_MEs[
DirName +
"/" +
"Pt"];
4961 if (mPt && mPt->getRootObject())
4962 mPt->Fill(recoJet1.
pt());
4963 mEta = map_of_MEs[
DirName +
"/" +
"Eta"];
4964 if (mEta && mEta->getRootObject())
4965 mEta->Fill(recoJet1.
eta());
4966 mPhi = map_of_MEs[
DirName +
"/" +
"Phi"];
4967 if (mPhi && mPhi->getRootObject())
4968 mPhi->Fill(recoJet1.
phi());
4970 mPt_profile = map_of_MEs[
DirName +
"/" +
"Pt_profile"];
4971 if (mPt_profile && mPt_profile->getRootObject())
4972 mPt_profile->Fill(numPV, recoJet1.
pt());
4973 mEta_profile = map_of_MEs[
DirName +
"/" +
"Eta_profile"];
4974 if (mEta_profile && mEta_profile->getRootObject())
4975 mEta_profile->Fill(numPV, recoJet1.
eta());
4976 mPhi_profile = map_of_MEs[
DirName +
"/" +
"Phi_profile"];
4977 if (mPhi_profile && mPhi_profile->getRootObject())
4978 mPhi_profile->Fill(numPV, recoJet1.
phi());
4979 mConstituents = map_of_MEs[
DirName +
"/" +
"Constituents"];
4980 if (mConstituents && mConstituents->getRootObject())
4982 mConstituents_profile = map_of_MEs[
DirName +
"/" +
"Constituents_profile"];
4983 if (mConstituents_profile && mConstituents_profile->getRootObject())
4984 mConstituents_profile->Fill(numPV, recoJet1.
nConstituents());
4985 mJetEnergyCorr = map_of_MEs[
DirName +
"/" +
"JetEnergyCorr"];
4986 if (mJetEnergyCorr && mJetEnergyCorr->getRootObject())
4987 mJetEnergyCorr->Fill(recoJet1.
pt() / (*pfJets)[ind1_mu_vetoed].pt());
4988 mJetEnergyCorrVSEta = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSEta"];
4989 if (mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())
4990 mJetEnergyCorrVSEta->Fill(recoJet1.
eta(), recoJet1.
pt() / (*pfJets)[ind1_mu_vetoed].pt());
4991 mJetEnergyCorrVSPt = map_of_MEs[
DirName +
"/" +
"JetEnergyCorrVSPt"];
4992 if (mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject())
4993 mJetEnergyCorrVSPt->Fill(recoJet1.
pt(), recoJet1.
pt() / (*pfJets)[ind1_mu_vetoed].pt());
4994 mCHFrac = map_of_MEs[
DirName +
"/" +
"CHFrac"];
4995 if (mCHFrac && mCHFrac->getRootObject())
4996 mCHFrac->Fill((*
pfJets)[ind1_mu_vetoed].chargedHadronEnergyFraction());
4997 mNHFrac = map_of_MEs[
DirName +
"/" +
"NHFrac"];
4998 if (mNHFrac && mNHFrac->getRootObject())
4999 mNHFrac->Fill((*
pfJets)[ind1_mu_vetoed].neutralHadronEnergyFraction());
5000 mPhFrac = map_of_MEs[
DirName +
"/" +
"PhFrac"];
5001 if (mPhFrac && mPhFrac->getRootObject())
5002 mPhFrac->Fill((*
pfJets)[ind1_mu_vetoed].neutralEmEnergyFraction());
5003 mHFEMFrac = map_of_MEs[
DirName +
"/" +
"HFEMFrac"];
5004 if (mHFEMFrac && mHFEMFrac->getRootObject())
5005 mHFEMFrac->Fill((*
pfJets)[ind1_mu_vetoed].HFEMEnergyFraction());
5006 mHFHFrac = map_of_MEs[
DirName +
"/" +
"HFHFrac"];
5007 if (mHFHFrac && mHFHFrac->getRootObject())
5008 mHFHFrac->Fill((*
pfJets)[ind1_mu_vetoed].HFHadronEnergyFraction());
5010 mCHFrac_profile = map_of_MEs[
DirName +
"/" +
"CHFrac_profile"];
5011 if (mCHFrac_profile && mCHFrac_profile->getRootObject())
5012 mCHFrac_profile->Fill(numPV, (*
pfJets)[ind1_mu_vetoed].chargedHadronEnergyFraction());
5013 mNHFrac_profile = map_of_MEs[
DirName +
"/" +
"NHFrac_profile"];
5014 if (mNHFrac_profile && mNHFrac_profile->getRootObject())
5015 mNHFrac_profile->Fill(numPV, (*
pfJets)[ind1_mu_vetoed].neutralHadronEnergyFraction());
5016 mPhFrac_profile = map_of_MEs[
DirName +
"/" +
"PhFrac_profile"];
5017 if (mPhFrac_profile && mPhFrac_profile->getRootObject())
5018 mPhFrac_profile->Fill(numPV, (*
pfJets)[ind1_mu_vetoed].neutralEmEnergyFraction());
5019 mHFEMFrac_profile = map_of_MEs[
DirName +
"/" +
"HFEMFrac_profile"];
5020 if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject())
5021 mHFEMFrac_profile->Fill(numPV, (*
pfJets)[ind1_mu_vetoed].HFEMEnergyFraction());
5022 mHFHFrac_profile = map_of_MEs[
DirName +
"/" +
"HFHFrac_profile"];
5023 if (mHFHFrac_profile && mHFHFrac_profile->getRootObject())
5024 mHFHFrac_profile->Fill(numPV, (*
pfJets)[ind1_mu_vetoed].HFHadronEnergyFraction());
5026 double MPF = 1. + (
met->px() * zCand.Px() +
met->py() * zCand.Py()) / (zCand.Pt() * zCand.Pt());
5027 if (fabs(recoJet1.
eta()) < 1.3) {
5028 mJ1Pt_over_ZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_J_Barrel"];
5029 if (mJ1Pt_over_ZPt_J_Barrel && mJ1Pt_over_ZPt_J_Barrel->getRootObject())
5030 mJ1Pt_over_ZPt_J_Barrel->Fill(recoJet1.
pt() / zCand.Pt());
5031 mMPF_J_Barrel = map_of_MEs[
DirName +
"/" +
"MPF_J_Barrel"];
5032 if (mMPF_J_Barrel && mMPF_J_Barrel->getRootObject())
5033 mMPF_J_Barrel->Fill(
MPF);
5034 if (zCand.Pt() < 90) {
5035 mJetZBalance_lowZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"JZB_lowZPt_J_Barrel"];
5036 if (mJetZBalance_lowZPt_J_Barrel && mJetZBalance_lowZPt_J_Barrel->getRootObject())
5037 mJetZBalance_lowZPt_J_Barrel->Fill(recoJet1.
pt() - zCand.Pt());
5038 mJ1Pt_over_ZPt_lowZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_lowZPt_J_Barrel"];
5039 if (mJ1Pt_over_ZPt_lowZPt_J_Barrel && mJ1Pt_over_ZPt_lowZPt_J_Barrel->getRootObject())
5040 mJ1Pt_over_ZPt_lowZPt_J_Barrel->Fill(recoJet1.
pt() / zCand.Pt());
5041 mMPF_lowZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"MPF_lowZPt_J_Barrel"];
5042 if (mMPF_lowZPt_J_Barrel && mMPF_lowZPt_J_Barrel->getRootObject())
5043 mMPF_lowZPt_J_Barrel->Fill(
MPF);
5045 }
else if (zCand.Pt() < 140) {
5046 mJetZBalance_mediumZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"JZB_mediumZPt_J_Barrel"];
5047 if (mJetZBalance_mediumZPt_J_Barrel && mJetZBalance_mediumZPt_J_Barrel->getRootObject())
5048 mJetZBalance_mediumZPt_J_Barrel->Fill(recoJet1.
pt() - zCand.Pt());
5049 mJ1Pt_over_ZPt_mediumZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_mediumZPt_J_Barrel"];
5050 if (mJ1Pt_over_ZPt_mediumZPt_J_Barrel && mJ1Pt_over_ZPt_mediumZPt_J_Barrel->getRootObject())
5051 mJ1Pt_over_ZPt_mediumZPt_J_Barrel->Fill(recoJet1.
pt() / zCand.Pt());
5052 mMPF_mediumZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"MPF_mediumZPt_J_Barrel"];
5053 if (mMPF_mediumZPt_J_Barrel && mMPF_mediumZPt_J_Barrel->getRootObject())
5054 mMPF_mediumZPt_J_Barrel->Fill(
MPF);
5056 mJetZBalance_highZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"JZB_highZPt_J_Barrel"];
5057 if (mJetZBalance_highZPt_J_Barrel && mJetZBalance_highZPt_J_Barrel->getRootObject())
5058 mJetZBalance_highZPt_J_Barrel->Fill(recoJet1.
pt() - zCand.Pt());
5059 mJ1Pt_over_ZPt_highZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_highZPt_J_Barrel"];
5060 if (mJ1Pt_over_ZPt_highZPt_J_Barrel && mJ1Pt_over_ZPt_highZPt_J_Barrel->getRootObject())
5061 mJ1Pt_over_ZPt_highZPt_J_Barrel->Fill(recoJet1.
pt() / zCand.Pt());
5062 mMPF_highZPt_J_Barrel = map_of_MEs[
DirName +
"/" +
"MPF_highZPt_J_Barrel"];
5063 if (mMPF_highZPt_J_Barrel && mMPF_highZPt_J_Barrel->getRootObject())
5064 mMPF_highZPt_J_Barrel->Fill(
MPF);
5066 if (zCand.Pt() > 30) {
5067 if (zCand.Pt() < 55) {
5068 mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel =
5069 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel"];
5070 if (mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel && mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel->getRootObject())
5071 mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5072 }
else if (zCand.Pt() < 75) {
5073 mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel =
5074 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel"];
5075 if (mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel && mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel->getRootObject())
5076 mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5077 }
else if (zCand.Pt() < 150) {
5078 mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel =
5079 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel"];
5080 if (mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel && mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel->getRootObject())
5081 mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5082 }
else if (zCand.Pt() < 290) {
5083 mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel =
5084 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel"];
5085 if (mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel && mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel->getRootObject())
5086 mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5088 mDeltaPt_Z_j1_over_ZPt_290_J_Barrel = map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_290_J_Barrel"];
5089 if (mDeltaPt_Z_j1_over_ZPt_290_J_Barrel && mDeltaPt_Z_j1_over_ZPt_290_J_Barrel->getRootObject())
5090 mDeltaPt_Z_j1_over_ZPt_290_J_Barrel->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5093 }
else if (fabs(recoJet1.
eta()) < 3.0) {
5094 mJ1Pt_over_ZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_J_EndCap"];
5095 if (mJ1Pt_over_ZPt_J_EndCap && mJ1Pt_over_ZPt_J_EndCap->getRootObject())
5096 mJ1Pt_over_ZPt_J_EndCap->Fill(recoJet1.
pt() / zCand.Pt());
5097 mMPF_J_EndCap = map_of_MEs[
DirName +
"/" +
"MPF_J_EndCap"];
5098 if (mMPF_J_EndCap && mMPF_J_EndCap->getRootObject())
5099 mMPF_J_EndCap->Fill(
MPF);
5100 if (zCand.Pt() < 90) {
5101 mJetZBalance_lowZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"JZB_lowZPt_J_EndCap"];
5102 if (mJetZBalance_lowZPt_J_EndCap && mJetZBalance_lowZPt_J_EndCap->getRootObject())
5103 mJetZBalance_lowZPt_J_EndCap->Fill(recoJet1.
pt() - zCand.Pt());
5104 mJ1Pt_over_ZPt_lowZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_lowZPt_J_EndCap"];
5105 if (mJ1Pt_over_ZPt_lowZPt_J_EndCap && mJ1Pt_over_ZPt_lowZPt_J_EndCap->getRootObject())
5106 mJ1Pt_over_ZPt_lowZPt_J_EndCap->Fill(recoJet1.
pt() / zCand.Pt());
5107 mMPF_lowZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"MPF_lowZPt_J_EndCap"];
5108 if (mMPF_lowZPt_J_EndCap && mMPF_lowZPt_J_EndCap->getRootObject())
5109 mMPF_lowZPt_J_EndCap->Fill(
MPF);
5110 }
else if (zCand.Pt() < 140) {
5111 mJetZBalance_mediumZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"JZB_mediumZPt_J_EndCap"];
5112 if (mJetZBalance_mediumZPt_J_EndCap && mJetZBalance_mediumZPt_J_EndCap->getRootObject())
5113 mJetZBalance_mediumZPt_J_EndCap->Fill(recoJet1.
pt() - zCand.Pt());
5114 mJ1Pt_over_ZPt_mediumZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_mediumZPt_J_EndCap"];
5115 if (mJ1Pt_over_ZPt_mediumZPt_J_EndCap && mJ1Pt_over_ZPt_mediumZPt_J_EndCap->getRootObject())
5116 mJ1Pt_over_ZPt_mediumZPt_J_EndCap->Fill(recoJet1.
pt() / zCand.Pt());
5117 mMPF_mediumZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"MPF_mediumZPt_J_EndCap"];
5118 if (mMPF_mediumZPt_J_EndCap && mMPF_mediumZPt_J_EndCap->getRootObject())
5119 mMPF_mediumZPt_J_EndCap->Fill(
MPF);
5121 mJetZBalance_highZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"JZB_highZPt_J_EndCap"];
5122 if (mJetZBalance_highZPt_J_EndCap && mJetZBalance_highZPt_J_EndCap->getRootObject())
5123 mJetZBalance_highZPt_J_EndCap->Fill(recoJet1.
pt() - zCand.Pt());
5124 mJ1Pt_over_ZPt_highZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_highZPt_J_EndCap"];
5125 if (mJ1Pt_over_ZPt_highZPt_J_EndCap && mJ1Pt_over_ZPt_highZPt_J_EndCap->getRootObject())
5126 mJ1Pt_over_ZPt_highZPt_J_EndCap->Fill(recoJet1.
pt() / zCand.Pt());
5127 mMPF_highZPt_J_EndCap = map_of_MEs[
DirName +
"/" +
"MPF_highZPt_J_EndCap"];
5128 if (mMPF_highZPt_J_EndCap && mMPF_highZPt_J_EndCap->getRootObject())
5129 mMPF_highZPt_J_EndCap->Fill(
MPF);
5131 if (zCand.Pt() > 30) {
5132 if (zCand.Pt() < 55) {
5133 mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap =
5134 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap"];
5135 if (mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap && mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap->getRootObject())
5136 mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5137 }
else if (zCand.Pt() < 75) {
5138 mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap =
5139 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap"];
5140 if (mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap && mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap->getRootObject())
5141 mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5142 }
else if (zCand.Pt() < 150) {
5143 mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap =
5144 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap"];
5145 if (mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap && mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap->getRootObject())
5146 mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5147 }
else if (zCand.Pt() < 290) {
5148 mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap =
5149 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap"];
5150 if (mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap && mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap->getRootObject())
5151 mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5153 mDeltaPt_Z_j1_over_ZPt_290_J_EndCap = map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_290_J_EndCap"];
5154 if (mDeltaPt_Z_j1_over_ZPt_290_J_EndCap && mDeltaPt_Z_j1_over_ZPt_290_J_EndCap->getRootObject())
5155 mDeltaPt_Z_j1_over_ZPt_290_J_EndCap->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5159 mJ1Pt_over_ZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_J_Forward"];
5160 if (mJ1Pt_over_ZPt_J_Forward && mJ1Pt_over_ZPt_J_Forward->getRootObject())
5161 mJ1Pt_over_ZPt_J_Forward->Fill(recoJet1.
pt() / zCand.Pt());
5162 mMPF_J_Forward = map_of_MEs[
DirName +
"/" +
"MPF_J_Forward"];
5163 if (mMPF_J_Forward && mMPF_J_Forward->getRootObject())
5164 mMPF_J_Forward->Fill(
MPF);
5165 if (zCand.Pt() < 90) {
5166 mJetZBalance_lowZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"JZB_lowZPt_J_Forward"];
5167 if (mJetZBalance_lowZPt_J_Forward && mJetZBalance_lowZPt_J_Forward->getRootObject())
5168 mJetZBalance_lowZPt_J_Forward->Fill(recoJet1.
pt() - zCand.Pt());
5169 mJ1Pt_over_ZPt_lowZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_lowZPt_J_Forward"];
5170 if (mJ1Pt_over_ZPt_lowZPt_J_Forward && mJ1Pt_over_ZPt_lowZPt_J_Forward->getRootObject())
5171 mJ1Pt_over_ZPt_lowZPt_J_Forward->Fill(recoJet1.
pt() / zCand.Pt());
5172 mMPF_lowZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"MPF_lowZPt_J_Forward"];
5173 if (mMPF_lowZPt_J_Forward && mMPF_lowZPt_J_Forward->getRootObject())
5174 mMPF_lowZPt_J_Forward->Fill(
MPF);
5175 }
else if (zCand.Pt() < 140) {
5176 mJetZBalance_mediumZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"JZB_mediumZPt_J_Forward"];
5177 if (mJetZBalance_mediumZPt_J_Forward && mJetZBalance_mediumZPt_J_Forward->getRootObject())
5178 mJetZBalance_mediumZPt_J_Forward->Fill(recoJet1.
pt() - zCand.Pt());
5179 mJ1Pt_over_ZPt_mediumZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_mediumZPt_J_Forward"];
5180 if (mJ1Pt_over_ZPt_mediumZPt_J_Forward && mJ1Pt_over_ZPt_mediumZPt_J_Forward->getRootObject())
5181 mJ1Pt_over_ZPt_mediumZPt_J_Forward->Fill(recoJet1.
pt() / zCand.Pt());
5182 mMPF_mediumZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"MPF_mediumZPt_J_Forward"];
5183 if (mMPF_mediumZPt_J_Forward && mMPF_mediumZPt_J_Forward->getRootObject())
5184 mMPF_mediumZPt_J_Forward->Fill(
MPF);
5186 mJetZBalance_highZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"JZB_highZPt_J_Forward"];
5187 if (mJetZBalance_highZPt_J_Forward && mJetZBalance_highZPt_J_Forward->getRootObject())
5188 mJetZBalance_highZPt_J_Forward->Fill(recoJet1.
pt() - zCand.Pt());
5189 mJ1Pt_over_ZPt_highZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"J1Pt_over_ZPt_highZPt_J_Forward"];
5190 if (mJ1Pt_over_ZPt_highZPt_J_Forward && mJ1Pt_over_ZPt_highZPt_J_Forward->getRootObject())
5191 mJ1Pt_over_ZPt_highZPt_J_Forward->Fill(recoJet1.
pt() / zCand.Pt());
5192 mMPF_highZPt_J_Forward = map_of_MEs[
DirName +
"/" +
"MPF_highZPt_J_Forward"];
5193 if (mMPF_highZPt_J_Forward && mMPF_highZPt_J_Forward->getRootObject())
5194 mMPF_highZPt_J_Forward->Fill(
MPF);
5196 if (zCand.Pt() > 30) {
5197 if (zCand.Pt() < 55) {
5198 mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward =
5199 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_30_55_J_Forward"];
5200 if (mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward && mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward->getRootObject())
5201 mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5202 }
else if (zCand.Pt() < 100) {
5203 mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward =
5204 map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_55_100_J_Forward"];
5205 if (mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward && mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward->getRootObject())
5206 mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5208 mDeltaPt_Z_j1_over_ZPt_100_J_Forward = map_of_MEs[
DirName +
"/" +
"DeltaPt_Z_j1_over_ZPt_100_J_Forward"];
5209 if (mDeltaPt_Z_j1_over_ZPt_100_J_Forward && mDeltaPt_Z_j1_over_ZPt_100_J_Forward->getRootObject())
5210 mDeltaPt_Z_j1_over_ZPt_100_J_Forward->Fill((zCand.Pt() - recoJet1.
pt()) / zCand.Pt());
5215 float QGLikelihood = -10;
5217 float QGaxis2 = -10;
5218 if (fill_CHS_histos) {
5220 QGmulti = (*qgMultiplicity)[pfjetref];
5221 QGLikelihood = (*qgLikelihood)[pfjetref];
5222 QGptD = (*qgptD)[pfjetref];
5223 QGaxis2 = (*qgaxis2)[pfjetref];
5224 if (fabs(recoJet1.
eta()) < 1.3) {
5226 if (recoJet1.
pt() >= 20. && recoJet1.
pt() <= 50.) {
5227 mAxis2_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_Barrel"];
5228 if (mAxis2_lowPt_Barrel && mAxis2_lowPt_Barrel->getRootObject())
5229 mAxis2_lowPt_Barrel->Fill(QGaxis2);
5230 mpTD_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_Barrel"];
5231 if (mpTD_lowPt_Barrel && mpTD_lowPt_Barrel->getRootObject())
5232 mpTD_lowPt_Barrel->Fill(QGptD);
5233 mMultiplicityQG_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_Barrel"];
5234 if (mMultiplicityQG_lowPt_Barrel && mMultiplicityQG_lowPt_Barrel->getRootObject())
5235 mMultiplicityQG_lowPt_Barrel->Fill(QGmulti);
5236 mqgLikelihood_lowPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_Barrel"];
5237 if (mqgLikelihood_lowPt_Barrel && mqgLikelihood_lowPt_Barrel->getRootObject())
5238 mqgLikelihood_lowPt_Barrel->Fill(QGLikelihood);
5240 if (recoJet1.
pt() > 50. && recoJet1.
pt() <= 140.) {
5241 mAxis2_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_Barrel"];
5242 if (mAxis2_mediumPt_Barrel && mAxis2_mediumPt_Barrel->getRootObject())
5243 mAxis2_mediumPt_Barrel->Fill(QGaxis2);
5244 mpTD_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_Barrel"];
5245 if (mpTD_mediumPt_Barrel && mpTD_mediumPt_Barrel->getRootObject())
5246 mpTD_mediumPt_Barrel->Fill(QGptD);
5247 mMultiplicityQG_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_Barrel"];
5248 if (mMultiplicityQG_mediumPt_Barrel && mMultiplicityQG_mediumPt_Barrel->getRootObject())
5249 mMultiplicityQG_mediumPt_Barrel->Fill(QGmulti);
5250 mqgLikelihood_mediumPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_Barrel"];
5251 if (mqgLikelihood_mediumPt_Barrel && mqgLikelihood_mediumPt_Barrel->getRootObject())
5252 mqgLikelihood_mediumPt_Barrel->Fill(QGLikelihood);
5254 if (recoJet1.
pt() > 140.) {
5255 mAxis2_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_Barrel"];
5256 if (mAxis2_highPt_Barrel && mAxis2_highPt_Barrel->getRootObject())
5257 mAxis2_highPt_Barrel->Fill(QGaxis2);
5258 mpTD_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_Barrel"];
5259 if (mpTD_highPt_Barrel && mpTD_highPt_Barrel->getRootObject())
5260 mpTD_highPt_Barrel->Fill(QGptD);
5261 mMultiplicityQG_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_Barrel"];
5262 if (mMultiplicityQG_highPt_Barrel && mMultiplicityQG_highPt_Barrel->getRootObject())
5263 mMultiplicityQG_highPt_Barrel->Fill(QGmulti);
5264 mqgLikelihood_highPt_Barrel = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_Barrel"];
5265 if (mqgLikelihood_highPt_Barrel && mqgLikelihood_highPt_Barrel->getRootObject())
5266 mqgLikelihood_highPt_Barrel->Fill(QGLikelihood);
5268 }
else if (fabs(recoJet1.
eta()) < 3.0) {
5269 if (recoJet1.
pt() > 20. && recoJet1.
pt() <= 50.) {
5270 mAxis2_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_EndCap"];
5271 if (mAxis2_lowPt_EndCap && mAxis2_lowPt_EndCap->getRootObject())
5272 mAxis2_lowPt_EndCap->Fill(QGaxis2);
5273 mpTD_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_EndCap"];
5274 if (mpTD_lowPt_EndCap && mpTD_lowPt_EndCap->getRootObject())
5275 mpTD_lowPt_EndCap->Fill(QGptD);
5276 mMultiplicityQG_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_EndCap"];
5277 if (mMultiplicityQG_lowPt_EndCap && mMultiplicityQG_lowPt_EndCap->getRootObject())
5278 mMultiplicityQG_lowPt_EndCap->Fill(QGmulti);
5279 mqgLikelihood_lowPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_EndCap"];
5280 if (mqgLikelihood_lowPt_EndCap && mqgLikelihood_lowPt_EndCap->getRootObject())
5281 mqgLikelihood_lowPt_EndCap->Fill(QGLikelihood);
5283 if (recoJet1.
pt() > 50. && recoJet1.
pt() <= 140.) {
5284 mAxis2_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_EndCap"];
5285 if (mAxis2_mediumPt_EndCap && mAxis2_mediumPt_EndCap->getRootObject())
5286 mAxis2_mediumPt_EndCap->Fill(QGaxis2);
5287 mpTD_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_EndCap"];
5288 if (mpTD_mediumPt_EndCap && mpTD_mediumPt_EndCap->getRootObject())
5289 mpTD_mediumPt_EndCap->Fill(QGptD);
5290 mMultiplicityQG_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_EndCap"];
5291 if (mMultiplicityQG_mediumPt_EndCap && mMultiplicityQG_mediumPt_EndCap->getRootObject())
5292 mMultiplicityQG_mediumPt_EndCap->Fill(QGmulti);
5293 mqgLikelihood_mediumPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_EndCap"];
5294 if (mqgLikelihood_mediumPt_EndCap && mqgLikelihood_mediumPt_EndCap->getRootObject())
5295 mqgLikelihood_mediumPt_EndCap->Fill(QGLikelihood);
5297 if (recoJet1.
pt() > 140.) {
5298 mAxis2_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_EndCap"];
5299 if (mAxis2_highPt_EndCap && mAxis2_highPt_EndCap->getRootObject())
5300 mAxis2_highPt_EndCap->Fill(QGaxis2);
5301 mpTD_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_EndCap"];
5302 if (mpTD_highPt_EndCap && mpTD_highPt_EndCap->getRootObject())
5303 mpTD_highPt_EndCap->Fill(QGptD);
5304 mMultiplicityQG_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_EndCap"];
5305 if (mMultiplicityQG_highPt_EndCap && mMultiplicityQG_highPt_EndCap->getRootObject())
5306 mMultiplicityQG_highPt_EndCap->Fill(QGmulti);
5307 mqgLikelihood_highPt_EndCap = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_EndCap"];
5308 if (mqgLikelihood_highPt_EndCap && mqgLikelihood_highPt_EndCap->getRootObject())
5309 mqgLikelihood_highPt_EndCap->Fill(QGLikelihood);
5312 if (recoJet1.
pt() > 20. && recoJet1.
pt() <= 50.) {
5313 mAxis2_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_lowPt_Forward"];
5314 if (mAxis2_lowPt_Forward && mAxis2_lowPt_Forward->getRootObject())
5315 mAxis2_lowPt_Forward->Fill(QGaxis2);
5316 mpTD_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_lowPt_Forward"];
5317 if (mpTD_lowPt_Forward && mpTD_lowPt_Forward->getRootObject())
5318 mpTD_lowPt_Forward->Fill(QGptD);
5319 mMultiplicityQG_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_lowPt_Forward"];
5320 if (mMultiplicityQG_lowPt_Forward && mMultiplicityQG_lowPt_Forward->getRootObject())
5321 mMultiplicityQG_lowPt_Forward->Fill(QGmulti);
5322 mqgLikelihood_lowPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_lowPt_Forward"];
5323 if (mqgLikelihood_lowPt_Forward && mqgLikelihood_lowPt_Forward->getRootObject())
5324 mqgLikelihood_lowPt_Forward->Fill(QGLikelihood);
5326 if (recoJet1.
pt() > 50. && recoJet1.
pt() <= 140.) {
5327 mAxis2_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_mediumPt_Forward"];
5328 if (mAxis2_mediumPt_Forward && mAxis2_mediumPt_Forward->getRootObject())
5329 mAxis2_mediumPt_Forward->Fill(QGaxis2);
5330 mpTD_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_mediumPt_Forward"];
5331 if (mpTD_mediumPt_Forward && mpTD_mediumPt_Forward->getRootObject())
5332 mpTD_mediumPt_Forward->Fill(QGptD);
5333 mMultiplicityQG_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_mediumPt_Forward"];
5334 if (mMultiplicityQG_mediumPt_Forward && mMultiplicityQG_mediumPt_Forward->getRootObject())
5335 mMultiplicityQG_mediumPt_Forward->Fill(QGmulti);
5336 mqgLikelihood_mediumPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_mediumPt_Forward"];
5337 if (mqgLikelihood_mediumPt_Forward && mqgLikelihood_mediumPt_Forward->getRootObject())
5338 mqgLikelihood_mediumPt_Forward->Fill(QGLikelihood);
5340 if (recoJet1.
pt() > 140.) {
5341 mAxis2_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Axis2_highPt_Forward"];
5342 if (mAxis2_highPt_Forward && mAxis2_highPt_Forward->getRootObject())
5343 mAxis2_highPt_Forward->Fill(QGaxis2);
5344 mpTD_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_pTD_highPt_Forward"];
5345 if (mpTD_highPt_Forward && mpTD_highPt_Forward->getRootObject())
5346 mpTD_highPt_Forward->Fill(QGptD);
5347 mMultiplicityQG_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_multiplicity_highPt_Forward"];
5348 if (mMultiplicityQG_highPt_Forward && mMultiplicityQG_highPt_Forward->getRootObject())
5349 mMultiplicityQG_highPt_Forward->Fill(QGmulti);
5350 mqgLikelihood_highPt_Forward = map_of_MEs[
DirName +
"/" +
"qg_Likelihood_highPt_Forward"];
5351 if (mqgLikelihood_highPt_Forward && mqgLikelihood_highPt_Forward->getRootObject())
5352 mqgLikelihood_highPt_Forward->Fill(QGLikelihood);
~JetAnalyzer() override
Destructor.
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Initialize run-based parameters.
T getParameter(std::string const &) const
virtual void scaleEnergy(double fScale)
scale energy of the jet
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
double pt() const final
transverse momentum
virtual void setCurrentFolder(std::string const &fullpath)
JetAnalyzer(const edm::ParameterSet &)
Constructor.
virtual void setOption(const char *option)
T const * product() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
double correction(const LorentzVector &fJet) const
get correction using Jet information only
T getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &, const edm::EventSetup &) override
Get the analysis.
static bool passJetId(int flag, Id level)
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
virtual int nConstituents() const
of constituents
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
const TechnicalTriggerWord & technicalTriggerWord(int bxInEventValue) const
numberOfValidPixelHits
at most 999 lost hits
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
PF Jet selector for pat::Jets.
Log< level::Info, false > LogInfo
Jet selector for pat::Jets and for CaloJets.
static std::string const triggerResults("TriggerResults")
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
static int position[264][3]
void bookMESetSelection(std::string, DQMStore::IBooker &)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Inizialize parameters for histo binning.
double phi() const final
momentum azimuthal angle
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
double eta() const final
momentum pseudorapidity