77 fill_jet_high_level_histo=pSet.
getParameter<
bool>(
"filljetHighLevel"),
78 filljetsubstruc_=pSet.
getParameter<
bool>(
"fillsubstructure");
79 pt_min_boosted_=pSet.
getParameter<
double>(
"ptMinBoosted");
84 isMiniAODJet_ = (
std::string(
"miniaod") ==jetType_);
87 jetCorrectorToken_ = consumes<reco::JetCorrector>(jetCorrectorTag_);
91 caloJetsToken_ = consumes<reco::CaloJetCollection>(mInputCollection_);
96 if (isPFJet_){ pfJetsToken_ = consumes<reco::PFJetCollection>(mInputCollection_);
101 patJetsToken_ = consumes<pat::JetCollection>(mInputCollection_);
104 cutBasedPUDiscriminantToken_ = consumes< edm::ValueMap<float> >(pSet.
getParameter<
edm::InputTag>(
"InputCutPUIDDiscriminant"));
107 mvaFullPUDiscriminantToken_ = consumes< edm::ValueMap<float> >(pSet.
getParameter<
edm::InputTag>(
"InputMVAPUIDDiscriminant"));
114 fill_CHS_histos= pSet.
getParameter<
bool>(
"fillCHShistos");
116 JetIDQuality_ = pSet.
getParameter<
string>(
"JetIDQuality");
117 JetIDVersion_ = pSet.
getParameter<
string>(
"JetIDVersion");
122 jetID_ValueMapToken_= consumes< edm::ValueMap<reco::JetID> >(inputJetIDValueMap);
123 if(JetIDVersion_==
"PURE09"){
125 }
else if (JetIDVersion_==
"DQM09"){
127 }
else if (JetIDVersion_==
"CRAFT08"){
130 if (verbose_)
std::cout<<
"no Valid JetID version given"<<std::endl;
132 if(JetIDQuality_==
"MINIMAL"){
134 }
else if (JetIDQuality_==
"LOOSE_AOD"){
136 }
else if (JetIDQuality_==
"LOOSE"){
138 }
else if (JetIDQuality_==
"TIGHT"){
141 if (verbose_)
std::cout<<
"no Valid JetID quality given"<<std::endl;
148 if(isPFJet_ || isMiniAODJet_){
149 if(JetIDVersion_==
"FIRSTDATA"){
151 }
else if(JetIDVersion_==
"RUNIISTARTUP"){
153 }
else if(JetIDVersion_==
"WINTER16"){
156 if (verbose_)
std::cout<<
"no valid PF JetID version given"<<std::endl;
158 if (JetIDQuality_==
"LOOSE"){
160 }
else if (JetIDQuality_==
"TIGHT"){
163 if (verbose_)
std::cout<<
"no Valid PFJetID quality given"<<std::endl;
172 ptThresholdUnc_ = 20.;
173 asymmetryThirdJetCut_ = 5.;
174 balanceThirdJetCut_ = 0.2;
177 triggerResultsToken_ = consumes<edm::TriggerResults>(
edm::InputTag(theTriggerResultsLabel_));
183 jetCleaningFlag_ =
false;
192 DCSFilterForDCSMonitoring_ =
new JetMETDQMDCSFilter(
"ecal:hbhe:hf:ho:pixel:sistrip:es:muon", iC);
201 highPtJetExpr_ = highptjetparms.
getParameter<std::vector<std::string> >(
"hltPaths");
202 lowPtJetExpr_ = lowptjetparms .getParameter<std::vector<std::string> >(
"hltPaths");
209 bypassAllPVChecks_= cleaningParameters_.
getParameter<
bool>(
"bypassAllPVChecks");
210 vertexLabel_ = cleaningParameters_.getParameter<
edm::InputTag>(
"vertexCollection");
211 vertexToken_ = consumes<std::vector<reco::Vertex> >(
edm::InputTag(vertexLabel_));
213 gtLabel_ = cleaningParameters_.getParameter<
edm::InputTag>(
"gtLabel");
214 gtToken_ = consumes<L1GlobalTriggerReadoutRecord>(
edm::InputTag(gtLabel_));
216 std::string inputCollectionLabel(mInputCollection_.label());
217 verbose_= parameters_.getParameter<
int>(
"verbose");
219 etaBin_ = parameters_.getParameter<
int>(
"etaBin");
220 etaMin_ = parameters_.getParameter<
double>(
"etaMin");
221 etaMax_ = parameters_.getParameter<
double>(
"etaMax");
223 phiBin_ = parameters_.getParameter<
int>(
"phiBin");
224 phiMin_ = parameters_.getParameter<
double>(
"phiMin");
225 phiMax_ = parameters_.getParameter<
double>(
"phiMax");
227 ptBin_ = parameters_.getParameter<
int>(
"ptBin");
228 ptMin_ = parameters_.getParameter<
double>(
"ptMin");
229 ptMax_ = parameters_.getParameter<
double>(
"ptMax");
231 eBin_ = parameters_.getParameter<
int>(
"eBin");
232 eMin_ = parameters_.getParameter<
double>(
"eMin");
233 eMax_ = parameters_.getParameter<
double>(
"eMax");
235 pBin_ = parameters_.getParameter<
int>(
"pBin");
236 pMin_ = parameters_.getParameter<
double>(
"pMin");
237 pMax_ = parameters_.getParameter<
double>(
"pMax");
239 nbinsPV_ = parameters_.getParameter<
int>(
"pVBin");
240 nPVlow_ = parameters_.getParameter<
double>(
"pVMin");
241 nPVhigh_ = parameters_.getParameter<
double>(
"pVMax");
243 ptThreshold_ = parameters_.getParameter<
double>(
"ptThreshold");
244 ptThresholdUnc_=parameters_.getParameter<
double>(
"ptThresholdUnc");
245 asymmetryThirdJetCut_ = parameters_.getParameter<
double>(
"asymmetryThirdJetCut");
246 balanceThirdJetCut_ = parameters_.getParameter<
double>(
"balanceThirdJetCut");
253 delete highPtJetEventFlag_;
254 delete lowPtJetEventFlag_;
256 delete DCSFilterForDCSMonitoring_;
257 delete DCSFilterForJetMonitoring_;
258 LogTrace(
"JetAnalyzer")<<
"[JetAnalyzer] Saving the histos";
267 if(jetCleaningFlag_){
269 DirName =
"JetMET/Jet/Cleaned"+mInputCollection_.label();
272 DirName =
"JetMET/Jet/Uncleaned"+mInputCollection_.label();
275 jetME = ibooker.
book1D(
"jetReco",
"jetReco", 4, 1, 5);
277 jetME->setBinLabel(2,
"PFJets",1);
278 jetME->setBinLabel(3,
"JPTJets",1);
279 jetME->setBinLabel(4,
"MiniAODJets",1);
281 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"jetReco",jetME));
284 mPt = ibooker.
book1D(
"Pt",
"pt", ptBin_, ptMin_, ptMax_);
285 mEta = ibooker.
book1D(
"Eta",
"eta", etaBin_, etaMin_, etaMax_);
286 mPhi = ibooker.
book1D(
"Phi",
"phi", phiBin_, phiMin_, phiMax_);
287 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt" ,mPt));
288 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Eta",mEta));
289 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi",mPhi));
292 mConstituents = ibooker.
book1D(
"Constituents",
"# of constituents", 50, 0, 100);
293 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Constituents",mConstituents));
295 mJetEnergyCorr= ibooker.
book1D(
"JetEnergyCorr",
"jet energy correction factor", 50, 0.0,3.0);
296 mJetEnergyCorrVSEta= ibooker.
bookProfile(
"JetEnergyCorrVSEta",
"jet energy correction factor VS eta", etaBin_, etaMin_,etaMax_, 0.0,3.0);
297 mJetEnergyCorrVSPt= ibooker.
bookProfile(
"JetEnergyCorrVSPt",
"jet energy correction factor VS pt", ptBin_, ptMin_,ptMax_, 0.0,3.0);
298 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetEnergyCorr" ,mJetEnergyCorr));
299 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetEnergyCorrVSEta" ,mJetEnergyCorrVSEta));
300 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetEnergyCorrVSPt" ,mJetEnergyCorrVSPt));
302 mPt_uncor = ibooker.
book1D(
"Pt_uncor",
"pt for uncorrected jets", ptBin_, ptThresholdUnc_, ptMax_);
303 mEta_uncor = ibooker.
book1D(
"Eta_uncor",
"eta for uncorrected jets", etaBin_, etaMin_, etaMax_);
304 mPhi_uncor = ibooker.
book1D(
"Phi_uncor",
"phi for uncorrected jets", phiBin_, phiMin_, phiMax_);
305 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_uncor" ,mPt_uncor));
306 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Eta_uncor",mEta_uncor));
307 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_uncor",mPhi_uncor));
309 mConstituents_uncor = ibooker.
book1D(
"Constituents_uncor",
"# of constituents for uncorrected jets", 50, 0, 100);
310 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Constituents_uncor",mConstituents_uncor));
313 mDPhi = ibooker.
book1D(
"DPhi",
"dPhi btw the two leading jets", 100, 0., acos(-1.));
314 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"DPhi",mDPhi));
318 mPt_profile = ibooker.
bookProfile(
"Pt_profile",
"pt", nbinsPV_, nPVlow_, nPVhigh_, ptBin_, ptMin_, ptMax_);
319 mEta_profile = ibooker.
bookProfile(
"Eta_profile",
"eta", nbinsPV_, nPVlow_, nPVhigh_, etaBin_, etaMin_, etaMax_);
320 mPhi_profile = ibooker.
bookProfile(
"Phi_profile",
"phi", nbinsPV_, nPVlow_, nPVhigh_, phiBin_, phiMin_, phiMax_);
322 mConstituents_profile = ibooker.
bookProfile(
"Constituents_profile",
"# of constituents", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
324 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_profile" ,mPt_profile));
325 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Eta_profile",mEta_profile));
326 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_profile",mPhi_profile));
331 mLooseJIDPassFractionVSeta = ibooker.
bookProfile(
"JetIDPassFractionVSeta",
"JetIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
332 mLooseJIDPassFractionVSpt = ibooker.
bookProfile(
"JetIDPassFractionVSpt",
"JetIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
333 mLooseJIDPassFractionVSptNoHF = ibooker.
bookProfile(
"JetIDPassFractionVSptNoHF",
"JetIDPassFractionVSptNoHF",ptBin_, ptMin_, ptMax_,0.,1.2);
334 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetIDPassFractionVSeta" ,mLooseJIDPassFractionVSeta));
335 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetIDPassFractionVSpt" ,mLooseJIDPassFractionVSpt));
336 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetIDPassFractionVSptNoHF",mLooseJIDPassFractionVSptNoHF));
339 mNJets_profile = ibooker.
bookProfile(
"NJets_profile",
"number of jets", nbinsPV_, nPVlow_, nPVhigh_, 100, 0, 100);
345 mEta_profile ->setAxisTitle(
"nvtx",1);
346 mPhi_profile ->setAxisTitle(
"nvtx",1);
348 mConstituents_profile->setAxisTitle(
"nvtx",1);
349 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Constituents_profile",mConstituents_profile));
351 mNJets_profile->setAxisTitle(
"nvtx",1);
353 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_profile" ,mPt_profile));
354 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Eta_profile",mEta_profile));
355 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_profile",mPhi_profile));
356 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NJets_profile" ,mNJets_profile));
359 mPhiVSEta = ibooker.
book2D(
"PhiVSEta",
"PhiVSEta", 50, etaMin_, etaMax_, 24, phiMin_, phiMax_);
360 mPhiVSEta->
getTH2F()->SetOption(
"colz");
361 mPhiVSEta->setAxisTitle(
"#eta",1);
362 mPhiVSEta->setAxisTitle(
"#phi",2);
363 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhiVSEta" ,mPhiVSEta));
365 mPt_1 = ibooker.
book1D(
"Pt_1",
"Pt spectrum of jets - range 1", 20, 0, 100);
366 mPt_2 = ibooker.
book1D(
"Pt_2",
"Pt spectrum of jets - range 2", 60, 0, 300);
367 mPt_3 = ibooker.
book1D(
"Pt_3",
"Pt spectrum of jets - range 3", 100, 0, 5000);
369 mPt_Lo = ibooker.
book1D(
"Pt_Lo",
"Pt (Pass Low Pt Jet Trigger)", 20, 0, 100);
371 mPhi_Lo = ibooker.
book1D(
"Phi_Lo",
"Phi (Pass Low Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
373 mPt_Hi = ibooker.
book1D(
"Pt_Hi",
"Pt (Pass Hi Pt Jet Trigger)", 60, 0, 300);
374 mEta_Hi = ibooker.
book1D(
"Eta_Hi",
"Eta (Pass Hi Pt Jet Trigger)", etaBin_, etaMin_, etaMax_);
375 mPhi_Hi = ibooker.
book1D(
"Phi_Hi",
"Phi (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
376 mNJets = ibooker.
book1D(
"NJets",
"number of jets", 100, 0, 100);
378 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_1" ,mPt_1));
379 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_2" ,mPt_2));
380 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_3" ,mPt_3));
381 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_Lo" ,mPt_Lo));
382 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_Lo" ,mPhi_Lo));
383 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_Hi" ,mPt_Hi));
384 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Eta_Hi" ,mEta_Hi));
385 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_Hi" ,mPhi_Hi));
386 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NJets" ,mNJets));
391 mConstituents_Barrel = ibooker.
book1D(
"Constituents_Barrel",
"Constituents Barrel", 50, 0, 100);
392 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Constituents_Barrel",mConstituents_Barrel));
398 mConstituents_EndCap = ibooker.
book1D(
"Constituents_EndCap",
"Constituents EndCap", 50, 0, 100);
399 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Constituents_EndCap",mConstituents_EndCap));
406 mConstituents_Forward = ibooker.
book1D(
"Constituents_Forward",
"Constituents Forward", 50, 0, 100);
407 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Constituents_Forward",mConstituents_Forward));
412 mPt_Barrel_Hi = ibooker.
book1D(
"Pt_Barrel_Hi",
"Pt Barrel (Pass Hi Pt Jet Trigger)", 60, 0, 300);
413 mPhi_Barrel_Hi = ibooker.
book1D(
"Phi_Barrel_Hi",
"Phi Barrel (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
415 mPt_EndCap_Hi = ibooker.
book1D(
"Pt_EndCap_Hi",
"Pt EndCap (Pass Hi Pt Jet Trigger)", 60, 0, 300);
416 mPhi_EndCap_Hi = ibooker.
book1D(
"Phi_EndCap_Hi",
"Phi EndCap (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
418 mPt_Forward_Hi = ibooker.
book1D(
"Pt_Forward_Hi",
"Pt Forward (Pass Hi Pt Jet Trigger)", 60, 0, 300);
419 mPhi_Forward_Hi = ibooker.
book1D(
"Phi_Forward_Hi",
"Phi Forward (Pass Hi Pt Jet Trigger)", phiBin_, phiMin_, phiMax_);
421 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_Barrel_Hi" ,mPt_Barrel_Hi));
422 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_Barrel_Hi",mPhi_Barrel_Hi));
423 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_EndCap_Hi" ,mPt_EndCap_Hi));
424 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_EndCap_Hi",mPhi_EndCap_Hi));
425 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_Forward_Hi" ,mPt_Forward_Hi));
426 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_Forward_Hi",mPhi_Forward_Hi));
428 mPhi_Barrel = ibooker.
book1D(
"Phi_Barrel",
"Phi_Barrel", phiBin_, phiMin_, phiMax_);
429 mPt_Barrel = ibooker.
book1D(
"Pt_Barrel",
"Pt_Barrel", ptBin_, ptMin_, ptMax_);
431 mPhi_EndCap = ibooker.
book1D(
"Phi_EndCap",
"Phi_EndCap", phiBin_, phiMin_, phiMax_);
432 mPt_EndCap = ibooker.
book1D(
"Pt_EndCap",
"Pt_EndCap", ptBin_, ptMin_, ptMax_);
434 mPhi_Forward = ibooker.
book1D(
"Phi_Forward",
"Phi_Forward", phiBin_, phiMin_, phiMax_);
435 mPt_Forward = ibooker.
book1D(
"Pt_Forward",
"Pt_Forward", ptBin_, ptMin_, ptMax_);
437 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_Barrel" ,mPt_Barrel));
438 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_Barrel",mPhi_Barrel));
439 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_EndCap" ,mPt_EndCap));
440 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_EndCap",mPhi_EndCap));
441 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_Forward" ,mPt_Forward));
442 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Phi_Forward",mPhi_Forward));
445 mEtaFirst = ibooker.
book1D(
"EtaFirst",
"EtaFirst", 50, -5, 5);
446 mPhiFirst = ibooker.
book1D(
"PhiFirst",
"PhiFirst", 70, phiMin_, phiMax_);
447 mPtFirst = ibooker.
book1D(
"PtFirst",
"PtFirst", ptBin_, ptMin_, ptMax_);
449 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EtaFirst" ,mEtaFirst));
450 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtFirst" ,mPtFirst));
451 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhiFirst" ,mPhiFirst));
457 mHadEnergyInHO = ibooker.
book1D(
"HadEnergyInHO",
"HadEnergyInHO", 50, 0, 20);
458 mHadEnergyInHB = ibooker.
book1D(
"HadEnergyInHB",
"HadEnergyInHB", 50, 0, 100);
459 mHadEnergyInHF = ibooker.
book1D(
"HadEnergyInHF",
"HadEnergyInHF", 50, 0, 100);
460 mHadEnergyInHE = ibooker.
book1D(
"HadEnergyInHE",
"HadEnergyInHE", 50, 0, 200);
461 mEmEnergyInEB = ibooker.
book1D(
"EmEnergyInEB",
"EmEnergyInEB", 50, 0, 100);
462 mEmEnergyInEE = ibooker.
book1D(
"EmEnergyInEE",
"EmEnergyInEE", 50, 0, 100);
463 mEmEnergyInHF = ibooker.
book1D(
"EmEnergyInHF",
"EmEnergyInHF", 60, -20, 200);
464 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HadEnergyInHO" ,mHadEnergyInHO));
465 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HadEnergyInHB" ,mHadEnergyInHB));
466 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HadEnergyInHF" ,mHadEnergyInHF));
467 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HadEnergyInHE" ,mHadEnergyInHE));
468 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EmEnergyInEB" ,mEmEnergyInEB));
469 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EmEnergyInEE" ,mEmEnergyInEE));
470 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EmEnergyInHF" ,mEmEnergyInHF));
473 mresEMF = ibooker.
book1D(
"resEMF",
"resEMF", 50, 0., 1.);
474 mN90Hits = ibooker.
book1D(
"N90Hits",
"N90Hits", 50, 0., 50);
475 mfHPD = ibooker.
book1D(
"fHPD",
"fHPD", 50, 0., 1.);
476 mfRBX = ibooker.
book1D(
"fRBX",
"fRBX", 50, 0., 1.);
477 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"resEMF" ,mresEMF));
478 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"N90Hits" ,mN90Hits));
479 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"fHPD" ,mfHPD));
480 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"fRBX" ,mfRBX));
482 mHFrac = ibooker.
book1D(
"HFrac",
"HFrac", 70, -0.2, 1.2);
483 mEFrac = ibooker.
book1D(
"EFrac",
"EFrac", 52, -0.02, 1.02);
484 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFrac" ,mHFrac));
485 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EFrac" ,mEFrac));
486 mHFrac_profile = ibooker.
bookProfile(
"HFrac_profile",
"HFrac", nbinsPV_, nPVlow_, nPVhigh_, 70, -0.2, 1.2);
487 mEFrac_profile = ibooker.
bookProfile(
"EFrac_profile",
"EFrac", nbinsPV_, nPVlow_, nPVhigh_, 52, -0.02, 1.02);
489 mEFrac_profile ->setAxisTitle(
"nvtx",1);
490 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFrac_profile",mHFrac_profile));
491 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EFrac_profile",mEFrac_profile));
492 mHFrac_Barrel = ibooker.
book1D(
"HFrac_Barrel",
"HFrac Barrel", 50, 0, 1);
493 mEFrac_Barrel = ibooker.
book1D(
"EFrac_Barrel",
"EFrac Barrel", 52, -0.02, 1.02);
494 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFrac_Barrel" ,mHFrac_Barrel));
495 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EFrac_Barrel" ,mEFrac_Barrel));
496 mHFrac_EndCap = ibooker.
book1D(
"HFrac_EndCap",
"HFrac EndCap", 50, 0, 1);
497 mEFrac_EndCap = ibooker.
book1D(
"EFrac_EndCap",
"EFrac EndCap", 52, -0.02, 1.02);
498 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFrac_EndCap" ,mHFrac_EndCap));
499 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EFrac_EndCap" ,mEFrac_EndCap));
500 mHFrac_Forward = ibooker.
book1D(
"HFrac_Forward",
"HFrac Forward", 70, -0.2, 1.2);
501 mEFrac_Forward = ibooker.
book1D(
"EFrac_Forward",
"EFrac Forward", 52, -0.02, 1.02);
502 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFrac_Forward" ,mHFrac_Forward));
503 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EFrac_Forward" ,mEFrac_Forward));
591 mCHFracVSeta_lowPt= ibooker.
bookProfile(
"CHFracVSeta_lowPt",
"CHFracVSeta_lowPt",etaBin_, etaMin_, etaMax_,0.,1.2);
592 mNHFracVSeta_lowPt= ibooker.
bookProfile(
"NHFacVSeta_lowPt",
"NHFracVSeta_lowPt",etaBin_, etaMin_, etaMax_,0.,1.2);
593 mPhFracVSeta_lowPt= ibooker.
bookProfile(
"PhFracVSeta_lowPt",
"PhFracVSeta_lowPt",etaBin_, etaMin_, etaMax_,0.,1.2);
594 mCHFracVSeta_mediumPt= ibooker.
bookProfile(
"CHFracVSeta_mediumPt",
"CHFracVSeta_mediumPt",etaBin_, etaMin_, etaMax_,0.,1.2);
595 mNHFracVSeta_mediumPt= ibooker.
bookProfile(
"NHFracVSeta_mediumPt",
"NHFracVSeta_mediumPt",etaBin_, etaMin_, etaMax_,0.,1.2);
596 mPhFracVSeta_mediumPt= ibooker.
bookProfile(
"PhFracVSeta_mediumPt",
"PhFracVSeta_mediumPt",etaBin_, etaMin_, etaMax_,0.,1.2);
597 mCHFracVSeta_highPt= ibooker.
bookProfile(
"CHFracVSeta_highPt",
"CHFracVSeta_highPt",etaBin_, etaMin_, etaMax_,0.,1.2);
598 mNHFracVSeta_highPt= ibooker.
bookProfile(
"NHFracVSeta_highPt",
"NHFracVSeta_highPt",etaBin_, etaMin_, etaMax_,0.,1.2);
599 mPhFracVSeta_highPt= ibooker.
bookProfile(
"PhFracVSeta_highPt",
"PhFracVSeta_highPt",etaBin_, etaMin_, etaMax_,0.,1.2);
601 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracVSeta_lowPt" ,mCHFracVSeta_lowPt));
602 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracVSeta_lowPt" ,mNHFracVSeta_lowPt));
603 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracVSeta_lowPt" ,mPhFracVSeta_lowPt));
604 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracVSeta_mediumPt" ,mCHFracVSeta_mediumPt));
605 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracVSeta_mediumPt" ,mNHFracVSeta_mediumPt));
606 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracVSeta_mediumPt" ,mPhFracVSeta_mediumPt));
607 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracVSeta_highPt" ,mCHFracVSeta_highPt));
608 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracVSeta_highPt" ,mNHFracVSeta_highPt));
609 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracVSeta_highPt" ,mPhFracVSeta_highPt));
611 mLooseMVAPUJIDPassFractionVSeta = ibooker.
bookProfile(
"LooseMVAPUIDPassFractionVSeta",
"LooseMVAPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
612 mLooseMVAPUJIDPassFractionVSpt = ibooker.
bookProfile(
"LooseMVAPUIDPassFractionVSpt",
"LooseMVAPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
613 mMediumMVAPUJIDPassFractionVSeta = ibooker.
bookProfile(
"MediumMVAPUIDPassFractionVSeta",
"MediumMVAPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
614 mMediumMVAPUJIDPassFractionVSpt = ibooker.
bookProfile(
"MediumMVAPUIDPassFractionVSpt",
"MediumMVAPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
615 mTightMVAPUJIDPassFractionVSeta = ibooker.
bookProfile(
"TightMVAPUIDPassFractionVSeta",
"TightMVAPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
616 mTightMVAPUJIDPassFractionVSpt = ibooker.
bookProfile(
"TightMVAPUIDPassFractionVSpt",
"TightMVAPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
618 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"LooseMVAPUIDPassFractionVSeta",mLooseMVAPUJIDPassFractionVSeta));
619 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"LooseMVAPUIDPassFractionVSpt",mLooseMVAPUJIDPassFractionVSpt));
620 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MediumMVAPUIDPassFractionVSeta",mMediumMVAPUJIDPassFractionVSeta));
621 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MediumMVAPUIDPassFractionVSpt",mMediumMVAPUJIDPassFractionVSpt));
622 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"TightMVAPUIDPassFractionVSeta",mTightMVAPUJIDPassFractionVSeta));
623 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"TightMVAPUIDPassFractionVSpt",mTightMVAPUJIDPassFractionVSpt));
625 mLooseCutPUJIDPassFractionVSeta = ibooker.
bookProfile(
"LooseCutPUIDPassFractionVSeta",
"LooseCutPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
626 mLooseCutPUJIDPassFractionVSpt = ibooker.
bookProfile(
"LooseCutPUIDPassFractionVSpt",
"LooseCutPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
627 mMediumCutPUJIDPassFractionVSeta = ibooker.
bookProfile(
"MediumCutPUIDPassFractionVSeta",
"MediumCutPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
628 mMediumCutPUJIDPassFractionVSpt = ibooker.
bookProfile(
"MediumCutPUIDPassFractionVSpt",
"MediumCutPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
629 mTightCutPUJIDPassFractionVSeta = ibooker.
bookProfile(
"TightCutPUIDPassFractionVSeta",
"TightCutPUIDPassFractionVSeta",etaBin_, etaMin_, etaMax_,0.,1.2);
630 mTightCutPUJIDPassFractionVSpt = ibooker.
bookProfile(
"TightCutPUIDPassFractionVSpt",
"TightCutPUIDPassFractionVSpt",ptBin_, ptMin_, ptMax_,0.,1.2);
631 mCutPUJIDDiscriminant_lowPt_Barrel = ibooker.
book1D(
"CutPUJIDDiscriminant_lowPt_Barrel",
"CutPUJIDDiscriminant_lowPt_Barrel",50, -1.00, 1.00);
632 mCutPUJIDDiscriminant_lowPt_EndCap = ibooker.
book1D(
"CutPUJIDDiscriminant_lowPt_EndCap",
"CutPUJIDDiscriminant_lowPt_EndCap",50, -1.00, 1.00);
633 mCutPUJIDDiscriminant_lowPt_Forward = ibooker.
book1D(
"CutPUJIDDiscriminant_lowPt_Forward",
"CutPUJIDDiscriminant_lowPt_Forward",50, -1.00, 1.00);
634 mCutPUJIDDiscriminant_mediumPt_Barrel = ibooker.
book1D(
"CutPUJIDDiscriminant_mediumPt_Barrel",
"CutPUJIDDiscriminant_mediumPt_Barrel",50, -1.00, 1.00);
635 mCutPUJIDDiscriminant_mediumPt_EndCap = ibooker.
book1D(
"CutPUJIDDiscriminant_mediumPt_EndCap",
"CutPUJIDDiscriminant_mediumPt_EndCap",50, -1.00, 1.00);
636 mCutPUJIDDiscriminant_mediumPt_Forward = ibooker.
book1D(
"CutPUJIDDiscriminant_mediumPt_Forward",
"CutPUJIDDiscriminant_mediumPt_Forward",50, -1.00, 1.00);
637 mCutPUJIDDiscriminant_highPt_Barrel = ibooker.
book1D(
"CutPUJIDDiscriminant_highPt_Barrel",
"CutPUJIDDiscriminant_highPt_Barrel",50, -1.00, 1.00);
638 mCutPUJIDDiscriminant_highPt_EndCap = ibooker.
book1D(
"CutPUJIDDiscriminant_highPt_EndCap",
"CutPUJIDDiscriminant_highPt_EndCap",50, -1.00, 1.00);
639 mCutPUJIDDiscriminant_highPt_Forward = ibooker.
book1D(
"CutPUJIDDiscriminant_highPt_Forward",
"CutPUJIDDiscriminant_highPt_Forward",50, -1.00, 1.00);
641 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"LooseCutPUIDPassFractionVSeta",mLooseCutPUJIDPassFractionVSeta));
642 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"LooseCutPUIDPassFractionVSpt",mLooseCutPUJIDPassFractionVSpt));
643 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MediumCutPUIDPassFractionVSeta",mMediumCutPUJIDPassFractionVSeta));
644 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MediumCutPUIDPassFractionVSpt",mMediumCutPUJIDPassFractionVSpt));
645 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"TightCutPUIDPassFractionVSeta",mTightCutPUJIDPassFractionVSeta));
646 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"TightCutPUIDPassFractionVSpt",mTightCutPUJIDPassFractionVSpt));
647 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_lowPt_Barrel",mCutPUJIDDiscriminant_lowPt_Barrel));
648 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_lowPt_EndCap",mCutPUJIDDiscriminant_lowPt_EndCap));
649 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_lowPt_Forward",mCutPUJIDDiscriminant_lowPt_Forward));
650 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_mediumPt_Barrel",mCutPUJIDDiscriminant_mediumPt_Barrel));
651 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_mediumPt_EndCap",mCutPUJIDDiscriminant_mediumPt_EndCap));
652 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_mediumPt_Forward",mCutPUJIDDiscriminant_mediumPt_Forward));
653 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_highPt_Barrel",mCutPUJIDDiscriminant_highPt_Barrel));
654 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_highPt_EndCap",mCutPUJIDDiscriminant_highPt_EndCap));
655 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CutPUJIDDiscriminant_highPt_Forward",mCutPUJIDDiscriminant_highPt_Forward));
658 mCHFrac_lowPt_Barrel = ibooker.
book1D(
"CHFrac_lowPt_Barrel",
"CHFrac_lowPt_Barrel", 120, -0.1, 1.1);
659 mNHFrac_lowPt_Barrel = ibooker.
book1D(
"NHFrac_lowPt_Barrel",
"NHFrac_lowPt_Barrel", 120, -0.1, 1.1);
660 mPhFrac_lowPt_Barrel = ibooker.
book1D(
"PhFrac_lowPt_Barrel",
"PhFrac_lowPt_Barrel", 120, -0.1, 1.1);
661 mCHFrac_mediumPt_Barrel = ibooker.
book1D(
"CHFrac_mediumPt_Barrel",
"CHFrac_mediumPt_Barrel", 120, -0.1, 1.1);
662 mNHFrac_mediumPt_Barrel = ibooker.
book1D(
"NHFrac_mediumPt_Barrel",
"NHFrac_mediumPt_Barrel", 120, -0.1, 1.1);
663 mPhFrac_mediumPt_Barrel = ibooker.
book1D(
"PhFrac_mediumPt_Barrel",
"PhFrac_mediumPt_Barrel", 120, -0.1, 1.1);
664 mCHFrac_highPt_Barrel = ibooker.
book1D(
"CHFrac_highPt_Barrel",
"CHFrac_highPt_Barrel", 120, -0.1, 1.1);
665 mNHFrac_highPt_Barrel = ibooker.
book1D(
"NHFrac_highPt_Barrel",
"NHFrac_highPt_Barrel", 120, -0.1, 1.1);
666 mPhFrac_highPt_Barrel = ibooker.
book1D(
"PhFrac_highPt_Barrel",
"PhFrac_highPt_Barrel", 120, -0.1, 1.1);
668 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFrac_lowPt_Barrel" ,mCHFrac_lowPt_Barrel));
669 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFrac_lowPt_Barrel" ,mNHFrac_lowPt_Barrel));
670 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFrac_lowPt_Barrel" ,mPhFrac_lowPt_Barrel));
671 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFrac_mediumPt_Barrel" ,mCHFrac_mediumPt_Barrel));
672 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFrac_mediumPt_Barrel" ,mNHFrac_mediumPt_Barrel));
673 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFrac_mediumPt_Barrel" ,mPhFrac_mediumPt_Barrel));
674 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFrac_highPt_Barrel" ,mCHFrac_highPt_Barrel));
675 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFrac_highPt_Barrel" ,mNHFrac_highPt_Barrel));
676 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFrac_highPt_Barrel" ,mPhFrac_highPt_Barrel));
678 mMass_lowPt_Barrel = ibooker.
book1D(
"JetMass_lowPt_Barrel",
"JetMass_lowPt_Barrel", 50, 0, 150);
679 mMass_lowPt_EndCap = ibooker.
book1D(
"JetMass_lowPt_EndCap",
"JetMass_lowPt_EndCap", 50, 0, 150);
680 mMass_lowPt_Forward = ibooker.
book1D(
"JetMass_lowPt_Forward",
"JetMass_lowPt_Forward", 50, 0, 150);
681 mMass_mediumPt_Barrel = ibooker.
book1D(
"JetMass_mediumPt_Barrel",
"JetMass_mediumPt_Barrel", 50, 0, 150);
682 mMass_mediumPt_EndCap = ibooker.
book1D(
"JetMass_mediumPt_EndCap",
"JetMass_mediumPt_EndCap", 50, 0, 150);
683 mMass_mediumPt_Forward = ibooker.
book1D(
"JetMass_mediumPt_Forward",
"JetMass_mediumPt_Forward", 75, 0, 150);
684 mMass_highPt_Barrel = ibooker.
book1D(
"JetMass_highPt_Barrel",
"JetMass_highPt_Barrel", 50, 0, 150);
685 mMass_highPt_EndCap = ibooker.
book1D(
"JetMass_highPt_EndCap",
"JetMass_highPt_EndCap", 50, 0, 150);
686 mMass_highPt_Forward = ibooker.
book1D(
"JetMass_highPt_Forward",
"JetMass_highPt_Forward", 50, 0, 150);
688 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_lowPt_Barrel" , mMass_lowPt_Barrel ));
689 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_lowPt_EndCap" , mMass_lowPt_EndCap ));
690 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_lowPt_Forward" , mMass_lowPt_Forward ));
691 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_mediumPt_Barrel" , mMass_mediumPt_Barrel ));
692 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_mediumPt_EndCap" , mMass_mediumPt_EndCap ));
693 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_mediumPt_Forward" , mMass_mediumPt_Forward ));
694 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_highPt_Barrel" , mMass_highPt_Barrel ));
695 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_highPt_EndCap" , mMass_highPt_EndCap ));
696 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_highPt_Forward" , mMass_highPt_Forward ));
700 mCHEn_lowPt_Barrel = ibooker.
book1D(
"CHEn_lowPt_Barrel",
"CHEn_lowPt_Barrel", ptBin_, 0., ptMax_);
701 mNHEn_lowPt_Barrel = ibooker.
book1D(
"NHEn_lowPt_Barrel",
"NHEn_lowPt_Barrel", ptBin_, 0., ptMax_);
702 mPhEn_lowPt_Barrel = ibooker.
book1D(
"PhEn_lowPt_Barrel",
"PhEn_lowPt_Barrel", ptBin_, 0., ptMax_);
703 mElEn_lowPt_Barrel = ibooker.
book1D(
"ElEn_lowPt_Barrel",
"ElEn_lowPt_Barrel", ptBin_, 0., 100);
704 mMuEn_lowPt_Barrel = ibooker.
book1D(
"MuEn_lowPt_Barrel",
"MuEn_lowPt_Barrel", ptBin_, 0., 100);
705 mCHEn_mediumPt_Barrel = ibooker.
book1D(
"CHEn_mediumPt_Barrel",
"CHEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
706 mNHEn_mediumPt_Barrel = ibooker.
book1D(
"NHEn_mediumPt_Barrel",
"NHEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
707 mPhEn_mediumPt_Barrel = ibooker.
book1D(
"PhEn_mediumPt_Barrel",
"PhEn_mediumPt_Barrel", ptBin_, 0., ptMax_);
708 mElEn_mediumPt_Barrel = ibooker.
book1D(
"ElEn_mediumPt_Barrel",
"ElEn_mediumPt_Barrel", ptBin_, 0., 100);
709 mMuEn_mediumPt_Barrel = ibooker.
book1D(
"MuEn_mediumPt_Barrel",
"MuEn_mediumPt_Barrel", ptBin_, 0., 100);
710 mCHEn_highPt_Barrel = ibooker.
book1D(
"CHEn_highPt_Barrel",
"CHEn_highPt_Barrel", ptBin_, 0., 1.1*ptMax_);
711 mNHEn_highPt_Barrel = ibooker.
book1D(
"NHEn_highPt_Barrel",
"NHEn_highPt_Barrel", ptBin_, 0., ptMax_);
712 mPhEn_highPt_Barrel = ibooker.
book1D(
"PhEn_highPt_Barrel",
"PhEn_highPt_Barrel", ptBin_, 0., ptMax_);
713 mElEn_highPt_Barrel = ibooker.
book1D(
"ElEn_highPt_Barrel",
"ElEn_highPt_Barrel", ptBin_, 0., 100);
714 mMuEn_highPt_Barrel = ibooker.
book1D(
"MuEn_highPt_Barrel",
"MuEn_highPt_Barrel", ptBin_, 0., 100);
716 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHEn_lowPt_Barrel" ,mCHEn_lowPt_Barrel));
717 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHEn_lowPt_Barrel" ,mNHEn_lowPt_Barrel));
718 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhEn_lowPt_Barrel" ,mPhEn_lowPt_Barrel));
719 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ElEn_lowPt_Barrel" ,mElEn_lowPt_Barrel));
720 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuEn_lowPt_Barrel" ,mMuEn_lowPt_Barrel));
721 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHEn_mediumPt_Barrel" ,mCHEn_mediumPt_Barrel));
722 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHEn_mediumPt_Barrel" ,mNHEn_mediumPt_Barrel));
723 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhEn_mediumPt_Barrel" ,mPhEn_mediumPt_Barrel));
724 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ElEn_mediumPt_Barrel" ,mElEn_mediumPt_Barrel));
725 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuEn_mediumPt_Barrel" ,mMuEn_mediumPt_Barrel));
726 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHEn_highPt_Barrel" ,mCHEn_highPt_Barrel));
727 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHEn_highPt_Barrel" ,mNHEn_highPt_Barrel));
728 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhEn_highPt_Barrel" ,mPhEn_highPt_Barrel));
729 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ElEn_highPt_Barrel" ,mElEn_highPt_Barrel));
730 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuEn_highPt_Barrel" ,mMuEn_highPt_Barrel));
733 mChMultiplicity_lowPt_Barrel = ibooker.
book1D(
"ChMultiplicity_lowPt_Barrel",
"ChMultiplicity_lowPt_Barrel", 60,0,60);
734 mNeutMultiplicity_lowPt_Barrel = ibooker.
book1D(
"NeutMultiplicity_lowPt_Barrel",
"NeutMultiplicity_lowPt_Barrel", 60,0,60);
735 mMuMultiplicity_lowPt_Barrel = ibooker.
book1D(
"MuMultiplicity_lowPt_Barrel",
"MuMultiplicity_lowPt_Barrel", 10,0,10);
736 mChMultiplicity_mediumPt_Barrel = ibooker.
book1D(
"ChMultiplicity_mediumPt_Barrel",
"ChMultiplicity_mediumPt_Barrel", 60,0,60);
737 mNeutMultiplicity_mediumPt_Barrel = ibooker.
book1D(
"NeutMultiplicity_mediumPt_Barrel",
"NeutMultiplicity_mediumPt_Barrel", 60,0,60);
738 mMuMultiplicity_mediumPt_Barrel = ibooker.
book1D(
"MuMultiplicity_mediumPt_Barrel",
"MuMultiplicity_mediumPt_Barrel", 10,0,10);
739 mChMultiplicity_highPt_Barrel = ibooker.
book1D(
"ChMultiplicity_highPt_Barrel",
"ChMultiplicity_highPt_Barrel", 60,0,60);
740 mNeutMultiplicity_highPt_Barrel = ibooker.
book1D(
"NeutMultiplicity_highPt_Barrel",
"NeutMultiplicity_highPt_Barrel", 60,0,60);
741 mMuMultiplicity_highPt_Barrel = ibooker.
book1D(
"MuMultiplicity_highPt_Barrel",
"MuMultiplicity_highPt_Barrel", 10,0,10);
743 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChMultiplicity_lowPt_Barrel" ,mChMultiplicity_lowPt_Barrel));
744 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_lowPt_Barrel" ,mNeutMultiplicity_lowPt_Barrel));
745 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuMultiplicity_lowPt_Barrel" ,mMuMultiplicity_lowPt_Barrel));
746 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChMultiplicity_mediumPt_Barrel" ,mChMultiplicity_mediumPt_Barrel));
747 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_mediumPt_Barrel" ,mNeutMultiplicity_mediumPt_Barrel));
748 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuMultiplicity_mediumPt_Barrel" ,mMuMultiplicity_mediumPt_Barrel));
749 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChMultiplicity_highPt_Barrel" ,mChMultiplicity_highPt_Barrel));
750 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_highPt_Barrel" ,mNeutMultiplicity_highPt_Barrel));
751 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuMultiplicity_highPt_Barrel" ,mMuMultiplicity_highPt_Barrel));
754 if(isMiniAODJet_ || isPFJet_){
756 if(!filljetsubstruc_){
757 mMVAPUJIDDiscriminant_lowPt_Barrel = ibooker.
book1D(
"MVAPUJIDDiscriminant_lowPt_Barrel",
"MVAPUJIDDiscriminant_lowPt_Barrel",50, -1.00, 1.00);
758 mMVAPUJIDDiscriminant_lowPt_EndCap = ibooker.
book1D(
"MVAPUJIDDiscriminant_lowPt_EndCap",
"MVAPUJIDDiscriminant_lowPt_EndCap",50, -1.00, 1.00);
759 mMVAPUJIDDiscriminant_lowPt_Forward = ibooker.
book1D(
"MVAPUJIDDiscriminant_lowPt_Forward",
"MVAPUJIDDiscriminant_lowPt_Forward",50, -1.00, 1.00);
760 mMVAPUJIDDiscriminant_mediumPt_Barrel = ibooker.
book1D(
"MVAPUJIDDiscriminant_mediumPt_Barrel",
"MVAPUJIDDiscriminant_mediumPt_Barrel",50, -1.00, 1.00);
761 mMVAPUJIDDiscriminant_mediumPt_EndCap = ibooker.
book1D(
"MVAPUJIDDiscriminant_mediumPt_EndCap",
"MVAPUJIDDiscriminant_mediumPt_EndCap",50, -1.00, 1.00);
762 mMVAPUJIDDiscriminant_mediumPt_Forward = ibooker.
book1D(
"MVAPUJIDDiscriminant_mediumPt_Forward",
"MVAPUJIDDiscriminant_mediumPt_Forward",50, -1.00, 1.00);
763 mMVAPUJIDDiscriminant_highPt_Barrel = ibooker.
book1D(
"MVAPUJIDDiscriminant_highPt_Barrel",
"MVAPUJIDDiscriminant_highPt_Barrel",50, -1.00, 1.00);
764 mMVAPUJIDDiscriminant_highPt_EndCap = ibooker.
book1D(
"MVAPUJIDDiscriminant_highPt_EndCap",
"MVAPUJIDDiscriminant_highPt_EndCap",50, -1.00, 1.00);
765 mMVAPUJIDDiscriminant_highPt_Forward = ibooker.
book1D(
"MVAPUJIDDiscriminant_highPt_Forward",
"MVAPUJIDDiscriminant_highPt_Forward",50, -1.00, 1.00);
767 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_Barrel",mMVAPUJIDDiscriminant_lowPt_Barrel));
768 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_EndCap",mMVAPUJIDDiscriminant_lowPt_EndCap));
769 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_Forward",mMVAPUJIDDiscriminant_lowPt_Forward));
770 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_Barrel",mMVAPUJIDDiscriminant_mediumPt_Barrel));
771 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_EndCap",mMVAPUJIDDiscriminant_mediumPt_EndCap));
772 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_Forward",mMVAPUJIDDiscriminant_mediumPt_Forward));
773 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_Barrel",mMVAPUJIDDiscriminant_highPt_Barrel));
774 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_EndCap",mMVAPUJIDDiscriminant_highPt_EndCap));
775 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_Forward",mMVAPUJIDDiscriminant_highPt_Forward));
777 mCHFracVSpT_Barrel= ibooker.
bookProfile(
"CHFracVSpT_Barrel",
"CHFracVSpT_Barrel",ptBin_, ptMin_, ptMax_,0.,1.2);
778 mNHFracVSpT_Barrel= ibooker.
bookProfile(
"NHFracVSpT_Barrel",
"NHFracVSpT_Barrel",ptBin_, ptMin_, ptMax_,0.,1.2);
779 mPhFracVSpT_Barrel= ibooker.
bookProfile(
"PhFracVSpT_Barrel",
"PhFracVSpT_Barrel",ptBin_, ptMin_, ptMax_,0.,1.2);
780 mCHFracVSpT_EndCap= ibooker.
bookProfile(
"CHFracVSpT_EndCap",
"CHFracVSpT_EndCap",ptBin_, ptMin_, ptMax_,0.,1.2);
781 mNHFracVSpT_EndCap= ibooker.
bookProfile(
"NHFracVSpT_EndCap",
"NHFracVSpT_EndCap",ptBin_, ptMin_, ptMax_,0.,1.2);
782 mPhFracVSpT_EndCap= ibooker.
bookProfile(
"PhFracVSpT_EndCap",
"PhFracVSpT_EndCap",ptBin_, ptMin_, ptMax_,0.,1.2);
783 mHFHFracVSpT_Forward= ibooker.
bookProfile(
"HFHFracVSpT_Forward",
"HFHFracVSpT_Forward",ptBin_, ptMin_, ptMax_,-0.2,1.2);
784 mHFEFracVSpT_Forward= ibooker.
bookProfile(
"HFEFracVSpT_Forward",
"HFEFracVSpT_Forward",ptBin_, ptMin_, ptMax_,-0.2,1.2);
786 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracVSpT_Barrel" ,mCHFracVSpT_Barrel));
787 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracVSpT_Barrel" ,mNHFracVSpT_Barrel));
788 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracVSpT_Barrel" ,mPhFracVSpT_Barrel));
789 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracVSpT_EndCap" ,mCHFracVSpT_EndCap));
790 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracVSpT_EndCap" ,mNHFracVSpT_EndCap));
791 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracVSpT_EndCap" ,mPhFracVSpT_EndCap));
792 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHFracVSpT_Forward" ,mHFHFracVSpT_Forward));
793 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEFracVSpT_Forward" ,mHFEFracVSpT_Forward));
798 mCHFrac_lowPt_EndCap = ibooker.
book1D(
"CHFrac_lowPt_EndCap",
"CHFrac_lowPt_EndCap", 120, -0.1, 1.1);
799 mNHFrac_lowPt_EndCap = ibooker.
book1D(
"NHFrac_lowPt_EndCap",
"NHFrac_lowPt_EndCap", 120, -0.1, 1.1);
800 mPhFrac_lowPt_EndCap = ibooker.
book1D(
"PhFrac_lowPt_EndCap",
"PhFrac_lowPt_EndCap", 120, -0.1, 1.1);
801 mCHFrac_mediumPt_EndCap = ibooker.
book1D(
"CHFrac_mediumPt_EndCap",
"CHFrac_mediumPt_EndCap", 120, -0.1, 1.1);
802 mNHFrac_mediumPt_EndCap = ibooker.
book1D(
"NHFrac_mediumPt_EndCap",
"NHFrac_mediumPt_EndCap", 120, -0.1, 1.1);
803 mPhFrac_mediumPt_EndCap = ibooker.
book1D(
"PhFrac_mediumPt_EndCap",
"PhFrac_mediumPt_EndCap", 120, -0.1, 1.1);
804 mCHFrac_highPt_EndCap = ibooker.
book1D(
"CHFrac_highPt_EndCap",
"CHFrac_highPt_EndCap", 120, -0.1, 1.1);
805 mNHFrac_highPt_EndCap = ibooker.
book1D(
"NHFrac_highPt_EndCap",
"NHFrac_highPt_EndCap", 120, -0.1, 1.1);
806 mPhFrac_highPt_EndCap = ibooker.
book1D(
"PhFrac_highPt_EndCap",
"PhFrac_highPt_EndCap", 120, -0.1, 1.1);
808 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFrac_lowPt_EndCap" ,mCHFrac_lowPt_EndCap));
809 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFrac_lowPt_EndCap" ,mNHFrac_lowPt_EndCap));
810 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFrac_lowPt_EndCap" ,mPhFrac_lowPt_EndCap));
811 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFrac_mediumPt_EndCap" ,mCHFrac_mediumPt_EndCap));
812 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFrac_mediumPt_EndCap" ,mNHFrac_mediumPt_EndCap));
813 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFrac_mediumPt_EndCap" ,mPhFrac_mediumPt_EndCap));
814 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFrac_highPt_EndCap" ,mCHFrac_highPt_EndCap));
815 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFrac_highPt_EndCap" ,mNHFrac_highPt_EndCap));
816 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFrac_highPt_EndCap" ,mPhFrac_highPt_EndCap));
819 mCHEn_lowPt_EndCap = ibooker.
book1D(
"CHEn_lowPt_EndCap",
"CHEn_lowPt_EndCap", ptBin_, 0., ptMax_);
820 mNHEn_lowPt_EndCap = ibooker.
book1D(
"NHEn_lowPt_EndCap",
"NHEn_lowPt_EndCap", ptBin_, 0., ptMax_);
821 mPhEn_lowPt_EndCap = ibooker.
book1D(
"PhEn_lowPt_EndCap",
"PhEn_lowPt_EndCap", ptBin_, 0., ptMax_);
822 mElEn_lowPt_EndCap = ibooker.
book1D(
"ElEn_lowPt_EndCap",
"ElEn_lowPt_EndCap", ptBin_, 0., 100);
823 mMuEn_lowPt_EndCap = ibooker.
book1D(
"MuEn_lowPt_EndCap",
"MuEn_lowPt_EndCap", ptBin_, 0., 100);
824 mCHEn_mediumPt_EndCap = ibooker.
book1D(
"CHEn_mediumPt_EndCap",
"CHEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
825 mNHEn_mediumPt_EndCap = ibooker.
book1D(
"NHEn_mediumPt_EndCap",
"NHEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
826 mPhEn_mediumPt_EndCap = ibooker.
book1D(
"PhEn_mediumPt_EndCap",
"PhEn_mediumPt_EndCap", ptBin_, 0., ptMax_);
827 mElEn_mediumPt_EndCap = ibooker.
book1D(
"ElEn_mediumPt_EndCap",
"ElEn_mediumPt_EndCap", ptBin_, 0., 100);
828 mMuEn_mediumPt_EndCap = ibooker.
book1D(
"MuEn_mediumPt_EndCap",
"MuEn_mediumPt_EndCap", ptBin_, 0., 100);
829 mCHEn_highPt_EndCap = ibooker.
book1D(
"CHEn_highPt_EndCap",
"CHEn_highPt_EndCap", ptBin_, 0., 1.5*ptMax_);
830 mNHEn_highPt_EndCap = ibooker.
book1D(
"NHEn_highPt_EndCap",
"NHEn_highPt_EndCap", ptBin_, 0., 1.5*ptMax_);
831 mPhEn_highPt_EndCap = ibooker.
book1D(
"PhEn_highPt_EndCap",
"PhEn_highPt_EndCap", ptBin_, 0., 1.5*ptMax_);
832 mElEn_highPt_EndCap = ibooker.
book1D(
"ElEn_highPt_EndCap",
"ElEn_highPt_EndCap", ptBin_, 0., 100);
833 mMuEn_highPt_EndCap = ibooker.
book1D(
"MuEn_highPt_EndCap",
"MuEn_highPt_EndCap", ptBin_, 0., 100);
835 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHEn_lowPt_EndCap" ,mCHEn_lowPt_EndCap));
836 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHEn_lowPt_EndCap" ,mNHEn_lowPt_EndCap));
837 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhEn_lowPt_EndCap" ,mPhEn_lowPt_EndCap));
838 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ElEn_lowPt_EndCap" ,mElEn_lowPt_EndCap));
839 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuEn_lowPt_EndCap" ,mMuEn_lowPt_EndCap));
840 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHEn_mediumPt_EndCap" ,mCHEn_mediumPt_EndCap));
841 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHEn_mediumPt_EndCap" ,mNHEn_mediumPt_EndCap));
842 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhEn_mediumPt_EndCap" ,mPhEn_mediumPt_EndCap));
843 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ElEn_mediumPt_EndCap" ,mElEn_mediumPt_EndCap));
844 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuEn_mediumPt_EndCap" ,mMuEn_mediumPt_EndCap));
845 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHEn_highPt_EndCap" ,mCHEn_highPt_EndCap));
846 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHEn_highPt_EndCap" ,mNHEn_highPt_EndCap));
847 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhEn_highPt_EndCap" ,mPhEn_highPt_EndCap));
848 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ElEn_highPt_EndCap" ,mElEn_highPt_EndCap));
849 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuEn_highPt_EndCap" ,mMuEn_highPt_EndCap));
930 mePhFracBarrel_BXm1Empty = ibooker.
book1D(
"PhFracBarrel_BXm1Empty",
"PHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
931 mePhFracBarrel_BXm1Filled = ibooker.
book1D(
"PhFracBarrel_BXm1Filled",
"PHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
932 meNHFracBarrel_BXm1Empty = ibooker.
book1D(
"NHFracBarrel_BXm1Empty",
"NHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
933 meNHFracBarrel_BXm1Filled = ibooker.
book1D(
"NHFracBarrel_BXm1Filled",
"NHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
934 meCHFracBarrel_BXm1Empty = ibooker.
book1D(
"CHFracBarrel_BXm1Empty",
"CHFrac prev empty 1 bunch (Barrel)", 50, 0, 1);
935 meCHFracBarrel_BXm1Filled = ibooker.
book1D(
"CHFracBarrel_BXm1Filled",
"CHFrac prev filled 1 bunch (Barrel)", 50, 0, 1);
936 mePtBarrel_BXm1Empty = ibooker.
book1D(
"PtBarrel_BXm1Empty",
"pT prev empty 1 bunch (Barrel)", ptBin_, ptMin_, ptMax_);
937 mePtBarrel_BXm1Filled = ibooker.
book1D(
"PtBarrel_BXm1Filled",
"pT prev filled 1 bunch (Barrel)", ptBin_, ptMin_, ptMax_);
938 mePhFracEndCapPlus_BXm1Empty = ibooker.
book1D(
"PhFracEndCapPlus_BXm1Empty",
"PHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
939 mePhFracEndCapPlus_BXm1Filled = ibooker.
book1D(
"PhFracEndCapPlus_BXm1Filled",
"PHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
940 meNHFracEndCapPlus_BXm1Empty = ibooker.
book1D(
"NHFracEndCapPlus_BXm1Empty",
"NHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
941 meNHFracEndCapPlus_BXm1Filled = ibooker.
book1D(
"NHFracEndCapPlus_BXm1Filled",
"NHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
942 meCHFracEndCapPlus_BXm1Empty = ibooker.
book1D(
"CHFracEndCapPlus_BXm1Empty",
"CHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
943 meCHFracEndCapPlus_BXm1Filled = ibooker.
book1D(
"CHFracEndCapPlus_BXm1Filled",
"CHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
944 mePtEndCapPlus_BXm1Empty = ibooker.
book1D(
"PtEndCapPlus_BXm1Empty",
"pT prev empty 1 bunch (EndCapPlus)", ptBin_, ptMin_, ptMax_);
945 mePtEndCapPlus_BXm1Filled = ibooker.
book1D(
"PtEndCapPlus_BXm1Filled",
"pT prev filled 1 bunch (EndCapPlus)", ptBin_, ptMin_, ptMax_);
946 meHFHFracPlus_BXm1Empty = ibooker.
book1D(
"HFHFracPlus_BXm1Empty",
"HFHFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
947 meHFHFracPlus_BXm1Filled = ibooker.
book1D(
"HFHFracPlus_BXm1Filled",
"HFHFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
948 meHFEMFracPlus_BXm1Empty = ibooker.
book1D(
"HFEMFracPlus_BXm1Empty",
"HFEMFrac prev empty 1 bunch (EndCapPlus)", 50, 0, 1);
949 meHFEMFracPlus_BXm1Filled = ibooker.
book1D(
"HFEMFracPlus_BXm1Filled",
"HFEMFrac prev filled 1 bunch (EndCapPlus)", 50, 0, 1);
950 mePtForwardPlus_BXm1Empty = ibooker.
book1D(
"PtForwardPlus_BXm1Empty",
"pT prev empty 1 bunch (ForwardPlus)", ptBin_, ptMin_, ptMax_);
951 mePtForwardPlus_BXm1Filled = ibooker.
book1D(
"PtForwardPlus_BXm1Filled",
"pT prev filled 1 bunch (ForwardPlus)", ptBin_, ptMin_, ptMax_);
952 mePhFracEndCapMinus_BXm1Empty = ibooker.
book1D(
"PhFracEndCapMinus_BXm1Empty",
"PHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
953 mePhFracEndCapMinus_BXm1Filled = ibooker.
book1D(
"PhFracEndCapMinus_BXm1Filled",
"PHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
954 meNHFracEndCapMinus_BXm1Empty = ibooker.
book1D(
"NHFracEndCapMinus_BXm1Empty",
"NHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
955 meNHFracEndCapMinus_BXm1Filled = ibooker.
book1D(
"NHFracEndCapMinus_BXm1Filled",
"NHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
956 meCHFracEndCapMinus_BXm1Empty = ibooker.
book1D(
"CHFracEndCapMinus_BXm1Empty",
"CHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
957 meCHFracEndCapMinus_BXm1Filled = ibooker.
book1D(
"CHFracEndCapMinus_BXm1Filled",
"CHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
958 mePtEndCapMinus_BXm1Empty = ibooker.
book1D(
"PtEndCapMinus_BXm1Empty",
"pT prev empty 1 bunch (EndCapMinus)", ptBin_, ptMin_, ptMax_);
959 mePtEndCapMinus_BXm1Filled = ibooker.
book1D(
"PtEndCapMinus_BXm1Filled",
"pT prev filled 1 bunch (EndCapMinus)", ptBin_, ptMin_, ptMax_);
960 meHFHFracMinus_BXm1Empty = ibooker.
book1D(
"HFHFracMinus_BXm1Empty",
"HFHFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
961 meHFHFracMinus_BXm1Filled = ibooker.
book1D(
"HFHFracMinus_BXm1Filled",
"HFHFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
962 meHFEMFracMinus_BXm1Empty = ibooker.
book1D(
"HFEMFracMinus_BXm1Empty",
"HFEMFrac prev empty 1 bunch (EndCapMinus)", 50, 0, 1);
963 meHFEMFracMinus_BXm1Filled = ibooker.
book1D(
"HFEMFracMinus_BXm1Filled",
"HFEMFrac prev filled 1 bunch (EndCapMinus)", 50, 0, 1);
964 mePtForwardMinus_BXm1Empty = ibooker.
book1D(
"PtForwardMinus_BXm1Empty",
"pT prev empty 1 bunch (ForwardMinus)", ptBin_, ptMin_, ptMax_);
965 mePtForwardMinus_BXm1Filled = ibooker.
book1D(
"PtForwardMinus_BXm1Filled",
"pT prev filled 1 bunch (ForwardMinus)", ptBin_, ptMin_, ptMax_);
966 meEta_BXm1Empty = ibooker.
book1D(
"Eta_BXm1Empty",
"eta prev empty 1 bunch", etaBin_, etaMin_, etaMax_);
967 meEta_BXm1Filled = ibooker.
book1D(
"Eta_BXm1Filled",
"eta prev filled 1 bunch", etaBin_, etaMin_, etaMax_);
969 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracBarrel_BXm1Empty" ,mePhFracBarrel_BXm1Empty));
970 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracBarrel_BXm1Filled" ,mePhFracBarrel_BXm1Filled));
971 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracBarrel_BXm1Empty" ,meNHFracBarrel_BXm1Empty));
972 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracBarrel_BXm1Filled" ,meNHFracBarrel_BXm1Filled));
973 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracBarrel_BXm1Empty" ,meCHFracBarrel_BXm1Empty));
974 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracBarrel_BXm1Filled" ,meCHFracBarrel_BXm1Filled));
975 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtBarrel_BXm1Empty" ,mePtBarrel_BXm1Empty));
976 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtBarrel_BXm1Filled" ,mePtBarrel_BXm1Filled));
977 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracEndCapPlus_BXm1Empty" ,mePhFracEndCapPlus_BXm1Empty));
978 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracEndCapPlus_BXm1Filled" ,mePhFracEndCapPlus_BXm1Filled));
979 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracEndCapPlus_BXm1Empty" ,meNHFracEndCapPlus_BXm1Empty));
980 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracEndCapPlus_BXm1Filled" ,meNHFracEndCapPlus_BXm1Filled));
981 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracEndCapPlus_BXm1Empty" ,meCHFracEndCapPlus_BXm1Empty));
982 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracEndCapPlus_BXm1Filled" ,meCHFracEndCapPlus_BXm1Filled));
983 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtEndCapPlus_BXm1Empty" ,mePtEndCapPlus_BXm1Empty));
984 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtEndCapPlus_BXm1Filled" ,mePtEndCapPlus_BXm1Filled));
985 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHFracPlus_BXm1Empty" ,meHFHFracPlus_BXm1Empty));
986 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHFracPlus_BXm1Filled" ,meHFHFracPlus_BXm1Filled));
987 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEMFracPlus_BXm1Empty" ,meHFEMFracPlus_BXm1Empty));
988 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEMFracPlus_BXm1Filled" ,meHFEMFracPlus_BXm1Filled));
989 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtForwardPlus_BXm1Empty" ,mePtForwardPlus_BXm1Empty));
990 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtForwardPlus_BXm1Filled" ,mePtForwardPlus_BXm1Filled));
991 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracEndCapMinus_BXm1Empty" ,mePhFracEndCapMinus_BXm1Empty));
992 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PhFracEndCapMinus_BXm1Filled" ,mePhFracEndCapMinus_BXm1Filled));
993 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracEndCapMinus_BXm1Empty" ,meNHFracEndCapMinus_BXm1Empty));
994 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NHFracEndCapMinus_BXm1Filled" ,meNHFracEndCapMinus_BXm1Filled));
995 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracEndCapMinus_BXm1Empty" ,meCHFracEndCapMinus_BXm1Empty));
996 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CHFracEndCapMinus_BXm1Filled" ,meCHFracEndCapMinus_BXm1Filled));
997 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtEndCapMinus_BXm1Empty" ,mePtEndCapMinus_BXm1Empty));
998 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtEndCapMinus_BXm1Filled" ,mePtEndCapMinus_BXm1Filled));
999 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHFracMinus_BXm1Empty" ,meHFHFracMinus_BXm1Empty));
1000 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHFracMinus_BXm1Filled" ,meHFHFracMinus_BXm1Filled));
1001 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEMFracMinus_BXm1Empty" ,meHFEMFracMinus_BXm1Empty));
1002 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEMFracMinus_BXm1Filled" ,meHFEMFracMinus_BXm1Filled));
1003 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtForwardMinus_BXm1Empty" ,mePtForwardMinus_BXm1Empty));
1004 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PtForwardMinus_BXm1Filled" ,mePtForwardMinus_BXm1Filled));
1005 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Eta_BXm1Empty" ,meEta_BXm1Empty));
1006 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Eta_BXm1Filled",meEta_BXm1Filled));
1009 mChMultiplicity_lowPt_EndCap = ibooker.
book1D(
"ChMultiplicity_lowPt_EndCap",
"ChMultiplicity_lowPt_EndCap", 60,0,60);
1010 mNeutMultiplicity_lowPt_EndCap = ibooker.
book1D(
"NeutMultiplicity_lowPt_EndCap",
"NeutMultiplicity_lowPt_EndCap", 60,0,60);
1011 mMuMultiplicity_lowPt_EndCap = ibooker.
book1D(
"MuMultiplicity_lowPt_EndCap",
"MuMultiplicity_lowPt_EndCap", 10,0,10);
1012 mChMultiplicity_mediumPt_EndCap = ibooker.
book1D(
"ChMultiplicity_mediumPt_EndCap",
"ChMultiplicity_mediumPt_EndCap", 60,0,60);
1013 mNeutMultiplicity_mediumPt_EndCap = ibooker.
book1D(
"NeutMultiplicity_mediumPt_EndCap",
"NeutMultiplicity_mediumPt_EndCap", 60,0,60);
1014 mMuMultiplicity_mediumPt_EndCap = ibooker.
book1D(
"MuMultiplicity_mediumPt_EndCap",
"MuMultiplicity_mediumPt_EndCap", 10,0,10);
1015 mChMultiplicity_highPt_EndCap = ibooker.
book1D(
"ChMultiplicity_highPt_EndCap",
"ChMultiplicity_highPt_EndCap", 60,0,60);
1016 mNeutMultiplicity_highPt_EndCap = ibooker.
book1D(
"NeutMultiplicity_highPt_EndCap",
"NeutMultiplicity_highPt_EndCap", 60,0,60);
1017 mMuMultiplicity_highPt_EndCap = ibooker.
book1D(
"MuMultiplicity_highPt_EndCap",
"MuMultiplicity_highPt_EndCap", 10,0,10);
1019 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChMultiplicity_lowPt_EndCap" ,mChMultiplicity_lowPt_EndCap));
1020 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_lowPt_EndCap" ,mNeutMultiplicity_lowPt_EndCap));
1021 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuMultiplicity_lowPt_EndCap" ,mMuMultiplicity_lowPt_EndCap));
1022 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChMultiplicity_mediumPt_EndCap" ,mChMultiplicity_mediumPt_EndCap));
1023 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_mediumPt_EndCap" ,mNeutMultiplicity_mediumPt_EndCap));
1024 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuMultiplicity_mediumPt_EndCap" ,mMuMultiplicity_mediumPt_EndCap));
1025 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChMultiplicity_highPt_EndCap" ,mChMultiplicity_highPt_EndCap));
1026 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_highPt_EndCap" ,mNeutMultiplicity_highPt_EndCap));
1027 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuMultiplicity_highPt_EndCap" ,mMuMultiplicity_highPt_EndCap));
1031 mHFEFrac_lowPt_Forward = ibooker.
book1D(
"HFEFrac_lowPt_Forward",
"HFEFrac_lowPt_Forward", 70, -0.2, 1.2);
1032 mHFHFrac_lowPt_Forward = ibooker.
book1D(
"HFHFrac_lowPt_Forward",
"HFHFrac_lowPt_Forward", 70, -0.2, 1.2);
1033 mHFEFrac_mediumPt_Forward = ibooker.
book1D(
"HFEFrac_mediumPt_Forward",
"HFEFrac_mediumPt_Forward", 70, -0.2, 1.2);
1034 mHFHFrac_mediumPt_Forward = ibooker.
book1D(
"HFHFrac_mediumPt_Forward",
"HFHFrac_mediumPt_Forward", 70, -0.2, 1.2);
1035 mHFEFrac_highPt_Forward = ibooker.
book1D(
"HFEFrac_highPt_Forward",
"HFEFrac_highPt_Forward", 70, -0.2, 1.2);
1036 mHFHFrac_highPt_Forward = ibooker.
book1D(
"HFHFrac_highPt_Forward",
"HFHFrac_highPt_Forward", 70, -0.2, 1.2);
1037 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHFrac_lowPt_Forward" ,mHFHFrac_lowPt_Forward));
1038 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEFrac_lowPt_Forward" ,mHFEFrac_lowPt_Forward));
1039 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHFrac_mediumPt_Forward" ,mHFHFrac_mediumPt_Forward));
1040 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEFrac_mediumPt_Forward" ,mHFEFrac_mediumPt_Forward));
1041 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHFrac_highPt_Forward" ,mHFHFrac_highPt_Forward));
1042 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEFrac_highPt_Forward" ,mHFEFrac_highPt_Forward));
1045 mHFEEn_lowPt_Forward = ibooker.
book1D(
"HFEEn_lowPt_Forward",
"HFEEn_lowPt_Forward", ptBin_, 0., ptMax_);
1046 mHFHEn_lowPt_Forward = ibooker.
book1D(
"HFHEn_lowPt_Forward",
"HFHEn_lowPt_Forward", ptBin_, 0., 2.0*ptMax_);
1047 mHFEEn_mediumPt_Forward = ibooker.
book1D(
"HFEEn_mediumPt_Forward",
"HFEEn_mediumPt_Forward", ptBin_, 0., 1.5*ptMax_);
1048 mHFHEn_mediumPt_Forward = ibooker.
book1D(
"HFHEn_mediumPt_Forward",
"HFHEn_mediumPt_Forward", ptBin_, 0., 2.5*ptMax_);
1049 mHFEEn_highPt_Forward = ibooker.
book1D(
"HFEEn_highPt_Forward",
"HFEEn_highPt_Forward", ptBin_, 0., 1.5*ptMax_);
1050 mHFHEn_highPt_Forward = ibooker.
book1D(
"HFHEn_highPt_Forward",
"HFHEn_highPt_Forward", ptBin_, 0., 5.0*ptMax_);
1051 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHEn_lowPt_Forward" ,mHFHEn_lowPt_Forward));
1052 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEEn_lowPt_Forward" ,mHFEEn_lowPt_Forward));
1053 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHEn_mediumPt_Forward" ,mHFHEn_mediumPt_Forward));
1054 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEEn_mediumPt_Forward" ,mHFEEn_mediumPt_Forward));
1055 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFHEn_highPt_Forward" ,mHFHEn_highPt_Forward));
1056 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"HFEEn_highPt_Forward" ,mHFEEn_highPt_Forward));
1058 mNeutMultiplicity_lowPt_Forward = ibooker.
book1D(
"NeutMultiplicity_lowPt_Forward",
"NeutMultiplicity_lowPt_Forward", 60,0,60);
1059 mNeutMultiplicity_mediumPt_Forward = ibooker.
book1D(
"NeutMultiplicity_mediumPt_Forward",
"NeutMultiplicity_mediumPt_Forward", 60,0,60);
1060 mNeutMultiplicity_highPt_Forward = ibooker.
book1D(
"NeutMultiplicity_highPt_Forward",
"NeutMultiplicity_highPt_Forward", 60,0,60);
1062 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_lowPt_Forward" ,mNeutMultiplicity_lowPt_Forward));
1063 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_mediumPt_Forward" ,mNeutMultiplicity_mediumPt_Forward));
1064 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutMultiplicity_highPt_Forward" ,mNeutMultiplicity_highPt_Forward));
1066 mChargedHadronEnergy = ibooker.
book1D(
"ChargedHadronEnergy",
"charged HAD energy", 50, 0, 100);
1067 mNeutralHadronEnergy = ibooker.
book1D(
"NeutralHadronEnergy",
"neutral HAD energy", 50, 0, 100);
1068 mChargedEmEnergy = ibooker.
book1D(
"ChargedEmEnergy",
"charged EM energy ", 50, 0, 100);
1069 mChargedMuEnergy = ibooker.
book1D(
"ChargedMuEnergy",
"charged Mu energy", 50, 0, 100);
1070 mNeutralEmEnergy = ibooker.
book1D(
"NeutralEmEnergy",
"neutral EM energy", 50, 0, 100);
1071 mChargedMultiplicity = ibooker.
book1D(
"ChargedMultiplicity",
"charged multiplicity ", 50, 0, 100);
1072 mNeutralMultiplicity = ibooker.
book1D(
"NeutralMultiplicity",
"neutral multiplicity", 50, 0, 100);
1073 mMuonMultiplicity = ibooker.
book1D(
"MuonMultiplicity",
"muon multiplicity", 50, 0, 100);
1074 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChargedHadronEnergy" ,mChargedHadronEnergy));
1075 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutralHadronEnergy" ,mNeutralHadronEnergy));
1076 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChargedEmEnergy" ,mChargedEmEnergy));
1077 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChargedMuEnergy" ,mChargedMuEnergy));
1078 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutralEmEnergy" ,mNeutralEmEnergy));
1079 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChargedMultiplicity" ,mChargedMultiplicity));
1080 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutralMultiplicity" ,mNeutralMultiplicity));
1081 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuonMultiplicity" ,mMuonMultiplicity));
1085 mChargedHadronEnergy_profile = ibooker.
bookProfile(
"ChargedHadronEnergy_profile",
"charged HAD energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1086 mNeutralHadronEnergy_profile = ibooker.
bookProfile(
"NeutralHadronEnergy_profile",
"neutral HAD energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1087 mChargedEmEnergy_profile = ibooker.
bookProfile(
"ChargedEmEnergy_profile",
"charged EM energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1088 mChargedMuEnergy_profile = ibooker.
bookProfile(
"ChargedMuEnergy_profile",
"charged Mu energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1089 mNeutralEmEnergy_profile = ibooker.
bookProfile(
"NeutralEmEnergy_profile",
"neutral EM energy", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1090 mChargedMultiplicity_profile = ibooker.
bookProfile(
"ChargedMultiplicity_profile",
"charged multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1091 mNeutralMultiplicity_profile = ibooker.
bookProfile(
"NeutralMultiplicity_profile",
"neutral multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1092 mMuonMultiplicity_profile = ibooker.
bookProfile(
"MuonMultiplicity_profile",
"muon multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1097 mNeutralHadronEnergy_profile->setAxisTitle(
"nvtx",1);
1098 mChargedEmEnergy_profile ->setAxisTitle(
"nvtx",1);
1099 mChargedMuEnergy_profile ->setAxisTitle(
"nvtx",1);
1100 mNeutralEmEnergy_profile ->setAxisTitle(
"nvtx",1);
1101 mChargedMultiplicity_profile->setAxisTitle(
"nvtx",1);
1102 mNeutralMultiplicity_profile->setAxisTitle(
"nvtx",1);
1103 mMuonMultiplicity_profile ->setAxisTitle(
"nvtx",1);
1105 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChargedHadronEnergy_profile" ,mChargedHadronEnergy_profile));
1106 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutralHadronEnergy_profile" ,mNeutralHadronEnergy_profile));
1107 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChargedEmEnergy_profile" ,mChargedEmEnergy_profile));
1108 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChargedMuEnergy_profile" ,mChargedMuEnergy_profile));
1109 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutralEmEnergy_profile" ,mNeutralEmEnergy_profile));
1110 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"ChargedMultiplicity_profile" ,mChargedMultiplicity_profile));
1111 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutralMultiplicity_profile" ,mNeutralMultiplicity_profile));
1112 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"MuonMultiplicity_profile" ,mMuonMultiplicity_profile));
1114 mNeutralFraction = ibooker.
book1D(
"NeutralConstituentsFraction",
"Neutral Constituents Fraction",100,0,1);
1115 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"NeutralConstituentsFraction" ,mNeutralFraction));
1121 mMass_Barrel = ibooker.
book1D(
"JetMass_Barrel",
"JetMass_Barrel", 50, 0, 250);
1122 mMass_EndCap = ibooker.
book1D(
"JetMass_EndCap",
"JetMass_EndCap", 50, 0, 250);
1123 mMass_Forward = ibooker.
book1D(
"JetMass_Forward",
"JetMass_Forward", 50, 0, 250);
1125 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_Barrel" , mMass_Barrel ));
1126 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_EndCap" , mMass_EndCap ));
1127 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"JetMass_Forward" , mMass_Forward ));
1128 if(!filljetsubstruc_){
1130 mPt_CaloJet = ibooker.
book1D(
"Pt_CaloJet",
"Pt_CaloJet", ptBin_, 10, ptMax_);
1131 mEMF_CaloJet = ibooker.
book1D(
"EMF_CaloJet",
"EMF_CaloJet", 52, -0.02, 1.02);
1132 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"Pt_CaloJet" ,mPt_CaloJet));
1133 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"EMF_CaloJet" ,mEMF_CaloJet));
1135 if(filljetsubstruc_){
1137 mSoftDropMass = ibooker.
book1D(
"SoftDropMass",
"SoftDropMass", 50, 0, 250);
1138 mPrunedMass = ibooker.
book1D(
"PrunedMass",
"PrunedMass", 50, 0, 250);
1139 mTrimmedMass = ibooker.
book1D(
"TrimmedMass",
"TrimmedMass", 50, 0, 250);
1140 mFilteredMass = ibooker.
book1D(
"FilteredMass",
"FilteredMass", 50, 0, 250);
1141 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SoftDropMass" ,mSoftDropMass));
1142 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PrunedMass" ,mPrunedMass));
1143 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"TrimmedMass" ,mTrimmedMass));
1144 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"FilteredMass" ,mFilteredMass));
1146 mtau2_over_tau1 = ibooker.
book1D(
"tau2_over_tau1",
"tau2_over_tau1", 50, 0, 1);
1147 mtau3_over_tau2 = ibooker.
book1D(
"tau3_over_tau2",
"tau3_over_tau2", 50, 0, 1);
1148 mCATopTag_topMass = ibooker.
book1D(
"CATopTag_topMass",
"CATopTag_topMass", 50, 50, 250);
1149 mCATopTag_minMass = ibooker.
book1D(
"CATopTag_minMass",
"CATopTag_minMass", 50, 0, 250);
1150 mCATopTag_nSubJets = ibooker.
book1D(
"nSubJets_CATopTag",
"nSubJets_CATopTag", 10, 0, 10);
1151 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"tau2_over_tau1" ,mtau2_over_tau1));
1152 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"tau3_over_tau2" ,mtau3_over_tau2));
1153 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CATopTag_topMass" ,mCATopTag_topMass));
1154 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CATopTag_minMass" ,mCATopTag_minMass));
1155 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"nSubJets_CATopTag" ,mCATopTag_nSubJets));
1157 mnSubJetsCMSTopTag = ibooker.
book1D(
"nSubJets_CMSTopTag",
"nSubJets_CMSTopTag", 10, 0, 10);
1158 mSubJet1_CMSTopTag_pt = ibooker.
book1D(
"SubJet1_CMSTopTag_pt",
"SubJet1_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1159 mSubJet1_CMSTopTag_eta = ibooker.
book1D(
"SubJet1_CMSTopTag_eta",
"SubJet1_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1160 mSubJet1_CMSTopTag_phi = ibooker.
book1D(
"SubJet1_CMSTopTag_phi",
"SubJet1_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1161 mSubJet1_CMSTopTag_mass = ibooker.
book1D(
"SubJet1_CMSTopTag_mass",
"SubJet1_CMSTopTag_mass", 50, 0, 250);
1162 mSubJet2_CMSTopTag_pt = ibooker.
book1D(
"SubJet2_CMSTopTag_pt",
"SubJet2_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1163 mSubJet2_CMSTopTag_eta = ibooker.
book1D(
"SubJet2_CMSTopTag_eta",
"SubJet2_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1164 mSubJet2_CMSTopTag_phi = ibooker.
book1D(
"SubJet2_CMSTopTag_phi",
"SubJet2_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1165 mSubJet2_CMSTopTag_mass = ibooker.
book1D(
"SubJet2_CMSTopTag_mass",
"SubJet2_CMSTopTag_mass", 50, 0, 250);
1166 mSubJet3_CMSTopTag_pt = ibooker.
book1D(
"SubJet3_CMSTopTag_pt",
"SubJet3_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1167 mSubJet3_CMSTopTag_eta = ibooker.
book1D(
"SubJet3_CMSTopTag_eta",
"SubJet3_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1168 mSubJet3_CMSTopTag_phi = ibooker.
book1D(
"SubJet3_CMSTopTag_phi",
"SubJet3_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1169 mSubJet3_CMSTopTag_mass = ibooker.
book1D(
"SubJet3_CMSTopTag_mass",
"SubJet3_CMSTopTag_mass", 50, 0, 250);
1170 mSubJet4_CMSTopTag_pt = ibooker.
book1D(
"SubJet4_CMSTopTag_pt",
"SubJet4_CMSTopTag_pt", ptBin_, ptMin_, ptMax_);
1171 mSubJet4_CMSTopTag_eta = ibooker.
book1D(
"SubJet4_CMSTopTag_eta",
"SubJet4_CMSTopTag_eta", etaBin_, etaMin_, etaMax_);
1172 mSubJet4_CMSTopTag_phi = ibooker.
book1D(
"SubJet4_CMSTopTag_phi",
"SubJet4_CMSTopTag_phi", phiBin_, phiMin_, phiMax_);
1173 mSubJet4_CMSTopTag_mass = ibooker.
book1D(
"SubJet4_CMSTopTag_mass",
"SubJet4_CMSTopTag_mass", 50, 0, 250);
1175 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"nSubJets_CMSTopTag" ,mnSubJetsCMSTopTag));
1176 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_CMSTopTag_pt" ,mSubJet1_CMSTopTag_pt));
1177 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_CMSTopTag_eta" ,mSubJet1_CMSTopTag_eta));
1178 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_CMSTopTag_phi" ,mSubJet1_CMSTopTag_phi));
1179 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_CMSTopTag_mass" ,mSubJet1_CMSTopTag_mass));
1180 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_CMSTopTag_pt" ,mSubJet2_CMSTopTag_pt));
1181 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_CMSTopTag_eta" ,mSubJet2_CMSTopTag_eta));
1182 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_CMSTopTag_phi" ,mSubJet2_CMSTopTag_phi));
1183 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_CMSTopTag_mass" ,mSubJet2_CMSTopTag_mass));
1184 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet3_CMSTopTag_pt" ,mSubJet3_CMSTopTag_pt));
1185 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet3_CMSTopTag_eta" ,mSubJet3_CMSTopTag_eta));
1186 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet3_CMSTopTag_phi" ,mSubJet3_CMSTopTag_phi));
1187 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet3_CMSTopTag_mass" ,mSubJet3_CMSTopTag_mass));
1188 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet4_CMSTopTag_pt" ,mSubJet4_CMSTopTag_pt));
1189 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet4_CMSTopTag_eta" ,mSubJet4_CMSTopTag_eta));
1190 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet4_CMSTopTag_phi" ,mSubJet4_CMSTopTag_phi));
1191 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet4_CMSTopTag_mass" ,mSubJet4_CMSTopTag_mass));
1193 mnSubJetsSoftDrop = ibooker.
book1D(
"nSubJets_SoftDrop",
"nSubJets_SoftDrop", 10, 0, 10);
1194 mSubJet1_SoftDrop_pt = ibooker.
book1D(
"SubJet1_SoftDrop_pt",
"SubJet1_SoftDrop_pt", ptBin_, ptMin_, ptMax_);
1195 mSubJet1_SoftDrop_eta = ibooker.
book1D(
"SubJet1_SoftDrop_eta",
"SubJet1_SoftDrop_eta", etaBin_, etaMin_, etaMax_);
1196 mSubJet1_SoftDrop_phi = ibooker.
book1D(
"SubJet1_SoftDrop_phi",
"SubJet1_SoftDrop_phi", phiBin_, phiMin_, phiMax_);
1197 mSubJet1_SoftDrop_mass = ibooker.
book1D(
"SubJet1_SoftDrop_mass",
"SubJet1_SoftDrop_mass", 50, 0, 250);
1198 mSubJet2_SoftDrop_pt = ibooker.
book1D(
"SubJet2_SoftDrop_pt",
"SubJet2_SoftDrop_pt", ptBin_, ptMin_, ptMax_);
1199 mSubJet2_SoftDrop_eta = ibooker.
book1D(
"SubJet2_SoftDrop_eta",
"SubJet2_SoftDrop_eta", etaBin_, etaMin_, etaMax_);
1200 mSubJet2_SoftDrop_phi = ibooker.
book1D(
"SubJet2_SoftDrop_phi",
"SubJet2_SoftDrop_phi", phiBin_, phiMin_, phiMax_);
1201 mSubJet2_SoftDrop_mass = ibooker.
book1D(
"SubJet2_SoftDrop_mass",
"SubJet2_SoftDrop_mass", 50, 0, 250);
1203 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"nSubJets_SoftDrop" ,mnSubJetsSoftDrop));
1204 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_SoftDrop_pt" ,mSubJet1_SoftDrop_pt));
1205 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_SoftDrop_eta" ,mSubJet1_SoftDrop_eta));
1206 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_SoftDrop_phi" ,mSubJet1_SoftDrop_phi));
1207 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_SoftDrop_mass" ,mSubJet1_SoftDrop_mass));
1208 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_SoftDrop_pt" ,mSubJet2_SoftDrop_pt));
1209 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_SoftDrop_eta" ,mSubJet2_SoftDrop_eta));
1210 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_SoftDrop_phi" ,mSubJet2_SoftDrop_phi));
1211 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_SoftDrop_mass" ,mSubJet2_SoftDrop_mass));
1213 mSoftDropMass_boosted = ibooker.
book1D(
"SoftDropMass_boosted",
"SoftDropMass_boosted", 50, 0, 250);
1214 mPrunedMass_boosted = ibooker.
book1D(
"PrunedMass_boosted",
"PrunedMass_boosted", 50, 0, 250);
1215 mTrimmedMass_boosted = ibooker.
book1D(
"TrimmedMass_boosted",
"TrimmedMass_boosted", 50, 0, 250);
1216 mFilteredMass_boosted = ibooker.
book1D(
"FilteredMass_boosted",
"FilteredMass_boosted", 50, 0, 250);
1217 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SoftDropMass_boosted" ,mSoftDropMass_boosted));
1218 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"PrunedMass_boosted" ,mPrunedMass_boosted));
1219 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"TrimmedMass_boosted" ,mTrimmedMass_boosted));
1220 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"FilteredMass_boosted" ,mFilteredMass_boosted));
1222 mtau2_over_tau1_boosted = ibooker.
book1D(
"tau2_over_tau1_boosted",
"tau2_over_tau1_boosted", 50, 0, 1);
1223 mtau3_over_tau2_boosted = ibooker.
book1D(
"tau3_over_tau2_boosted",
"tau3_over_tau2_boosted", 50, 0, 1);
1224 mCATopTag_topMass_boosted = ibooker.
book1D(
"CATopTag_topMass_boosted",
"CATopTag_topMass_boosted", 50, 50, 250);
1225 mCATopTag_minMass_boosted = ibooker.
book1D(
"CATopTag_minMass_boosted",
"CATopTag_minMass_boosted", 50, 0, 250);
1226 mCATopTag_nSubJets_boosted = ibooker.
book1D(
"nSubJets_CATopTag_boosted",
"nSubJets_CATopTag_boosted", 10, 0, 10);
1227 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"tau2_over_tau1_boosted" ,mtau2_over_tau1_boosted));
1228 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"tau3_over_tau2_boosted" ,mtau3_over_tau2_boosted));
1229 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CATopTag_topMass_boosted" ,mCATopTag_topMass_boosted));
1230 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"CATopTag_minMass_boosted" ,mCATopTag_minMass_boosted));
1231 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"nSubJets_CATopTag_boosted" ,mCATopTag_nSubJets_boosted));
1233 mnSubJetsCMSTopTag_boosted = ibooker.
book1D(
"nSubJets_CMSTopTag_boosted",
"nSubJets_CMSTopTag_boosted", 10, 0, 10);
1234 mSubJet1_CMSTopTag_pt_boosted = ibooker.
book1D(
"SubJet1_CMSTopTag_pt_boosted",
"SubJet1_CMSTopTag_pt_boosted", ptBin_, ptMin_, 2*ptMax_);
1235 mSubJet1_CMSTopTag_eta_boosted = ibooker.
book1D(
"SubJet1_CMSTopTag_eta_boosted",
"SubJet1_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1236 mSubJet1_CMSTopTag_phi_boosted = ibooker.
book1D(
"SubJet1_CMSTopTag_phi_boosted",
"SubJet1_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1237 mSubJet1_CMSTopTag_mass_boosted = ibooker.
book1D(
"SubJet1_CMSTopTag_mass_boosted",
"SubJet1_CMSTopTag_mass_boosted", 50, 0, 250);
1238 mSubJet2_CMSTopTag_pt_boosted = ibooker.
book1D(
"SubJet2_CMSTopTag_pt_boosted",
"SubJet2_CMSTopTag_pt_boosted", ptBin_, ptMin_, 2*ptMax_);
1239 mSubJet2_CMSTopTag_eta_boosted = ibooker.
book1D(
"SubJet2_CMSTopTag_eta_boosted",
"SubJet2_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1240 mSubJet2_CMSTopTag_phi_boosted = ibooker.
book1D(
"SubJet2_CMSTopTag_phi_boosted",
"SubJet2_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1241 mSubJet2_CMSTopTag_mass_boosted = ibooker.
book1D(
"SubJet2_CMSTopTag_mass_boosted",
"SubJet2_CMSTopTag_mass_boosted", 50, 0, 250);
1242 mSubJet3_CMSTopTag_pt_boosted = ibooker.
book1D(
"SubJet3_CMSTopTag_pt_boosted",
"SubJet3_CMSTopTag_pt_boosted", ptBin_, ptMin_, ptMax_);
1243 mSubJet3_CMSTopTag_eta_boosted = ibooker.
book1D(
"SubJet3_CMSTopTag_eta_boosted",
"SubJet3_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1244 mSubJet3_CMSTopTag_phi_boosted = ibooker.
book1D(
"SubJet3_CMSTopTag_phi_boosted",
"SubJet3_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1245 mSubJet3_CMSTopTag_mass_boosted = ibooker.
book1D(
"SubJet3_CMSTopTag_mass_boosted",
"SubJet3_CMSTopTag_mass_boosted", 50, 0, 250);
1246 mSubJet4_CMSTopTag_pt_boosted = ibooker.
book1D(
"SubJet4_CMSTopTag_pt_boosted",
"SubJet4_CMSTopTag_pt_boosted", ptBin_, ptMin_, ptMax_);
1247 mSubJet4_CMSTopTag_eta_boosted = ibooker.
book1D(
"SubJet4_CMSTopTag_eta_boosted",
"SubJet4_CMSTopTag_eta_boosted", etaBin_, etaMin_, etaMax_);
1248 mSubJet4_CMSTopTag_phi_boosted = ibooker.
book1D(
"SubJet4_CMSTopTag_phi_boosted",
"SubJet4_CMSTopTag_phi_boosted", phiBin_, phiMin_, phiMax_);
1249 mSubJet4_CMSTopTag_mass_boosted = ibooker.
book1D(
"SubJet4_CMSTopTag_mass_boosted",
"SubJet4_CMSTopTag_mass_boosted", 50, 0, 250);
1251 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"nSubJets_CMSTopTag_boosted", mnSubJetsCMSTopTag_boosted));
1252 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_CMSTopTag_pt_boosted", mSubJet1_CMSTopTag_pt_boosted));
1253 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_CMSTopTag_eta_boosted", mSubJet1_CMSTopTag_eta_boosted));
1254 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_CMSTopTag_phi_boosted", mSubJet1_CMSTopTag_phi_boosted));
1255 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_CMSTopTag_mass_boosted", mSubJet1_CMSTopTag_mass_boosted));
1256 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_CMSTopTag_pt_boosted", mSubJet2_CMSTopTag_pt_boosted));
1257 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_CMSTopTag_eta_boosted", mSubJet2_CMSTopTag_eta_boosted));
1258 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_CMSTopTag_phi_boosted", mSubJet2_CMSTopTag_phi_boosted));
1259 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_CMSTopTag_mass_boosted", mSubJet2_CMSTopTag_mass_boosted));
1260 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet3_CMSTopTag_pt_boosted", mSubJet3_CMSTopTag_pt_boosted));
1261 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet3_CMSTopTag_eta_boosted", mSubJet3_CMSTopTag_eta_boosted));
1262 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet3_CMSTopTag_phi_boosted", mSubJet3_CMSTopTag_phi_boosted));
1263 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet3_CMSTopTag_mass_boosted", mSubJet3_CMSTopTag_mass_boosted));
1264 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet4_CMSTopTag_pt_boosted", mSubJet4_CMSTopTag_pt_boosted));
1265 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet4_CMSTopTag_eta_boosted", mSubJet4_CMSTopTag_eta_boosted));
1266 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet4_CMSTopTag_phi_boosted", mSubJet4_CMSTopTag_phi_boosted));
1267 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet4_CMSTopTag_mass_boosted", mSubJet4_CMSTopTag_mass_boosted));
1269 mnSubJetsSoftDrop_boosted = ibooker.
book1D(
"nSubJets_SoftDrop_boosted",
"nSubJets_SoftDrop_boosted", 10, 0, 10);
1270 mSubJet1_SoftDrop_pt_boosted = ibooker.
book1D(
"SubJet1_SoftDrop_pt_boosted",
"SubJet1_SoftDrop_pt_boosted", ptBin_, ptMin_, 2*ptMax_);
1271 mSubJet1_SoftDrop_eta_boosted = ibooker.
book1D(
"SubJet1_SoftDrop_eta_boosted",
"SubJet1_SoftDrop_eta_boosted", etaBin_, etaMin_, etaMax_);
1272 mSubJet1_SoftDrop_phi_boosted = ibooker.
book1D(
"SubJet1_SoftDrop_phi_boosted",
"SubJet1_SoftDrop_phi_boosted", phiBin_, phiMin_, phiMax_);
1273 mSubJet1_SoftDrop_mass_boosted = ibooker.
book1D(
"SubJet1_SoftDrop_mass_boosted",
"SubJet1_SoftDrop_mass_boosted", 50, 0, 250);
1274 mSubJet2_SoftDrop_pt_boosted = ibooker.
book1D(
"SubJet2_SoftDrop_pt_boosted",
"SubJet2_SoftDrop_pt_boosted", ptBin_, ptMin_, 2*ptMax_);
1275 mSubJet2_SoftDrop_eta_boosted = ibooker.
book1D(
"SubJet2_SoftDrop_eta_boosted",
"SubJet2_SoftDrop_eta_boosted", etaBin_, etaMin_, etaMax_);
1276 mSubJet2_SoftDrop_phi_boosted = ibooker.
book1D(
"SubJet2_SoftDrop_phi_boosted",
"SubJet2_SoftDrop_phi_boosted", phiBin_, phiMin_, phiMax_);
1277 mSubJet2_SoftDrop_mass_boosted = ibooker.
book1D(
"SubJet2_SoftDrop_mass_boosted",
"SubJet2_SoftDrop_mass_boosted", 50, 0, 250);
1279 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"nSubJets_SoftDrop_boosted", mnSubJetsSoftDrop_boosted));
1280 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_SoftDrop_pt_boosted", mSubJet1_SoftDrop_pt_boosted));
1281 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_SoftDrop_eta_boosted", mSubJet1_SoftDrop_eta_boosted));
1282 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_SoftDrop_phi_boosted", mSubJet1_SoftDrop_phi_boosted));
1283 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet1_SoftDrop_mass_boosted", mSubJet1_SoftDrop_mass_boosted));
1284 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_SoftDrop_pt_boosted", mSubJet2_SoftDrop_pt_boosted));
1285 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_SoftDrop_eta_boosted", mSubJet2_SoftDrop_eta_boosted));
1286 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_SoftDrop_phi_boosted", mSubJet2_SoftDrop_phi_boosted));
1287 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
DirName+
"/"+
"SubJet2_SoftDrop_mass_boosted", mSubJet2_SoftDrop_mass_boosted));
1293 if(jetCleaningFlag_){
1295 folderNames_.push_back(
"DiJet");
1297 folderNames_.push_back(
"ZJets");
1300 for (std::vector<std::string>::const_iterator ic = folderNames_.begin();
1301 ic != folderNames_.end(); ic++){
1302 bookMESetSelection(
DirName+
"/"+*ic, ibooker);
1307 cleanupME = ibooker.
book1D(
"cleanup",
"cleanup", 10, 0., 10.);
1309 cleanupME->setBinLabel(2,
"DCS::Pixel");
1310 cleanupME->setBinLabel(3,
"DCS::SiStrip");
1311 cleanupME->setBinLabel(4,
"DCS::ECAL");
1312 cleanupME->setBinLabel(5,
"DCS::ES");
1313 cleanupME->setBinLabel(6,
"DCS::HBHE");
1314 cleanupME->setBinLabel(7,
"DCS::HF");
1315 cleanupME->setBinLabel(8,
"DCS::HO");
1316 cleanupME->setBinLabel(9,
"DCS::Muon");
1317 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
"JetMET/cleanup" ,cleanupME));
1319 verticesME = ibooker.
book1D(
"vertices",
"vertices", 100, 0, 100);
1320 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
"JetMET/vertices" ,verticesME));
1330 mPt = ibooker.
book1D(
"Pt",
"pt", ptBin_, ptMin_, ptMax_);
1331 mEta = ibooker.
book1D(
"Eta",
"eta", etaBin_, etaMin_, etaMax_);
1332 mPhi = ibooker.
book1D(
"Phi",
"phi", phiBin_, phiMin_, phiMax_);
1333 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"Pt" ,mPt));
1334 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"Eta" ,mEta));
1335 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"Phi" ,mPhi));
1337 mConstituents = ibooker.
book1D(
"Constituents",
"# of constituents", 50, 0, 100);
1338 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"Constituents" ,mConstituents));
1340 mJetEnergyCorr= ibooker.
book1D(
"JetEnergyCorr",
"jet energy correction factor", 50, 0.0,3.0);
1341 mJetEnergyCorrVSEta= ibooker.
bookProfile(
"JetEnergyCorrVSEta",
"jet energy correction factor VS eta", etaBin_, etaMin_,etaMax_, 0.0,3.0);
1342 mJetEnergyCorrVSPt= ibooker.
bookProfile(
"JetEnergyCorrVSPt",
"jet energy correction factor VS pt", ptBin_, ptMin_,ptMax_, 0.0,3.0);
1344 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JetEnergyCorr" ,mJetEnergyCorr));
1345 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JetEnergyCorrVSEta" ,mJetEnergyCorrVSEta));
1346 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JetEnergyCorrVSPt" ,mJetEnergyCorrVSPt));
1350 if(fill_CHS_histos && isPFJet_){
1351 mAxis2_lowPt_Barrel = ibooker.
book1D(
"qg_Axis2_lowPt_Barrel",
"qg Axis2 #sigma_{2} lowPt Barrel",50,0.,0.20);
1352 mpTD_lowPt_Barrel= ibooker.
book1D(
"qg_pTD_lowPt_Barrel",
"qg fragmentation function p_{T}^{D} lowPt Barrel",50,0.15,1.05);
1353 mMultiplicityQG_lowPt_Barrel= ibooker.
book1D(
"qg_multiplicity_lowPt_Barrel",
"qg multiplicity lowPt Barrel",50,0,50);
1354 mqgLikelihood_lowPt_Barrel= ibooker.
book1D(
"qg_Likelihood_lowPt_Barrel",
"qg likelihood lowPt Barrel",50,-1.1,1.1);
1355 mAxis2_lowPt_EndCap = ibooker.
book1D(
"qg_Axis2_lowPt_EndCap",
"qg Axis2 #sigma_{2} lowPt EndCap",50,0.,0.20);
1356 mpTD_lowPt_EndCap= ibooker.
book1D(
"qg_pTD_lowPt_EndCap",
"qg fragmentation function p_{T}^{D} lowPt EndCap",50,0.15,1.05);
1357 mMultiplicityQG_lowPt_EndCap= ibooker.
book1D(
"qg_multiplicity_lowPt_EndCap",
"qg multiplicity lowPt EndCap",50,0,100);
1358 mqgLikelihood_lowPt_EndCap= ibooker.
book1D(
"qg_Likelihood_lowPt_EndCap",
"qg likelihood lowPt EndCap",50,-1.1,1.1);
1359 mAxis2_lowPt_Forward = ibooker.
book1D(
"qg_Axis2_lowPt_Forward",
"qg Axis2 #sigma_{2} lowPt Forward",50,0.,0.20);
1360 mpTD_lowPt_Forward= ibooker.
book1D(
"qg_pTD_lowPt_Forward",
"qg fragmentation function p_{T}^{D} lowPt Forward",50,0.15,1.05);
1361 mMultiplicityQG_lowPt_Forward= ibooker.
book1D(
"qg_multiplicity_lowPt_Forward",
"qg multiplicity lowPt Forward",50,0,100);
1362 mqgLikelihood_lowPt_Forward= ibooker.
book1D(
"qg_Likelihood_lowPt_Forward",
"qg likelihood lowPt Forward",50,-1.1,1.1);
1364 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_lowPt_Barrel" ,mAxis2_lowPt_Barrel));
1365 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_lowPt_Barrel" ,mpTD_lowPt_Barrel));
1366 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_lowPt_Barrel" ,mMultiplicityQG_lowPt_Barrel));
1367 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_lowPt_Barrel" ,mqgLikelihood_lowPt_Barrel));
1368 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_lowPt_EndCap" ,mAxis2_lowPt_EndCap));
1369 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_lowPt_EndCap" ,mpTD_lowPt_EndCap));
1370 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_lowPt_EndCap" ,mMultiplicityQG_lowPt_EndCap));
1371 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_lowPt_EndCap" ,mqgLikelihood_lowPt_EndCap));
1372 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_lowPt_Forward" ,mAxis2_lowPt_Forward));
1373 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_lowPt_Forward" ,mpTD_lowPt_Forward));
1374 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_lowPt_Forward" ,mMultiplicityQG_lowPt_Forward));
1375 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_lowPt_Forward" ,mqgLikelihood_lowPt_Forward));
1377 mAxis2_mediumPt_Barrel = ibooker.
book1D(
"qg_Axis2_mediumPt_Barrel",
"qg Axis2 #sigma_{2} mediumPt Barrel",50,0.,0.20);
1378 mpTD_mediumPt_Barrel= ibooker.
book1D(
"qg_pTD_mediumPt_Barrel",
"qg fragmentation function p_{T}^{D} mediumPt Barrel",50,0.15,1.05);
1379 mMultiplicityQG_mediumPt_Barrel= ibooker.
book1D(
"qg_multiplicity_mediumPt_Barrel",
"qg multiplicity mediumPt Barrel",50,0,100);
1380 mqgLikelihood_mediumPt_Barrel= ibooker.
book1D(
"qg_Likelihood_mediumPt_Barrel",
"qg likelihood mediumPt Barrel",50,-1.1,1.1);
1381 mAxis2_mediumPt_EndCap = ibooker.
book1D(
"qg_Axis2_mediumPt_EndCap",
"qg Axis2 #sigma_{2} mediumPt EndCap",50,0.,0.20);
1382 mpTD_mediumPt_EndCap= ibooker.
book1D(
"qg_pTD_mediumPt_EndCap",
"qg fragmentation function p_{T}^{D} mediumPt EndCap",50,0.15,1.05);
1383 mMultiplicityQG_mediumPt_EndCap= ibooker.
book1D(
"qg_multiplicity_mediumPt_EndCap",
"qg multiplicity mediumPt EndCap",50,0,100);
1384 mqgLikelihood_mediumPt_EndCap= ibooker.
book1D(
"qg_Likelihood_mediumPt_EndCap",
"qg likelihood mediumPt EndCap",50,-1.1,1.1);
1385 mAxis2_mediumPt_Forward = ibooker.
book1D(
"qg_Axis2_mediumPt_Forward",
"qg Axis2 #sigma_{2} mediumPt Forward",50,0.,0.20);
1386 mpTD_mediumPt_Forward= ibooker.
book1D(
"qg_pTD_mediumPt_Forward",
"qg fragmentation function p_{T}^{D} mediumPt Forward",50,0.15,1.05);
1387 mMultiplicityQG_mediumPt_Forward= ibooker.
book1D(
"qg_multiplicity_mediumPt_Forward",
"qg multiplicity mediumPt Forward",50,0,100);
1388 mqgLikelihood_mediumPt_Forward= ibooker.
book1D(
"qg_Likelihood_mediumPt_Forward",
"qg likelihood mediumPt Forward",50,-1.1,1.1);
1390 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_mediumPt_Barrel" ,mAxis2_mediumPt_Barrel));
1391 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_mediumPt_Barrel" ,mpTD_mediumPt_Barrel));
1392 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_mediumPt_Barrel" ,mMultiplicityQG_mediumPt_Barrel));
1393 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_mediumPt_Barrel" ,mqgLikelihood_mediumPt_Barrel));
1394 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_mediumPt_EndCap" ,mAxis2_mediumPt_EndCap));
1395 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_mediumPt_EndCap" ,mpTD_mediumPt_EndCap));
1396 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_mediumPt_EndCap" ,mMultiplicityQG_mediumPt_EndCap));
1397 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_mediumPt_EndCap" ,mqgLikelihood_mediumPt_EndCap));
1398 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_mediumPt_Forward" ,mAxis2_mediumPt_Forward));
1399 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_mediumPt_Forward" ,mpTD_mediumPt_Forward));
1400 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_mediumPt_Forward" ,mMultiplicityQG_mediumPt_Forward));
1401 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_mediumPt_Forward" ,mqgLikelihood_mediumPt_Forward));
1403 mAxis2_highPt_Barrel = ibooker.
book1D(
"qg_Axis2_highPt_Barrel",
"qg Axis2 #sigma_{2} highPt Barrel",50,0.,0.20);
1404 mpTD_highPt_Barrel= ibooker.
book1D(
"qg_pTD_highPt_Barrel",
"qg fragmentation function p_{T}^{D} highPt Barrel",50,0.15,1.05);
1405 mMultiplicityQG_highPt_Barrel= ibooker.
book1D(
"qg_multiplicity_highPt_Barrel",
"qg multiplicity highPt Barrel",50,0,100);
1406 mqgLikelihood_highPt_Barrel= ibooker.
book1D(
"qg_Likelihood_highPt_Barrel",
"qg likelihood highPt Barrel",50,-1.1,1.1);
1407 mAxis2_highPt_EndCap = ibooker.
book1D(
"qg_Axis2_highPt_EndCap",
"qg Axis2 #sigma_{2} highPt EndCap",50,0.,0.20);
1408 mpTD_highPt_EndCap= ibooker.
book1D(
"qg_pTD_highPt_EndCap",
"qg fragmentation function p_{T}^{D} highPt EndCap",50,0.15,1.05);
1409 mMultiplicityQG_highPt_EndCap= ibooker.
book1D(
"qg_multiplicity_highPt_EndCap",
"qg multiplicity highPt EndCap",50,0,100);
1410 mqgLikelihood_highPt_EndCap= ibooker.
book1D(
"qg_Likelihood_highPt_EndCap",
"qg likelihood highPt EndCap",50,-1.1,1.1);
1411 mAxis2_highPt_Forward = ibooker.
book1D(
"qg_Axis2_highPt_Forward",
"qg Axis2 #sigma_{2} highPt Forward",50,0.,0.20);
1412 mpTD_highPt_Forward= ibooker.
book1D(
"qg_pTD_highPt_Forward",
"qg fragmentation function p_{T}^{D} highPt Forward",50,0.15,1.05);
1413 mMultiplicityQG_highPt_Forward= ibooker.
book1D(
"qg_multiplicity_highPt_Forward",
"qg multiplicity highPt Forward",50,0,100);
1414 mqgLikelihood_highPt_Forward= ibooker.
book1D(
"qg_Likelihood_highPt_Forward",
"qg likelihood highPt Forward",50,-1.1,1.1);
1416 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_highPt_Barrel" ,mAxis2_highPt_Barrel));
1417 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_highPt_Barrel" ,mpTD_highPt_Barrel));
1418 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_highPt_Barrel" ,mMultiplicityQG_highPt_Barrel));
1419 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_highPt_Barrel" ,mqgLikelihood_highPt_Barrel));
1420 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_highPt_EndCap" ,mAxis2_highPt_EndCap));
1421 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_highPt_EndCap" ,mpTD_highPt_EndCap));
1422 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_highPt_EndCap" ,mMultiplicityQG_highPt_EndCap));
1423 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_highPt_EndCap" ,mqgLikelihood_highPt_EndCap));
1424 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Axis2_highPt_Forward" ,mAxis2_highPt_Forward));
1425 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_pTD_highPt_Forward" ,mpTD_highPt_Forward));
1426 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_multiplicity_highPt_Forward" ,mMultiplicityQG_highPt_Forward));
1427 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"qg_Likelihood_highPt_Forward" ,mqgLikelihood_highPt_Forward));
1430 if(DirName.find(
"DiJet")!=std::string::npos){
1431 mDPhi = ibooker.
book1D(
"DPhi",
"dPhi btw the two leading jets", 100, 0., acos(-1.));
1432 mDijetAsymmetry = ibooker.
book1D(
"DijetAsymmetry",
"DijetAsymmetry", 100, -1., 1.);
1433 mDijetBalance = ibooker.
book1D(
"DijetBalance",
"DijetBalance", 100, -2., 2.);
1434 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DPhi" ,mDPhi));
1435 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DijetAsymmetry" ,mDijetAsymmetry));
1436 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DijetBalance" ,mDijetBalance));
1438 if(isPFJet_|| isMiniAODJet_){
1439 mChargedMultiplicity = ibooker.
book1D(
"ChargedMultiplicity",
"charged multiplicity ", 50, 0, 100);
1440 mNeutralMultiplicity = ibooker.
book1D(
"NeutralMultiplicity",
"neutral multiplicity", 50, 0, 100);
1441 mMuonMultiplicity = ibooker.
book1D(
"MuonMultiplicity",
"muon multiplicity", 50, 0, 100);
1443 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"ChargedMultiplicity" ,mChargedMultiplicity));
1444 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"NeutralMultiplicity" ,mNeutralMultiplicity));
1445 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MuonMultiplicity" ,mMuonMultiplicity));
1447 mChargedMultiplicity_profile = ibooker.
bookProfile(
"ChargedMultiplicity_profile",
"charged multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1448 mNeutralMultiplicity_profile = ibooker.
bookProfile(
"NeutralMultiplicity_profile",
"neutral multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1449 mMuonMultiplicity_profile = ibooker.
bookProfile(
"MuonMultiplicity_profile",
"muon multiplicity", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1451 mNeutralMultiplicity_profile->setAxisTitle(
"nvtx",1);
1452 mMuonMultiplicity_profile ->setAxisTitle(
"nvtx",1);
1454 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"ChargedMultiplicity_profile" ,mChargedMultiplicity_profile));
1455 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"NeutralMultiplicity_profile" ,mNeutralMultiplicity_profile));
1456 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MuonMultiplicity_profile" ,mMuonMultiplicity_profile));
1458 mNeutralFraction = ibooker.
book1D(
"NeutralConstituentsFraction",
"Neutral Constituents Fraction",100,0,1);
1459 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"NeutralConstituentsFraction" ,mNeutralFraction));
1464 if(DirName.find(
"ZJets")!=std::string::npos){
1465 mZMass = ibooker.
book1D(
"DiMuonMass",
"DiMuonMass", 50, 71., 111.);
1466 mDPhiZJet = ibooker.
book1D(
"DPhiZJ",
"dPhi btw Z and Jet1", 100, 0., acos(-1.));
1467 mZJetAsymmetry = ibooker.
book1D(
"ZJetAsymmetry",
"ZJetAsymmetry", 100, -1., 1.);
1468 mJetZBalance_lowZPt_J_Barrel = ibooker.
book1D(
"JZB_lowZPt_J_Barrel",
"ZJetBalance (pTJet1-pTZ) (30<pTZ<90), |#eta_{jet}|<1.3", 50, -75.,75);
1469 mJetZBalance_mediumZPt_J_Barrel = ibooker.
book1D(
"JZB_mediumZPt_J_Barrel",
"ZJetBalance (90<pTZ<140), |#eta_{jet}|<1.3", 50, -75.,75);
1470 mJetZBalance_highZPt_J_Barrel = ibooker.
book1D(
"JZB_highZPt_J_Barrel",
"ZJetBalance (pTZ>140), |#eta_{jet}|<1.3", 50, -75., 75.);
1471 mJetZBalance_lowZPt_J_EndCap = ibooker.
book1D(
"JZB_lowZPt_J_EndCap",
"ZJetBalance (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, -75.,75);
1472 mJetZBalance_mediumZPt_J_EndCap = ibooker.
book1D(
"JZB_mediumZPt_J_EndCap",
"ZJetBalance (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, -75.,75);
1473 mJetZBalance_highZPt_J_EndCap = ibooker.
book1D(
"JZB_highZPt_J_EndCap",
"ZJetBalance (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, -75., 75.);
1474 mJetZBalance_lowZPt_J_Forward = ibooker.
book1D(
"JZB_lowZPt_J_Forward",
"ZJetBalance (30<pTZ<90), |#eta_{jet}|>3.0", 50, -75.,75);
1475 mJetZBalance_mediumZPt_J_Forward = ibooker.
book1D(
"JZB_mediumZPt_J_Forward",
"ZJetBalance (90<pTZ<140), |#eta_{jet}|>3.0", 50, -75.,75);
1476 mJetZBalance_highZPt_J_Forward = ibooker.
book1D(
"JZB_highZPt_J_Forward",
"ZJetBalance (pTZ>140), |#eta_{jet}|>3.0", 50, -75., 75.);
1478 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DiMuonMass" ,mZMass));
1479 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DPhiZJ" ,mDPhiZJet ));
1480 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"ZJetAsymmetry" ,mZJetAsymmetry ));
1481 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_lowZPt_J_Barrel" ,mJetZBalance_lowZPt_J_Barrel ));
1482 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_mediumZPt_J_Barrel" ,mJetZBalance_mediumZPt_J_Barrel ));
1483 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_highZPt_J_Barrel" ,mJetZBalance_highZPt_J_Barrel ));
1484 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_lowZPt_J_EndCap" ,mJetZBalance_lowZPt_J_EndCap ));
1485 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_mediumZPt_J_EndCap" ,mJetZBalance_mediumZPt_J_EndCap ));
1486 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_highZPt_J_EndCap" ,mJetZBalance_highZPt_J_EndCap ));
1487 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_lowZPt_J_Forward" ,mJetZBalance_lowZPt_J_Forward ));
1488 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_mediumZPt_J_Forward" ,mJetZBalance_mediumZPt_J_Forward ));
1489 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"JZB_highZPt_J_Forward" ,mJetZBalance_highZPt_J_Forward ));
1491 mJ1Pt_over_ZPt_J_Barrel = ibooker.
book1D(
"J1Pt_over_ZPt_J_Barrel",
"Jet1_Pt/ZPt, Barrel", 50, 0.,3.0);
1492 mJ1Pt_over_ZPt_J_EndCap = ibooker.
book1D(
"J1Pt_over_ZPt_J_EndCap",
"Jet1_Pt/ZPt, EndCap", 50, 0.,3.0);
1493 mJ1Pt_over_ZPt_J_Forward = ibooker.
book1D(
"J1Pt_over_ZPt_J_Forward",
"Jet1_Pt/ZPt, Forward", 50, 0.,3.0);
1495 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_J_Barrel" ,mJ1Pt_over_ZPt_J_Barrel ));
1496 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_J_EndCap" ,mJ1Pt_over_ZPt_J_EndCap ));
1497 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_J_Forward" ,mJ1Pt_over_ZPt_J_Forward ));
1499 mJ1Pt_over_ZPt_lowZPt_J_Barrel = ibooker.
book1D(
"J1Pt_over_ZPt_lowZPt_J_Barrel",
"Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|<1.3", 50, 0.,3.0);
1500 mJ1Pt_over_ZPt_mediumZPt_J_Barrel = ibooker.
book1D(
"J1Pt_over_ZPt_mediumZPt_J_Barrel",
"Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|<1.3", 50, 0.,3.0);
1501 mJ1Pt_over_ZPt_highZPt_J_Barrel = ibooker.
book1D(
"J1Pt_over_ZPt_highPt_J_Barrel",
"Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|<1.3", 50, 0.,3.0);
1502 mJ1Pt_over_ZPt_lowZPt_J_EndCap = ibooker.
book1D(
"J1Pt_over_ZPt_lowZPt_J_EndCap",
"Jet1_Pt/ZPt (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, 0.,3.0);
1503 mJ1Pt_over_ZPt_mediumZPt_J_EndCap = ibooker.
book1D(
"J1Pt_over_ZPt_mediumZPt_J_EndCap",
"Jet1_Pt/ZPt (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, 0.,3.0);
1504 mJ1Pt_over_ZPt_highZPt_J_EndCap = ibooker.
book1D(
"J1Pt_over_ZPt_highZPt_J_EndCap",
"Jet1_Pt/ZPt (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, 0.,3.0);
1505 mJ1Pt_over_ZPt_lowZPt_J_Forward = ibooker.
book1D(
"J1Pt_over_ZPt_lowZPt_J_Forward",
"Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|>3.0", 50, 0.,3.0);
1506 mJ1Pt_over_ZPt_mediumZPt_J_Forward = ibooker.
book1D(
"J1Pt_over_ZPt_mediumPt_J_Forward",
"Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|>3.0", 50, 0.,3.0);
1507 mJ1Pt_over_ZPt_highZPt_J_Forward = ibooker.
book1D(
"J1Pt_over_ZPt_highZPt_J_Forward",
"Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|>3.0", 50, 0.,3.0);
1509 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_lowZPt_J_Barrel" ,mJ1Pt_over_ZPt_lowZPt_J_Barrel ));
1510 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_mediumZPt_J_Barrel" ,mJ1Pt_over_ZPt_mediumZPt_J_Barrel ));
1511 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_highZPt_J_Barrel" ,mJ1Pt_over_ZPt_highZPt_J_Barrel ));
1512 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_lowZPt_J_EndCap" ,mJ1Pt_over_ZPt_lowZPt_J_EndCap ));
1513 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_mediumZPt_J_EndCap" ,mJ1Pt_over_ZPt_mediumZPt_J_EndCap ));
1514 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_highZPt_J_EndCap" ,mJ1Pt_over_ZPt_highZPt_J_EndCap ));
1515 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_lowZPt_J_Forward" ,mJ1Pt_over_ZPt_lowZPt_J_Forward ));
1516 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_mediumZPt_J_Forward" ,mJ1Pt_over_ZPt_mediumZPt_J_Forward ));
1517 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"J1Pt_over_ZPt_highZPt_J_Forward" ,mJ1Pt_over_ZPt_highZPt_J_Forward ));
1520 mMPF_J_Barrel = ibooker.
book1D(
"MPF_J_Barrel",
"Jet1_Pt/ZPt, Barrel", 50, 0.,2.0);
1521 mMPF_J_EndCap = ibooker.
book1D(
"MPF_J_EndCap",
"Jet1_Pt/ZPt, EndCap", 50, 0.,2.0);
1522 mMPF_J_Forward = ibooker.
book1D(
"MPF_J_Forward",
"Jet1_Pt/ZPt, Forward", 50, 0.,2.0);
1524 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_J_Barrel" ,mMPF_J_Barrel ));
1525 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_J_EndCap" ,mMPF_J_EndCap ));
1526 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_J_Forward" ,mMPF_J_Forward ));
1528 mMPF_lowZPt_J_Barrel = ibooker.
book1D(
"MPF_lowZPt_J_Barrel",
"Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|<1.3", 50, 0.,2.0);
1529 mMPF_mediumZPt_J_Barrel = ibooker.
book1D(
"MPF_mediumZPt_J_Barrel",
"Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|<1.3", 50, 0.,2.0);
1530 mMPF_highZPt_J_Barrel = ibooker.
book1D(
"MPF_highPt_J_Barrel",
"Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|<1.3", 50, 0.,2.0);
1531 mMPF_lowZPt_J_EndCap = ibooker.
book1D(
"MPF_lowZPt_J_EndCap",
"Jet1_Pt/ZPt (30<pTZ<90), 1.3<|#eta_{jet}|<3.0", 50, 0.,2.0);
1532 mMPF_mediumZPt_J_EndCap = ibooker.
book1D(
"MPF_mediumZPt_J_EndCap",
"Jet1_Pt/ZPt (90<pTZ<140), 1.3<|#eta_{jet}|<3.0", 50, 0.,2.0);
1533 mMPF_highZPt_J_EndCap = ibooker.
book1D(
"MPF_highZPt_J_EndCap",
"Jet1_Pt/ZPt (pTZ>140), 1.3<|#eta_{jet}|<3.0", 50, 0.,2.0);
1534 mMPF_lowZPt_J_Forward = ibooker.
book1D(
"MPF_lowZPt_J_Forward",
"Jet1_Pt/ZPt (30<pTZ<90), |#eta_{jet}|>3.0", 50, 0.,2.0);
1535 mMPF_mediumZPt_J_Forward = ibooker.
book1D(
"MPF_mediumPt_J_Forward",
"Jet1_Pt/ZPt (90<pTZ<140), |#eta_{jet}|>3.0", 50, 0.,2.0);
1536 mMPF_highZPt_J_Forward = ibooker.
book1D(
"MPF_highZPt_J_Forward",
"Jet1_Pt/ZPt (pTZ>140), |#eta_{jet}|>3.0", 50, 0.,2.0);
1538 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_lowZPt_J_Barrel" ,mMPF_lowZPt_J_Barrel ));
1539 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_mediumZPt_J_Barrel" ,mMPF_mediumZPt_J_Barrel ));
1540 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_highZPt_J_Barrel" ,mMPF_highZPt_J_Barrel ));
1541 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_lowZPt_J_EndCap" ,mMPF_lowZPt_J_EndCap ));
1542 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_mediumZPt_J_EndCap" ,mMPF_mediumZPt_J_EndCap ));
1543 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_highZPt_J_EndCap" ,mMPF_highZPt_J_EndCap ));
1544 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_lowZPt_J_Forward" ,mMPF_lowZPt_J_Forward ));
1545 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_mediumZPt_J_Forward" ,mMPF_mediumZPt_J_Forward ));
1546 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MPF_highZPt_J_Forward" ,mMPF_highZPt_J_Forward ));
1549 mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel = 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);
1550 mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel = 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);
1551 mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel",
"DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel", 50, -1.00,1.00);
1552 mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel",
"DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel", 50, -1.00,1.00);
1553 mDeltaPt_Z_j1_over_ZPt_290_J_Barrel = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_290_J_Barrel",
"DeltaPt_Z_j1_over_ZPt_290_J_Barrel", 50, -1.00,1.00);
1554 mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap = 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);
1555 mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap = 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);
1556 mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap",
"DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap", 50, -1.00,1.00);
1557 mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap",
"DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap", 50, -1.00,1.00);
1558 mDeltaPt_Z_j1_over_ZPt_290_J_EndCap = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_290_J_EndCap",
"DeltaPt_Z_j1_over_ZPt_290_J_EndCap", 50, -1.00,1.00);
1559 mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_30_55_J_Forward",
"DeltaPt_Z_j1_over_ZPt_30_55_J_Forward", 50, -1.00,1.00);
1560 mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_55_100_J_Forward",
"DeltaPt_Z_j1_over_ZPt_55_100_J_Forward", 50, -1.00,1.00);
1561 mDeltaPt_Z_j1_over_ZPt_100_J_Forward = ibooker.
book1D(
"DeltaPt_Z_j1_over_ZPt_100_J_Forward",
"DeltaPt_Z_j1_over_ZPt_100_J_Forward", 50, -1.00,1.00);
1563 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel ));
1564 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel ));
1565 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel ));
1566 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel ));
1567 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_290_J_Barrel" ,mDeltaPt_Z_j1_over_ZPt_290_J_Barrel ));
1568 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap ));
1569 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap ));
1570 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap ));
1571 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap ));
1572 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_290_J_EndCap" ,mDeltaPt_Z_j1_over_ZPt_290_J_EndCap ));
1573 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_30_55_J_Forward" ,mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward ));
1574 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_55_100_J_Forward" ,mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward ));
1575 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_100_J_Forward" ,mDeltaPt_Z_j1_over_ZPt_100_J_Forward ));
1579 mPt_profile = ibooker.
bookProfile(
"Pt_profile",
"pt", nbinsPV_, nPVlow_, nPVhigh_, ptBin_, ptMin_, ptMax_);
1580 mEta_profile = ibooker.
bookProfile(
"Eta_profile",
"eta", nbinsPV_, nPVlow_, nPVhigh_, etaBin_, etaMin_, etaMax_);
1581 mPhi_profile = ibooker.
bookProfile(
"Phi_profile",
"phi", nbinsPV_, nPVlow_, nPVhigh_, phiBin_, phiMin_, phiMax_);
1583 mConstituents_profile = ibooker.
bookProfile(
"Constituents_profile",
"# of constituents", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 100);
1588 mEta_profile ->setAxisTitle(
"nvtx",1);
1589 mPhi_profile ->setAxisTitle(
"nvtx",1);
1591 mConstituents_profile->setAxisTitle(
"nvtx",1);
1592 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"Constituents_profile",mConstituents_profile));
1595 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"Pt_profile" ,mPt_profile));
1596 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"Eta_profile",mEta_profile));
1597 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"Phi_profile",mPhi_profile));
1602 mHFrac = ibooker.
book1D(
"HFrac",
"HFrac", 140, -0.2, 1.2);
1603 mEFrac = ibooker.
book1D(
"EFrac",
"EFrac", 140, -0.2, 1.2);
1604 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"HFrac" ,mHFrac));
1605 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"EFrac" ,mEFrac));
1607 mHFrac_profile = ibooker.
bookProfile(
"HFrac_profile",
"HFrac", nbinsPV_, nPVlow_, nPVhigh_, 140, -0.2, 1.2);
1608 mEFrac_profile = ibooker.
bookProfile(
"EFrac_profile",
"EFrac", nbinsPV_, nPVlow_, nPVhigh_, 140, -0.2, 1.2);
1610 mEFrac_profile ->setAxisTitle(
"nvtx",1);
1611 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"HFrac_profile",mHFrac_profile));
1612 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"EFrac_profile",mEFrac_profile));
1616 mresEMF = ibooker.
book1D(
"resEMF",
"resEMF", 50, 0., 1.);
1617 mN90Hits = ibooker.
book1D(
"N90Hits",
"N90Hits", 50, 0., 100);
1618 mfHPD = ibooker.
book1D(
"fHPD",
"fHPD", 50, 0., 1.);
1619 mfRBX = ibooker.
book1D(
"fRBX",
"fRBX", 50, 0., 1.);
1621 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"resEMF" ,mresEMF));
1622 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"N90Hits",mN90Hits));
1623 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"fHPD" ,mfHPD));
1624 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"fRBX" ,mfRBX));
1628 if(isPFJet_|| isMiniAODJet_){
1631 mCHFrac = ibooker.
book1D(
"CHFrac",
"CHFrac", 120, -0.1, 1.1);
1632 mNHFrac = ibooker.
book1D(
"NHFrac",
"NHFrac", 120, -0.1, 1.1);
1633 mPhFrac = ibooker.
book1D(
"PhFrac",
"PhFrac", 120, -0.1, 1.1);
1634 mHFEMFrac = ibooker.
book1D(
"HFEMFrac",
"HFEMFrac", 120, -0.1, 1.1);
1635 mHFHFrac = ibooker.
book1D(
"HFHFrac",
"HFHFrac", 120, -0.1, 1.1);
1637 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CHFrac" ,mCHFrac));
1638 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"NHFrac" ,mNHFrac));
1639 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PhFrac" ,mPhFrac));
1640 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"HFEMFrac",mHFEMFrac));
1641 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"HFHFrac" ,mHFHFrac));
1645 mCHFrac_profile = ibooker.
bookProfile(
"CHFrac_profile",
"charged HAD fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1646 mNHFrac_profile = ibooker.
bookProfile(
"NHFrac_profile",
"neutral HAD fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1647 mPhFrac_profile = ibooker.
bookProfile(
"PhFrac_profile",
"Photon Fraction Profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1648 mHFEMFrac_profile = ibooker.
bookProfile(
"HFEMFrac_profile",
"HF electomagnetic fraction Profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1649 mHFHFrac_profile = ibooker.
bookProfile(
"HFHFrac_profile",
"HF hadronic fraction profile", nbinsPV_, nPVlow_, nPVhigh_, 50, 0, 1);
1655 mNHFrac_profile ->setAxisTitle(
"nvtx",1);
1656 mPhFrac_profile ->setAxisTitle(
"nvtx",1);
1657 mHFEMFrac_profile ->setAxisTitle(
"nvtx",1);
1658 mHFHFrac_profile ->setAxisTitle(
"nvtx",1);
1660 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CHFrac_profile" ,mCHFrac_profile));
1661 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"NHFrac_profile" ,mNHFrac_profile));
1662 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PhFrac_profile" ,mPhFrac_profile));
1663 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"HFEMFrac_profile",mHFEMFrac_profile));
1664 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"HFHFrac_profile" ,mHFHFrac_profile));
1675 if ( highPtJetEventFlag_->on() ) highPtJetEventFlag_->initRun( iRun, iSetup );
1676 if ( lowPtJetEventFlag_ ->on() ) lowPtJetEventFlag_ ->initRun( iRun, iSetup );
1678 if (highPtJetEventFlag_->on() && highPtJetEventFlag_->expressionsFromDB(highPtJetEventFlag_->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
1679 highPtJetExpr_ = highPtJetEventFlag_->expressionsFromDB(highPtJetEventFlag_->hltDBKey(), iSetup);
1680 if (lowPtJetEventFlag_->on() && lowPtJetEventFlag_->expressionsFromDB(lowPtJetEventFlag_->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
1681 lowPtJetExpr_ = lowPtJetEventFlag_->expressionsFromDB(lowPtJetEventFlag_->hltDBKey(), iSetup);
1688 hltInitialized_ = hltConfig_.init(iRun,iSetup,processname_,changed);
1689 if (!hltInitialized_) {
1691 processname_ =
"FU";
1692 hltInitialized_ = hltConfig_.init(iRun,iSetup,processname_,changed);
1693 if(!hltInitialized_){
1695 LogDebug(
"JetAnalyzer") <<
"HLTConfigProvider failed to initialize.";
1703 if ((techTrig->second).algoName() == m_l1algoname_) {
1704 m_bitAlgTechTrig_=(techTrig->second).algoBitNumber();
1721 if(jetCleaningFlag_){
1723 DirName =
"JetMET/Jet/Cleaned"+mInputCollection_.label();
1726 DirName =
"JetMET/Jet/Uncleaned"+mInputCollection_.label();
1741 if(fill_CHS_histos){
1742 iEvent.
getByToken(qgMultiplicityToken_,qgMultiplicity);
1743 iEvent.
getByToken(qgLikelihoodToken_,qgLikelihood);
1749 iEvent.
getByToken(mvaPUIDToken_,puJetIdFlagMva);
1750 iEvent.
getByToken(cutBasedPUDiscriminantToken_,puJetId);
1751 iEvent.
getByToken(cutBasedPUIDToken_,puJetIdFlag);
1752 iEvent.
getByToken(mvaFullPUDiscriminantToken_ ,puJetIdMva);
1757 iEvent.
getByToken(triggerResultsToken_, triggerResults);
1759 Int_t JetLoPass = 0;
1760 Int_t JetHiPass = 0;
1762 if (triggerResults.
isValid()){
1765 const unsigned int nTrig(triggerNames.
size());
1766 for (
unsigned int i=0;
i<nTrig;++
i)
1768 if (triggerNames.
triggerName(
i).find(highPtJetExpr_[0].substr(0,highPtJetExpr_[0].rfind(
"_v")+2))!=std::string::npos && triggerResults->
accept(
i))
1770 else if (triggerNames.
triggerName(
i).find(lowPtJetExpr_[0].substr(0,lowPtJetExpr_[0].rfind(
"_v")+2))!=std::string::npos && triggerResults->
accept(
i))
1776 if (verbose_)
std::cout <<
"trigger label " << theTriggerResultsLabel_ << std::endl;
1780 std::cout <<
">>> Trigger Lo = " << JetLoPass
1781 <<
" Hi = " << JetHiPass
1788 iEvent.
getByToken(vertexToken_, vertexHandle);
1790 if (!vertexHandle.
isValid()) {
1791 LogDebug(
"") <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1792 if (verbose_)
std::cout <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1795 if ( vertexHandle.
isValid() ){
1797 numPV = vertexCollection.size();
1799 bool bPrimaryVertex = (bypassAllPVChecks_ || (numPV>0));
1800 if(fill_jet_high_level_histo){
1801 verticesME = map_of_MEs[
"JetMET/vertices"];
if(verticesME && verticesME->getRootObject())verticesME->Fill(numPV);
1805 iEvent.
getByToken(gtToken_, gtReadoutRecord);
1807 if (!gtReadoutRecord.
isValid()) {
1808 LogInfo(
"JetAnalyzer") <<
"JetAnalyzer: Could not find GT readout record" << std::endl;
1809 if (verbose_)
std::cout <<
"JetAnalyzer: Could not find GT readout record product" << std::endl;
1813 bool techTriggerResultBxF =
false;
1814 bool techTriggerResultBx0 =
false;
1816 if (!gtReadoutRecord.
isValid()) {
1817 LogDebug(
"") <<
"CaloMETAnalyzer: Could not find GT readout record" << std::endl;
1818 if (verbose_)
std::cout <<
"CaloMETAnalyzer: Could not find GT readout record product" << std::endl;
1826 if (m_bitAlgTechTrig_ > -1 && technicalTriggerWordBeforeMaskBx0.size() > 0) {
1827 techTriggerResultBx0 = technicalTriggerWordBeforeMaskBx0.at(m_bitAlgTechTrig_);
1828 if(techTriggerResultBx0!=0){
1830 techTriggerResultBxF = technicalTriggerWordBeforeMaskBxF.at(m_bitAlgTechTrig_);
1836 DCSFilterForDCSMonitoring_->filter(iEvent, iSetup);
1837 if(fill_jet_high_level_histo){
1838 cleanupME = map_of_MEs[
"JetMET/cleanup"];
if(cleanupME && cleanupME->getRootObject()){
1839 if (bPrimaryVertex) cleanupME->Fill(0.5);
1840 if ( DCSFilterForDCSMonitoring_->passPIX ) cleanupME->Fill(1.5);
1841 if ( DCSFilterForDCSMonitoring_->passSiStrip ) cleanupME->Fill(2.5);
1842 if ( DCSFilterForDCSMonitoring_->passECAL ) cleanupME->Fill(3.5);
1843 if ( DCSFilterForDCSMonitoring_->passES ) cleanupME->Fill(4.5);
1844 if ( DCSFilterForDCSMonitoring_->passHBHE ) cleanupME->Fill(5.5);
1845 if ( DCSFilterForDCSMonitoring_->passHF ) cleanupME->Fill(6.5);
1846 if ( DCSFilterForDCSMonitoring_->passHO ) cleanupME->Fill(7.5);
1847 if ( DCSFilterForDCSMonitoring_->passMuon ) cleanupME->Fill(8.5);
1857 bool pass_Z_selection=
false;
1863 if (isCaloJet_) iEvent.
getByToken(caloJetsToken_, caloJets);
1865 if (isPFJet_){ iEvent.
getByToken(pfJetsToken_, pfJets);
1870 if(jetCleaningFlag_ && Muons.
isValid() && Muons->size()>1){
1871 for (
unsigned int i=0;
i<Muons->size();
i++){
1872 bool pass_muon_id=
false;
1873 bool pass_muon_iso=
false;
1874 double dxy=fabs((*Muons)[
i].muonBestTrack()->
dxy());
1875 double dz=fabs((*Muons)[
i].muonBestTrack()->
dz());
1877 dxy=fabs((*Muons)[
i].muonBestTrack()->
dxy((*vertexHandle)[0].
position()));
1878 dz=fabs((*Muons)[
i].muonBestTrack()->
dz((*vertexHandle)[0].
position()));
1880 if((*Muons)[
i].
pt()>20 && fabs((*Muons)[
i].
eta())<2.3){
1881 if((*Muons)[
i].isGlobalMuon() && (*Muons)[
i].isPFMuon() && (*Muons)[
i].
globalTrack()->hitPattern().numberOfValidMuonHits() > 0 && (*Muons)[
i].numberOfMatchedStations() > 1 && dxy < 0.2 && (*Muons)[
i].numberOfMatchedStations() > 1 && dz<0.5 && (*Muons)[
i].
innerTrack()->hitPattern().numberOfValidPixelHits() > 0 && (*Muons)[
i].
innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5){
1885 float muonIsoPFdb = ((*Muons)[
i].pfIsolationR04().sumChargedHadronPt
1887 if(muonIsoPFdb<0.12){
1891 if(pass_muon_id && pass_muon_iso){
1892 if((*Muons)[
i].
pt()>pt0){
1893 mu_index1=mu_index0;
1896 pt0=(*Muons)[
i].pt();
1897 }
else if ((*Muons)[
i].
pt()>pt1){
1899 pt1=(*Muons)[
i].pt();
1904 if(mu_index0>=0 && mu_index1>=0){
1905 if((*Muons)[mu_index0].
charge()*(*Muons)[mu_index1].
charge()<0){
1906 zCand=(*Muons)[mu_index0].polarP4()+(*Muons)[mu_index1].polarP4();
1907 if(fabs(zCand.M()-91.)<20 && zCand.Pt()>30){
1908 pass_Z_selection=
true;
1914 if(isMiniAODJet_) iEvent.
getByToken(patJetsToken_,patJets);
1919 iEvent.
getByToken(jetID_ValueMapToken_,jetID_ValueMap_Handle);
1924 bool dcsDecision = DCSFilterForJetMonitoring_->filter(iEvent, iSetup);
1925 bool jetCollectionIsValid =
false;
1926 if (isCaloJet_) jetCollectionIsValid = caloJets.
isValid();
1928 if (isPFJet_) jetCollectionIsValid = pfJets.
isValid();
1929 if (isMiniAODJet_) jetCollectionIsValid = patJets.
isValid();
1932 if (jetCleaningFlag_ && (!jetCollectionIsValid || !bPrimaryVertex || !dcsDecision))
return;
1934 unsigned int collSize=-1;
1935 if (isCaloJet_) collSize = caloJets->size();
1944 if (isPFJet_) collSize=pfJets->size();
1945 if (isMiniAODJet_) collSize=patJets->size();
1949 std::vector<Jet> corJets;
1960 bool cleaned_first_jet=
false;
1961 bool cleaned_second_jet=
false;
1964 int ind1_mu_vetoed=-1;
1965 double pt1_mu_vetoed=-1;
1966 int ind2_mu_vetoed=-1;
1967 double pt2_mu_vetoed=-1;
1968 bool cleaned_first_jet_mu_vetoed=
false;
1969 bool cleaned_second_jet_mu_vetoed=
false;
1978 bool pass_correction_flag=
false;
1979 if(!isMiniAODJet_ && !jetCorrectorTag_.label().empty()){
1980 iEvent.
getByToken(jetCorrectorToken_, jetCorr);
1982 pass_correction_flag=
true;
1986 pass_correction_flag=
true;
1989 for (
unsigned int ijet=0; ijet<collSize; ijet++) {
1992 bool pass_uncorrected=
false;
1993 bool pass_corrected=
false;
1995 correctedJet=(*caloJets)[ijet];
2001 correctedJet=(*pfJets)[ijet];
2004 correctedJet=(*patJets)[ijet];
2006 if(!isMiniAODJet_ && correctedJet.
pt()>ptThresholdUnc_){
2007 pass_uncorrected=
true;
2009 if(isMiniAODJet_ && (correctedJet.
pt()*(*patJets)[ijet].jecFactor(
"Uncorrected"))>ptThresholdUnc_){
2010 pass_uncorrected=
true;
2012 if (pass_correction_flag && !isMiniAODJet_) {
2014 scale = jetCorr->
correction((*caloJets)[ijet]);
2017 scale = jetCorr->
correction((*pfJets)[ijet]);
2021 if(correctedJet.
pt()> ptThreshold_){
2022 pass_corrected=
true;
2028 recoJets.push_back(correctedJet);
2030 bool jetpassid=
true;
2031 bool Thiscleaned=
true;
2037 reco::JetID jetID = (*jetID_ValueMap_Handle)[calojetref];
2038 jetpassid = jetIDFunctor((*caloJets)[ijet], jetID);
2040 if(jetCleaningFlag_){
2041 Thiscleaned=jetpassid;
2043 if(Thiscleaned && pass_corrected){
2044 mN90Hits = map_of_MEs[
DirName+
"/"+
"N90Hits"];
if (mN90Hits && mN90Hits->getRootObject()) mN90Hits->Fill (jetID.
n90Hits);
2045 mfHPD = map_of_MEs[
DirName+
"/"+
"fHPD"];
if (mfHPD && mfHPD->getRootObject()) mfHPD->Fill (jetID.
fHPD);
2046 mresEMF = map_of_MEs[
DirName+
"/"+
"resEMF"];
if (mresEMF && mresEMF->getRootObject()) mresEMF->Fill (jetID.
restrictedEMF);
2047 mfRBX = map_of_MEs[
DirName+
"/"+
"fRBX"];
if (mfRBX && mfRBX->getRootObject()) mfRBX->Fill (jetID.
fRBX);
2050 if(jetCleaningFlag_){
2051 Thiscleaned=jetpassid;
2053 if(Thiscleaned && pass_uncorrected){
2054 mPt_uncor = map_of_MEs[
DirName+
"/"+
"Pt_uncor"];
if (mPt_uncor && mPt_uncor->getRootObject()) mPt_uncor->Fill ((*caloJets)[ijet].pt());
2055 mEta_uncor = map_of_MEs[
DirName+
"/"+
"Eta_uncor"];
if (mEta_uncor && mEta_uncor->getRootObject()) mEta_uncor->Fill ((*caloJets)[ijet].eta());
2056 mPhi_uncor = map_of_MEs[
DirName+
"/"+
"Phi_uncor"];
if (mPhi_uncor && mPhi_uncor->getRootObject()) mPhi_uncor->Fill ((*caloJets)[ijet].phi());
2057 mConstituents_uncor = map_of_MEs[
DirName+
"/"+
"Constituents_uncor"];
if (mConstituents_uncor && mConstituents_uncor->getRootObject()) mConstituents_uncor->Fill ((*caloJets)[ijet].nConstituents());
2060 if(Thiscleaned && pass_corrected){
2061 mHFrac = map_of_MEs[
DirName+
"/"+
"HFrac"];
if (mHFrac && mHFrac->getRootObject()) mHFrac->Fill ((*caloJets)[ijet].energyFractionHadronic());
2062 mEFrac = map_of_MEs[
DirName+
"/"+
"EFrac"];
if (mEFrac && mHFrac->getRootObject()) mEFrac->Fill ((*caloJets)[ijet].emEnergyFraction());
2063 mHFrac_profile = map_of_MEs[
DirName+
"/"+
"HFrac_profile"];
if (mHFrac_profile && mHFrac_profile->getRootObject()) mHFrac_profile ->
Fill(numPV, (*caloJets)[ijet].energyFractionHadronic());
2064 mEFrac_profile = map_of_MEs[
DirName+
"/"+
"EFrac_profile"];
if (mEFrac_profile && mEFrac_profile->getRootObject()) mEFrac_profile ->
Fill(numPV, (*caloJets)[ijet].emEnergyFraction());
2065 if (fabs((*caloJets)[ijet].
eta()) <= 1.3) {
2066 mHFrac_Barrel = map_of_MEs[
DirName+
"/"+
"HFrac_Barrel"];
if (mHFrac_Barrel && mHFrac_Barrel->getRootObject()) mHFrac_Barrel->Fill((*caloJets)[ijet].energyFractionHadronic());
2067 mEFrac_Barrel = map_of_MEs[
DirName+
"/"+
"EFrac_Barrel"];
if (mEFrac_Barrel && mEFrac_Barrel->getRootObject()) mEFrac_Barrel->Fill((*caloJets)[ijet].emEnergyFraction());
2068 }
else if(fabs((*caloJets)[ijet].
eta()) <3.0){
2069 mHFrac_EndCap = map_of_MEs[
DirName+
"/"+
"HFrac_EndCap"];
if (mHFrac_EndCap && mHFrac_EndCap->getRootObject()) mHFrac_EndCap->Fill((*caloJets)[ijet].energyFractionHadronic());
2070 mEFrac_EndCap = map_of_MEs[
DirName+
"/"+
"EFrac_EndCap"];
if (mEFrac_EndCap && mEFrac_EndCap->getRootObject()) mEFrac_EndCap->Fill((*caloJets)[ijet].emEnergyFraction());
2072 mHFrac_Forward = map_of_MEs[
DirName+
"/"+
"HFrac_Forward"];
if (mHFrac_Forward && mHFrac_Forward->getRootObject()) mHFrac_Forward->Fill((*caloJets)[ijet].energyFractionHadronic());
2073 mEFrac_Forward = map_of_MEs[
DirName+
"/"+
"EFrac_Forward"];
if (mEFrac_Forward && mEFrac_Forward->getRootObject()) mEFrac_Forward->Fill((*caloJets)[ijet].emEnergyFraction());
2075 mHadEnergyInHO = map_of_MEs[
DirName+
"/"+
"HadEnergyInHO"];
if (mHadEnergyInHO && mHadEnergyInHO->getRootObject()) mHadEnergyInHO->Fill ((*caloJets)[ijet].hadEnergyInHO());
2076 mHadEnergyInHB = map_of_MEs[
DirName+
"/"+
"HadEnergyInHB"];
if (mHadEnergyInHB && mHadEnergyInHB->getRootObject()) mHadEnergyInHB->Fill ((*caloJets)[ijet].hadEnergyInHB());
2077 mHadEnergyInHF = map_of_MEs[
DirName+
"/"+
"HadEnergyInHF"];
if (mHadEnergyInHF && mHadEnergyInHF->getRootObject()) mHadEnergyInHF->Fill ((*caloJets)[ijet].hadEnergyInHF());
2078 mHadEnergyInHE = map_of_MEs[
DirName+
"/"+
"HadEnergyInHE"];
if (mHadEnergyInHE && mHadEnergyInHE->getRootObject()) mHadEnergyInHE->Fill ((*caloJets)[ijet].hadEnergyInHE());
2079 mEmEnergyInEB = map_of_MEs[
DirName+
"/"+
"EmEnergyInEB"];
if (mEmEnergyInEB && mEmEnergyInEB->getRootObject()) mEmEnergyInEB->Fill ((*caloJets)[ijet].emEnergyInEB());
2080 mEmEnergyInEE = map_of_MEs[
DirName+
"/"+
"EmEnergyInEE"];
if (mEmEnergyInEE && mEmEnergyInEE->getRootObject()) mEmEnergyInEE->Fill ((*caloJets)[ijet].emEnergyInEE());
2081 mEmEnergyInHF = map_of_MEs[
DirName+
"/"+
"EmEnergyInHF"];
if (mEmEnergyInHF && mEmEnergyInHF->getRootObject()) mEmEnergyInHF->Fill ((*caloJets)[ijet].emEnergyInHF());
2085 if(isMiniAODJet_ && (*patJets)[ijet].isPFJet()){
2087 jetpassid = pfjetIDFunctor((*patJets)[ijet],stringbitset);
2088 if(jetCleaningFlag_){
2089 Thiscleaned = jetpassid;
2090 JetIDWPU = jetpassid;
2092 if(Thiscleaned && pass_uncorrected){
2093 mPt_uncor = map_of_MEs[
DirName+
"/"+
"Pt_uncor"];
if (mPt_uncor && mPt_uncor->getRootObject())
if (mPt_uncor) mPt_uncor->Fill ((*patJets)[ijet].
pt()*(*patJets)[ijet].jecFactor(
"Uncorrected"));
2094 mEta_uncor = map_of_MEs[
DirName+
"/"+
"Eta_uncor"];
if (mEta_uncor && mEta_uncor->getRootObject())
if (mEta_uncor) mEta_uncor->Fill ((*patJets)[ijet].
eta());
2095 mPhi_uncor = map_of_MEs[
DirName+
"/"+
"Phi_uncor"];
if (mPhi_uncor && mPhi_uncor->getRootObject())
if (mPhi_uncor) mPhi_uncor->Fill ((*patJets)[ijet].phi());
2096 mConstituents_uncor = map_of_MEs[
DirName+
"/"+
"Constituents_uncor"];
if (mConstituents_uncor && mConstituents_uncor->getRootObject())
if (mConstituents_uncor) mConstituents_uncor->Fill ((*patJets)[ijet].nConstituents());
2098 if(Thiscleaned && pass_corrected){
2099 mPt_CaloJet = map_of_MEs[
DirName+
"/"+
"Pt_CaloJet"];
if(mPt_CaloJet && mPt_CaloJet->getRootObject()&& (*patJets)[ijet].hasUserFloat(
"caloJetMap:pt")) mPt_CaloJet->Fill((*patJets)[ijet].userFloat(
"caloJetMap:pt"));
2100 mEMF_CaloJet = map_of_MEs[
DirName+
"/"+
"EMF_CaloJet"];
if(mEMF_CaloJet && mEMF_CaloJet->getRootObject() && (*patJets)[ijet].hasUserFloat(
"caloJetMap:emEnergyFraction")) mEMF_CaloJet->Fill((*patJets)[ijet].userFloat(
"caloJetMap:emEnergyFraction"));
2101 if(fabs(correctedJet.
eta()) <= 1.3) {
2102 if(correctedJet.
pt()<=50.){
2103 mMVAPUJIDDiscriminant_lowPt_Barrel=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_Barrel"];
if(mMVAPUJIDDiscriminant_lowPt_Barrel && mMVAPUJIDDiscriminant_lowPt_Barrel->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_lowPt_Barrel->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant")); }
2105 if (correctedJet.
pt()>50. && correctedJet.
pt()<=140.) {
2106 mMVAPUJIDDiscriminant_mediumPt_Barrel=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_Barrel"];
if(mMVAPUJIDDiscriminant_mediumPt_Barrel && mMVAPUJIDDiscriminant_mediumPt_Barrel->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_mediumPt_Barrel->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant")); }
2108 if(correctedJet.
pt()>140.){
2109 mMVAPUJIDDiscriminant_highPt_Barrel=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_Barrel"];
if(mMVAPUJIDDiscriminant_highPt_Barrel && mMVAPUJIDDiscriminant_highPt_Barrel->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_highPt_Barrel->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant")); }
2111 mMass_Barrel=map_of_MEs[
DirName+
"/"+
"JetMass_Barrel"];
if(mMass_Barrel && mMass_Barrel->getRootObject())mMass_Barrel->Fill((*patJets)[ijet].mass());
2112 mCHFracVSpT_Barrel = map_of_MEs[
DirName+
"/"+
"CHFracVSpT_Barrel"];
if(mCHFracVSpT_Barrel && mCHFracVSpT_Barrel->getRootObject()) mCHFracVSpT_Barrel->Fill(correctedJet.
pt(),(*patJets)[ijet].chargedHadronEnergyFraction());
2113 mNHFracVSpT_Barrel = map_of_MEs[
DirName+
"/"+
"NHFracVSpT_Barrel"];
if (mNHFracVSpT_Barrel && mNHFracVSpT_Barrel->getRootObject()) mNHFracVSpT_Barrel->Fill(correctedJet.
pt(),(*patJets)[ijet].neutralHadronEnergyFraction());
2114 mPhFracVSpT_Barrel = map_of_MEs[
DirName+
"/"+
"PhFracVSpT_Barrel"];
if (mPhFracVSpT_Barrel && mPhFracVSpT_Barrel->getRootObject()) mPhFracVSpT_Barrel->Fill(correctedJet.
pt(),(*patJets)[ijet].neutralEmEnergyFraction());
2115 }
else if(fabs(correctedJet.
eta()) <= 3) {
2116 if(correctedJet.
pt()<=50.){
2117 mMVAPUJIDDiscriminant_lowPt_EndCap=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_EndCap"];
if(mMVAPUJIDDiscriminant_lowPt_EndCap && mMVAPUJIDDiscriminant_lowPt_EndCap->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_lowPt_EndCap->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant")); }
2119 if (correctedJet.
pt()>50. && correctedJet.
pt()<=140.) {
2120 mMVAPUJIDDiscriminant_mediumPt_EndCap=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_EndCap"];
if(mMVAPUJIDDiscriminant_mediumPt_EndCap && mMVAPUJIDDiscriminant_mediumPt_EndCap->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_mediumPt_EndCap->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant")); }
2122 if(correctedJet.
pt()>140.){
2123 mMVAPUJIDDiscriminant_highPt_EndCap=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_EndCap"];
if(mMVAPUJIDDiscriminant_highPt_EndCap && mMVAPUJIDDiscriminant_highPt_EndCap->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_highPt_EndCap->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant")); }
2125 mMass_EndCap=map_of_MEs[
DirName+
"/"+
"JetMass_EndCap"];
if(mMass_EndCap && mMass_EndCap->getRootObject())mMass_EndCap->Fill((*patJets)[ijet].mass());
2126 mCHFracVSpT_EndCap = map_of_MEs[
DirName+
"/"+
"CHFracVSpT_EndCap"];
if(mCHFracVSpT_EndCap && mCHFracVSpT_EndCap->getRootObject()) mCHFracVSpT_EndCap->Fill(correctedJet.
pt(),(*patJets)[ijet].chargedHadronEnergyFraction());
2127 mNHFracVSpT_EndCap = map_of_MEs[
DirName+
"/"+
"NHFracVSpT_EndCap"];
if (mNHFracVSpT_EndCap && mNHFracVSpT_EndCap->getRootObject()) mNHFracVSpT_EndCap->Fill(correctedJet.
pt(),(*patJets)[ijet].neutralHadronEnergyFraction());
2128 mPhFracVSpT_EndCap = map_of_MEs[
DirName+
"/"+
"PhFracVSpT_EndCap"];
if (mPhFracVSpT_EndCap && mPhFracVSpT_EndCap->getRootObject()) mPhFracVSpT_EndCap->Fill(correctedJet.
pt(),(*patJets)[ijet].neutralEmEnergyFraction());
2129 }
else if(fabs(correctedJet.
eta()) <= 5) {
2130 if(correctedJet.
pt()<=50.){
2131 mMVAPUJIDDiscriminant_lowPt_Forward=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_Forward"];
if(mMVAPUJIDDiscriminant_lowPt_Forward && mMVAPUJIDDiscriminant_lowPt_Forward->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_lowPt_Forward->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant")); }
2133 if (correctedJet.
pt()>50. && correctedJet.
pt()<=140.) {
2134 mMVAPUJIDDiscriminant_mediumPt_Forward=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_Forward"];
if(mMVAPUJIDDiscriminant_mediumPt_Forward && mMVAPUJIDDiscriminant_mediumPt_Forward->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_mediumPt_Forward->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));}
2136 if(correctedJet.
pt()>140.){
2137 mMVAPUJIDDiscriminant_highPt_Forward=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_Forward"];
if(mMVAPUJIDDiscriminant_highPt_Forward && mMVAPUJIDDiscriminant_highPt_Forward->getRootObject()){
if((*patJets)[ijet].hasUserFloat(
"pileupJetId:fullDiscriminant")) mMVAPUJIDDiscriminant_highPt_Forward->Fill( (*patJets)[ijet].userFloat(
"pileupJetId:fullDiscriminant"));}
2139 mMass_Forward=map_of_MEs[
DirName+
"/"+
"JetMass_Forward"];
if(mMass_Forward && mMass_Forward->getRootObject())mMass_Forward->Fill((*patJets)[ijet].mass());
2140 mHFHFracVSpT_Forward = map_of_MEs[
DirName+
"/"+
"HFHFracVSpT_Forward"];
if (mHFHFracVSpT_Forward && mHFHFracVSpT_Forward->getRootObject()) mHFHFracVSpT_Forward->Fill(correctedJet.
pt(),(*patJets)[ijet].HFHadronEnergyFraction ());
2141 mHFEFracVSpT_Forward = map_of_MEs[
DirName+
"/"+
"HFEFracVSpT_Forward"];
if (mHFEFracVSpT_Forward && mHFEFracVSpT_Forward->getRootObject()) mHFEFracVSpT_Forward->Fill (correctedJet.
pt(),(*patJets)[ijet].HFEMEnergyFraction ());
2149 int puidmvaflag=-10;
2150 int puidcutflag=-10;
2151 puidmva=(*puJetIdMva)[pfjetref];
2152 puidcut=(*puJetId)[pfjetref];
2153 puidmvaflag=(*puJetIdFlagMva)[pfjetref];
2154 puidcutflag=(*puJetIdFlag)[pfjetref];
2155 jetpassid = pfjetIDFunctor((*pfJets)[ijet]);
2156 if(jetCleaningFlag_){
2157 Thiscleaned = jetpassid;
2160 if(Thiscleaned && pass_uncorrected){
2161 mPt_uncor = map_of_MEs[
DirName+
"/"+
"Pt_uncor"];
if (mPt_uncor && mPt_uncor->getRootObject()) mPt_uncor->Fill ((*pfJets)[ijet].pt());
2162 mEta_uncor = map_of_MEs[
DirName+
"/"+
"Eta_uncor"];
if (mEta_uncor && mEta_uncor->getRootObject()) mEta_uncor->Fill ((*pfJets)[ijet].eta());
2163 mPhi_uncor = map_of_MEs[
DirName+
"/"+
"Phi_uncor"];
if (mPhi_uncor && mPhi_uncor->getRootObject()) mPhi_uncor->Fill ((*pfJets)[ijet].phi());
2164 mConstituents_uncor = map_of_MEs[
DirName+
"/"+
"Constituents_uncor"];
if (mConstituents_uncor && mConstituents_uncor->getRootObject()) mConstituents_uncor->Fill ((*pfJets)[ijet].nConstituents());
2166 if(Thiscleaned && pass_corrected){
2168 mLooseCutPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"LooseCutPUIDPassFractionVSeta"];
if(mLooseCutPUJIDPassFractionVSeta && mLooseCutPUJIDPassFractionVSeta->getRootObject()) mLooseCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),1.);
2169 mLooseCutPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"LooseCutPUIDPassFractionVSpt"];
if(mLooseCutPUJIDPassFractionVSpt && mLooseCutPUJIDPassFractionVSpt->getRootObject()) mLooseCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),1.);
2171 mLooseCutPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"LooseCutPUIDPassFractionVSeta"];
if(mLooseCutPUJIDPassFractionVSeta && mLooseCutPUJIDPassFractionVSeta->getRootObject()) mLooseCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),0.);
2172 mLooseCutPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"LooseCutPUIDPassFractionVSpt"];
if(mLooseCutPUJIDPassFractionVSpt && mLooseCutPUJIDPassFractionVSpt->getRootObject()) mLooseCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),0.);
2175 mMediumCutPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"MediumCutPUIDPassFractionVSeta"];
if(mMediumCutPUJIDPassFractionVSeta && mMediumCutPUJIDPassFractionVSeta->getRootObject()) mMediumCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),1.);
2176 mMediumCutPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"MediumCutPUIDPassFractionVSpt"];
if(mMediumCutPUJIDPassFractionVSpt && mMediumCutPUJIDPassFractionVSpt->getRootObject()) mMediumCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),1.);
2178 mMediumCutPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"MediumCutPUIDPassFractionVSeta"];
if(mMediumCutPUJIDPassFractionVSeta && mMediumCutPUJIDPassFractionVSeta->getRootObject()) mMediumCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),0.);
2179 mMediumCutPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"MediumCutPUIDPassFractionVSpt"];
if(mMediumCutPUJIDPassFractionVSpt && mMediumCutPUJIDPassFractionVSpt->getRootObject()) mMediumCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),0.);
2182 mTightCutPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"TightCutPUIDPassFractionVSeta"];
if(mTightCutPUJIDPassFractionVSeta && mTightCutPUJIDPassFractionVSeta->getRootObject()) mTightCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),1.);
2183 mTightCutPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"TightCutPUIDPassFractionVSpt"];
if(mTightCutPUJIDPassFractionVSpt && mTightCutPUJIDPassFractionVSpt->getRootObject()) mTightCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),1.);
2185 mTightCutPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"TightCutPUIDPassFractionVSeta"];
if(mTightCutPUJIDPassFractionVSeta && mTightCutPUJIDPassFractionVSeta->getRootObject()) mTightCutPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),0.);
2186 mTightCutPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"TightCutPUIDPassFractionVSpt"];
if(mTightCutPUJIDPassFractionVSpt && mTightCutPUJIDPassFractionVSpt->getRootObject()) mTightCutPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),0.);
2189 mLooseMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"LooseMVAPUIDPassFractionVSeta"];
if(mLooseMVAPUJIDPassFractionVSeta && mLooseMVAPUJIDPassFractionVSeta->getRootObject()) mLooseMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),1.);
2190 mLooseMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"LooseMVAPUIDPassFractionVSpt"];
if(mLooseMVAPUJIDPassFractionVSpt && mLooseMVAPUJIDPassFractionVSpt->getRootObject()) mLooseMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),1.);
2192 mLooseMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"LooseMVAPUIDPassFractionVSeta"];
if(mLooseMVAPUJIDPassFractionVSeta && mLooseMVAPUJIDPassFractionVSeta->getRootObject()) mLooseMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),0.);
2193 mLooseMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"LooseMVAPUIDPassFractionVSpt"];
if(mLooseMVAPUJIDPassFractionVSpt && mLooseMVAPUJIDPassFractionVSpt->getRootObject()) mLooseMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),0.);
2196 mMediumMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"MediumMVAPUIDPassFractionVSeta"];
if(mMediumMVAPUJIDPassFractionVSeta && mMediumMVAPUJIDPassFractionVSeta->getRootObject()) mMediumMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),1.);
2197 mMediumMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"MediumMVAPUIDPassFractionVSpt"];
if(mMediumMVAPUJIDPassFractionVSpt && mMediumMVAPUJIDPassFractionVSpt->getRootObject()) mMediumMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),1.);
2199 mMediumMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"MediumMVAPUIDPassFractionVSeta"];
if(mMediumMVAPUJIDPassFractionVSeta && mMediumMVAPUJIDPassFractionVSeta->getRootObject()) mMediumMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),0.);
2200 mMediumMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"MediumMVAPUIDPassFractionVSpt"];
if(mMediumMVAPUJIDPassFractionVSpt && mMediumMVAPUJIDPassFractionVSpt->getRootObject()) mMediumMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),0.);
2203 mTightMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"TightMVAPUIDPassFractionVSeta"];
if(mTightMVAPUJIDPassFractionVSeta && mTightMVAPUJIDPassFractionVSeta->getRootObject()) mTightMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),1.);
2204 mTightMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"TightMVAPUIDPassFractionVSpt"];
if(mTightMVAPUJIDPassFractionVSpt && mTightMVAPUJIDPassFractionVSpt->getRootObject()) mTightMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),1.);
2206 mTightMVAPUJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"TightMVAPUIDPassFractionVSeta"];
if(mTightMVAPUJIDPassFractionVSeta && mTightMVAPUJIDPassFractionVSeta->getRootObject()) mTightMVAPUJIDPassFractionVSeta->Fill(correctedJet.
eta(),0.);
2207 mTightMVAPUJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"TightMVAPUIDPassFractionVSpt"];
if(mTightMVAPUJIDPassFractionVSpt && mTightMVAPUJIDPassFractionVSpt->getRootObject()) mTightMVAPUJIDPassFractionVSpt->Fill(correctedJet.
pt(),0.);
2209 if (correctedJet.
pt()<= 50) {
2210 mCHFracVSeta_lowPt = map_of_MEs[
DirName+
"/"+
"CHFracVSeta_lowPt"];
if (mCHFracVSeta_lowPt && mCHFracVSeta_lowPt->getRootObject()) mCHFracVSeta_lowPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2211 mNHFracVSeta_lowPt = map_of_MEs[
DirName+
"/"+
"NHFracVSeta_lowPt"];
if (mNHFracVSeta_lowPt && mNHFracVSeta_lowPt->getRootObject()) mNHFracVSeta_lowPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2212 mPhFracVSeta_lowPt = map_of_MEs[
DirName+
"/"+
"PhFracVSeta_lowPt"];
if (mPhFracVSeta_lowPt && mPhFracVSeta_lowPt->getRootObject()) mPhFracVSeta_lowPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralEmEnergyFraction());
2214 if (correctedJet.
pt()>50. && correctedJet.
pt()<=140.) {
2215 mCHFracVSeta_mediumPt = map_of_MEs[
DirName+
"/"+
"CHFracVSeta_mediumPt"];
if (mCHFracVSeta_mediumPt && mCHFracVSeta_mediumPt->getRootObject()) mCHFracVSeta_mediumPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2216 mNHFracVSeta_mediumPt = map_of_MEs[
DirName+
"/"+
"NHFracVSeta_mediumPt"];
if (mNHFracVSeta_mediumPt && mNHFracVSeta_mediumPt->getRootObject()) mNHFracVSeta_mediumPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2217 mPhFracVSeta_mediumPt = map_of_MEs[
DirName+
"/"+
"PhFracVSeta_mediumPt"];
if (mPhFracVSeta_mediumPt && mPhFracVSeta_mediumPt->getRootObject()) mPhFracVSeta_mediumPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralEmEnergyFraction());
2219 if (correctedJet.
pt()>140.) {
2220 mCHFracVSeta_highPt = map_of_MEs[
DirName+
"/"+
"CHFracVSeta_highPt"];
if (mCHFracVSeta_highPt && mCHFracVSeta_highPt->getRootObject()) mCHFracVSeta_highPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2221 mNHFracVSeta_highPt = map_of_MEs[
DirName+
"/"+
"NHFracVSeta_highPt"];
if (mNHFracVSeta_highPt && mNHFracVSeta_highPt->getRootObject()) mNHFracVSeta_highPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2222 mPhFracVSeta_highPt = map_of_MEs[
DirName+
"/"+
"PhFracVSeta_highPt"];
if (mPhFracVSeta_highPt && mPhFracVSeta_highPt->getRootObject()) mPhFracVSeta_highPt->Fill((*pfJets)[ijet].eta(),(*pfJets)[ijet].neutralEmEnergyFraction());
2224 if (fabs(correctedJet.
eta()) <= 1.3) {
2226 if (correctedJet.
pt()<=50.) {
2231 mMass_lowPt_Barrel=map_of_MEs[
DirName+
"/"+
"JetMass_lowPt_Barrel"];
if(mMass_lowPt_Barrel && mMass_lowPt_Barrel->getRootObject())mMass_lowPt_Barrel->Fill((*pfJets)[ijet].mass());
2232 mMVAPUJIDDiscriminant_lowPt_Barrel=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_Barrel"];
if(mMVAPUJIDDiscriminant_lowPt_Barrel && mMVAPUJIDDiscriminant_lowPt_Barrel->getRootObject()) mMVAPUJIDDiscriminant_lowPt_Barrel->Fill(puidmva);
2233 mCutPUJIDDiscriminant_lowPt_Barrel=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_lowPt_Barrel"];
if(mCutPUJIDDiscriminant_lowPt_Barrel && mCutPUJIDDiscriminant_lowPt_Barrel->getRootObject()) mCutPUJIDDiscriminant_lowPt_Barrel->Fill(puidcut);
2234 mCHFrac_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"CHFrac_lowPt_Barrel"];
if (mCHFrac_lowPt_Barrel && mCHFrac_lowPt_Barrel->getRootObject()) mCHFrac_lowPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2235 mNHFrac_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"NHFrac_lowPt_Barrel"];
if (mNHFrac_lowPt_Barrel && mNHFrac_lowPt_Barrel->getRootObject()) mNHFrac_lowPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2236 mPhFrac_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"PhFrac_lowPt_Barrel"];
if (mPhFrac_lowPt_Barrel && mPhFrac_lowPt_Barrel->getRootObject()) mPhFrac_lowPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2237 mCHEn_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"CHEn_lowPt_Barrel"];
if (mCHEn_lowPt_Barrel && mCHEn_lowPt_Barrel->getRootObject()) mCHEn_lowPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergy());
2238 mNHEn_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"NHEn_lowPt_Barrel"];
if (mNHEn_lowPt_Barrel && mNHEn_lowPt_Barrel->getRootObject()) mNHEn_lowPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergy());
2239 mPhEn_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"PhEn_lowPt_Barrel"];
if (mPhEn_lowPt_Barrel && mPhEn_lowPt_Barrel->getRootObject()) mPhEn_lowPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergy());
2240 mElEn_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"ElEn_lowPt_Barrel"];
if (mElEn_lowPt_Barrel && mElEn_lowPt_Barrel->getRootObject()) mElEn_lowPt_Barrel->Fill((*pfJets)[ijet].chargedEmEnergy());
2241 mMuEn_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"MuEn_lowPt_Barrel"];
if (mMuEn_lowPt_Barrel && mMuEn_lowPt_Barrel->getRootObject()) mMuEn_lowPt_Barrel->Fill((*pfJets)[ijet].chargedMuEnergy());
2242 mChMultiplicity_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"ChMultiplicity_lowPt_Barrel"];
if(mChMultiplicity_lowPt_Barrel && mChMultiplicity_lowPt_Barrel->getRootObject()) mChMultiplicity_lowPt_Barrel->Fill((*pfJets)[ijet].chargedMultiplicity());
2243 mNeutMultiplicity_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_lowPt_Barrel"];
if(mNeutMultiplicity_lowPt_Barrel && mNeutMultiplicity_lowPt_Barrel->getRootObject()) mNeutMultiplicity_lowPt_Barrel->Fill((*pfJets)[ijet].neutralMultiplicity());
2244 mMuMultiplicity_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"MuMultiplicity_lowPt_Barrel"];
if(mMuMultiplicity_lowPt_Barrel && mMuMultiplicity_lowPt_Barrel->getRootObject()) mMuMultiplicity_lowPt_Barrel->Fill((*pfJets)[ijet].muonMultiplicity());
2246 if (correctedJet.
pt()>50. && correctedJet.
pt()<=140.) {
2251 mMass_mediumPt_Barrel=map_of_MEs[
DirName+
"/"+
"JetMass_mediumPt_Barrel"];
if(mMass_mediumPt_Barrel && mMass_mediumPt_Barrel->getRootObject())mMass_mediumPt_Barrel->Fill((*pfJets)[ijet].mass());
2252 mMVAPUJIDDiscriminant_mediumPt_Barrel=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_Barrel"];
if(mMVAPUJIDDiscriminant_mediumPt_Barrel && mMVAPUJIDDiscriminant_mediumPt_Barrel->getRootObject()) mMVAPUJIDDiscriminant_mediumPt_Barrel->Fill(puidmva);
2253 mCutPUJIDDiscriminant_mediumPt_Barrel=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_mediumPt_Barrel"];
if(mCutPUJIDDiscriminant_mediumPt_Barrel && mCutPUJIDDiscriminant_mediumPt_Barrel->getRootObject()) mCutPUJIDDiscriminant_mediumPt_Barrel->Fill(puidcut);
2254 mCHFrac_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"CHFrac_mediumPt_Barrel"];
if (mCHFrac_mediumPt_Barrel && mCHFrac_mediumPt_Barrel->getRootObject()) mCHFrac_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2255 mNHFrac_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"NHFrac_mediumPt_Barrel"];
if (mNHFrac_mediumPt_Barrel && mNHFrac_mediumPt_Barrel->getRootObject()) mNHFrac_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2256 mPhFrac_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"PhFrac_mediumPt_Barrel"];
if (mPhFrac_mediumPt_Barrel && mPhFrac_mediumPt_Barrel->getRootObject()) mPhFrac_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2257 mCHEn_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"CHEn_mediumPt_Barrel"];
if (mCHEn_mediumPt_Barrel && mCHEn_mediumPt_Barrel->getRootObject()) mCHEn_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergy());
2258 mNHEn_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"NHEn_mediumPt_Barrel"];
if (mNHEn_mediumPt_Barrel && mNHEn_mediumPt_Barrel->getRootObject()) mNHEn_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergy());
2259 mPhEn_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"PhEn_mediumPt_Barrel"];
if (mPhEn_mediumPt_Barrel && mPhEn_mediumPt_Barrel->getRootObject()) mPhEn_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergy());
2260 mElEn_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"ElEn_mediumPt_Barrel"];
if (mElEn_mediumPt_Barrel && mElEn_mediumPt_Barrel->getRootObject()) mElEn_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedEmEnergy());
2261 mMuEn_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"MuEn_mediumPt_Barrel"];
if (mMuEn_mediumPt_Barrel && mMuEn_mediumPt_Barrel->getRootObject()) mMuEn_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedMuEnergy());
2262 mChMultiplicity_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"ChMultiplicity_mediumPt_Barrel"];
if(mChMultiplicity_mediumPt_Barrel && mChMultiplicity_mediumPt_Barrel->getRootObject()) mChMultiplicity_mediumPt_Barrel->Fill((*pfJets)[ijet].chargedMultiplicity());
2263 mNeutMultiplicity_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_mediumPt_Barrel"];
if(mNeutMultiplicity_mediumPt_Barrel && mNeutMultiplicity_mediumPt_Barrel->getRootObject()) mNeutMultiplicity_mediumPt_Barrel->Fill((*pfJets)[ijet].neutralMultiplicity());
2264 mMuMultiplicity_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"MuMultiplicity_mediumPt_Barrel"];
if(mMuMultiplicity_mediumPt_Barrel && mMuMultiplicity_mediumPt_Barrel->getRootObject()) mMuMultiplicity_mediumPt_Barrel->Fill((*pfJets)[ijet].muonMultiplicity());
2266 if (correctedJet.
pt()>140.) {
2271 mMass_highPt_Barrel=map_of_MEs[
DirName+
"/"+
"JetMass_highPt_Barrel"];
if(mMass_highPt_Barrel && mMass_highPt_Barrel->getRootObject())mMass_highPt_Barrel->Fill((*pfJets)[ijet].mass());
2272 mMVAPUJIDDiscriminant_highPt_Barrel=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_Barrel"];
if(mMVAPUJIDDiscriminant_highPt_Barrel && mMVAPUJIDDiscriminant_highPt_Barrel->getRootObject()) mMVAPUJIDDiscriminant_highPt_Barrel->Fill(puidmva);
2273 mCutPUJIDDiscriminant_highPt_Barrel=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_highPt_Barrel"];
if(mCutPUJIDDiscriminant_highPt_Barrel && mCutPUJIDDiscriminant_highPt_Barrel->getRootObject()) mCutPUJIDDiscriminant_highPt_Barrel->Fill(puidcut);
2274 mCHFrac_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"CHFrac_highPt_Barrel"];
if (mCHFrac_highPt_Barrel && mCHFrac_highPt_Barrel->getRootObject()) mCHFrac_highPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2275 mNHFrac_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"NHFrac_highPt_Barrel"];
if (mNHFrac_highPt_Barrel && mNHFrac_highPt_Barrel->getRootObject()) mNHFrac_highPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2276 mPhFrac_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"PhFrac_highPt_Barrel"];
if (mPhFrac_highPt_Barrel && mPhFrac_highPt_Barrel->getRootObject()) mPhFrac_highPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2277 mCHEn_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"CHEn_highPt_Barrel"];
if (mCHEn_highPt_Barrel && mCHEn_highPt_Barrel->getRootObject()) mCHEn_highPt_Barrel->Fill((*pfJets)[ijet].chargedHadronEnergy());
2278 mNHEn_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"NHEn_highPt_Barrel"];
if (mNHEn_highPt_Barrel && mNHEn_highPt_Barrel->getRootObject()) mNHEn_highPt_Barrel->Fill((*pfJets)[ijet].neutralHadronEnergy());
2279 mPhEn_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"PhEn_highPt_Barrel"];
if (mPhEn_highPt_Barrel && mPhEn_highPt_Barrel->getRootObject()) mPhEn_highPt_Barrel->Fill((*pfJets)[ijet].neutralEmEnergy());
2280 mElEn_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"ElEn_highPt_Barrel"];
if (mElEn_highPt_Barrel && mElEn_highPt_Barrel->getRootObject()) mElEn_highPt_Barrel->Fill((*pfJets)[ijet].chargedEmEnergy());
2281 mMuEn_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"MuEn_highPt_Barrel"];
if (mMuEn_highPt_Barrel && mMuEn_highPt_Barrel->getRootObject()) mMuEn_highPt_Barrel->Fill((*pfJets)[ijet].chargedMuEnergy());
2282 mChMultiplicity_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"ChMultiplicity_highPt_Barrel"];
if(mChMultiplicity_highPt_Barrel && mChMultiplicity_highPt_Barrel->getRootObject()) mChMultiplicity_highPt_Barrel->Fill((*pfJets)[ijet].chargedMultiplicity());
2283 mNeutMultiplicity_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_highPt_Barrel"];
if(mNeutMultiplicity_highPt_Barrel && mNeutMultiplicity_highPt_Barrel->getRootObject()) mNeutMultiplicity_highPt_Barrel->Fill((*pfJets)[ijet].neutralMultiplicity());
2284 mMuMultiplicity_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"MuMultiplicity_highPt_Barrel"];
if(mMuMultiplicity_highPt_Barrel && mMuMultiplicity_highPt_Barrel->getRootObject()) mMuMultiplicity_highPt_Barrel->Fill((*pfJets)[ijet].muonMultiplicity());
2286 mCHFracVSpT_Barrel = map_of_MEs[
DirName+
"/"+
"CHFracVSpT_Barrel"];
if(mCHFracVSpT_Barrel && mCHFracVSpT_Barrel->getRootObject()) mCHFracVSpT_Barrel->Fill(correctedJet.
pt(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2287 mNHFracVSpT_Barrel = map_of_MEs[
DirName+
"/"+
"NHFracVSpT_Barrel"];
if (mNHFracVSpT_Barrel && mNHFracVSpT_Barrel->getRootObject()) mNHFracVSpT_Barrel->Fill(correctedJet.
pt(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2288 mPhFracVSpT_Barrel = map_of_MEs[
DirName+
"/"+
"PhFracVSpT_Barrel"];
if (mPhFracVSpT_Barrel && mPhFracVSpT_Barrel->getRootObject()) mPhFracVSpT_Barrel->Fill(correctedJet.
pt(),(*pfJets)[ijet].neutralEmEnergyFraction());
2289 }
else if(fabs(correctedJet.
eta()) <= 3) {
2291 if (correctedJet.
pt()<=50.) {
2296 mMass_lowPt_EndCap=map_of_MEs[
DirName+
"/"+
"JetMass_lowPt_EndCap"];
if(mMass_lowPt_EndCap && mMass_lowPt_EndCap->getRootObject())mMass_lowPt_EndCap->Fill((*pfJets)[ijet].mass());
2297 mMVAPUJIDDiscriminant_lowPt_EndCap=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_EndCap"];
if(mMVAPUJIDDiscriminant_lowPt_EndCap && mMVAPUJIDDiscriminant_lowPt_EndCap->getRootObject()) mMVAPUJIDDiscriminant_lowPt_EndCap->Fill(puidmva);
2298 mCutPUJIDDiscriminant_lowPt_EndCap=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_lowPt_EndCap"];
if(mCutPUJIDDiscriminant_lowPt_EndCap && mCutPUJIDDiscriminant_lowPt_EndCap->getRootObject()) mCutPUJIDDiscriminant_lowPt_EndCap->Fill(puidcut);
2299 mCHFrac_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"CHFrac_lowPt_EndCap"];
if (mCHFrac_lowPt_EndCap && mCHFrac_lowPt_EndCap->getRootObject()) mCHFrac_lowPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2300 mNHFrac_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"NHFrac_lowPt_EndCap"];
if (mNHFrac_lowPt_EndCap && mNHFrac_lowPt_EndCap->getRootObject()) mNHFrac_lowPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2301 mPhFrac_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"PhFrac_lowPt_EndCap"];
if (mPhFrac_lowPt_EndCap && mPhFrac_lowPt_EndCap->getRootObject()) mPhFrac_lowPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2302 mCHEn_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"CHEn_lowPt_EndCap"];
if (mCHEn_lowPt_EndCap && mCHEn_lowPt_EndCap->getRootObject()) mCHEn_lowPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergy());
2303 mNHEn_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"NHEn_lowPt_EndCap"];
if (mNHEn_lowPt_EndCap && mNHEn_lowPt_EndCap->getRootObject()) mNHEn_lowPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergy());
2304 mPhEn_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"PhEn_lowPt_EndCap"];
if (mPhEn_lowPt_EndCap && mPhEn_lowPt_EndCap->getRootObject()) mPhEn_lowPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergy());
2305 mElEn_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"ElEn_lowPt_EndCap"];
if (mElEn_lowPt_EndCap && mElEn_lowPt_EndCap->getRootObject()) mElEn_lowPt_EndCap->Fill((*pfJets)[ijet].chargedEmEnergy());
2306 mMuEn_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"MuEn_lowPt_EndCap"];
if (mMuEn_lowPt_EndCap && mMuEn_lowPt_EndCap->getRootObject()) mMuEn_lowPt_EndCap->Fill((*pfJets)[ijet].chargedMuEnergy());
2307 mChMultiplicity_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"ChMultiplicity_lowPt_EndCap"];
if(mChMultiplicity_lowPt_EndCap && mChMultiplicity_lowPt_EndCap->getRootObject()) mChMultiplicity_lowPt_EndCap->Fill((*pfJets)[ijet].chargedMultiplicity());
2308 mNeutMultiplicity_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_lowPt_EndCap"];
if(mNeutMultiplicity_lowPt_EndCap && mNeutMultiplicity_lowPt_EndCap->getRootObject()) mNeutMultiplicity_lowPt_EndCap->Fill((*pfJets)[ijet].neutralMultiplicity());
2309 mMuMultiplicity_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"MuMultiplicity_lowPt_EndCap"];
if(mMuMultiplicity_lowPt_EndCap && mMuMultiplicity_lowPt_EndCap->getRootObject()) mMuMultiplicity_lowPt_EndCap->Fill((*pfJets)[ijet].muonMultiplicity());
2311 if (correctedJet.
pt()>50. && correctedJet.
pt()<=140.) {
2316 mMass_mediumPt_EndCap=map_of_MEs[
DirName+
"/"+
"JetMass_mediumPt_EndCap"];
if(mMass_mediumPt_EndCap && mMass_mediumPt_EndCap->getRootObject())mMass_mediumPt_EndCap->Fill((*pfJets)[ijet].mass());
2317 mMVAPUJIDDiscriminant_mediumPt_EndCap=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_EndCap"];
if(mMVAPUJIDDiscriminant_mediumPt_EndCap && mMVAPUJIDDiscriminant_mediumPt_EndCap->getRootObject()) mMVAPUJIDDiscriminant_mediumPt_EndCap->Fill(puidmva);
2318 mCutPUJIDDiscriminant_mediumPt_EndCap=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_mediumPt_EndCap"];
if(mCutPUJIDDiscriminant_mediumPt_EndCap && mCutPUJIDDiscriminant_mediumPt_EndCap->getRootObject()) mCutPUJIDDiscriminant_mediumPt_EndCap->Fill(puidcut);
2319 mCHFrac_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"CHFrac_mediumPt_EndCap"];
if (mCHFrac_mediumPt_EndCap && mCHFrac_mediumPt_EndCap->getRootObject()) mCHFrac_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2320 mNHFrac_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"NHFrac_mediumPt_EndCap"];
if (mNHFrac_mediumPt_EndCap && mNHFrac_mediumPt_EndCap->getRootObject()) mNHFrac_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2321 mPhFrac_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"PhFrac_mediumPt_EndCap"];
if (mPhFrac_mediumPt_EndCap && mPhFrac_mediumPt_EndCap->getRootObject()) mPhFrac_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2322 mCHEn_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"CHEn_mediumPt_EndCap"];
if (mCHEn_mediumPt_EndCap && mCHEn_mediumPt_EndCap->getRootObject()) mCHEn_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergy());
2323 mNHEn_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"NHEn_mediumPt_EndCap"];
if (mNHEn_mediumPt_EndCap && mNHEn_mediumPt_EndCap->getRootObject()) mNHEn_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergy());
2324 mPhEn_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"PhEn_mediumPt_EndCap"];
if (mPhEn_mediumPt_EndCap && mPhEn_mediumPt_EndCap->getRootObject()) mPhEn_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergy());
2325 mElEn_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"ElEn_mediumPt_EndCap"];
if (mElEn_mediumPt_EndCap && mElEn_mediumPt_EndCap->getRootObject()) mElEn_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedEmEnergy());
2326 mMuEn_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"MuEn_mediumPt_EndCap"];
if (mMuEn_mediumPt_EndCap && mMuEn_mediumPt_EndCap->getRootObject()) mMuEn_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedMuEnergy());
2327 mChMultiplicity_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"ChMultiplicity_mediumPt_EndCap"];
if(mChMultiplicity_mediumPt_EndCap && mChMultiplicity_mediumPt_EndCap->getRootObject()) mChMultiplicity_mediumPt_EndCap->Fill((*pfJets)[ijet].chargedMultiplicity());
2328 mNeutMultiplicity_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_mediumPt_EndCap"];
if(mNeutMultiplicity_mediumPt_EndCap && mNeutMultiplicity_mediumPt_EndCap->getRootObject()) mNeutMultiplicity_mediumPt_EndCap->Fill((*pfJets)[ijet].neutralMultiplicity());
2329 mMuMultiplicity_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"MuMultiplicity_mediumPt_EndCap"];
if(mMuMultiplicity_mediumPt_EndCap && mMuMultiplicity_mediumPt_EndCap->getRootObject()) mMuMultiplicity_mediumPt_EndCap->Fill((*pfJets)[ijet].muonMultiplicity());
2331 if (correctedJet.
pt()>140.) {
2336 mMass_highPt_EndCap=map_of_MEs[
DirName+
"/"+
"JetMass_highPt_EndCap"];
if(mMass_highPt_EndCap && mMass_highPt_EndCap->getRootObject())mMass_highPt_EndCap->Fill((*pfJets)[ijet].mass());
2337 mMVAPUJIDDiscriminant_highPt_EndCap=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_EndCap"];
if(mMVAPUJIDDiscriminant_highPt_EndCap && mMVAPUJIDDiscriminant_highPt_EndCap->getRootObject()) mMVAPUJIDDiscriminant_highPt_EndCap->Fill(puidmva);
2338 mCutPUJIDDiscriminant_highPt_EndCap=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_highPt_EndCap"];
if(mCutPUJIDDiscriminant_highPt_EndCap && mCutPUJIDDiscriminant_highPt_EndCap->getRootObject()) mCutPUJIDDiscriminant_highPt_EndCap->Fill(puidcut);
2339 mCHFrac_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"CHFrac_highPt_EndCap"];
if (mCHFrac_highPt_EndCap && mCHFrac_highPt_EndCap->getRootObject()) mCHFrac_highPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2340 mNHFrac_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"NHFrac_highPt_EndCap"];
if (mNHFrac_highPt_EndCap && mNHFrac_highPt_EndCap->getRootObject()) mNHFrac_highPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2341 mPhFrac_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"PhFrac_highPt_EndCap"];
if (mPhFrac_highPt_EndCap && mPhFrac_highPt_EndCap->getRootObject()) mPhFrac_highPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergyFraction());
2342 mCHEn_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"CHEn_highPt_EndCap"];
if (mCHEn_highPt_EndCap && mCHEn_highPt_EndCap->getRootObject()) mCHEn_highPt_EndCap->Fill((*pfJets)[ijet].chargedHadronEnergy());
2343 mNHEn_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"NHEn_highPt_EndCap"];
if (mNHEn_highPt_EndCap && mNHEn_highPt_EndCap->getRootObject()) mNHEn_highPt_EndCap->Fill((*pfJets)[ijet].neutralHadronEnergy());
2344 mPhEn_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"PhEn_highPt_EndCap"];
if (mPhEn_highPt_EndCap && mPhEn_highPt_EndCap->getRootObject()) mPhEn_highPt_EndCap->Fill((*pfJets)[ijet].neutralEmEnergy());
2345 mElEn_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"ElEn_highPt_EndCap"];
if (mElEn_highPt_EndCap && mElEn_highPt_EndCap->getRootObject()) mElEn_highPt_EndCap->Fill((*pfJets)[ijet].chargedEmEnergy());
2346 mMuEn_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"MuEn_highPt_EndCap"];
if (mMuEn_highPt_EndCap && mMuEn_highPt_EndCap->getRootObject()) mMuEn_highPt_EndCap->Fill((*pfJets)[ijet].chargedMuEnergy());
2347 mChMultiplicity_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"ChMultiplicity_highPt_EndCap"];
if(mChMultiplicity_highPt_EndCap && mChMultiplicity_highPt_EndCap->getRootObject()) mChMultiplicity_highPt_EndCap->Fill((*pfJets)[ijet].chargedMultiplicity());
2348 mNeutMultiplicity_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_highPt_EndCap"];
if(mNeutMultiplicity_highPt_EndCap && mNeutMultiplicity_highPt_EndCap->getRootObject()) mNeutMultiplicity_highPt_EndCap->Fill((*pfJets)[ijet].neutralMultiplicity());
2349 mMuMultiplicity_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"MuMultiplicity_highPt_EndCap"];
if(mMuMultiplicity_highPt_EndCap && mMuMultiplicity_highPt_EndCap->getRootObject()) mMuMultiplicity_highPt_EndCap->Fill((*pfJets)[ijet].muonMultiplicity());
2351 mCHFracVSpT_EndCap = map_of_MEs[
DirName+
"/"+
"CHFracVSpT_EndCap"];
if(mCHFracVSpT_EndCap && mCHFracVSpT_EndCap->getRootObject()) mCHFracVSpT_EndCap->Fill(correctedJet.
pt(),(*pfJets)[ijet].chargedHadronEnergyFraction());
2352 mNHFracVSpT_EndCap = map_of_MEs[
DirName+
"/"+
"NHFracVSpT_EndCap"];
if (mNHFracVSpT_EndCap && mNHFracVSpT_EndCap->getRootObject()) mNHFracVSpT_EndCap->Fill(correctedJet.
pt(),(*pfJets)[ijet].neutralHadronEnergyFraction());
2353 mPhFracVSpT_EndCap = map_of_MEs[
DirName+
"/"+
"PhFracVSpT_EndCap"];
if (mPhFracVSpT_EndCap && mPhFracVSpT_EndCap->getRootObject()) mPhFracVSpT_EndCap->Fill(correctedJet.
pt(),(*pfJets)[ijet].neutralEmEnergyFraction());
2355 mHFHFracVSpT_Forward = map_of_MEs[
DirName+
"/"+
"HFHFracVSpT_Forward"];
if (mHFHFracVSpT_Forward && mHFHFracVSpT_Forward->getRootObject()) mHFHFracVSpT_Forward->Fill(correctedJet.
pt(),(*pfJets)[ijet].HFHadronEnergyFraction ());
2356 mHFEFracVSpT_Forward = map_of_MEs[
DirName+
"/"+
"HFEFracVSpT_Forward"];
if (mHFEFracVSpT_Forward && mHFEFracVSpT_Forward->getRootObject()) mHFEFracVSpT_Forward->Fill (correctedJet.
pt(),(*pfJets)[ijet].HFEMEnergyFraction ());
2358 if (correctedJet.
pt()<=50.) {
2363 mMass_lowPt_Forward=map_of_MEs[
DirName+
"/"+
"JetMass_lowPt_Forward"];
if(mMass_lowPt_Forward && mMass_lowPt_Forward->getRootObject())mMass_lowPt_Forward->Fill((*pfJets)[ijet].mass());
2364 mMVAPUJIDDiscriminant_lowPt_Forward=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_lowPt_Forward"];
if(mMVAPUJIDDiscriminant_lowPt_Forward && mMVAPUJIDDiscriminant_lowPt_Forward->getRootObject()) mMVAPUJIDDiscriminant_lowPt_Forward->Fill(puidmva);
2365 mCutPUJIDDiscriminant_lowPt_Forward=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_lowPt_Forward"];
if(mCutPUJIDDiscriminant_lowPt_Forward && mCutPUJIDDiscriminant_lowPt_Forward->getRootObject()) mCutPUJIDDiscriminant_lowPt_Forward->Fill(puidcut);
2366 mHFEFrac_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"HFEFrac_lowPt_Forward"];
if(mHFEFrac_lowPt_Forward && mHFEFrac_lowPt_Forward->getRootObject()) mHFEFrac_lowPt_Forward->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2367 mHFHFrac_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"HFHFrac_lowPt_Forward"];
if(mHFHFrac_lowPt_Forward && mHFHFrac_lowPt_Forward->getRootObject()) mHFHFrac_lowPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2368 mHFEEn_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"HFEEn_lowPt_Forward"];
if(mHFEEn_lowPt_Forward && mHFEEn_lowPt_Forward->getRootObject()) mHFEEn_lowPt_Forward->Fill((*pfJets)[ijet].HFEMEnergy());
2369 mHFHEn_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"HFHEn_lowPt_Forward"];
if(mHFHEn_lowPt_Forward && mHFHEn_lowPt_Forward->getRootObject()) mHFHEn_lowPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergy());
2370 mNeutMultiplicity_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_lowPt_Forward"];
if(mNeutMultiplicity_lowPt_Forward && mNeutMultiplicity_lowPt_Forward->getRootObject()) mNeutMultiplicity_lowPt_Forward->Fill((*pfJets)[ijet].neutralMultiplicity());
2372 if (correctedJet.
pt()>50. && correctedJet.
pt()<=140.) {
2377 mMass_mediumPt_Forward=map_of_MEs[
DirName+
"/"+
"JetMass_mediumPt_Forward"];
if(mMass_mediumPt_Forward && mMass_mediumPt_Forward->getRootObject())mMass_mediumPt_Forward->Fill((*pfJets)[ijet].mass());
2378 mMVAPUJIDDiscriminant_mediumPt_Forward=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_mediumPt_Forward"];
if(mMVAPUJIDDiscriminant_mediumPt_Forward && mMVAPUJIDDiscriminant_mediumPt_Forward->getRootObject()) mMVAPUJIDDiscriminant_mediumPt_Forward->Fill(puidmva);
2379 mCutPUJIDDiscriminant_mediumPt_Forward=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_mediumPt_Forward"];
if(mCutPUJIDDiscriminant_mediumPt_Forward && mCutPUJIDDiscriminant_mediumPt_Forward->getRootObject()) mCutPUJIDDiscriminant_mediumPt_Forward->Fill(puidcut);
2380 mHFEFrac_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"HFEFrac_mediumPt_Forward"];
if(mHFEFrac_mediumPt_Forward && mHFEFrac_mediumPt_Forward->getRootObject()) mHFEFrac_mediumPt_Forward->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2381 mHFHFrac_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"HFHFrac_mediumPt_Forward"];
if(mHFHFrac_mediumPt_Forward && mHFHFrac_mediumPt_Forward->getRootObject()) mHFHFrac_mediumPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2382 mHFEEn_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"HFEEn_mediumPt_Forward"];
if(mHFEEn_mediumPt_Forward && mHFEEn_mediumPt_Forward->getRootObject()) mHFEEn_mediumPt_Forward->Fill((*pfJets)[ijet].HFEMEnergy());
2383 mHFHEn_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"HFHEn_mediumPt_Forward"];
if(mHFHEn_mediumPt_Forward && mHFHEn_mediumPt_Forward->getRootObject()) mHFHEn_mediumPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergy());
2384 mNeutMultiplicity_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_mediumPt_Forward"];
if(mNeutMultiplicity_mediumPt_Forward && mNeutMultiplicity_mediumPt_Forward->getRootObject()) mNeutMultiplicity_mediumPt_Forward->Fill((*pfJets)[ijet].neutralMultiplicity());
2386 if (correctedJet.
pt()>140.) {
2391 mMass_highPt_Forward=map_of_MEs[
DirName+
"/"+
"JetMass_highPt_Forward"];
if(mMass_highPt_Forward && mMass_highPt_Forward->getRootObject())mMass_highPt_Forward->Fill((*pfJets)[ijet].mass());
2392 mMVAPUJIDDiscriminant_highPt_Forward=map_of_MEs[
DirName+
"/"+
"MVAPUJIDDiscriminant_highPt_Forward"];
if(mMVAPUJIDDiscriminant_highPt_Forward && mMVAPUJIDDiscriminant_highPt_Forward->getRootObject()) mMVAPUJIDDiscriminant_highPt_Forward->Fill(puidmva);
2393 mCutPUJIDDiscriminant_highPt_Forward=map_of_MEs[
DirName+
"/"+
"CutPUJIDDiscriminant_highPt_Forward"];
if(mCutPUJIDDiscriminant_highPt_Forward && mCutPUJIDDiscriminant_highPt_Forward->getRootObject()) mCutPUJIDDiscriminant_highPt_Forward->Fill(puidcut);
2394 mHFEFrac_highPt_Forward = map_of_MEs[
DirName+
"/"+
"HFEFrac_highPt_Forward"];
if(mHFEFrac_highPt_Forward && mHFEFrac_highPt_Forward->getRootObject()) mHFEFrac_highPt_Forward->Fill((*pfJets)[ijet].HFEMEnergyFraction());
2395 mHFHFrac_highPt_Forward = map_of_MEs[
DirName+
"/"+
"HFHFrac_highPt_Forward"];
if(mHFHFrac_highPt_Forward && mHFHFrac_highPt_Forward->getRootObject()) mHFHFrac_highPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2396 mHFEEn_highPt_Forward = map_of_MEs[
DirName+
"/"+
"HFEEn_highPt_Forward"];
if(mHFEEn_highPt_Forward && mHFEEn_highPt_Forward->getRootObject()) mHFEEn_highPt_Forward->Fill((*pfJets)[ijet].HFEMEnergy());
2397 mHFHEn_highPt_Forward = map_of_MEs[
DirName+
"/"+
"HFHEn_highPt_Forward"];
if(mHFHEn_highPt_Forward && mHFHEn_highPt_Forward->getRootObject()) mHFHEn_highPt_Forward->Fill((*pfJets)[ijet].HFHadronEnergy());
2398 mNeutMultiplicity_highPt_Forward = map_of_MEs[
DirName+
"/"+
"NeutMultiplicity_highPt_Forward"];
if(mNeutMultiplicity_highPt_Forward && mNeutMultiplicity_highPt_Forward->getRootObject()) mNeutMultiplicity_highPt_Forward->Fill((*pfJets)[ijet].neutralMultiplicity());
2430 if(techTriggerResultBx0 && techTriggerResultBxF){
2431 meEta_BXm1Filled = map_of_MEs[
DirName+
"/"+
"Eta_BXm1Filled"];
if ( meEta_BXm1Filled && meEta_BXm1Filled ->getRootObject()) meEta_BXm1Filled ->
Fill((*pfJets)[ijet].eta());
2432 if(fabs(correctedJet.
eta()) <= 1.3) {
2433 mePhFracBarrel_BXm1Filled = map_of_MEs[
DirName+
"/"+
"PhFracBarrel_BXm1Filled"];
if ( mePhFracBarrel_BXm1Filled && mePhFracBarrel_BXm1Filled ->getRootObject()) mePhFracBarrel_BXm1Filled ->
Fill((*pfJets)[ijet].photonEnergyFraction());
2434 meNHFracBarrel_BXm1Filled = map_of_MEs[
DirName+
"/"+
"NHFracBarrel_BXm1Filled"];
if ( meNHFracBarrel_BXm1Filled && meNHFracBarrel_BXm1Filled ->getRootObject()) meNHFracBarrel_BXm1Filled ->
Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2435 meCHFracBarrel_BXm1Filled = map_of_MEs[
DirName+
"/"+
"CHFracBarrel_BXm1Filled"];
if ( meCHFracBarrel_BXm1Filled && meCHFracBarrel_BXm1Filled ->getRootObject()) meCHFracBarrel_BXm1Filled ->
Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2436 mePtBarrel_BXm1Filled = map_of_MEs[
DirName+
"/"+
"PtBarrel_BXm1Filled"];
if ( mePtBarrel_BXm1Filled && mePtBarrel_BXm1Filled ->getRootObject()) mePtBarrel_BXm1Filled ->
Fill((*pfJets)[ijet].pt());
2437 }
else if (correctedJet.
eta() > -3.0 && correctedJet.
eta() <= -1.3) {
2438 mePhFracEndCapMinus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"PhFracEndCapMinus_BXm1Filled"];
if ( mePhFracEndCapMinus_BXm1Filled && mePhFracEndCapMinus_BXm1Filled ->getRootObject()) mePhFracEndCapMinus_BXm1Filled ->
Fill((*pfJets)[ijet].photonEnergyFraction());
2439 meNHFracEndCapMinus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"NHFracEndCapMinus_BXm1Filled"];
if ( meNHFracEndCapMinus_BXm1Filled && meNHFracEndCapMinus_BXm1Filled ->getRootObject()) meNHFracEndCapMinus_BXm1Filled ->
Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2440 meCHFracEndCapMinus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"CHFracEndCapMinus_BXm1Filled"];
if ( meCHFracEndCapMinus_BXm1Filled && meCHFracEndCapMinus_BXm1Filled ->getRootObject()) meCHFracEndCapMinus_BXm1Filled ->
Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2441 mePtEndCapMinus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"PtEndCapMinus_BXm1Filled"];
if ( mePtEndCapMinus_BXm1Filled && mePtEndCapMinus_BXm1Filled ->getRootObject()) mePtEndCapMinus_BXm1Filled ->
Fill((*pfJets)[ijet].pt());
2442 }
else if (correctedJet.
eta() >= 1.3 && correctedJet.
eta() < 3.0) {
2443 mePhFracEndCapPlus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"PhFracEndCapPlus_BXm1Filled"];
if ( mePhFracEndCapPlus_BXm1Filled && mePhFracEndCapPlus_BXm1Filled ->getRootObject()) mePhFracEndCapPlus_BXm1Filled ->
Fill((*pfJets)[ijet].photonEnergyFraction());
2444 meNHFracEndCapPlus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"NHFracEndCapPlus_BXm1Filled"];
if ( meNHFracEndCapPlus_BXm1Filled && meNHFracEndCapPlus_BXm1Filled ->getRootObject()) meNHFracEndCapPlus_BXm1Filled ->
Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2445 meCHFracEndCapPlus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"CHFracEndCapPlus_BXm1Filled"];
if ( meCHFracEndCapPlus_BXm1Filled && meCHFracEndCapPlus_BXm1Filled ->getRootObject()) meCHFracEndCapPlus_BXm1Filled ->
Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2446 mePtEndCapPlus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"PtEndCapPlus_BXm1Filled"];
if ( mePtEndCapPlus_BXm1Filled && mePtEndCapPlus_BXm1Filled ->getRootObject()) mePtEndCapPlus_BXm1Filled ->
Fill((*pfJets)[ijet].pt());
2447 }
else if (correctedJet.
eta() > -5.0 && correctedJet.
eta() <= -3.0) {
2448 mePtForwardMinus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"PtForwardMinus_BXm1Filled"];
if ( mePtForwardMinus_BXm1Filled && mePtForwardMinus_BXm1Filled ->getRootObject()) mePtForwardMinus_BXm1Filled ->
Fill((*pfJets)[ijet].pt());
2449 meHFHFracMinus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"HFHFracMinus_BXm1Filled"];
if ( meHFHFracMinus_BXm1Filled && meHFHFracMinus_BXm1Filled ->getRootObject()) meHFHFracMinus_BXm1Filled ->
Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2450 meHFEMFracMinus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"HFEMFracMinus_BXm1Filled"];
if ( meHFEMFracMinus_BXm1Filled && meHFEMFracMinus_BXm1Filled ->getRootObject()) meHFEMFracMinus_BXm1Filled ->
Fill((*pfJets)[ijet].HFEMEnergyFraction());
2451 }
else if (correctedJet.
eta() >= 3.0 && correctedJet.
eta() < 5.0) {
2452 mePtForwardPlus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"PtForwardPlus_BXm1Filled"];
if ( mePtForwardPlus_BXm1Filled && mePtForwardPlus_BXm1Filled ->getRootObject()) mePtForwardPlus_BXm1Filled ->
Fill((*pfJets)[ijet].pt());
2453 meHFHFracPlus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"HFHFracPlus_BXm1Filled"];
if ( meHFHFracPlus_BXm1Filled && meHFHFracPlus_BXm1Filled ->getRootObject()) meHFHFracPlus_BXm1Filled ->
Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2454 meHFEMFracPlus_BXm1Filled = map_of_MEs[
DirName+
"/"+
"HFEMFracPlus_BXm1Filled"];
if ( meHFEMFracPlus_BXm1Filled && meHFEMFracPlus_BXm1Filled ->getRootObject()) meHFEMFracPlus_BXm1Filled ->
Fill((*pfJets)[ijet].HFEMEnergyFraction());
2484 if(techTriggerResultBx0 && !techTriggerResultBxF){
2485 meEta_BXm1Empty = map_of_MEs[
DirName+
"/"+
"Eta_BXm1Empty"];
if ( meEta_BXm1Empty && meEta_BXm1Empty ->getRootObject()) meEta_BXm1Empty ->
Fill((*pfJets)[ijet].eta());
2486 if(fabs(correctedJet.
eta()) <= 1.3) {
2487 mePhFracBarrel_BXm1Empty = map_of_MEs[
DirName+
"/"+
"PhFracBarrel_BXm1Empty"];
if ( mePhFracBarrel_BXm1Empty && mePhFracBarrel_BXm1Empty ->getRootObject()) mePhFracBarrel_BXm1Empty ->
Fill((*pfJets)[ijet].photonEnergyFraction());
2488 meNHFracBarrel_BXm1Empty = map_of_MEs[
DirName+
"/"+
"NHFracBarrel_BXm1Empty"];
if ( meNHFracBarrel_BXm1Empty && meNHFracBarrel_BXm1Empty ->getRootObject()) meNHFracBarrel_BXm1Empty ->
Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2489 meCHFracBarrel_BXm1Empty = map_of_MEs[
DirName+
"/"+
"CHFracBarrel_BXm1Empty"];
if ( meCHFracBarrel_BXm1Empty && meCHFracBarrel_BXm1Empty ->getRootObject()) meCHFracBarrel_BXm1Empty ->
Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2490 mePtBarrel_BXm1Empty = map_of_MEs[
DirName+
"/"+
"PtBarrel_BXm1Empty"];
if ( mePtBarrel_BXm1Empty && mePtBarrel_BXm1Empty ->getRootObject()) mePtBarrel_BXm1Empty ->
Fill((*pfJets)[ijet].pt());
2491 }
else if (correctedJet.
eta() > -3.0 && correctedJet.
eta() <= -1.3) {
2492 mePhFracEndCapMinus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"PhFracEndCapMinus_BXm1Empty"];
if ( mePhFracEndCapMinus_BXm1Empty && mePhFracEndCapMinus_BXm1Empty ->getRootObject()) mePhFracEndCapMinus_BXm1Empty ->
Fill((*pfJets)[ijet].photonEnergyFraction());
2493 meNHFracEndCapMinus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"NHFracEndCapMinus_BXm1Empty"];
if ( meNHFracEndCapMinus_BXm1Empty && meNHFracEndCapMinus_BXm1Empty ->getRootObject()) meNHFracEndCapMinus_BXm1Empty ->
Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2494 meCHFracEndCapMinus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"CHFracEndCapMinus_BXm1Empty"];
if ( meCHFracEndCapMinus_BXm1Empty && meCHFracEndCapMinus_BXm1Empty ->getRootObject()) meCHFracEndCapMinus_BXm1Empty ->
Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2495 mePtEndCapMinus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"PtEndCapMinus_BXm1Empty"];
if ( mePtEndCapMinus_BXm1Empty && mePtEndCapMinus_BXm1Empty ->getRootObject()) mePtEndCapMinus_BXm1Empty ->
Fill((*pfJets)[ijet].pt());
2496 }
else if (correctedJet.
eta() >= 1.3 && correctedJet.
eta() < 3.0) {
2497 mePhFracEndCapPlus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"PhFracEndCapPlus_BXm1Empty"];
if ( mePhFracEndCapPlus_BXm1Empty && mePhFracEndCapPlus_BXm1Empty ->getRootObject()) mePhFracEndCapPlus_BXm1Empty ->
Fill((*pfJets)[ijet].photonEnergyFraction());
2498 meNHFracEndCapPlus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"NHFracEndCapPlus_BXm1Empty"];
if ( meNHFracEndCapPlus_BXm1Empty && meNHFracEndCapPlus_BXm1Empty ->getRootObject()) meNHFracEndCapPlus_BXm1Empty ->
Fill((*pfJets)[ijet].neutralHadronEnergyFraction());
2499 meCHFracEndCapPlus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"CHFracEndCapPlus_BXm1Empty"];
if ( meCHFracEndCapPlus_BXm1Empty && meCHFracEndCapPlus_BXm1Empty ->getRootObject()) meCHFracEndCapPlus_BXm1Empty ->
Fill((*pfJets)[ijet].chargedHadronEnergyFraction());
2500 mePtEndCapPlus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"PtEndCapPlus_BXm1Empty"];
if ( mePtEndCapPlus_BXm1Empty && mePtEndCapPlus_BXm1Empty ->getRootObject()) mePtEndCapPlus_BXm1Empty ->
Fill((*pfJets)[ijet].pt());
2501 }
else if (correctedJet.
eta() > -5.0 && correctedJet.
eta() <= -3.0) {
2502 mePtForwardMinus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"PtForwardMinus_BXm1Empty"];
if ( mePtForwardMinus_BXm1Empty && mePtForwardMinus_BXm1Empty ->getRootObject()) mePtForwardMinus_BXm1Empty ->
Fill((*pfJets)[ijet].pt());
2503 meHFHFracMinus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"HFHFracMinus_BXm1Empty"];
if ( meHFHFracMinus_BXm1Empty && meHFHFracMinus_BXm1Empty ->getRootObject()) meHFHFracMinus_BXm1Empty ->
Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2504 meHFEMFracMinus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"HFEMFracMinus_BXm1Empty"];
if ( meHFEMFracMinus_BXm1Empty && meHFEMFracMinus_BXm1Empty ->getRootObject()) meHFEMFracMinus_BXm1Empty ->
Fill((*pfJets)[ijet].HFEMEnergyFraction());
2505 }
else if (correctedJet.
eta() >= 3.0 && correctedJet.
eta() < 5.0) {
2506 mePtForwardPlus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"PtForwardPlus_BXm1Empty"];
if ( mePtForwardPlus_BXm1Empty && mePtForwardPlus_BXm1Empty ->getRootObject()) mePtForwardPlus_BXm1Empty ->
Fill((*pfJets)[ijet].pt());
2507 meHFHFracPlus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"HFHFracPlus_BXm1Empty"];
if ( meHFHFracPlus_BXm1Empty && meHFHFracPlus_BXm1Empty ->getRootObject()) meHFHFracPlus_BXm1Empty ->
Fill((*pfJets)[ijet].HFHadronEnergyFraction());
2508 meHFEMFracPlus_BXm1Empty = map_of_MEs[
DirName+
"/"+
"HFEMFracPlus_BXm1Empty"];
if ( meHFEMFracPlus_BXm1Empty && meHFEMFracPlus_BXm1Empty ->getRootObject()) meHFEMFracPlus_BXm1Empty ->
Fill((*pfJets)[ijet].HFEMEnergyFraction());
2511 mChargedHadronEnergy = map_of_MEs[
DirName+
"/"+
"ChargedHadronEnergy"];
if (mChargedHadronEnergy && mChargedHadronEnergy->getRootObject()) mChargedHadronEnergy->Fill ((*pfJets)[ijet].chargedHadronEnergy());
2512 mNeutralHadronEnergy = map_of_MEs[
DirName+
"/"+
"NeutralHadronEnergy"];
if (mNeutralHadronEnergy && mNeutralHadronEnergy->getRootObject()) mNeutralHadronEnergy->Fill ((*pfJets)[ijet].neutralHadronEnergy());
2513 mChargedEmEnergy = map_of_MEs[
DirName+
"/"+
"ChargedEmEnergy"];
if (mChargedEmEnergy && mChargedEmEnergy->getRootObject()) mChargedEmEnergy->Fill((*pfJets)[ijet].chargedEmEnergy());
2514 mChargedMuEnergy = map_of_MEs[
DirName+
"/"+
"ChargedMuEnergy"];
if (mChargedMuEnergy && mChargedMuEnergy->getRootObject()) mChargedMuEnergy->Fill ((*pfJets)[ijet].chargedMuEnergy ());
2515 mNeutralEmEnergy = map_of_MEs[
DirName+
"/"+
"NeutralEmEnergy"];
if (mNeutralEmEnergy && mNeutralEmEnergy->getRootObject()) mNeutralEmEnergy->Fill((*pfJets)[ijet].neutralEmEnergy());
2516 mChargedMultiplicity = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity"];
if (mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*pfJets)[ijet].chargedMultiplicity());
2517 mNeutralMultiplicity = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity"];
if (mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*pfJets)[ijet].neutralMultiplicity());
2518 mMuonMultiplicity = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity"];
if (mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill ((*pfJets)[ijet].
muonMultiplicity());
2520 mNeutralFraction = map_of_MEs[
DirName+
"/"+
"NeutralConstituentsFraction"];
if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((
double)(*pfJets)[ijet].neutralMultiplicity()/(double)(*pfJets)[ijet].nConstituents());
2521 mChargedHadronEnergy_profile = map_of_MEs[
DirName+
"/"+
"ChargedHadronEnergy_profile"];
if (mChargedHadronEnergy_profile && mChargedHadronEnergy_profile->getRootObject()) mChargedHadronEnergy_profile->Fill(numPV, (*pfJets)[ijet].chargedHadronEnergy());
2522 mNeutralHadronEnergy_profile = map_of_MEs[
DirName+
"/"+
"NeutralHadronEnergy_profile"];
if (mNeutralHadronEnergy_profile && mNeutralHadronEnergy_profile->getRootObject()) mNeutralHadronEnergy_profile->Fill(numPV, (*pfJets)[ijet].neutralHadronEnergy());
2523 mChargedEmEnergy_profile = map_of_MEs[
DirName+
"/"+
"ChargedEmEnergy_profile"];
if (mChargedEmEnergy_profile && mChargedEmEnergy_profile->getRootObject()) mChargedEmEnergy_profile ->
Fill(numPV, (*pfJets)[ijet].chargedEmEnergy());
2524 mChargedMuEnergy_profile = map_of_MEs[
DirName+
"/"+
"ChargedMuEnergy_profile"];
if (mChargedMuEnergy_profile && mChargedMuEnergy_profile->getRootObject()) mChargedMuEnergy_profile ->
Fill(numPV, (*pfJets)[ijet].chargedMuEnergy ());
2525 mNeutralEmEnergy_profile = map_of_MEs[
DirName+
"/"+
"NeutralEmEnergy_profile"];
if (mNeutralEmEnergy_profile && mNeutralEmEnergy_profile->getRootObject()) mNeutralEmEnergy_profile ->
Fill(numPV, (*pfJets)[ijet].neutralEmEnergy());
2526 mChargedMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity_profile"];
if (mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*pfJets)[ijet].chargedMultiplicity());
2527 mNeutralMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity_profile"];
if (mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*pfJets)[ijet].neutralMultiplicity());
2528 mMuonMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity_profile"];
if (mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity_profile ->
Fill(numPV, (*pfJets)[ijet].muonMultiplicity());
2534 if(pass_Z_selection){
2535 if(
deltaR((*Muons)[mu_index0].
eta(),(*Muons)[mu_index0].phi(),correctedJet.
eta(),correctedJet.
phi())>0.2 &&
deltaR((*Muons)[mu_index1].eta(),(*Muons)[mu_index1].phi(),correctedJet.
eta(),correctedJet.
phi())>0.2 ){
2536 if(correctedJet.
pt()>pt1_mu_vetoed){
2537 pt2_mu_vetoed=pt1_mu_vetoed;
2538 ind2_mu_vetoed=ind1_mu_vetoed;
2539 cleaned_second_jet_mu_vetoed=cleaned_first_jet_mu_vetoed;
2540 pt1_mu_vetoed=correctedJet.
pt();
2541 ind1_mu_vetoed=ijet;
2542 cleaned_first_jet_mu_vetoed=JetIDWPU;
2543 }
else if(correctedJet.
pt()>pt2_mu_vetoed){
2544 pt2_mu_vetoed=correctedJet.
pt();
2545 ind2_mu_vetoed=ijet;
2546 cleaned_second_jet_mu_vetoed=JetIDWPU;
2551 if(correctedJet.
pt()>
pt1){
2557 cleaned_second_jet=cleaned_first_jet;
2558 pt1=correctedJet.
pt();
2560 cleaned_first_jet=JetIDWPU;
2561 }
else if(correctedJet.
pt()>
pt2){
2565 pt2=correctedJet.
pt();
2567 cleaned_second_jet=JetIDWPU;
2568 }
else if(correctedJet.
pt()>pt3){
2569 pt3=correctedJet.
pt();
2573 if(!pass_corrected){
2578 if(!runcosmics_ && pass_corrected){
2580 mLooseJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"JetIDPassFractionVSeta"];
if (mLooseJIDPassFractionVSeta && mLooseJIDPassFractionVSeta->getRootObject()) mLooseJIDPassFractionVSeta->Fill(correctedJet.
eta(),1.);
2581 mLooseJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"JetIDPassFractionVSpt"];
if (mLooseJIDPassFractionVSpt && mLooseJIDPassFractionVSpt->getRootObject()) mLooseJIDPassFractionVSpt->Fill(correctedJet.
pt(),1.);
2582 if(fabs(correctedJet.
eta())<3.0){
2583 mLooseJIDPassFractionVSptNoHF= map_of_MEs[
DirName+
"/"+
"JetIDPassFractionVSptNoHF"];
if (mLooseJIDPassFractionVSptNoHF && mLooseJIDPassFractionVSptNoHF->getRootObject()) mLooseJIDPassFractionVSptNoHF->Fill(correctedJet.
pt(),1.);
2586 mLooseJIDPassFractionVSeta = map_of_MEs[
DirName+
"/"+
"JetIDPassFractionVSeta"];
if (mLooseJIDPassFractionVSeta && mLooseJIDPassFractionVSeta->getRootObject()) mLooseJIDPassFractionVSeta->Fill(correctedJet.
eta(),0.);
2587 mLooseJIDPassFractionVSpt = map_of_MEs[
DirName+
"/"+
"JetIDPassFractionVSpt"];
if (mLooseJIDPassFractionVSpt && mLooseJIDPassFractionVSpt->getRootObject()) mLooseJIDPassFractionVSpt->Fill(correctedJet.
pt(),0.);
2588 if(fabs(correctedJet.
eta())<3.0){
2589 mLooseJIDPassFractionVSptNoHF= map_of_MEs[
DirName+
"/"+
"JetIDPassFractionVSptNoHF"];
if (mLooseJIDPassFractionVSptNoHF && mLooseJIDPassFractionVSptNoHF->getRootObject()) mLooseJIDPassFractionVSptNoHF->Fill(correctedJet.
pt(),0.);
2594 if(Thiscleaned && pass_corrected){
2597 jetME = map_of_MEs[
DirName+
"/"+
"jetReco"];
if(jetME && jetME->getRootObject()) jetME->Fill(1);
2598 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(correctedJet.
pt()/(*caloJets)[ijet].pt());
2599 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(correctedJet.
eta(),correctedJet.
pt()/(*caloJets)[ijet].pt());
2600 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(correctedJet.
pt(),correctedJet.
pt()/(*caloJets)[ijet].pt());
2603 jetME = map_of_MEs[
DirName+
"/"+
"jetReco"];
if(jetME && jetME->getRootObject()) jetME->Fill(2);
2604 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(correctedJet.
pt()/(*pfJets)[ijet].pt());
2605 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())mJetEnergyCorrVSEta->Fill(correctedJet.
eta(),correctedJet.
pt()/(*pfJets)[ijet].pt());
2606 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(correctedJet.
pt(),correctedJet.
pt()/(*pfJets)[ijet].pt());
2609 jetME = map_of_MEs[
DirName+
"/"+
"jetReco"];
if(jetME && jetME->getRootObject()) jetME->Fill(4);
2610 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(1./(*patJets)[ijet].jecFactor(
"Uncorrected"));
2611 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject())mJetEnergyCorrVSEta->Fill(correctedJet.
eta(),1./(*patJets)[ijet].jecFactor(
"Uncorrected"));
2612 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(correctedJet.
pt(),1./(*patJets)[ijet].jecFactor(
"Uncorrected"));
2613 if(filljetsubstruc_){
2615 mSoftDropMass = map_of_MEs[
DirName+
"/"+
"SoftDropMass"];
if(mSoftDropMass && mSoftDropMass->getRootObject() && (*patJets)[ijet].hasUserFloat(
"ak8PFJetsPuppiSoftDropMass")) mSoftDropMass->Fill((*patJets)[ijet].userFloat(
"ak8PFJetsPuppiSoftDropMass"));
2616 mPrunedMass = map_of_MEs[
DirName+
"/"+
"PrunedMass"];
if(mPrunedMass && mPrunedMass->getRootObject() && (*patJets)[ijet].hasUserFloat(
"ak8PFJetsCHSValueMap:ak8PFJetsCHSPrunedMass")) mPrunedMass->Fill((*patJets)[ijet].userFloat(
"ak8PFJetsCHSValueMap:ak8PFJetsCHSPrunedMass"));
2617 mtau2_over_tau1 = map_of_MEs[
DirName+
"/"+
"tau2_over_tau1"];
if(mtau2_over_tau1 && mtau2_over_tau1->getRootObject() && ((*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau1") && (*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau2")))mtau2_over_tau1->Fill((*patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau2")/(*patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau1"));
2618 mtau3_over_tau2 = map_of_MEs[
DirName+
"/"+
"tau3_over_tau2"];
if(mtau3_over_tau2 && mtau3_over_tau2->getRootObject() && ((*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau2") && (*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau3")))mtau3_over_tau2->Fill((*patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau3")/(*patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau2"));
2621 if((*patJets)[ijet].hasSubjets(
"SoftDropPuppi")){
2622 mnSubJetsSoftDrop=map_of_MEs[
DirName+
"/"+
"nSubJets_SoftDrop"];
if(mnSubJetsSoftDrop && mnSubJetsSoftDrop->getRootObject()) mnSubJetsSoftDrop->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi").size());
2624 if((*patJets)[ijet].hasSubjets(
"SoftDropPuppi") && (*patJets)[ijet].subjets(
"SoftDropPuppi").size()>0){
2625 mSubJet1_SoftDrop_pt=map_of_MEs[
DirName+
"/"+
"SubJet1_SoftDrop_pt"];
if(mSubJet1_SoftDrop_pt && mSubJet1_SoftDrop_pt->getRootObject()) mSubJet1_SoftDrop_pt->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[0]->pt());
2626 mSubJet1_SoftDrop_eta=map_of_MEs[
DirName+
"/"+
"SubJet1_SoftDrop_eta"];
if(mSubJet1_SoftDrop_eta && mSubJet1_SoftDrop_eta->getRootObject()) mSubJet1_SoftDrop_eta->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[0]->eta());
2627 mSubJet1_SoftDrop_phi=map_of_MEs[
DirName+
"/"+
"SubJet1_SoftDrop_phi"];
if(mSubJet1_SoftDrop_phi && mSubJet1_SoftDrop_phi->getRootObject()) mSubJet1_SoftDrop_phi->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[0]->phi());
2628 mSubJet1_SoftDrop_mass=map_of_MEs[
DirName+
"/"+
"SubJet1_SoftDrop_mass"];
if(mSubJet1_SoftDrop_mass && mSubJet1_SoftDrop_mass->getRootObject()) mSubJet1_SoftDrop_mass->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[0]->mass());
2629 if((*patJets)[ijet].subjets(
"SoftDropPuppi").size()>1){
2630 mSubJet2_SoftDrop_pt=map_of_MEs[
DirName+
"/"+
"SubJet2_SoftDrop_pt"];
if(mSubJet2_SoftDrop_pt && mSubJet2_SoftDrop_pt->getRootObject()) mSubJet2_SoftDrop_pt->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[1]->pt());
2631 mSubJet2_SoftDrop_eta=map_of_MEs[
DirName+
"/"+
"SubJet2_SoftDrop_eta"];
if(mSubJet2_SoftDrop_eta && mSubJet2_SoftDrop_eta->getRootObject()) mSubJet2_SoftDrop_eta->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[1]->eta());
2632 mSubJet2_SoftDrop_phi=map_of_MEs[
DirName+
"/"+
"SubJet2_SoftDrop_phi"];
if(mSubJet2_SoftDrop_phi && mSubJet2_SoftDrop_phi->getRootObject()) mSubJet2_SoftDrop_phi->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[1]->phi());
2633 mSubJet2_SoftDrop_mass=map_of_MEs[
DirName+
"/"+
"SubJet2_SoftDrop_mass"];
if(mSubJet2_SoftDrop_mass && mSubJet2_SoftDrop_mass->getRootObject()) mSubJet2_SoftDrop_mass->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[1]->mass());
2636 if((*patJets)[ijet].pt()>pt_min_boosted_){
2638 mSoftDropMass_boosted = map_of_MEs[
DirName+
"/"+
"SoftDropMass_boosted"];
if(mSoftDropMass_boosted && mSoftDropMass_boosted->getRootObject() && (*patJets)[ijet].hasUserFloat(
"ak8PFJetsPuppiSoftDropMass")) mSoftDropMass_boosted->Fill((*patJets)[ijet].userFloat(
"ak8PFJetsPuppiSoftDropMass"));
2639 mPrunedMass_boosted = map_of_MEs[
DirName+
"/"+
"PrunedMass_boosted"];
if(mPrunedMass_boosted && mPrunedMass_boosted->getRootObject() && (*patJets)[ijet].hasUserFloat(
"ak8PFJetsCHSValueMap:ak8PFJetsCHSPrunedMass")) mPrunedMass_boosted->Fill((*patJets)[ijet].userFloat(
"ak8PFJetsCHSValueMap:ak8PFJetsCHSPrunedMass"));
2640 mtau2_over_tau1_boosted = map_of_MEs[
DirName+
"/"+
"tau2_over_tau1_boosted"];
if(mtau2_over_tau1_boosted && mtau2_over_tau1_boosted->getRootObject() && ((*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau1") && (*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau2")))mtau2_over_tau1_boosted->Fill((*patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau2")/(*patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau1"));
2641 mtau3_over_tau2_boosted = map_of_MEs[
DirName+
"/"+
"tau3_over_tau2_boosted"];
if(mtau3_over_tau2_boosted && mtau3_over_tau2_boosted->getRootObject() && ((*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau2") && (*patJets)[ijet].hasUserFloat(
"NjettinessAK8Puppi:tau3")))mtau3_over_tau2_boosted->Fill((*patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau3")/(*patJets)[ijet].userFloat(
"NjettinessAK8Puppi:tau2"));
2642 if((*patJets)[ijet].hasSubjets(
"SoftDropPuppi")){
2643 mnSubJetsSoftDrop_boosted=map_of_MEs[
DirName+
"/"+
"nSubJets_SoftDrop_boosted"];
if(mnSubJetsSoftDrop_boosted && mnSubJetsSoftDrop_boosted->getRootObject()) mnSubJetsSoftDrop_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi").size());
2645 if((*patJets)[ijet].hasSubjets(
"SoftDropPuppi") && (*patJets)[ijet].subjets(
"SoftDropPuppi").size()>0){
2646 mSubJet1_SoftDrop_pt_boosted=map_of_MEs[
DirName+
"/"+
"SubJet1_SoftDrop_pt_boosted"];
if(mSubJet1_SoftDrop_pt_boosted && mSubJet1_SoftDrop_pt_boosted->getRootObject()) mSubJet1_SoftDrop_pt_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[0]->pt());
2647 mSubJet1_SoftDrop_eta_boosted=map_of_MEs[
DirName+
"/"+
"SubJet1_SoftDrop_eta_boosted"];
if(mSubJet1_SoftDrop_eta_boosted && mSubJet1_SoftDrop_eta_boosted->getRootObject()) mSubJet1_SoftDrop_eta_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[0]->eta());
2648 mSubJet1_SoftDrop_phi_boosted=map_of_MEs[
DirName+
"/"+
"SubJet1_SoftDrop_phi_boosted"];
if(mSubJet1_SoftDrop_phi_boosted && mSubJet1_SoftDrop_phi_boosted->getRootObject()) mSubJet1_SoftDrop_phi_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[0]->phi());
2649 mSubJet1_SoftDrop_mass_boosted=map_of_MEs[
DirName+
"/"+
"SubJet1_SoftDrop_mass_boosted"];
if(mSubJet1_SoftDrop_mass_boosted && mSubJet1_SoftDrop_mass_boosted->getRootObject()) mSubJet1_SoftDrop_mass_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[0]->mass());
2650 if((*patJets)[ijet].subjets(
"SoftDropPuppi").size()>1){
2651 mSubJet2_SoftDrop_pt_boosted=map_of_MEs[
DirName+
"/"+
"SubJet2_SoftDrop_pt_boosted"];
if(mSubJet2_SoftDrop_pt_boosted && mSubJet2_SoftDrop_pt_boosted->getRootObject()) mSubJet2_SoftDrop_pt_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[1]->pt());
2652 mSubJet2_SoftDrop_eta_boosted=map_of_MEs[
DirName+
"/"+
"SubJet2_SoftDrop_eta_boosted"];
if(mSubJet2_SoftDrop_eta_boosted && mSubJet2_SoftDrop_eta_boosted->getRootObject()) mSubJet2_SoftDrop_eta_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[1]->eta());
2653 mSubJet2_SoftDrop_phi_boosted=map_of_MEs[
DirName+
"/"+
"SubJet2_SoftDrop_phi_boosted"];
if(mSubJet2_SoftDrop_phi_boosted && mSubJet2_SoftDrop_phi_boosted->getRootObject()) mSubJet2_SoftDrop_phi_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[1]->phi());
2654 mSubJet2_SoftDrop_mass_boosted=map_of_MEs[
DirName+
"/"+
"SubJet2_SoftDrop_mass_boosted"];
if(mSubJet2_SoftDrop_mass_boosted && mSubJet2_SoftDrop_mass_boosted->getRootObject()) mSubJet2_SoftDrop_mass_boosted->Fill((*patJets)[ijet].subjets(
"SoftDropPuppi")[1]->mass());
2661 if (jetLoPass_ == 1) {
2662 mPhi_Lo = map_of_MEs[
DirName+
"/"+
"Phi_Lo"];
if (mPhi_Lo && mPhi_Lo->getRootObject()) mPhi_Lo->Fill (correctedJet.
phi());
2663 mPt_Lo = map_of_MEs[
DirName+
"/"+
"Pt_Lo"];
if (mPt_Lo && mPt_Lo->getRootObject()) mPt_Lo->Fill (correctedJet.
pt());
2667 if (jetHiPass_ == 1&& correctedJet.
pt()>100. ) {
2668 mEta_Hi = map_of_MEs[
DirName+
"/"+
"Eta_Hi"];
if (mEta_Hi && mEta_Hi->getRootObject()) mEta_Hi->Fill (correctedJet.
eta());
2669 mPhi_Hi = map_of_MEs[
DirName+
"/"+
"Phi_Hi"];
if (mPhi_Hi && mPhi_Hi->getRootObject()) mPhi_Hi->Fill (correctedJet.
phi());
2670 mPt_Hi = map_of_MEs[
DirName+
"/"+
"Pt_Hi"];
if (mPt_Hi && mPt_Hi->getRootObject()) mPt_Hi->Fill (correctedJet.
pt());
2672 mPt = map_of_MEs[
DirName+
"/"+
"Pt"];
if (mPt && mPt->getRootObject()) mPt->Fill (correctedJet.
pt());
2673 mPt_1 = map_of_MEs[
DirName+
"/"+
"Pt_1"];
if (mPt_1 && mPt_1->getRootObject()) mPt_1->Fill (correctedJet.
pt());
2674 mPt_2 = map_of_MEs[
DirName+
"/"+
"Pt_2"];
if (mPt_2 && mPt_2->getRootObject()) mPt_2->Fill (correctedJet.
pt());
2675 mPt_3 = map_of_MEs[
DirName+
"/"+
"Pt_3"];
if (mPt_3 && mPt_3->getRootObject()) mPt_3->Fill (correctedJet.
pt());
2676 mEta = map_of_MEs[
DirName+
"/"+
"Eta"];
if (mEta && mEta->getRootObject()) mEta->Fill (correctedJet.
eta());
2677 mPhi = map_of_MEs[
DirName+
"/"+
"Phi"];
if (mPhi && mPhi->getRootObject()) mPhi->Fill (correctedJet.
phi());
2679 mPhiVSEta = map_of_MEs[
DirName+
"/"+
"PhiVSEta"];
if (mPhiVSEta && mPhiVSEta->getRootObject()) mPhiVSEta->Fill(correctedJet.
eta(),correctedJet.
phi());
2681 mConstituents = map_of_MEs[
DirName+
"/"+
"Constituents"];
if (mConstituents && mConstituents->getRootObject()) mConstituents->Fill (correctedJet.
nConstituents());
2685 mPt_profile = map_of_MEs[
DirName+
"/"+
"Pt_profile"];
if (mPt_profile && mPt_profile->getRootObject()) mPt_profile ->
Fill(numPV, correctedJet.
pt());
2686 mEta_profile = map_of_MEs[
DirName+
"/"+
"Eta_profile"];
if (mEta_profile && mEta_profile->getRootObject()) mEta_profile ->
Fill(numPV, correctedJet.
eta());
2687 mPhi_profile = map_of_MEs[
DirName+
"/"+
"Phi_profile"];
if (mPhi_profile && mPhi_profile->getRootObject()) mPhi_profile ->
Fill(numPV, correctedJet.
phi());
2689 mConstituents_profile = map_of_MEs[
DirName+
"/"+
"Constituents_profile"];
if (mConstituents_profile && mConstituents_profile->getRootObject()) mConstituents_profile->Fill(numPV, correctedJet.
nConstituents());
2691 if (fabs(correctedJet.
eta()) <= 1.3) {
2692 mPt_Barrel = map_of_MEs[
DirName+
"/"+
"Pt_Barrel"];
if (mPt_Barrel && mPt_Barrel->getRootObject()) mPt_Barrel->Fill (correctedJet.
pt());
2693 mPhi_Barrel = map_of_MEs[
DirName+
"/"+
"Phi_Barrel"];
if (mPhi_Barrel && mPhi_Barrel->getRootObject()) mPhi_Barrel->Fill (correctedJet.
phi());
2696 mConstituents_Barrel = map_of_MEs[
DirName+
"/"+
"Constituents_Barrel"];
if (mConstituents_Barrel && mConstituents_Barrel->getRootObject()) mConstituents_Barrel->Fill(correctedJet.
nConstituents());
2698 }
else if (fabs(correctedJet.
eta()) <= 3) {
2699 mPt_EndCap = map_of_MEs[
DirName+
"/"+
"Pt_EndCap"];
if (mPt_EndCap && mPt_EndCap->getRootObject()) mPt_EndCap->Fill (correctedJet.
pt());
2700 mPhi_EndCap = map_of_MEs[
DirName+
"/"+
"Phi_EndCap"];
if (mPhi_EndCap && mPhi_EndCap->getRootObject()) mPhi_EndCap->Fill (correctedJet.
phi());
2703 mConstituents_EndCap = map_of_MEs[
DirName+
"/"+
"Constituents_EndCap"];
if (mConstituents_EndCap && mConstituents_EndCap->getRootObject()) mConstituents_EndCap->Fill(correctedJet.
nConstituents());
2706 mPt_Forward = map_of_MEs[
DirName+
"/"+
"Pt_Forward"];
if (mPt_Forward && mPt_Forward->getRootObject()) mPt_Forward->Fill (correctedJet.
pt());
2707 mPhi_Forward = map_of_MEs[
DirName+
"/"+
"Phi_Forward"];
if (mPhi_Forward && mPhi_Forward->getRootObject()) mPhi_Forward->Fill (correctedJet.
phi());
2710 mConstituents_Forward = map_of_MEs[
DirName+
"/"+
"Constituents_Forward"];
if (mConstituents_Forward && mConstituents_Forward->getRootObject()) mConstituents_Forward->Fill(correctedJet.
nConstituents());
2717 mNJets = map_of_MEs[
DirName+
"/"+
"NJets"];
if (mNJets && mNJets->getRootObject()) mNJets->Fill (numofjets);
2718 mNJets_profile = map_of_MEs[
DirName+
"/"+
"NJets_profile"];
if (mNJets_profile && mNJets_profile->getRootObject()) mNJets_profile->Fill(numPV, numofjets);
2720 sort(recoJets.begin(),recoJets.end(),jetSortingRule);
2726 if(cleaned_first_jet){
2727 mEtaFirst = map_of_MEs[
DirName+
"/"+
"EtaFirst"];
if (mEtaFirst && mEtaFirst->getRootObject()) mEtaFirst->Fill ((recoJets)[0].eta());
2728 mPhiFirst = map_of_MEs[
DirName+
"/"+
"PhiFirst"];
if (mPhiFirst && mPhiFirst->getRootObject()) mPhiFirst->Fill ((recoJets)[0].phi());
2729 mPtFirst = map_of_MEs[
DirName+
"/"+
"PtFirst"];
if (mPtFirst && mPtFirst->getRootObject()) mPtFirst->Fill ((recoJets)[0].pt());
2731 if(numofjets>1 && cleaned_second_jet) {
2732 double dphi=fabs((recoJets)[0].phi()-(recoJets)[1].phi());
2734 dphi=2*acos(-1.)-dphi;
2736 mDPhi = map_of_MEs[
DirName+
"/"+
"DPhi"];
if (mDPhi && mDPhi->getRootObject()) mDPhi->Fill (dphi);
2747 if(jetCleaningFlag_ && recoJets.size()>1 && cleaned_first_jet && cleaned_second_jet ){
2749 if(jetCleaningFlag_){
2750 DirName =
"JetMET/Jet/Cleaned"+mInputCollection_.label()+
"/DiJet";
2754 double dphi=fabs((recoJets)[0].phi()-(recoJets)[1].phi());
2756 dphi=2*acos(-1.)-dphi;
2758 mDPhi = map_of_MEs[
DirName+
"/"+
"DPhi"];
if (mDPhi && mDPhi->getRootObject())
if (mDPhi) mDPhi->Fill (dphi);
2764 reco::JetID jetID1 = (*jetID_ValueMap_Handle)[calojetref1];
2766 reco::JetID jetID2 = (*jetID_ValueMap_Handle)[calojetref2];
2767 mN90Hits = map_of_MEs[
DirName+
"/"+
"N90Hits"];
if (mN90Hits && mN90Hits->getRootObject()) mN90Hits->Fill (jetID1.
n90Hits);
2768 mfHPD = map_of_MEs[
DirName+
"/"+
"fHPD"];
if (mfHPD && mfHPD->getRootObject()) mfHPD->Fill (jetID1.
fHPD);
2769 mresEMF = map_of_MEs[
DirName+
"/"+
"resEMF"];
if (mresEMF && mresEMF->getRootObject()) mresEMF->Fill (jetID1.
restrictedEMF);
2770 mfRBX = map_of_MEs[
DirName+
"/"+
"fRBX"];
if (mfRBX && mfRBX->getRootObject()) mfRBX->Fill (jetID1.
fRBX);
2771 mN90Hits = map_of_MEs[
DirName+
"/"+
"N90Hits"];
if (mN90Hits && mN90Hits->getRootObject()) mN90Hits->Fill (jetID2.
n90Hits);
2772 mfHPD = map_of_MEs[
DirName+
"/"+
"fHPD"];
if (mfHPD && mfHPD->getRootObject()) mfHPD->Fill (jetID2.
fHPD);
2773 mresEMF = map_of_MEs[
DirName+
"/"+
"resEMF"];
if (mresEMF && mresEMF->getRootObject()) mresEMF->Fill (jetID2.
restrictedEMF);
2774 mfRBX = map_of_MEs[
DirName+
"/"+
"fRBX"];
if (mfRBX && mfRBX->getRootObject()) mfRBX->Fill (jetID2.
fRBX);
2776 mHFrac = map_of_MEs[
DirName+
"/"+
"HFrac"];
if (mHFrac && mHFrac->getRootObject()) mHFrac->Fill ((*caloJets)[ind1].energyFractionHadronic());
2777 mEFrac = map_of_MEs[
DirName+
"/"+
"EFrac"];
if (mEFrac && mHFrac->getRootObject()) mEFrac->Fill ((*caloJets)[ind1].emEnergyFraction());
2778 mHFrac = map_of_MEs[
DirName+
"/"+
"HFrac"];
if (mHFrac && mHFrac->getRootObject()) mHFrac->Fill ((*caloJets)[ind2].energyFractionHadronic());
2779 mEFrac = map_of_MEs[
DirName+
"/"+
"EFrac"];
if (mEFrac && mHFrac->getRootObject()) mEFrac->Fill ((*caloJets)[ind2].emEnergyFraction());
2780 mHFrac_profile = map_of_MEs[
DirName+
"/"+
"HFrac_profile"];
if (mHFrac_profile && mHFrac_profile->getRootObject()) mHFrac_profile ->
Fill(numPV, (*caloJets)[ind1].energyFractionHadronic());
2781 mEFrac_profile = map_of_MEs[
DirName+
"/"+
"EFrac_profile"];
if (mEFrac_profile && mEFrac_profile->getRootObject()) mEFrac_profile ->
Fill(numPV, (*caloJets)[ind1].emEnergyFraction());
2782 mHFrac_profile = map_of_MEs[
DirName+
"/"+
"HFrac_profile"];
if (mHFrac_profile && mHFrac_profile->getRootObject()) mHFrac_profile ->
Fill(numPV, (*caloJets)[ind2].energyFractionHadronic());
2783 mEFrac_profile = map_of_MEs[
DirName+
"/"+
"EFrac_profile"];
if (mEFrac_profile && mEFrac_profile->getRootObject()) mEFrac_profile ->
Fill(numPV, (*caloJets)[ind2].emEnergyFraction());
2785 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[0].pt()/(*caloJets)[ind1].pt());
2786 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),recoJets[0].pt()/(*caloJets)[ind1].pt());
2787 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),recoJets[0].pt()/(*caloJets)[ind1].pt());
2788 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[1].pt()/(*caloJets)[ind2].pt());
2789 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[1].eta(),recoJets[1].pt()/(*caloJets)[ind2].pt());
2790 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[1].pt(),recoJets[1].pt()/(*caloJets)[ind2].pt());
2810 mCHFrac = map_of_MEs[
DirName+
"/"+
"CHFrac"];
if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->
Fill((*pfJets)[ind1].chargedHadronEnergyFraction());
2811 mNHFrac = map_of_MEs[
DirName+
"/"+
"NHFrac"];
if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->
Fill((*pfJets)[ind1].neutralHadronEnergyFraction());
2812 mPhFrac = map_of_MEs[
DirName+
"/"+
"PhFrac"];
if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->
Fill((*pfJets)[ind1].neutralEmEnergyFraction());
2813 mHFEMFrac = map_of_MEs[
DirName+
"/"+
"HFEMFrac"];
if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->
Fill((*pfJets)[ind1].HFEMEnergyFraction());
2814 mHFHFrac = map_of_MEs[
DirName+
"/"+
"HFHFrac"];
if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->
Fill((*pfJets)[ind1].HFHadronEnergyFraction());
2816 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[0].pt()/(*pfJets)[ind1].pt());
2817 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),recoJets[0].pt()/(*pfJets)[ind1].pt());
2818 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),recoJets[0].pt()/(*pfJets)[ind1].pt());
2819 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJets[1].pt()/(*pfJets)[ind2].pt());
2820 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[1].eta(),recoJets[1].pt()/(*pfJets)[ind2].pt());
2821 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[1].pt(),recoJets[1].pt()/(*pfJets)[ind2].pt());
2823 mChargedMultiplicity = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity"];
if(mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*pfJets)[ind1].chargedMultiplicity());
2824 mNeutralMultiplicity = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity"];
if(mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*pfJets)[ind1].neutralMultiplicity());
2825 mMuonMultiplicity = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity"];
if(mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill((*pfJets)[ind1].muonMultiplicity());
2827 mCHFrac = map_of_MEs[
DirName+
"/"+
"CHFrac"];
if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->
Fill((*pfJets)[ind2].chargedHadronEnergyFraction());
2828 mNHFrac = map_of_MEs[
DirName+
"/"+
"NHFrac"];
if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->
Fill((*pfJets)[ind2].neutralHadronEnergyFraction());
2829 mPhFrac = map_of_MEs[
DirName+
"/"+
"PhFrac"];
if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->
Fill((*pfJets)[ind2].neutralEmEnergyFraction());
2830 mHFEMFrac = map_of_MEs[
DirName+
"/"+
"HFEMFrac"];
if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->
Fill((*pfJets)[ind2].HFEMEnergyFraction());
2831 mHFHFrac = map_of_MEs[
DirName+
"/"+
"HFHFrac"];
if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->
Fill((*pfJets)[ind2].HFHadronEnergyFraction());
2833 mNeutralFraction = map_of_MEs[
DirName+
"/"+
"NeutralConstituentsFraction"];
if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((
double)(*pfJets)[ind1].neutralMultiplicity()/(double)(*pfJets)[ind1].nConstituents());
2835 mChargedMultiplicity = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity"];
if(mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*pfJets)[ind2].chargedMultiplicity());
2836 mNeutralMultiplicity = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity"];
if(mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*pfJets)[ind2].neutralMultiplicity());
2837 mMuonMultiplicity = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity"];
if(mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill((*pfJets)[ind2].muonMultiplicity());
2840 mCHFrac_profile = map_of_MEs[
DirName+
"/"+
"CHFrac_profile"];
if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->
Fill(numPV, (*pfJets)[ind1].chargedHadronEnergyFraction());
2841 mNHFrac_profile = map_of_MEs[
DirName+
"/"+
"NHFrac_profile"];
if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->
Fill(numPV, (*pfJets)[ind1].neutralHadronEnergyFraction());
2842 mPhFrac_profile = map_of_MEs[
DirName+
"/"+
"PhFrac_profile"];
if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->
Fill(numPV, (*pfJets)[ind1].neutralEmEnergyFraction());
2843 mHFEMFrac_profile = map_of_MEs[
DirName+
"/"+
"HFEMFrac_profile"];
if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->
Fill(numPV, (*pfJets)[ind1].HFEMEnergyFraction());
2844 mHFHFrac_profile = map_of_MEs[
DirName+
"/"+
"HFHFrac_profile"];
if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->
Fill(numPV, (*pfJets)[ind1].HFHadronEnergyFraction());
2846 mNeutralFraction = map_of_MEs[
DirName+
"/"+
"NeutralConstituentsFraction"];
if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((
double)(*pfJets)[ind2].neutralMultiplicity()/(double)(*pfJets)[ind2].nConstituents());
2848 mChargedMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity_profile"];
if(mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*pfJets)[ind1].chargedMultiplicity());
2849 mNeutralMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity_profile"];
if(mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*pfJets)[ind1].neutralMultiplicity());
2850 mMuonMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity_profile"];
if(mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity->Fill(numPV, (*pfJets)[ind1].muonMultiplicity());
2852 mCHFrac_profile = map_of_MEs[
DirName+
"/"+
"CHFrac_profile"];
if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->
Fill(numPV, (*pfJets)[ind2].chargedHadronEnergyFraction());
2853 mNHFrac_profile = map_of_MEs[
DirName+
"/"+
"NHFrac_profile"];
if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->
Fill(numPV, (*pfJets)[ind2].neutralHadronEnergyFraction());
2854 mPhFrac_profile = map_of_MEs[
DirName+
"/"+
"PhFrac_profile"];
if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->
Fill(numPV, (*pfJets)[ind2].neutralEmEnergyFraction());
2855 mHFEMFrac_profile = map_of_MEs[
DirName+
"/"+
"HFEMFrac_profile"];
if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->
Fill(numPV, (*pfJets)[ind2].HFEMEnergyFraction());
2856 mHFHFrac_profile = map_of_MEs[
DirName+
"/"+
"HFHFrac_profile"];
if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->
Fill(numPV, (*pfJets)[ind2].HFHadronEnergyFraction());
2858 mChargedMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity_profile"];
if(mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*pfJets)[ind2].chargedMultiplicity());
2859 mNeutralMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity_profile"];
if(mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*pfJets)[ind2].neutralMultiplicity());
2860 mMuonMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity_profile"];
if(mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity_profile->Fill(numPV, (*pfJets)[ind2].muonMultiplicity());
2864 float QGLikelihood=-10;
2867 if(fill_CHS_histos){
2869 QGmulti=(*qgMultiplicity)[pfjetref];
2870 QGLikelihood=(*qgLikelihood)[pfjetref];
2871 QGptD=(*qgptD)[pfjetref];
2872 QGaxis2=(*qgaxis2)[pfjetref];
2873 if(fabs(recoJets[0].
eta())<1.3){
2875 if (recoJets[0].
pt()>=20. && recoJets[0].
pt()<=50.) {
2876 mAxis2_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_Barrel"];
if(mAxis2_lowPt_Barrel && mAxis2_lowPt_Barrel->getRootObject()) mAxis2_lowPt_Barrel->Fill(QGaxis2);
2877 mpTD_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_Barrel"];
if(mpTD_lowPt_Barrel && mpTD_lowPt_Barrel->getRootObject()) mpTD_lowPt_Barrel->Fill(QGptD);
2878 mMultiplicityQG_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_Barrel"];
if(mMultiplicityQG_lowPt_Barrel && mMultiplicityQG_lowPt_Barrel->getRootObject()) mMultiplicityQG_lowPt_Barrel->Fill(QGmulti);
2879 mqgLikelihood_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_Barrel"];
if(mqgLikelihood_lowPt_Barrel && mqgLikelihood_lowPt_Barrel->getRootObject()) mqgLikelihood_lowPt_Barrel->Fill(QGLikelihood);
2881 if (recoJets[0].
pt()>50. && recoJets[0].
pt()<=140.) {
2882 mAxis2_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_Barrel"];
if(mAxis2_mediumPt_Barrel && mAxis2_mediumPt_Barrel->getRootObject()) mAxis2_mediumPt_Barrel->Fill(QGaxis2);
2883 mpTD_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_Barrel"];
if(mpTD_mediumPt_Barrel && mpTD_mediumPt_Barrel->getRootObject()) mpTD_mediumPt_Barrel->Fill(QGptD);
2884 mMultiplicityQG_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_Barrel"];
if(mMultiplicityQG_mediumPt_Barrel && mMultiplicityQG_mediumPt_Barrel->getRootObject()) mMultiplicityQG_mediumPt_Barrel->Fill(QGmulti);
2885 mqgLikelihood_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_Barrel"];
if(mqgLikelihood_mediumPt_Barrel && mqgLikelihood_mediumPt_Barrel->getRootObject()) mqgLikelihood_mediumPt_Barrel->Fill(QGLikelihood);
2887 if (recoJets[0].
pt()>140.) {
2888 mAxis2_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_Barrel"];
if(mAxis2_highPt_Barrel && mAxis2_highPt_Barrel->getRootObject()) mAxis2_highPt_Barrel->Fill(QGaxis2);
2889 mpTD_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_Barrel"];
if(mpTD_highPt_Barrel && mpTD_highPt_Barrel->getRootObject()) mpTD_highPt_Barrel->Fill(QGptD);
2890 mMultiplicityQG_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_Barrel"];
if(mMultiplicityQG_highPt_Barrel && mMultiplicityQG_highPt_Barrel->getRootObject()) mMultiplicityQG_highPt_Barrel->Fill(QGmulti);
2891 mqgLikelihood_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_Barrel"];
if(mqgLikelihood_highPt_Barrel && mqgLikelihood_highPt_Barrel->getRootObject()) mqgLikelihood_highPt_Barrel->Fill(QGLikelihood);
2893 }
else if(fabs(recoJets[0].
eta())<3.0){
2894 if (recoJets[0].
pt()>20. && recoJets[0].
pt()<=50.) {
2895 mAxis2_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_EndCap"];
if(mAxis2_lowPt_EndCap && mAxis2_lowPt_EndCap->getRootObject()) mAxis2_lowPt_EndCap->Fill(QGaxis2);
2896 mpTD_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_EndCap"];
if(mpTD_lowPt_EndCap && mpTD_lowPt_EndCap->getRootObject()) mpTD_lowPt_EndCap->Fill(QGptD);
2897 mMultiplicityQG_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_EndCap"];
if(mMultiplicityQG_lowPt_EndCap && mMultiplicityQG_lowPt_EndCap->getRootObject()) mMultiplicityQG_lowPt_EndCap->Fill(QGmulti);
2898 mqgLikelihood_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_EndCap"];
if(mqgLikelihood_lowPt_EndCap && mqgLikelihood_lowPt_EndCap->getRootObject()) mqgLikelihood_lowPt_EndCap->Fill(QGLikelihood);
2900 if (recoJets[0].
pt()>50. && recoJets[0].
pt()<=140.) {
2901 mAxis2_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_EndCap"];
if(mAxis2_mediumPt_EndCap && mAxis2_mediumPt_EndCap->getRootObject()) mAxis2_mediumPt_EndCap->Fill(QGaxis2);
2902 mpTD_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_EndCap"];
if(mpTD_mediumPt_EndCap && mpTD_mediumPt_EndCap->getRootObject()) mpTD_mediumPt_EndCap->Fill(QGptD);
2903 mMultiplicityQG_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_EndCap"];
if(mMultiplicityQG_mediumPt_EndCap && mMultiplicityQG_mediumPt_EndCap->getRootObject()) mMultiplicityQG_mediumPt_EndCap->Fill(QGmulti);
2904 mqgLikelihood_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_EndCap"];
if(mqgLikelihood_mediumPt_EndCap && mqgLikelihood_mediumPt_EndCap->getRootObject()) mqgLikelihood_mediumPt_EndCap->Fill(QGLikelihood);
2906 if (recoJets[0].
pt()>140.) {
2907 mAxis2_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_EndCap"];
if(mAxis2_highPt_EndCap && mAxis2_highPt_EndCap->getRootObject()) mAxis2_highPt_EndCap->Fill(QGaxis2);
2908 mpTD_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_EndCap"];
if(mpTD_highPt_EndCap && mpTD_highPt_EndCap->getRootObject()) mpTD_highPt_EndCap->Fill(QGptD);
2909 mMultiplicityQG_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_EndCap"];
if(mMultiplicityQG_highPt_EndCap && mMultiplicityQG_highPt_EndCap->getRootObject()) mMultiplicityQG_highPt_EndCap->Fill(QGmulti);
2910 mqgLikelihood_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_EndCap"];
if(mqgLikelihood_highPt_EndCap && mqgLikelihood_highPt_EndCap->getRootObject()) mqgLikelihood_highPt_EndCap->Fill(QGLikelihood);
2913 if (recoJets[0].
pt()>20. && recoJets[0].
pt()<=50.) {
2914 mAxis2_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_Forward"];
if(mAxis2_lowPt_Forward && mAxis2_lowPt_Forward->getRootObject()) mAxis2_lowPt_Forward->Fill(QGaxis2);
2915 mpTD_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_Forward"];
if(mpTD_lowPt_Forward && mpTD_lowPt_Forward->getRootObject()) mpTD_lowPt_Forward->Fill(QGptD);
2916 mMultiplicityQG_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_Forward"];
if(mMultiplicityQG_lowPt_Forward && mMultiplicityQG_lowPt_Forward->getRootObject()) mMultiplicityQG_lowPt_Forward->Fill(QGmulti);
2917 mqgLikelihood_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_Forward"];
if(mqgLikelihood_lowPt_Forward && mqgLikelihood_lowPt_Forward->getRootObject()) mqgLikelihood_lowPt_Forward->Fill(QGLikelihood);
2919 if (recoJets[0].
pt()>50. && recoJets[0].
pt()<=140.) {
2920 mAxis2_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_Forward"];
if(mAxis2_mediumPt_Forward && mAxis2_mediumPt_Forward->getRootObject()) mAxis2_mediumPt_Forward->Fill(QGaxis2);
2921 mpTD_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_Forward"];
if(mpTD_mediumPt_Forward && mpTD_mediumPt_Forward->getRootObject()) mpTD_mediumPt_Forward->Fill(QGptD);
2922 mMultiplicityQG_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_Forward"];
if(mMultiplicityQG_mediumPt_Forward && mMultiplicityQG_mediumPt_Forward->getRootObject()) mMultiplicityQG_mediumPt_Forward->Fill(QGmulti);
2923 mqgLikelihood_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_Forward"];
if(mqgLikelihood_mediumPt_Forward && mqgLikelihood_mediumPt_Forward->getRootObject()) mqgLikelihood_mediumPt_Forward->Fill(QGLikelihood);
2925 if (recoJets[0].
pt()>140.) {
2926 mAxis2_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_Forward"];
if(mAxis2_highPt_Forward && mAxis2_highPt_Forward->getRootObject()) mAxis2_highPt_Forward->Fill(QGaxis2);
2927 mpTD_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_Forward"];
if(mpTD_highPt_Forward && mpTD_highPt_Forward->getRootObject()) mpTD_highPt_Forward->Fill(QGptD);
2928 mMultiplicityQG_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_Forward"];
if(mMultiplicityQG_highPt_Forward && mMultiplicityQG_highPt_Forward->getRootObject()) mMultiplicityQG_highPt_Forward->Fill(QGmulti);
2929 mqgLikelihood_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_Forward"];
if(mqgLikelihood_highPt_Forward && mqgLikelihood_highPt_Forward->getRootObject()) mqgLikelihood_highPt_Forward->Fill(QGLikelihood);
2933 QGmulti=(*qgMultiplicity)[pfjetref1];
2934 QGLikelihood=(*qgLikelihood)[pfjetref1];
2935 QGptD=(*qgptD)[pfjetref1];
2936 QGaxis2=(*qgaxis2)[pfjetref1];
2937 if(fabs(recoJets[1].
eta())<1.3){
2939 if (recoJets[1].
pt()>=20. && recoJets[1].
pt()<=50.) {
2940 mAxis2_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_Barrel"];
if(mAxis2_lowPt_Barrel && mAxis2_lowPt_Barrel->getRootObject()) mAxis2_lowPt_Barrel->Fill(QGaxis2);
2941 mpTD_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_Barrel"];
if(mpTD_lowPt_Barrel && mpTD_lowPt_Barrel->getRootObject()) mpTD_lowPt_Barrel->Fill(QGptD);
2942 mMultiplicityQG_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_Barrel"];
if(mMultiplicityQG_lowPt_Barrel && mMultiplicityQG_lowPt_Barrel->getRootObject()) mMultiplicityQG_lowPt_Barrel->Fill(QGmulti);
2943 mqgLikelihood_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_Barrel"];
if(mqgLikelihood_lowPt_Barrel && mqgLikelihood_lowPt_Barrel->getRootObject()) mqgLikelihood_lowPt_Barrel->Fill(QGLikelihood);
2945 if (recoJets[1].
pt()>50. && recoJets[1].
pt()<=140.) {
2946 mAxis2_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_Barrel"];
if(mAxis2_mediumPt_Barrel && mAxis2_mediumPt_Barrel->getRootObject()) mAxis2_mediumPt_Barrel->Fill(QGaxis2);
2947 mpTD_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_Barrel"];
if(mpTD_mediumPt_Barrel && mpTD_mediumPt_Barrel->getRootObject()) mpTD_mediumPt_Barrel->Fill(QGptD);
2948 mMultiplicityQG_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_Barrel"];
if(mMultiplicityQG_mediumPt_Barrel && mMultiplicityQG_mediumPt_Barrel->getRootObject()) mMultiplicityQG_mediumPt_Barrel->Fill(QGmulti);
2949 mqgLikelihood_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_Barrel"];
if(mqgLikelihood_mediumPt_Barrel && mqgLikelihood_mediumPt_Barrel->getRootObject()) mqgLikelihood_mediumPt_Barrel->Fill(QGLikelihood);
2951 if (recoJets[1].
pt()>140.) {
2952 mAxis2_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_Barrel"];
if(mAxis2_highPt_Barrel && mAxis2_highPt_Barrel->getRootObject()) mAxis2_highPt_Barrel->Fill(QGaxis2);
2953 mpTD_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_Barrel"];
if(mpTD_highPt_Barrel && mpTD_highPt_Barrel->getRootObject()) mpTD_highPt_Barrel->Fill(QGptD);
2954 mMultiplicityQG_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_Barrel"];
if(mMultiplicityQG_highPt_Barrel && mMultiplicityQG_highPt_Barrel->getRootObject()) mMultiplicityQG_highPt_Barrel->Fill(QGmulti);
2955 mqgLikelihood_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_Barrel"];
if(mqgLikelihood_highPt_Barrel && mqgLikelihood_highPt_Barrel->getRootObject()) mqgLikelihood_highPt_Barrel->Fill(QGLikelihood);
2957 }
else if(fabs(recoJets[1].
eta())<3.0){
2958 if (recoJets[1].
pt()>20. && recoJets[1].
pt()<=50.) {
2959 mAxis2_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_EndCap"];
if(mAxis2_lowPt_EndCap && mAxis2_lowPt_EndCap->getRootObject()) mAxis2_lowPt_EndCap->Fill(QGaxis2);
2960 mpTD_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_EndCap"];
if(mpTD_lowPt_EndCap && mpTD_lowPt_EndCap->getRootObject()) mpTD_lowPt_EndCap->Fill(QGptD);
2961 mMultiplicityQG_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_EndCap"];
if(mMultiplicityQG_lowPt_EndCap && mMultiplicityQG_lowPt_EndCap->getRootObject()) mMultiplicityQG_lowPt_EndCap->Fill(QGmulti);
2962 mqgLikelihood_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_EndCap"];
if(mqgLikelihood_lowPt_EndCap && mqgLikelihood_lowPt_EndCap->getRootObject()) mqgLikelihood_lowPt_EndCap->Fill(QGLikelihood);
2964 if (recoJets[1].
pt()>50. && recoJets[1].
pt()<=140.) {
2965 mAxis2_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_EndCap"];
if(mAxis2_mediumPt_EndCap && mAxis2_mediumPt_EndCap->getRootObject()) mAxis2_mediumPt_EndCap->Fill(QGaxis2);
2966 mpTD_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_EndCap"];
if(mpTD_mediumPt_EndCap && mpTD_mediumPt_EndCap->getRootObject()) mpTD_mediumPt_EndCap->Fill(QGptD);
2967 mMultiplicityQG_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_EndCap"];
if(mMultiplicityQG_mediumPt_EndCap && mMultiplicityQG_mediumPt_EndCap->getRootObject()) mMultiplicityQG_mediumPt_EndCap->Fill(QGmulti);
2968 mqgLikelihood_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_EndCap"];
if(mqgLikelihood_mediumPt_EndCap && mqgLikelihood_mediumPt_EndCap->getRootObject()) mqgLikelihood_mediumPt_EndCap->Fill(QGLikelihood);
2970 if (recoJets[1].
pt()>140.) {
2971 mAxis2_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_EndCap"];
if(mAxis2_highPt_EndCap && mAxis2_highPt_EndCap->getRootObject()) mAxis2_highPt_EndCap->Fill(QGaxis2);
2972 mpTD_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_EndCap"];
if(mpTD_highPt_EndCap && mpTD_highPt_EndCap->getRootObject()) mpTD_highPt_EndCap->Fill(QGptD);
2973 mMultiplicityQG_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_EndCap"];
if(mMultiplicityQG_highPt_EndCap && mMultiplicityQG_highPt_EndCap->getRootObject()) mMultiplicityQG_highPt_EndCap->Fill(QGmulti);
2974 mqgLikelihood_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_EndCap"];
if(mqgLikelihood_highPt_EndCap && mqgLikelihood_highPt_EndCap->getRootObject()) mqgLikelihood_highPt_EndCap->Fill(QGLikelihood);
2977 if (recoJets[1].
pt()>20. && recoJets[1].
pt()<=50.) {
2978 mAxis2_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_Forward"];
if(mAxis2_lowPt_Forward && mAxis2_lowPt_Forward->getRootObject()) mAxis2_lowPt_Forward->Fill(QGaxis2);
2979 mpTD_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_Forward"];
if(mpTD_lowPt_Forward && mpTD_lowPt_Forward->getRootObject()) mpTD_lowPt_Forward->Fill(QGptD);
2980 mMultiplicityQG_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_Forward"];
if(mMultiplicityQG_lowPt_Forward && mMultiplicityQG_lowPt_Forward->getRootObject()) mMultiplicityQG_lowPt_Forward->Fill(QGmulti);
2981 mqgLikelihood_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_Forward"];
if(mqgLikelihood_lowPt_Forward && mqgLikelihood_lowPt_Forward->getRootObject()) mqgLikelihood_lowPt_Forward->Fill(QGLikelihood);
2983 if (recoJets[1].
pt()>50. && recoJets[1].
pt()<=140.) {
2984 mAxis2_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_Forward"];
if(mAxis2_mediumPt_Forward && mAxis2_mediumPt_Forward->getRootObject()) mAxis2_mediumPt_Forward->Fill(QGaxis2);
2985 mpTD_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_Forward"];
if(mpTD_mediumPt_Forward && mpTD_mediumPt_Forward->getRootObject()) mpTD_mediumPt_Forward->Fill(QGptD);
2986 mMultiplicityQG_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_Forward"];
if(mMultiplicityQG_mediumPt_Forward && mMultiplicityQG_mediumPt_Forward->getRootObject()) mMultiplicityQG_mediumPt_Forward->Fill(QGmulti);
2987 mqgLikelihood_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_Forward"];
if(mqgLikelihood_mediumPt_Forward && mqgLikelihood_mediumPt_Forward->getRootObject()) mqgLikelihood_mediumPt_Forward->Fill(QGLikelihood);
2989 if (recoJets[1].
pt()>140.) {
2990 mAxis2_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_Forward"];
if(mAxis2_highPt_Forward && mAxis2_highPt_Forward->getRootObject()) mAxis2_highPt_Forward->Fill(QGaxis2);
2991 mpTD_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_Forward"];
if(mpTD_highPt_Forward && mpTD_highPt_Forward->getRootObject()) mpTD_highPt_Forward->Fill(QGptD);
2992 mMultiplicityQG_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_Forward"];
if(mMultiplicityQG_highPt_Forward && mMultiplicityQG_highPt_Forward->getRootObject()) mMultiplicityQG_highPt_Forward->Fill(QGmulti);
2993 mqgLikelihood_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_Forward"];
if(mqgLikelihood_highPt_Forward && mqgLikelihood_highPt_Forward->getRootObject()) mqgLikelihood_highPt_Forward->Fill(QGLikelihood);
2999 mCHFrac = map_of_MEs[
DirName+
"/"+
"CHFrac"];
if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->
Fill((*patJets)[ind1].chargedHadronEnergyFraction());
3000 mNHFrac = map_of_MEs[
DirName+
"/"+
"NHFrac"];
if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->
Fill((*patJets)[ind1].neutralHadronEnergyFraction());
3001 mPhFrac = map_of_MEs[
DirName+
"/"+
"PhFrac"];
if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->
Fill((*patJets)[ind1].neutralEmEnergyFraction());
3002 mHFEMFrac = map_of_MEs[
DirName+
"/"+
"HFEMFrac"];
if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->
Fill((*patJets)[ind1].HFEMEnergyFraction());
3003 mHFHFrac = map_of_MEs[
DirName+
"/"+
"HFHFrac"];
if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->
Fill((*patJets)[ind1].HFHadronEnergyFraction());
3005 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(1./(*patJets)[ind1].jecFactor(
"Uncorrected"));
3006 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),1./(*patJets)[ind1].jecFactor(
"Uncorrected"));
3007 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),1./(*patJets)[ind1].jecFactor(
"Uncorrected"));
3008 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(1./(*patJets)[ind2].jecFactor(
"Uncorrected"));
3009 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJets[0].eta(),1./(*patJets)[ind2].jecFactor(
"Uncorrected"));
3010 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJets[0].pt(),1./(*patJets)[ind2].jecFactor(
"Uncorrected"));
3012 mChargedMultiplicity = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity"];
if(mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*patJets)[ind1].chargedMultiplicity());
3013 mNeutralMultiplicity = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity"];
if(mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*patJets)[ind1].neutralMultiplicity());
3014 mMuonMultiplicity = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity"];
if(mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill((*patJets)[ind1].muonMultiplicity());
3016 mCHFrac = map_of_MEs[
DirName+
"/"+
"CHFrac"];
if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->
Fill((*patJets)[ind2].chargedHadronEnergyFraction());
3017 mNHFrac = map_of_MEs[
DirName+
"/"+
"NHFrac"];
if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->
Fill((*patJets)[ind2].neutralHadronEnergyFraction());
3018 mPhFrac = map_of_MEs[
DirName+
"/"+
"PhFrac"];
if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->
Fill((*patJets)[ind2].neutralEmEnergyFraction());
3019 mHFEMFrac = map_of_MEs[
DirName+
"/"+
"HFEMFrac"];
if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->
Fill((*patJets)[ind2].HFEMEnergyFraction());
3020 mHFHFrac = map_of_MEs[
DirName+
"/"+
"HFHFrac"];
if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->
Fill((*patJets)[ind2].HFHadronEnergyFraction());
3022 mNeutralFraction = map_of_MEs[
DirName+
"/"+
"NeutralConstituentsFraction"];
if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((
double)(*patJets)[ind1].neutralMultiplicity()/(double)(*patJets)[ind1].nConstituents());
3024 mChargedMultiplicity = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity"];
if(mChargedMultiplicity && mChargedMultiplicity->getRootObject()) mChargedMultiplicity->Fill((*patJets)[ind2].chargedMultiplicity());
3025 mNeutralMultiplicity = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity"];
if(mNeutralMultiplicity && mNeutralMultiplicity->getRootObject()) mNeutralMultiplicity->Fill((*patJets)[ind2].neutralMultiplicity());
3026 mMuonMultiplicity = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity"];
if(mMuonMultiplicity && mMuonMultiplicity->getRootObject()) mMuonMultiplicity->Fill((*patJets)[ind2].muonMultiplicity());
3029 mCHFrac_profile = map_of_MEs[
DirName+
"/"+
"CHFrac_profile"];
if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->
Fill(numPV, (*patJets)[ind1].chargedHadronEnergyFraction());
3030 mNHFrac_profile = map_of_MEs[
DirName+
"/"+
"NHFrac_profile"];
if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->
Fill(numPV, (*patJets)[ind1].neutralHadronEnergyFraction());
3031 mPhFrac_profile = map_of_MEs[
DirName+
"/"+
"PhFrac_profile"];
if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->
Fill(numPV, (*patJets)[ind1].neutralEmEnergyFraction());
3032 mHFEMFrac_profile = map_of_MEs[
DirName+
"/"+
"HFEMFrac_profile"];
if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->
Fill(numPV, (*patJets)[ind1].HFEMEnergyFraction());
3033 mHFHFrac_profile = map_of_MEs[
DirName+
"/"+
"HFHFrac_profile"];
if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->
Fill(numPV, (*patJets)[ind1].HFHadronEnergyFraction());
3035 mNeutralFraction = map_of_MEs[
DirName+
"/"+
"NeutralConstituentsFraction"];
if (mNeutralFraction && mNeutralFraction->getRootObject()) mNeutralFraction->Fill ((
double)(*patJets)[ind2].neutralMultiplicity()/(double)(*patJets)[ind2].nConstituents());
3037 mChargedMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity_profile"];
if(mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*patJets)[ind1].chargedMultiplicity());
3038 mNeutralMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity_profile"];
if(mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*patJets)[ind1].neutralMultiplicity());
3039 mMuonMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity_profile"];
if(mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity->Fill(numPV, (*patJets)[ind1].muonMultiplicity());
3041 mCHFrac_profile = map_of_MEs[
DirName+
"/"+
"CHFrac_profile"];
if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->
Fill(numPV, (*patJets)[ind2].chargedHadronEnergyFraction());
3042 mNHFrac_profile = map_of_MEs[
DirName+
"/"+
"NHFrac_profile"];
if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->
Fill(numPV, (*patJets)[ind2].neutralHadronEnergyFraction());
3043 mPhFrac_profile = map_of_MEs[
DirName+
"/"+
"PhFrac_profile"];
if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->
Fill(numPV, (*patJets)[ind2].neutralEmEnergyFraction());
3044 mHFEMFrac_profile = map_of_MEs[
DirName+
"/"+
"HFEMFrac_profile"];
if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->
Fill(numPV, (*patJets)[ind2].HFEMEnergyFraction());
3045 mHFHFrac_profile = map_of_MEs[
DirName+
"/"+
"HFHFrac_profile"];
if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->
Fill(numPV, (*patJets)[ind2].HFHadronEnergyFraction());
3047 mChargedMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"ChargedMultiplicity_profile"];
if(mChargedMultiplicity_profile && mChargedMultiplicity_profile->getRootObject()) mChargedMultiplicity_profile->Fill(numPV, (*patJets)[ind2].chargedMultiplicity());
3048 mNeutralMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"NeutralMultiplicity_profile"];
if(mNeutralMultiplicity_profile && mNeutralMultiplicity_profile->getRootObject()) mNeutralMultiplicity_profile->Fill(numPV, (*patJets)[ind2].neutralMultiplicity());
3049 mMuonMultiplicity_profile = map_of_MEs[
DirName+
"/"+
"MuonMultiplicity_profile"];
if(mMuonMultiplicity_profile && mMuonMultiplicity_profile->getRootObject()) mMuonMultiplicity_profile->Fill(numPV, (*patJets)[ind2].muonMultiplicity());
3054 mPt = map_of_MEs[
DirName+
"/"+
"Pt"];
if (mPt && mPt->getRootObject()) mPt->Fill (recoJets[0].pt());
3055 mEta = map_of_MEs[
DirName+
"/"+
"Eta"];
if (mEta && mEta->getRootObject()) mEta->Fill (recoJets[0].eta());
3056 mPhi = map_of_MEs[
DirName+
"/"+
"Phi"];
if (mPhi && mPhi->getRootObject()) mPhi->Fill (recoJets[0].phi());
3057 mPhiVSEta = map_of_MEs[
DirName+
"/"+
"PhiVSEta"];
if (mPhiVSEta && mPhiVSEta->getRootObject()) mPhiVSEta->Fill(recoJets[0].eta(),recoJets[0].phi());
3059 mConstituents = map_of_MEs[
DirName+
"/"+
"Constituents"];
if (mConstituents && mConstituents->getRootObject()) mConstituents->Fill (recoJets[0].nConstituents());
3061 mPt = map_of_MEs[
DirName+
"/"+
"Pt"];
if (mPt && mPt->getRootObject()) mPt->Fill (recoJets[1].pt());
3062 mEta = map_of_MEs[
DirName+
"/"+
"Eta"];
if (mEta && mEta->getRootObject()) mEta->Fill (recoJets[1].eta());
3063 mPhi = map_of_MEs[
DirName+
"/"+
"Phi"];
if (mPhi && mPhi->getRootObject()) mPhi->Fill (recoJets[1].phi());
3064 mPhiVSEta = map_of_MEs[
DirName+
"/"+
"PhiVSEta"];
if (mPhiVSEta && mPhiVSEta->getRootObject()) mPhiVSEta->Fill(recoJets[1].eta(),recoJets[1].phi());
3066 mConstituents = map_of_MEs[
DirName+
"/"+
"Constituents"];
if (mConstituents && mConstituents->getRootObject()) mConstituents->Fill (recoJets[1].nConstituents());
3069 mPt_profile = map_of_MEs[
DirName+
"/"+
"Pt_profile"];
if (mPt_profile && mPt_profile->getRootObject()) mPt_profile ->
Fill(numPV, recoJets[0].
pt());
3070 mEta_profile = map_of_MEs[
DirName+
"/"+
"Eta_profile"];
if (mEta_profile && mEta_profile->getRootObject()) mEta_profile ->
Fill(numPV, recoJets[0].
eta());
3071 mPhi_profile = map_of_MEs[
DirName+
"/"+
"Phi_profile"];
if (mPhi_profile && mPhi_profile->getRootObject()) mPhi_profile ->
Fill(numPV, recoJets[0].phi());
3073 mConstituents_profile = map_of_MEs[
DirName+
"/"+
"Constituents_profile"];
if (mConstituents_profile && mConstituents_profile->getRootObject()) mConstituents_profile->Fill(numPV, recoJets[0].nConstituents());
3075 mPt_profile = map_of_MEs[
DirName+
"/"+
"Pt_profile"];
if (mPt_profile && mPt_profile->getRootObject()) mPt_profile ->
Fill(numPV, recoJets[1].
pt());
3076 mEta_profile = map_of_MEs[
DirName+
"/"+
"Eta_profile"];
if (mEta_profile && mEta_profile->getRootObject()) mEta_profile ->
Fill(numPV, recoJets[1].
eta());
3077 mPhi_profile = map_of_MEs[
DirName+
"/"+
"Phi_profile"];
if (mPhi_profile && mPhi_profile->getRootObject()) mPhi_profile ->
Fill(numPV, recoJets[1].phi());
3079 mConstituents_profile = map_of_MEs[
DirName+
"/"+
"Constituents_profile"];
if (mConstituents_profile && mConstituents_profile->getRootObject()) mConstituents_profile->Fill(numPV, recoJets[1].nConstituents());
3081 if (fabs(recoJets[0].
eta() < 1.4)) {
3082 double pt_dijet = (recoJets[0].pt() + recoJets[1].pt())/2;
3088 int randJet =iEvent.
id().
event()%2;
3089 if (fabs(recoJets[1].
eta() < 1.4)) {
3105 bool thirdJetCut =
true;
3113 if (pt3 > asymmetryThirdJetCut_){
3118 double dijetAsymmetry =(recoJets[jet1].pt() - recoJets[jet2].pt()) / (recoJets[jet1].
pt() + recoJets[jet2].pt());
3119 mDijetAsymmetry = map_of_MEs[
DirName+
"/"+
"DijetAsymmetry"];
if (mDijetAsymmetry && mDijetAsymmetry->getRootObject()) mDijetAsymmetry->Fill(dijetAsymmetry);
3128 pt_barrel = recoJets[jet1].pt();
3129 pt_probe = recoJets[jet2].pt();
3139 bool thirdJetCut =
true;
3141 if (pt3/pt_dijet > balanceThirdJetCut_){
3142 thirdJetCut =
false;
3146 double dijetBalance = (pt_probe - pt_barrel) / pt_dijet;
3147 mDijetBalance = map_of_MEs[
DirName+
"/"+
"DijetBalance"];
if (mDijetBalance && mDijetBalance->getRootObject()) mDijetBalance->Fill(dijetBalance);
3155 if(pass_Z_selection && ind1_mu_vetoed>=0 && pt1_mu_vetoed>12 && cleaned_first_jet_mu_vetoed && isPFJet_){
3156 bool pass_second_jet_mu_vetoed=
false;
3157 if(cleaned_second_jet_mu_vetoed){
3158 if(ind2_mu_vetoed>=0 && pt2_mu_vetoed/zCand.Pt()<0.2){
3159 pass_second_jet_mu_vetoed=
true;
3162 if(pass_second_jet_mu_vetoed){
3165 recoJet1=(*pfJets)[ind1_mu_vetoed];
3167 if (pass_correction_flag && !isMiniAODJet_) {
3170 scale = jetCorr->
correction((*caloJets)[ind1_mu_vetoed]);
3173 scale = jetCorr->
correction((*pfJets)[ind1_mu_vetoed]);
3177 double dphi=fabs(recoJet1.
phi()-zCand.Phi());
3179 dphi=2*acos(-1.)-dphi;
3181 if(jetCleaningFlag_){
3182 DirName =
"JetMET/Jet/Cleaned"+mInputCollection_.label()+
"/ZJets";
3184 mDPhiZJet = map_of_MEs[
DirName+
"/"+
"DPhiZJ"];
if (mDPhiZJet && mDPhiZJet->getRootObject()) mDPhiZJet ->
Fill(dphi);
3185 if(fabs(dphi-acos(-1.))<0.34){
3192 iEvent.
getByToken(caloMetToken_, calometcoll);
3193 if(!calometcoll.
isValid())
return;
3194 met=&(calometcoll->front());
3198 if(!pfmetcoll.
isValid())
return;
3199 met=&(pfmetcoll->front());
3206 mZMass = map_of_MEs[
DirName+
"/"+
"DiMuonMass"];
if(mZMass && mZMass->getRootObject()) mZMass->Fill(zCand.M());
3207 mZJetAsymmetry = map_of_MEs[
DirName+
"/"+
"ZJetAsymmetry"];
if(mZJetAsymmetry && mZJetAsymmetry->getRootObject()) mZJetAsymmetry->Fill((zCand.Pt()-recoJet1.
pt())/(zCand.Pt()+recoJet1.
pt()));
3208 if(recoJet1.
pt()>20){
3209 mPt = map_of_MEs[
DirName+
"/"+
"Pt"];
if (mPt && mPt->getRootObject()) mPt->Fill (recoJet1.
pt());
3210 mEta = map_of_MEs[
DirName+
"/"+
"Eta"];
if (mEta && mEta->getRootObject()) mEta->Fill (recoJet1.
eta());
3211 mPhi = map_of_MEs[
DirName+
"/"+
"Phi"];
if (mPhi && mPhi->getRootObject()) mPhi->Fill (recoJet1.
phi());
3213 mPt_profile = map_of_MEs[
DirName+
"/"+
"Pt_profile"];
if (mPt_profile && mPt_profile->getRootObject()) mPt_profile ->
Fill(numPV, recoJet1.
pt());
3214 mEta_profile = map_of_MEs[
DirName+
"/"+
"Eta_profile"];
if (mEta_profile && mEta_profile->getRootObject()) mEta_profile ->
Fill(numPV, recoJet1.
eta());
3215 mPhi_profile = map_of_MEs[
DirName+
"/"+
"Phi_profile"];
if (mPhi_profile && mPhi_profile->getRootObject()) mPhi_profile ->
Fill(numPV, recoJet1.
phi());
3216 mConstituents = map_of_MEs[
DirName+
"/"+
"Constituents"];
if (mConstituents && mConstituents->getRootObject()) mConstituents->Fill(recoJet1.
nConstituents());
3217 mConstituents_profile = map_of_MEs[
DirName+
"/"+
"Constituents_profile"];
if (mConstituents_profile && mConstituents_profile->getRootObject()) mConstituents_profile->Fill(numPV, recoJet1.
nConstituents());
3218 mJetEnergyCorr = map_of_MEs[
DirName+
"/"+
"JetEnergyCorr"];
if(mJetEnergyCorr && mJetEnergyCorr->getRootObject()) mJetEnergyCorr->Fill(recoJet1.
pt()/(*pfJets)[ind1_mu_vetoed].pt());
3219 mJetEnergyCorrVSEta = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSEta"];
if(mJetEnergyCorrVSEta && mJetEnergyCorrVSEta->getRootObject()) mJetEnergyCorrVSEta->Fill(recoJet1.
eta(),recoJet1.
pt()/(*pfJets)[ind1_mu_vetoed].pt());
3220 mJetEnergyCorrVSPt = map_of_MEs[
DirName+
"/"+
"JetEnergyCorrVSPt"];
if(mJetEnergyCorrVSPt && mJetEnergyCorrVSPt->getRootObject()) mJetEnergyCorrVSPt->Fill(recoJet1.
pt(),recoJet1.
pt()/(*pfJets)[ind1_mu_vetoed].pt());
3221 mCHFrac = map_of_MEs[
DirName+
"/"+
"CHFrac"];
if (mCHFrac && mCHFrac->getRootObject()) mCHFrac ->
Fill((*pfJets)[ind1_mu_vetoed].chargedHadronEnergyFraction());
3222 mNHFrac = map_of_MEs[
DirName+
"/"+
"NHFrac"];
if (mNHFrac && mNHFrac->getRootObject()) mNHFrac ->
Fill((*pfJets)[ind1_mu_vetoed].neutralHadronEnergyFraction());
3223 mPhFrac = map_of_MEs[
DirName+
"/"+
"PhFrac"];
if (mPhFrac && mPhFrac->getRootObject()) mPhFrac ->
Fill((*pfJets)[ind1_mu_vetoed].neutralEmEnergyFraction());
3224 mHFEMFrac = map_of_MEs[
DirName+
"/"+
"HFEMFrac"];
if (mHFEMFrac && mHFEMFrac->getRootObject()) mHFEMFrac ->
Fill((*pfJets)[ind1_mu_vetoed].HFEMEnergyFraction());
3225 mHFHFrac = map_of_MEs[
DirName+
"/"+
"HFHFrac"];
if (mHFHFrac && mHFHFrac->getRootObject()) mHFHFrac ->
Fill((*pfJets)[ind1_mu_vetoed].HFHadronEnergyFraction());
3227 mCHFrac_profile = map_of_MEs[
DirName+
"/"+
"CHFrac_profile"];
if (mCHFrac_profile && mCHFrac_profile->getRootObject()) mCHFrac_profile ->
Fill(numPV, (*pfJets)[ind1_mu_vetoed].chargedHadronEnergyFraction());
3228 mNHFrac_profile = map_of_MEs[
DirName+
"/"+
"NHFrac_profile"];
if (mNHFrac_profile && mNHFrac_profile->getRootObject()) mNHFrac_profile ->
Fill(numPV, (*pfJets)[ind1_mu_vetoed].neutralHadronEnergyFraction());
3229 mPhFrac_profile = map_of_MEs[
DirName+
"/"+
"PhFrac_profile"];
if (mPhFrac_profile && mPhFrac_profile->getRootObject()) mPhFrac_profile ->
Fill(numPV, (*pfJets)[ind1_mu_vetoed].neutralEmEnergyFraction());
3230 mHFEMFrac_profile = map_of_MEs[
DirName+
"/"+
"HFEMFrac_profile"];
if (mHFEMFrac_profile && mHFEMFrac_profile->getRootObject()) mHFEMFrac_profile ->
Fill(numPV, (*pfJets)[ind1_mu_vetoed].HFEMEnergyFraction());
3231 mHFHFrac_profile = map_of_MEs[
DirName+
"/"+
"HFHFrac_profile"];
if (mHFHFrac_profile && mHFHFrac_profile->getRootObject()) mHFHFrac_profile ->
Fill(numPV, (*pfJets)[ind1_mu_vetoed].HFHadronEnergyFraction());
3233 double MPF=1.+(met->
px()*zCand.Px()+met->
py()*zCand.Py())/(zCand.Pt()*zCand.Pt());
3234 if(fabs(recoJet1.
eta())<1.3){
3235 mJ1Pt_over_ZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_J_Barrel"];
if(mJ1Pt_over_ZPt_J_Barrel && mJ1Pt_over_ZPt_J_Barrel->getRootObject())mJ1Pt_over_ZPt_J_Barrel->Fill(recoJet1.
pt()/zCand.Pt());
3236 mMPF_J_Barrel = map_of_MEs[
DirName+
"/"+
"MPF_J_Barrel"];
if(mMPF_J_Barrel && mMPF_J_Barrel->getRootObject())mMPF_J_Barrel->Fill(MPF);
3238 mJetZBalance_lowZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"JZB_lowZPt_J_Barrel"];
if(mJetZBalance_lowZPt_J_Barrel && mJetZBalance_lowZPt_J_Barrel->getRootObject())mJetZBalance_lowZPt_J_Barrel->Fill(recoJet1.
pt()-zCand.Pt());
3239 mJ1Pt_over_ZPt_lowZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_lowZPt_J_Barrel"];
if(mJ1Pt_over_ZPt_lowZPt_J_Barrel && mJ1Pt_over_ZPt_lowZPt_J_Barrel->getRootObject())mJ1Pt_over_ZPt_lowZPt_J_Barrel->Fill(recoJet1.
pt()/zCand.Pt());
3240 mMPF_lowZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"MPF_lowZPt_J_Barrel"];
if(mMPF_lowZPt_J_Barrel && mMPF_lowZPt_J_Barrel->getRootObject())mMPF_lowZPt_J_Barrel->Fill(MPF);
3242 }
else if (zCand.Pt()<140){
3243 mJetZBalance_mediumZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"JZB_mediumZPt_J_Barrel"];
if(mJetZBalance_mediumZPt_J_Barrel && mJetZBalance_mediumZPt_J_Barrel->getRootObject())mJetZBalance_mediumZPt_J_Barrel->Fill(recoJet1.
pt()-zCand.Pt());
3244 mJ1Pt_over_ZPt_mediumZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_mediumZPt_J_Barrel"];
if(mJ1Pt_over_ZPt_mediumZPt_J_Barrel && mJ1Pt_over_ZPt_mediumZPt_J_Barrel->getRootObject())mJ1Pt_over_ZPt_mediumZPt_J_Barrel->Fill(recoJet1.
pt()/zCand.Pt());
3245 mMPF_mediumZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"MPF_mediumZPt_J_Barrel"];
if(mMPF_mediumZPt_J_Barrel && mMPF_mediumZPt_J_Barrel->getRootObject())mMPF_mediumZPt_J_Barrel->Fill(MPF);
3247 mJetZBalance_highZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"JZB_highZPt_J_Barrel"];
if(mJetZBalance_highZPt_J_Barrel && mJetZBalance_highZPt_J_Barrel->getRootObject())mJetZBalance_highZPt_J_Barrel->Fill(recoJet1.
pt()-zCand.Pt());
3248 mJ1Pt_over_ZPt_highZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_highZPt_J_Barrel"];
if(mJ1Pt_over_ZPt_highZPt_J_Barrel && mJ1Pt_over_ZPt_highZPt_J_Barrel->getRootObject())mJ1Pt_over_ZPt_highZPt_J_Barrel->Fill(recoJet1.
pt()/zCand.Pt());
3249 mMPF_highZPt_J_Barrel = map_of_MEs[
DirName+
"/"+
"MPF_highZPt_J_Barrel"];
if(mMPF_highZPt_J_Barrel && mMPF_highZPt_J_Barrel->getRootObject())mMPF_highZPt_J_Barrel->Fill(MPF);
3253 mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_30_55_J_Barrel"];
if(mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel && mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_30_55_J_Barrel->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3254 }
else if (zCand.Pt()<75){
3255 mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_55_75_J_Barrel"];
if(mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel && mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_55_75_J_Barrel->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3256 }
else if (zCand.Pt()<150){
3257 mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_75_150_J_Barrel"];
if(mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel && mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_75_150_J_Barrel->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3258 }
else if (zCand.Pt()<290){
3259 mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_150_290_J_Barrel"];
if(mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel && mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_150_290_J_Barrel->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3261 mDeltaPt_Z_j1_over_ZPt_290_J_Barrel = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_290_J_Barrel"];
if(mDeltaPt_Z_j1_over_ZPt_290_J_Barrel && mDeltaPt_Z_j1_over_ZPt_290_J_Barrel->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_290_J_Barrel->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3264 }
else if(fabs(recoJet1.
eta())<3.0){
3265 mJ1Pt_over_ZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_J_EndCap"];
if(mJ1Pt_over_ZPt_J_EndCap && mJ1Pt_over_ZPt_J_EndCap->getRootObject())mJ1Pt_over_ZPt_J_EndCap->Fill(recoJet1.
pt()/zCand.Pt());
3266 mMPF_J_EndCap = map_of_MEs[
DirName+
"/"+
"MPF_J_EndCap"];
if(mMPF_J_EndCap && mMPF_J_EndCap->getRootObject())mMPF_J_EndCap->Fill(MPF);
3268 mJetZBalance_lowZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"JZB_lowZPt_J_EndCap"];
if(mJetZBalance_lowZPt_J_EndCap && mJetZBalance_lowZPt_J_EndCap->getRootObject())mJetZBalance_lowZPt_J_EndCap->Fill(recoJet1.
pt()-zCand.Pt());
3269 mJ1Pt_over_ZPt_lowZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_lowZPt_J_EndCap"];
if(mJ1Pt_over_ZPt_lowZPt_J_EndCap && mJ1Pt_over_ZPt_lowZPt_J_EndCap->getRootObject())mJ1Pt_over_ZPt_lowZPt_J_EndCap->Fill(recoJet1.
pt()/zCand.Pt());
3270 mMPF_lowZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"MPF_lowZPt_J_EndCap"];
if(mMPF_lowZPt_J_EndCap && mMPF_lowZPt_J_EndCap->getRootObject())mMPF_lowZPt_J_EndCap->Fill(MPF);
3271 }
else if (zCand.Pt()<140){
3272 mJetZBalance_mediumZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"JZB_mediumZPt_J_EndCap"];
if(mJetZBalance_mediumZPt_J_EndCap && mJetZBalance_mediumZPt_J_EndCap->getRootObject())mJetZBalance_mediumZPt_J_EndCap->Fill(recoJet1.
pt()-zCand.Pt());
3273 mJ1Pt_over_ZPt_mediumZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_mediumZPt_J_EndCap"];
if(mJ1Pt_over_ZPt_mediumZPt_J_EndCap && mJ1Pt_over_ZPt_mediumZPt_J_EndCap->getRootObject())mJ1Pt_over_ZPt_mediumZPt_J_EndCap->Fill(recoJet1.
pt()/zCand.Pt());
3274 mMPF_mediumZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"MPF_mediumZPt_J_EndCap"];
if(mMPF_mediumZPt_J_EndCap && mMPF_mediumZPt_J_EndCap->getRootObject())mMPF_mediumZPt_J_EndCap->Fill(MPF);
3276 mJetZBalance_highZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"JZB_highZPt_J_EndCap"];
if(mJetZBalance_highZPt_J_EndCap && mJetZBalance_highZPt_J_EndCap->getRootObject())mJetZBalance_highZPt_J_EndCap->Fill(recoJet1.
pt()-zCand.Pt());
3277 mJ1Pt_over_ZPt_highZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_highZPt_J_EndCap"];
if(mJ1Pt_over_ZPt_highZPt_J_EndCap && mJ1Pt_over_ZPt_highZPt_J_EndCap->getRootObject())mJ1Pt_over_ZPt_highZPt_J_EndCap->Fill(recoJet1.
pt()/zCand.Pt());
3278 mMPF_highZPt_J_EndCap = map_of_MEs[
DirName+
"/"+
"MPF_highZPt_J_EndCap"];
if(mMPF_highZPt_J_EndCap && mMPF_highZPt_J_EndCap->getRootObject())mMPF_highZPt_J_EndCap->Fill(MPF);
3282 mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_30_55_J_EndCap"];
if(mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap && mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_30_55_J_EndCap->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3283 }
else if (zCand.Pt()<75){
3284 mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_55_75_J_EndCap"];
if(mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap && mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_55_75_J_EndCap->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3285 }
else if (zCand.Pt()<150){
3286 mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_75_150_J_EndCap"];
if(mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap && mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_75_150_J_EndCap->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3287 }
else if (zCand.Pt()<290){
3288 mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_150_290_J_EndCap"];
if(mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap && mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_150_290_J_EndCap->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3290 mDeltaPt_Z_j1_over_ZPt_290_J_EndCap = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_290_J_EndCap"];
if(mDeltaPt_Z_j1_over_ZPt_290_J_EndCap && mDeltaPt_Z_j1_over_ZPt_290_J_EndCap->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_290_J_EndCap->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3294 mJ1Pt_over_ZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_J_Forward"];
if(mJ1Pt_over_ZPt_J_Forward && mJ1Pt_over_ZPt_J_Forward->getRootObject())mJ1Pt_over_ZPt_J_Forward->Fill(recoJet1.
pt()/zCand.Pt());
3295 mMPF_J_Forward = map_of_MEs[
DirName+
"/"+
"MPF_J_Forward"];
if(mMPF_J_Forward && mMPF_J_Forward->getRootObject())mMPF_J_Forward->Fill(MPF);
3297 mJetZBalance_lowZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"JZB_lowZPt_J_Forward"];
if(mJetZBalance_lowZPt_J_Forward && mJetZBalance_lowZPt_J_Forward->getRootObject())mJetZBalance_lowZPt_J_Forward->Fill(recoJet1.
pt()-zCand.Pt());
3298 mJ1Pt_over_ZPt_lowZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_lowZPt_J_Forward"];
if(mJ1Pt_over_ZPt_lowZPt_J_Forward && mJ1Pt_over_ZPt_lowZPt_J_Forward->getRootObject())mJ1Pt_over_ZPt_lowZPt_J_Forward->Fill(recoJet1.
pt()/zCand.Pt());
3299 mMPF_lowZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"MPF_lowZPt_J_Forward"];
if(mMPF_lowZPt_J_Forward && mMPF_lowZPt_J_Forward->getRootObject())mMPF_lowZPt_J_Forward->Fill(MPF);
3300 }
else if (zCand.Pt()<140){
3301 mJetZBalance_mediumZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"JZB_mediumZPt_J_Forward"];
if(mJetZBalance_mediumZPt_J_Forward && mJetZBalance_mediumZPt_J_Forward->getRootObject())mJetZBalance_mediumZPt_J_Forward->Fill(recoJet1.
pt()-zCand.Pt());
3302 mJ1Pt_over_ZPt_mediumZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_mediumZPt_J_Forward"];
if(mJ1Pt_over_ZPt_mediumZPt_J_Forward && mJ1Pt_over_ZPt_mediumZPt_J_Forward->getRootObject())mJ1Pt_over_ZPt_mediumZPt_J_Forward->Fill(recoJet1.
pt()/zCand.Pt());
3303 mMPF_mediumZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"MPF_mediumZPt_J_Forward"];
if(mMPF_mediumZPt_J_Forward && mMPF_mediumZPt_J_Forward->getRootObject())mMPF_mediumZPt_J_Forward->Fill(MPF);
3305 mJetZBalance_highZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"JZB_highZPt_J_Forward"];
if(mJetZBalance_highZPt_J_Forward && mJetZBalance_highZPt_J_Forward->getRootObject())mJetZBalance_highZPt_J_Forward->Fill(recoJet1.
pt()-zCand.Pt());
3306 mJ1Pt_over_ZPt_highZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"J1Pt_over_ZPt_highZPt_J_Forward"];
if(mJ1Pt_over_ZPt_highZPt_J_Forward && mJ1Pt_over_ZPt_highZPt_J_Forward->getRootObject())mJ1Pt_over_ZPt_highZPt_J_Forward->Fill(recoJet1.
pt()/zCand.Pt());
3307 mMPF_highZPt_J_Forward = map_of_MEs[
DirName+
"/"+
"MPF_highZPt_J_Forward"];
if(mMPF_highZPt_J_Forward && mMPF_highZPt_J_Forward->getRootObject())mMPF_highZPt_J_Forward->Fill(MPF);
3311 mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_30_55_J_Forward"];
if(mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward && mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_30_55_J_Forward->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3312 }
else if (zCand.Pt()<100){
3313 mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_55_100_J_Forward"];
if(mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward && mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_55_100_J_Forward->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3315 mDeltaPt_Z_j1_over_ZPt_100_J_Forward = map_of_MEs[
DirName+
"/"+
"DeltaPt_Z_j1_over_ZPt_100_J_Forward"];
if(mDeltaPt_Z_j1_over_ZPt_100_J_Forward && mDeltaPt_Z_j1_over_ZPt_100_J_Forward->getRootObject() ) mDeltaPt_Z_j1_over_ZPt_100_J_Forward->Fill((zCand.Pt()-recoJet1.
pt())/zCand.Pt());
3320 float QGLikelihood=-10;
3323 if(fill_CHS_histos){
3325 QGmulti=(*qgMultiplicity)[pfjetref];
3326 QGLikelihood=(*qgLikelihood)[pfjetref];
3327 QGptD=(*qgptD)[pfjetref];
3328 QGaxis2=(*qgaxis2)[pfjetref];
3329 if(fabs(recoJet1.
eta())<1.3){
3331 if (recoJet1.
pt()>=20. && recoJet1.
pt()<=50.) {
3332 mAxis2_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_Barrel"];
if(mAxis2_lowPt_Barrel && mAxis2_lowPt_Barrel->getRootObject()) mAxis2_lowPt_Barrel->Fill(QGaxis2);
3333 mpTD_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_Barrel"];
if(mpTD_lowPt_Barrel && mpTD_lowPt_Barrel->getRootObject()) mpTD_lowPt_Barrel->Fill(QGptD);
3334 mMultiplicityQG_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_Barrel"];
if(mMultiplicityQG_lowPt_Barrel && mMultiplicityQG_lowPt_Barrel->getRootObject()) mMultiplicityQG_lowPt_Barrel->Fill(QGmulti);
3335 mqgLikelihood_lowPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_Barrel"];
if(mqgLikelihood_lowPt_Barrel && mqgLikelihood_lowPt_Barrel->getRootObject()) mqgLikelihood_lowPt_Barrel->Fill(QGLikelihood);
3337 if (recoJet1.
pt()>50. && recoJet1.
pt()<=140.) {
3338 mAxis2_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_Barrel"];
if(mAxis2_mediumPt_Barrel && mAxis2_mediumPt_Barrel->getRootObject()) mAxis2_mediumPt_Barrel->Fill(QGaxis2);
3339 mpTD_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_Barrel"];
if(mpTD_mediumPt_Barrel && mpTD_mediumPt_Barrel->getRootObject()) mpTD_mediumPt_Barrel->Fill(QGptD);
3340 mMultiplicityQG_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_Barrel"];
if(mMultiplicityQG_mediumPt_Barrel && mMultiplicityQG_mediumPt_Barrel->getRootObject()) mMultiplicityQG_mediumPt_Barrel->Fill(QGmulti);
3341 mqgLikelihood_mediumPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_Barrel"];
if(mqgLikelihood_mediumPt_Barrel && mqgLikelihood_mediumPt_Barrel->getRootObject()) mqgLikelihood_mediumPt_Barrel->Fill(QGLikelihood);
3343 if (recoJet1.
pt()>140.) {
3344 mAxis2_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_Barrel"];
if(mAxis2_highPt_Barrel && mAxis2_highPt_Barrel->getRootObject()) mAxis2_highPt_Barrel->Fill(QGaxis2);
3345 mpTD_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_Barrel"];
if(mpTD_highPt_Barrel && mpTD_highPt_Barrel->getRootObject()) mpTD_highPt_Barrel->Fill(QGptD);
3346 mMultiplicityQG_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_Barrel"];
if(mMultiplicityQG_highPt_Barrel && mMultiplicityQG_highPt_Barrel->getRootObject()) mMultiplicityQG_highPt_Barrel->Fill(QGmulti);
3347 mqgLikelihood_highPt_Barrel = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_Barrel"];
if(mqgLikelihood_highPt_Barrel && mqgLikelihood_highPt_Barrel->getRootObject()) mqgLikelihood_highPt_Barrel->Fill(QGLikelihood);
3349 }
else if(fabs(recoJet1.
eta())<3.0){
3350 if (recoJet1.
pt()>20. && recoJet1.
pt()<=50.) {
3351 mAxis2_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_EndCap"];
if(mAxis2_lowPt_EndCap && mAxis2_lowPt_EndCap->getRootObject()) mAxis2_lowPt_EndCap->Fill(QGaxis2);
3352 mpTD_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_EndCap"];
if(mpTD_lowPt_EndCap && mpTD_lowPt_EndCap->getRootObject()) mpTD_lowPt_EndCap->Fill(QGptD);
3353 mMultiplicityQG_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_EndCap"];
if(mMultiplicityQG_lowPt_EndCap && mMultiplicityQG_lowPt_EndCap->getRootObject()) mMultiplicityQG_lowPt_EndCap->Fill(QGmulti);
3354 mqgLikelihood_lowPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_EndCap"];
if(mqgLikelihood_lowPt_EndCap && mqgLikelihood_lowPt_EndCap->getRootObject()) mqgLikelihood_lowPt_EndCap->Fill(QGLikelihood);
3356 if (recoJet1.
pt()>50. && recoJet1.
pt()<=140.) {
3357 mAxis2_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_EndCap"];
if(mAxis2_mediumPt_EndCap && mAxis2_mediumPt_EndCap->getRootObject()) mAxis2_mediumPt_EndCap->Fill(QGaxis2);
3358 mpTD_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_EndCap"];
if(mpTD_mediumPt_EndCap && mpTD_mediumPt_EndCap->getRootObject()) mpTD_mediumPt_EndCap->Fill(QGptD);
3359 mMultiplicityQG_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_EndCap"];
if(mMultiplicityQG_mediumPt_EndCap && mMultiplicityQG_mediumPt_EndCap->getRootObject()) mMultiplicityQG_mediumPt_EndCap->Fill(QGmulti);
3360 mqgLikelihood_mediumPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_EndCap"];
if(mqgLikelihood_mediumPt_EndCap && mqgLikelihood_mediumPt_EndCap->getRootObject()) mqgLikelihood_mediumPt_EndCap->Fill(QGLikelihood);
3362 if (recoJet1.
pt()>140.) {
3363 mAxis2_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_EndCap"];
if(mAxis2_highPt_EndCap && mAxis2_highPt_EndCap->getRootObject()) mAxis2_highPt_EndCap->Fill(QGaxis2);
3364 mpTD_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_EndCap"];
if(mpTD_highPt_EndCap && mpTD_highPt_EndCap->getRootObject()) mpTD_highPt_EndCap->Fill(QGptD);
3365 mMultiplicityQG_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_EndCap"];
if(mMultiplicityQG_highPt_EndCap && mMultiplicityQG_highPt_EndCap->getRootObject()) mMultiplicityQG_highPt_EndCap->Fill(QGmulti);
3366 mqgLikelihood_highPt_EndCap = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_EndCap"];
if(mqgLikelihood_highPt_EndCap && mqgLikelihood_highPt_EndCap->getRootObject()) mqgLikelihood_highPt_EndCap->Fill(QGLikelihood);
3369 if (recoJet1.
pt()>20. && recoJet1.
pt()<=50.) {
3370 mAxis2_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_lowPt_Forward"];
if(mAxis2_lowPt_Forward && mAxis2_lowPt_Forward->getRootObject()) mAxis2_lowPt_Forward->Fill(QGaxis2);
3371 mpTD_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_lowPt_Forward"];
if(mpTD_lowPt_Forward && mpTD_lowPt_Forward->getRootObject()) mpTD_lowPt_Forward->Fill(QGptD);
3372 mMultiplicityQG_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_lowPt_Forward"];
if(mMultiplicityQG_lowPt_Forward && mMultiplicityQG_lowPt_Forward->getRootObject()) mMultiplicityQG_lowPt_Forward->Fill(QGmulti);
3373 mqgLikelihood_lowPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_lowPt_Forward"];
if(mqgLikelihood_lowPt_Forward && mqgLikelihood_lowPt_Forward->getRootObject()) mqgLikelihood_lowPt_Forward->Fill(QGLikelihood);
3375 if (recoJet1.
pt()>50. && recoJet1.
pt()<=140.) {
3376 mAxis2_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_mediumPt_Forward"];
if(mAxis2_mediumPt_Forward && mAxis2_mediumPt_Forward->getRootObject()) mAxis2_mediumPt_Forward->Fill(QGaxis2);
3377 mpTD_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_mediumPt_Forward"];
if(mpTD_mediumPt_Forward && mpTD_mediumPt_Forward->getRootObject()) mpTD_mediumPt_Forward->Fill(QGptD);
3378 mMultiplicityQG_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_mediumPt_Forward"];
if(mMultiplicityQG_mediumPt_Forward && mMultiplicityQG_mediumPt_Forward->getRootObject()) mMultiplicityQG_mediumPt_Forward->Fill(QGmulti);
3379 mqgLikelihood_mediumPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_mediumPt_Forward"];
if(mqgLikelihood_mediumPt_Forward && mqgLikelihood_mediumPt_Forward->getRootObject()) mqgLikelihood_mediumPt_Forward->Fill(QGLikelihood);
3381 if (recoJet1.
pt()>140.) {
3382 mAxis2_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Axis2_highPt_Forward"];
if(mAxis2_highPt_Forward && mAxis2_highPt_Forward->getRootObject()) mAxis2_highPt_Forward->Fill(QGaxis2);
3383 mpTD_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_pTD_highPt_Forward"];
if(mpTD_highPt_Forward && mpTD_highPt_Forward->getRootObject()) mpTD_highPt_Forward->Fill(QGptD);
3384 mMultiplicityQG_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_multiplicity_highPt_Forward"];
if(mMultiplicityQG_highPt_Forward && mMultiplicityQG_highPt_Forward->getRootObject()) mMultiplicityQG_highPt_Forward->Fill(QGmulti);
3385 mqgLikelihood_highPt_Forward = map_of_MEs[
DirName+
"/"+
"qg_Likelihood_highPt_Forward"];
if(mqgLikelihood_highPt_Forward && mqgLikelihood_highPt_Forward->getRootObject()) mqgLikelihood_highPt_Forward->Fill(QGLikelihood);
T getParameter(std::string const &) const
virtual double pt() const final
transverse momentum
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Initialize run-based parameters.
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
virtual void scaleEnergy(double fScale)
scale energy of the jet
const TechnicalTriggerWord & technicalTriggerWord(int bxInEventValue) const
JetAnalyzer(const edm::ParameterSet &)
Constructor.
MonitorElement * bookProfile(Args &&...args)
virtual double eta() const final
momentum pseudorapidity
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool accept() const
Has at least one path accepted the event?
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)
std::vector< Vertex > VertexCollection
collection of Vertex objects
double correction(const LorentzVector &fJet) const
get correction using Jet information only
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
Strings::size_type size() const
virtual double phi() const final
momentum azimuthal angle
void analyze(const edm::Event &, const edm::EventSetup &) override
Get the analysis.
static bool passJetId(int flag, Id level)
virtual ~JetAnalyzer()
Destructor.
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
virtual double px() const final
x coordinate of momentum vector
MonitorElement * book1D(Args &&...args)
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
PF Jet selector for pat::Jets.
double deltaR(double eta1, double eta2, double phi1, double phi2)
Jet selector for pat::Jets and for CaloJets.
void setCurrentFolder(const std::string &fullpath)
T const * product() const
MonitorElement * book2D(Args &&...args)
std::string const & triggerName(unsigned int index) const
static std::string const triggerResults("TriggerResults")
virtual int nConstituents() const
of constituents
static int position[264][3]
void bookMESetSelection(std::string, DQMStore::IBooker &)
void endRun(const edm::Run &, const edm::EventSetup &) override
Finish up a run.
TH2F * getTH2F(void) const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Inizialize parameters for histo binning.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
T const * product() const
virtual double py() const final
y coordinate of momentum vector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.