46 m_bitAlgTechTrig_ = -1;
48 miniaodfilterdec = -1;
58 triggerResultsToken_ = consumes<edm::TriggerResults>(
edm::InputTag(triggerResultsLabel_));
63 isMiniAODMet_ = (
std::string(
"miniaod") == MetType_);
73 jetID_ValueMapToken_ = consumes<edm::ValueMap<reco::JetID> >(inputJetIDValueMap);
87 ptThreshold_ =
parameters.getParameter<
double>(
"ptThreshold");
90 pfMetToken_ = consumes<reco::PFMETCollection>(
edm::InputTag(metCollectionLabel_));
93 caloMetToken_ = consumes<reco::CaloMETCollection>(
edm::InputTag(metCollectionLabel_));
96 patMetToken_ = consumes<pat::METCollection>(
edm::InputTag(metCollectionLabel_));
102 fill_met_high_level_histo =
parameters.getParameter<
bool>(
"fillMetHighLevel");
103 fillCandidateMap_histos =
parameters.getParameter<
bool>(
"fillCandidateMaps");
108 diagnosticsParameters_ = pSet.
getParameter<std::vector<edm::ParameterSet> >(
"METDiagonisticsParameters");
115 bypassAllPVChecks_ = cleaningParameters_.getParameter<
bool>(
"bypassAllPVChecks");
116 bypassAllDCSChecks_ = cleaningParameters_.getParameter<
bool>(
"bypassAllDCSChecks");
117 runcosmics_ =
parameters.getUntrackedParameter<
bool>(
"runcosmics");
118 onlyCleaned_ =
parameters.getUntrackedParameter<
bool>(
"onlyCleaned");
119 vertexTag_ = cleaningParameters_.getParameter<
edm::InputTag>(
"vertexCollection");
120 vertexToken_ = consumes<std::vector<reco::Vertex> >(
edm::InputTag(vertexTag_));
123 gtTag_ = cleaningParameters_.getParameter<
edm::InputTag>(
"gtLabel");
124 gtToken_ = consumes<L1GlobalTriggerReadoutRecord>(
edm::InputTag(gtTag_));
129 caloJetsToken_ = consumes<reco::CaloJetCollection>(jetCollectionLabel_);
132 pfJetsToken_ = consumes<reco::PFJetCollection>(jetCollectionLabel_);
134 patJetsToken_ = consumes<pat::JetCollection>(jetCollectionLabel_);
140 hbheNoiseFilterResultToken_ = consumes<bool>(hbheNoiseFilterResultTag_);
142 hbheIsoNoiseFilterResultToken_ = consumes<bool>(hbheNoiseIsoFilterResultTag_);
144 CSCHaloResultToken_ = consumes<bool>(CSCHaloResultTag_);
146 CSCHalo2015ResultToken_ = consumes<bool>(CSCHalo2015ResultTag_);
148 EcalDeadCellTriggerToken_ = consumes<bool>(EcalDeadCellTriggerTag_);
150 EcalDeadCellBoundaryToken_ = consumes<bool>(EcalDeadCellBoundaryTag_);
152 eeBadScFilterToken_ = consumes<bool>(eeBadScFilterTag_);
154 HcalStripHaloToken_ = consumes<bool>(HcalStripHaloTag_);
158 METFilterMiniAODToken_ = consumes<edm::TriggerResults>(METFilterMiniAODLabel_);
161 METFilterMiniAODToken2_ = consumes<edm::TriggerResults>(METFilterMiniAODLabel2_);
165 nbinsPV_ =
parameters.getParameter<
int>(
"pVBin");
166 nPVMin_ =
parameters.getParameter<
double>(
"pVMin");
167 nPVMax_ =
parameters.getParameter<
double>(
"pVMax");
170 for (edm::VParameterSet::const_iterator
it = triggerSelectedSubFolders_.begin();
171 it != triggerSelectedSubFolders_.end();
174 triggerFolderExpr_.push_back(
it->getParameter<std::vector<std::string> >(
"hltPaths"));
175 triggerFolderLabels_.push_back(
it->getParameter<
std::string>(
"label"));
180 verbose_ =
parameters.getParameter<
int>(
"verbose");
184 l1gtTrigMenuToken_ = esConsumes<edm::Transition::BeginRun>();
189 for (std::vector<GenericTriggerEventFlag*>::const_iterator
it = triggerFolderEventFlag_.begin();
190 it != triggerFolderEventFlag_.end();
202 ibooker.
setScope(MonitorElementData::Scope::RUN);
204 if (!folderNames_.empty()) {
205 folderNames_.clear();
208 folderNames_.push_back(
"Uncleaned");
211 folderNames_.push_back(
"Uncleaned");
213 folderNames_.push_back(
"Cleaned");
214 folderNames_.push_back(
"DiJet");
215 if (!isMiniAODMet_) {
216 folderNames_.push_back(
"ZJets");
219 for (std::vector<std::string>::const_iterator ic = folderNames_.begin(); ic != folderNames_.end(); ic++) {
220 bookMESet(
DirName +
"/" + *ic, ibooker, map_dijet_MEs);
227 std::map<std::string, MonitorElement*>& map_of_MEs) {
228 bool bLumiSecPlot = fill_met_high_level_histo;
230 bool fillPFCandidatePlots =
false;
231 bool fillZPlots =
false;
233 if (
DirName.find(
"Cleaned") != std::string::npos) {
234 fillPFCandidatePlots =
true;
235 bookMonitorElement(
DirName, ibooker, map_of_MEs, bLumiSecPlot, fillPFCandidatePlots, fillZPlots);
242 }
else if (
DirName.find(
"ZJets") != std::string::npos) {
243 fillPFCandidatePlots =
false;
245 bookMonitorElement(
DirName, ibooker, map_of_MEs, bLumiSecPlot, fillPFCandidatePlots, fillZPlots);
247 bookMonitorElement(
DirName, ibooker, map_of_MEs, bLumiSecPlot, fillPFCandidatePlots, fillZPlots);
254 std::map<std::string, MonitorElement*>& map_of_MEs,
255 bool bLumiSecPlot =
false,
256 bool fillPFCandPlots =
false,
257 bool fillZPlots =
false) {
264 meZJets_u_par = ibooker.
book1D(
"u_parallel_Z_inc",
"u_parallel_Z_inc", 50, -1000., 75);
266 meZJets_u_par = ibooker.
book1D(
"u_parallel_Z_inc",
"u_parallel_Z_inc", 50, -800., 75);
268 meZJets_u_par_ZPt_0_15 = ibooker.
book1D(
"u_parallel_ZPt_0_15",
"u_parallel_ZPt_0_15", 50, -100, 75);
269 meZJets_u_par_ZPt_15_30 = ibooker.
book1D(
"u_parallel_ZPt_15_30",
"u_parallel_ZPt_15_30", 50, -100, 50);
270 meZJets_u_par_ZPt_30_55 = ibooker.
book1D(
"u_parallel_ZPt_30_55",
"u_parallel_ZPt_30_55", 50, -175, 50);
271 meZJets_u_par_ZPt_55_75 = ibooker.
book1D(
"u_parallel_ZPt_55_75",
"u_parallel_ZPt_55_75", 50, -175, 0);
272 meZJets_u_par_ZPt_75_150 = ibooker.
book1D(
"u_parallel_ZPt_75_150",
"u_parallel_ZPt_75_150", 50, -300, 0);
274 meZJets_u_par_ZPt_150_290 = ibooker.
book1D(
"u_parallel_ZPt_150_290",
"u_parallel_ZPt_150_290", 50, -750, -100);
276 meZJets_u_par_ZPt_150_290 = ibooker.
book1D(
"u_parallel_ZPt_150_290",
"u_parallel_ZPt_150_290", 50, -450, -50);
279 meZJets_u_par_ZPt_290 = ibooker.
book1D(
"u_parallel_ZPt_290",
"u_parallel_ZPt_290", 50, -1000., -350.);
281 meZJets_u_par_ZPt_290 = ibooker.
book1D(
"u_parallel_ZPt_290",
"u_parallel_ZPt_290", 50, -750., -150.);
283 meZJets_u_perp = ibooker.
book1D(
"u_perp_Z_inc",
"u_perp_Z_inc", 50, -85., 85.);
284 meZJets_u_perp_ZPt_0_15 = ibooker.
book1D(
"u_perp_ZPt_0_15",
"u_perp_ZPt_0_15", 50, -85., 85.);
285 meZJets_u_perp_ZPt_15_30 = ibooker.
book1D(
"u_perp_ZPt_15_30",
"u_perp_ZPt_15_30", 50, -85., 85.);
286 meZJets_u_perp_ZPt_30_55 = ibooker.
book1D(
"u_perp_ZPt_30_55",
"u_perp_ZPt_30_55", 50, -85., 85.);
287 meZJets_u_perp_ZPt_55_75 = ibooker.
book1D(
"u_perp_ZPt_55_75",
"u_perp_ZPt_55_75", 50, -85., 85.);
288 meZJets_u_perp_ZPt_75_150 = ibooker.
book1D(
"u_perp_ZPt_75_150",
"u_perp_ZPt_75_150", 50, -85., 85.);
289 meZJets_u_perp_ZPt_150_290 = ibooker.
book1D(
"u_perp_ZPt_150_290",
"u_perp_ZPt_150_290", 50, -85., 85.);
290 meZJets_u_perp_ZPt_290 = ibooker.
book1D(
"u_perp_ZPt_290",
"u_perp_ZPt_290", 50, -85., 85.);
292 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_parallel_Z_inc", meZJets_u_par));
294 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_parallel_ZPt_0_15", meZJets_u_par_ZPt_0_15));
296 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_parallel_ZPt_15_30", meZJets_u_par_ZPt_15_30));
298 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_parallel_ZPt_30_55", meZJets_u_par_ZPt_30_55));
300 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_parallel_ZPt_55_75", meZJets_u_par_ZPt_55_75));
302 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_parallel_ZPt_75_150", meZJets_u_par_ZPt_75_150));
304 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_parallel_ZPt_150_290", meZJets_u_par_ZPt_150_290));
306 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_parallel_ZPt_290", meZJets_u_par_ZPt_290));
308 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_perp_Z_inc", meZJets_u_perp));
310 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_perp_ZPt_0_15", meZJets_u_perp_ZPt_0_15));
312 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_perp_ZPt_15_30", meZJets_u_perp_ZPt_15_30));
314 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_perp_ZPt_30_55", meZJets_u_perp_ZPt_30_55));
316 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_perp_ZPt_55_75", meZJets_u_perp_ZPt_55_75));
318 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_perp_ZPt_75_150", meZJets_u_perp_ZPt_75_150));
320 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_perp_ZPt_150_290", meZJets_u_perp_ZPt_150_290));
322 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"u_perp_ZPt_290", meZJets_u_perp_ZPt_290));
326 hMEx = ibooker.
book1D(
"MEx",
"MEx", 200, -500, 500);
327 hMEy = ibooker.
book1D(
"MEy",
"MEy", 200, -500, 500);
328 hMET = ibooker.
book1D(
"MET",
"MET", 200, 0, 1000);
332 hMET_2 = ibooker.
book1D(
"MET_2",
"MET Range 2", 200, 0, 2000);
333 hSumET = ibooker.
book1D(
"SumET",
"SumET", 400, 0, 4000);
334 hMETSig = ibooker.
book1D(
"METSig",
"METSig", 51, 0, 51);
338 hMET_logx = ibooker.
book1D(
"MET_logx",
"MET_logx", 40, -1, 9);
339 hSumET_logx = ibooker.
book1D(
"SumET_logx",
"SumET_logx", 40, -1, 9);
342 hMEy->setAxisTitle(
"MEy [GeV]", 1);
343 hMET->setAxisTitle(
"MET [GeV]", 1);
344 hMET_2->setAxisTitle(
"MET [GeV]", 1);
345 hSumET->setAxisTitle(
"SumET [GeV]", 1);
346 hMETSig->setAxisTitle(
"METSig", 1);
347 hMETPhi->setAxisTitle(
"METPhi [rad]", 1);
348 hMET_logx->setAxisTitle(
"log(MET) [GeV]", 1);
349 hSumET_logx->setAxisTitle(
"log(SumET) [GeV]", 1);
351 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MEx", hMEx));
352 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MEy", hMEy));
353 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET", hMET));
354 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_2", hMET_2));
355 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SumET", hSumET));
356 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METSig", hMETSig));
357 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhi", hMETPhi));
358 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_logx", hMET_logx));
359 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SumET_logx", hSumET_logx));
361 hMET_HBHENoiseFilter = ibooker.
book1D(
"MET_HBHENoiseFilter",
"MET_HBHENoiseFiltered", 200, 0, 1000);
362 hMET_CSCTightHaloFilter = ibooker.
book1D(
"MET_CSCTightHaloFilter",
"MET_CSCTightHaloFiltered", 200, 0, 1000);
363 hMET_eeBadScFilter = ibooker.
book1D(
"MET_eeBadScFilter",
"MET_eeBadScFiltered", 200, 0, 1000);
364 hMET_HBHEIsoNoiseFilter = ibooker.
book1D(
"MET_HBHEIsoNoiseFilter",
"MET_HBHEIsoNoiseFiltered", 200, 0, 1000);
365 hMET_CSCTightHalo2015Filter =
366 ibooker.
book1D(
"MET_CSCTightHalo2015Filter",
"MET_CSCTightHalo2015Filtered", 200, 0, 1000);
367 hMET_EcalDeadCellTriggerFilter =
368 ibooker.
book1D(
"MET_EcalDeadCellTriggerFilter",
"MET_EcalDeadCellTriggerFiltered", 200, 0, 1000);
369 hMET_EcalDeadCellBoundaryFilter =
370 ibooker.
book1D(
"MET_EcalDeadCellBoundaryFilter",
"MET_EcalDeadCellBoundaryFiltered", 200, 0, 1000);
371 hMET_HcalStripHaloFilter = ibooker.
book1D(
"MET_HcalStripHaloFilter",
"MET_HcalStripHaloFiltered", 200, 0, 1000);
374 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_HBHENoiseFilter", hMET_HBHENoiseFilter));
376 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_CSCTightHaloFilter", hMET_CSCTightHaloFilter));
377 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_eeBadScFilter", hMET_eeBadScFilter));
379 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_HBHEIsoNoiseFilter", hMET_HBHEIsoNoiseFilter));
380 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_CSCTightHalo2015Filter",
381 hMET_CSCTightHalo2015Filter));
382 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_EcalDeadCellTriggerFilter",
383 hMET_EcalDeadCellTriggerFilter));
384 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_EcalDeadCellBoundaryFilter",
385 hMET_EcalDeadCellBoundaryFilter));
387 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_HcalStripHaloFilter", hMET_HcalStripHaloFilter));
391 meMEx_profile = ibooker.
bookProfile(
"MEx_profile",
"met.px()", nbinsPV_, nPVMin_, nPVMax_, 200, -500, 500);
392 meMEy_profile = ibooker.
bookProfile(
"MEy_profile",
"met.py()", nbinsPV_, nPVMin_, nPVMax_, 200, -500, 500);
393 meMET_profile = ibooker.
bookProfile(
"MET_profile",
"met.pt()", nbinsPV_, nPVMin_, nPVMax_, 200, 0, 1000);
394 meSumET_profile = ibooker.
bookProfile(
"SumET_profile",
"met.sumEt()", nbinsPV_, nPVMin_, nPVMax_, 400, 0, 4000);
398 meMEy_profile->setAxisTitle(
"nvtx", 1);
399 meMET_profile->setAxisTitle(
"nvtx", 1);
400 meSumET_profile->setAxisTitle(
"nvtx", 1);
402 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MEx_profile", meMEx_profile));
403 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MEy_profile", meMEy_profile));
404 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_profile", meMET_profile));
405 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SumET_profile", meSumET_profile));
408 hCaloHadEtInHB = ibooker.
book1D(
"CaloHadEtInHB",
"CaloHadEtInHB", 50, 0, 2000);
410 hCaloHadEtInHO = ibooker.
book1D(
"CaloHadEtInHO",
"CaloHadEtInHO", 25, 0, 500);
412 hCaloHadEtInHE = ibooker.
book1D(
"CaloHadEtInHE",
"CaloHadEtInHE", 50, 0, 2000);
414 hCaloHadEtInHF = ibooker.
book1D(
"CaloHadEtInHF",
"CaloHadEtInHF", 50, 0, 1000);
416 hCaloEmEtInHF = ibooker.
book1D(
"CaloEmEtInHF",
"CaloEmEtInHF", 25, 0, 500);
418 hCaloEmEtInEE = ibooker.
book1D(
"CaloEmEtInEE",
"CaloEmEtInEE", 50, 0, 1000);
420 hCaloEmEtInEB = ibooker.
book1D(
"CaloEmEtInEB",
"CaloEmEtInEB", 50, 0, 2000);
423 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloHadEtInHO", hCaloHadEtInHO));
424 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloHadEtInHF", hCaloHadEtInHF));
425 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloHadEtInHE", hCaloHadEtInHE));
426 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloHadEtInHB", hCaloHadEtInHB));
427 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloEmEtInHF", hCaloEmEtInHF));
428 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloEmEtInEE", hCaloEmEtInEE));
429 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloEmEtInEB", hCaloEmEtInEB));
431 hCaloMETPhi020 = ibooker.
book1D(
"CaloMETPhi020",
"CaloMETPhi020", 60, -
M_PI,
M_PI);
432 hCaloMETPhi020->
setAxisTitle(
"METPhi [rad] (MET>20 GeV)", 1);
434 hCaloEtFractionHadronic = ibooker.
book1D(
"CaloEtFractionHadronic",
"CaloEtFractionHadronic", 50, 0, 1);
435 hCaloEtFractionHadronic->
setAxisTitle(
"Hadronic Et Fraction", 1);
436 hCaloEmEtFraction = ibooker.
book1D(
"CaloEmEtFraction",
"CaloEmEtFraction", 50, 0, 1);
439 hCaloEmEtFraction020 = ibooker.
book1D(
"CaloEmEtFraction020",
"CaloEmEtFraction020", 50, 0, 1);
440 hCaloEmEtFraction020->
setAxisTitle(
"EM Et Fraction (MET>20 GeV)", 1);
442 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloMETPhi020", hCaloMETPhi020));
444 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloEtFractionHadronic", hCaloEtFractionHadronic));
445 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloEmEtFraction", hCaloEmEtFraction));
447 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"CaloEmEtFraction020", hCaloEmEtFraction020));
451 if (fillPFCandPlots &&
452 fillCandidateMap_histos) {
454 meCHF_Barrel = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel",
"chargedHadronEtFractionBarrel", 50, 0, 1);
456 ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus",
"chargedHadronEtFractionEndcapPlus", 50, 0, 1);
458 ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus",
"chargedHadronEtFractionEndcapMinus", 50, 0, 1);
459 meCHF_Barrel_BXm1Empty = ibooker.
book1D(
460 "PfChargedHadronEtFractionBarrel_BXm1Empty",
"chargedHadronEtFractionBarrel prev empty bunch", 50, 0, 1);
461 meCHF_EndcapPlus_BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty",
462 "chargedHadronEtFractionEndcapPlus prev empty bunch",
466 meCHF_EndcapMinus_BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty",
467 "chargedHadronEtFractionEndcapMinus prev empty bunch",
471 meCHF_Barrel_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel_BXm1Filled",
472 "chargedHadronEtFractionBarrel prev filled 2 bunches",
476 meCHF_EndcapPlus_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled",
477 "chargedHadronEtFractionEndcapPlus prev filled bunch",
481 meCHF_EndcapMinus_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled",
482 "chargedHadronEtFractionEndcapMinus prev filled bunch",
488 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfChargedHadronEtFractionBarrel", meCHF_Barrel));
489 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus",
491 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
492 DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus", meCHF_EndcapMinus));
493 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
494 DirName +
"/" +
"PfChargedHadronEtFractionBarrel_BXm1Empty", meCHF_Barrel_BXm1Empty));
495 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
496 DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty", meCHF_EndcapPlus_BXm1Empty));
497 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
498 DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty", meCHF_EndcapMinus_BXm1Empty));
502 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
503 DirName +
"/" +
"PfChargedHadronEtFractionBarrel_BXm1Filled", meCHF_Barrel_BXm1Filled));
504 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
505 DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled", meCHF_EndcapPlus_BXm1Filled));
506 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
507 DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled", meCHF_EndcapMinus_BXm1Filled));
512 meNHF_Barrel = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel",
"neutralHadronEtFractionBarrel", 50, 0, 1);
514 ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus",
"neutralHadronEtFractionEndcapPlus", 50, 0, 1);
516 ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus",
"neutralHadronEtFractionEndcapMinus", 50, 0, 1);
517 meNHF_Barrel_BXm1Empty = ibooker.
book1D(
518 "PfNeutralHadronEtFractionBarrel_BXm1Empty",
"neutralHadronEtFractionBarrel prev empty bunch", 50, 0, 1);
519 meNHF_EndcapPlus_BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty",
520 "neutralHadronEtFractionEndcapPlus prev empty bunch",
524 meNHF_EndcapMinus_BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty",
525 "neutralHadronEtFractionEndcapMinus prev empty bunch",
532 meNHF_Barrel_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel_BXm1Filled",
533 "neutralHadronEtFractionBarrel prev filled 2 bunches",
537 meNHF_EndcapPlus_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled",
538 "neutralHadronEtFractionEndcapPlus prev filled bunch",
542 meNHF_EndcapMinus_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled",
543 "neutralHadronEtFractionEndcapMinus prev filled bunch",
552 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfNeutralHadronEtFractionBarrel", meNHF_Barrel));
553 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus",
555 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
556 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus", meNHF_EndcapMinus));
557 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
558 DirName +
"/" +
"PfNeutralHadronEtFractionBarrel_BXm1Empty", meNHF_Barrel_BXm1Empty));
559 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
560 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty", meNHF_EndcapPlus_BXm1Empty));
561 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
562 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty", meNHF_EndcapMinus_BXm1Empty));
566 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
567 DirName +
"/" +
"PfNeutralHadronEtFractionBarrel_BXm1Filled", meNHF_Barrel_BXm1Filled));
568 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
569 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled", meNHF_EndcapPlus_BXm1Filled));
570 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
571 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled", meNHF_EndcapMinus_BXm1Filled));
576 mePhF_Barrel = ibooker.
book1D(
"PfPhotonEtFractionBarrel",
"photonEtFractionBarrel", 50, 0, 1);
577 mePhF_EndcapPlus = ibooker.
book1D(
"PfPhotonEtFractionEndcapPlus",
"photonEtFractionEndcapPlus", 50, 0, 1);
578 mePhF_EndcapMinus = ibooker.
book1D(
"PfPhotonEtFractionEndcapMinus",
"photonEtFractionEndcapMinus", 50, 0, 1);
579 mePhF_Barrel_BXm1Empty =
580 ibooker.
book1D(
"PfPhotonEtFractionBarrel_BXm1Empty",
"photonEtFractionBarrel prev empty bunch", 50, 0, 1);
581 mePhF_EndcapPlus_BXm1Empty = ibooker.
book1D(
582 "PfPhotonEtFractionEndcapPlus_BXm1Empty",
"photonEtFractionEndcapPlus prev empty bunch", 50, 0, 1);
583 mePhF_EndcapMinus_BXm1Empty = ibooker.
book1D(
584 "PfPhotonEtFractionEndcapMinus_BXm1Empty",
"photonEtFractionEndcapMinus prev empty bunch", 50, 0, 1);
588 mePhF_Barrel_BXm1Filled = ibooker.
book1D(
589 "PfPhotonEtFractionBarrel_BXm1Filled",
"photonEtFractionBarrel prev filled 2 bunches", 50, 0, 1);
590 mePhF_EndcapPlus_BXm1Filled = ibooker.
book1D(
591 "PfPhotonEtFractionEndcapPlus_BXm1Filled",
"photonEtFractionEndcapPlus prev filled bunch", 50, 0, 1);
592 mePhF_EndcapMinus_BXm1Filled = ibooker.
book1D(
593 "PfPhotonEtFractionEndcapMinus_BXm1Filled",
"photonEtFractionEndcapMinus prev filled bunch", 50, 0, 1);
599 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFractionBarrel", mePhF_Barrel));
601 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFractionEndcapPlus", mePhF_EndcapPlus));
602 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFractionEndcapMinus",
604 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFractionBarrel_BXm1Empty",
605 mePhF_Barrel_BXm1Empty));
606 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
607 DirName +
"/" +
"PfPhotonEtFractionEndcapPlus_BXm1Empty", mePhF_EndcapPlus_BXm1Empty));
608 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
609 DirName +
"/" +
"PfPhotonEtFractionEndcapMinus_BXm1Empty", mePhF_EndcapMinus_BXm1Empty));
613 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFractionBarrel_BXm1Filled",
614 mePhF_Barrel_BXm1Filled));
615 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
616 DirName +
"/" +
"PfPhotonEtFractionEndcapPlus_BXm1Filled", mePhF_EndcapPlus_BXm1Filled));
617 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
618 DirName +
"/" +
"PfPhotonEtFractionEndcapMinus_BXm1Filled", mePhF_EndcapMinus_BXm1Filled));
623 meHFHadF_Plus = ibooker.
book1D(
"PfHFHadronEtFractionPlus",
"HFHadronEtFractionPlus", 50, 0, 1);
624 meHFHadF_Minus = ibooker.
book1D(
"PfHFHadronEtFractionMinus",
"HFHadronEtFractionMinus", 50, 0, 1);
625 meHFHadF_Plus_BXm1Empty =
626 ibooker.
book1D(
"PfHFHadronEtFractionPlus_BXm1Empty",
"HFHadronEtFractionPlus prev empty bunch", 50, 0, 1);
627 meHFHadF_Minus_BXm1Empty =
628 ibooker.
book1D(
"PfHFHadronEtFractionMinus_BXm1Empty",
"HFHadronEtFractionMinus prev empty bunch", 50, 0, 1);
631 meHFHadF_Plus_BXm1Filled =
632 ibooker.
book1D(
"PfHFHadronEtFractionPlus_BXm1Filled",
"HFHadronEtFractionPlus prev filled bunch", 50, 0, 1);
633 meHFHadF_Minus_BXm1Filled = ibooker.
book1D(
634 "PfHFHadronEtFractionMinus_BXm1Filled",
"HFHadronEtFractionMinus prev filled bunch", 50, 0, 1);
639 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEtFractionPlus", meHFHadF_Plus));
641 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEtFractionMinus", meHFHadF_Minus));
642 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEtFractionPlus_BXm1Empty",
643 meHFHadF_Plus_BXm1Empty));
644 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEtFractionMinus_BXm1Empty",
645 meHFHadF_Minus_BXm1Empty));
648 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEtFractionPlus_BXm1Filled",
649 meHFHadF_Plus_BXm1Filled));
650 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
651 DirName +
"/" +
"PfHFHadronEtFractionMinus_BXm1Filled", meHFHadF_Minus_BXm1Filled));
655 meHFEMF_Plus = ibooker.
book1D(
"PfHFEMEtFractionPlus",
"HFEMEtFractionPlus", 50, 0, 1);
656 meHFEMF_Minus = ibooker.
book1D(
"PfHFEMEtFractionMinus",
"HFEMEtFractionMinus", 50, 0, 1);
657 meHFEMF_Plus_BXm1Empty =
658 ibooker.
book1D(
"PfHFEMEtFractionPlus_BXm1Empty",
"HFEMEtFractionPlus prev empty bunch", 50, 0, 1);
659 meHFEMF_Minus_BXm1Empty =
660 ibooker.
book1D(
"PfHFEMEtFractionMinus_BXm1Empty",
"HFEMEtFractionMinus prev empty bunch", 50, 0, 1);
663 meHFEMF_Plus_BXm1Filled =
664 ibooker.
book1D(
"PfHFEMEtFractionPlus_BXm1Filled",
"HFEMEtFractionPlus prev filled bunch", 50, 0, 1);
665 meHFEMF_Minus_BXm1Filled =
666 ibooker.
book1D(
"PfHFEMEtFractionMinus_BXm1Filled",
"HFEMEtFractionMinus prev filled bunch", 50, 0, 1);
671 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEtFractionPlus", meHFEMF_Plus));
673 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEtFractionMinus", meHFEMF_Minus));
674 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEtFractionPlus_BXm1Empty",
675 meHFEMF_Plus_BXm1Empty));
676 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEtFractionMinus_BXm1Empty",
677 meHFEMF_Minus_BXm1Empty));
680 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEtFractionPlus_BXm1Filled",
681 meHFEMF_Plus_BXm1Filled));
682 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEtFractionMinus_BXm1Filled",
683 meHFEMF_Minus_BXm1Filled));
744 mePhotonEtFraction_BXm1Empty =
745 ibooker.
book1D(
"PfPhotonEtFraction_BXm1Empty",
"photonEtFraction() prev empty bunch", 50, 0, 1);
746 mePhotonEtFraction_BXm1Filled =
747 ibooker.
book1D(
"PfPhotonEtFraction_BXm1Filled",
"photonEtFraction() prev filled bunch", 50, 0, 1);
748 meNeutralHadronEtFraction_BXm1Empty = ibooker.
book1D(
749 "PfNeutralHadronEtFraction_BXm1Empty",
"neutralHadronEtFraction() prev empty bunch", 50, 0, 1);
750 meNeutralHadronEtFraction_BXm1Filled = ibooker.
book1D(
751 "PfNeutralHadronEtFraction_BXm1Filled",
"neutralHadronEtFraction() prev filled bunch", 50, 0, 1);
752 meChargedHadronEtFraction_BXm1Empty = ibooker.
book1D(
753 "PfChargedHadronEtFraction_BXm1Empty",
"chargedHadronEtFraction() prev empty bunch", 50, 0, 1);
754 meChargedHadronEtFraction_BXm1Filled = ibooker.
book1D(
755 "PfChargedHadronEtFraction_BXm1Filled",
"chargedHadronEtFraction() prev filled bunch", 50, 0, 1);
756 meMET_BXm1Empty = ibooker.
book1D(
"MET_BXm1Empty",
"MET prev empty bunch", 200, 0, 1000);
757 meMET_BXm1Filled = ibooker.
book1D(
"MET_BXm1Filled",
"MET prev filled bunch", 200, 0, 1000);
758 meSumET_BXm1Empty = ibooker.
book1D(
"SumET_BXm1Empty",
"SumET prev empty bunch", 400, 0, 4000);
759 meSumET_BXm1Filled = ibooker.
book1D(
"SumET_BXm1Filled",
"SumET prev filled bunch", 400, 0, 4000);
761 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFraction_BXm1Empty",
762 mePhotonEtFraction_BXm1Empty));
763 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFraction_BXm1Filled",
764 mePhotonEtFraction_BXm1Filled));
765 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfNeutralHadronEtFraction_BXm1Empty",
766 meNeutralHadronEtFraction_BXm1Empty));
767 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfNeutralEtFraction_BXm1Filled",
768 meNeutralHadronEtFraction_BXm1Filled));
769 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfChargedHadronEtFraction_BXm1Empty",
770 meChargedHadronEtFraction_BXm1Empty));
771 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfChargedEtFraction_BXm1Filled",
772 meChargedHadronEtFraction_BXm1Filled));
773 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_BXm1Empty", meMET_BXm1Empty));
774 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MET_BXm1Filled", meMET_BXm1Filled));
776 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SumET_BXm1Empty", meSumET_BXm1Empty));
778 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"SumET_BXm1Filled", meSumET_BXm1Filled));
780 meMETPhiChargedHadronsBarrel_BXm1Filled = ibooker.
book1D(
781 "METPhiChargedHadronsBarrel_BXm1Filled",
"METPhi_PFChargedHadronsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
782 meMETPhiChargedHadronsEndcapPlus_BXm1Filled =
783 ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus_BXm1Filled",
784 "METPhi_PFChargedHadronsEndcapPlus prev bunch filled",
788 meMETPhiChargedHadronsEndcapMinus_BXm1Filled =
789 ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus_BXm1Filled",
790 "METPhi_PFChargedHadronsEndcapMinus prev bunch filled",
794 meMETPhiNeutralHadronsBarrel_BXm1Filled = ibooker.
book1D(
795 "METPhiNeutralHadronsBarrel_BXm1Filled",
"METPhi_PFNeutralHadronsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
796 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled =
797 ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus_BXm1Filled",
798 "METPhi_PFNeutralHadronsEndcapPlus prev bunch filled",
802 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled =
803 ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus_BXm1Filled",
804 "METPhi_PFNeutralHadronsEndcapMinus prev bunch filled",
808 meMETPhiPhotonsBarrel_BXm1Filled = ibooker.
book1D(
809 "METPhiPhotonsBarrel_BXm1Filled",
"METPhi_PFPhotonsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
810 meMETPhiPhotonsEndcapPlus_BXm1Filled = ibooker.
book1D(
811 "METPhiPhotonsEndcapPlus_BXm1Filled",
"METPhi_PFPhotonsEndcapPlus prev bunch filled", 50, -
M_PI,
M_PI);
812 meMETPhiPhotonsEndcapMinus_BXm1Filled = ibooker.
book1D(
813 "METPhiPhotonsEndcapMinus_BXm1Filled",
"METPhi_PFPhotonsEndcapMinus prev bunch filled", 50, -
M_PI,
M_PI);
814 meMETPhiHFHadronsPlus_BXm1Filled = ibooker.
book1D(
815 "METPhiHFHadronsPlus_BXm1Filled",
"METPhi_PFHFHadronsPlus prev bunch filled", 50, -
M_PI,
M_PI);
816 meMETPhiHFHadronsMinus_BXm1Filled = ibooker.
book1D(
817 "METPhiHFHadronsMinus_BXm1Filled",
"METPhi_PFHFHadronsMinus prev bunch filled", 50, -
M_PI,
M_PI);
818 meMETPhiHFEGammasPlus_BXm1Filled = ibooker.
book1D(
819 "METPhiHFEGammasPlus_BXm1Filled",
"METPhi_PFHFEGammasPlus prev bunch filled", 50, -
M_PI,
M_PI);
820 meMETPhiHFEGammasMinus_BXm1Filled = ibooker.
book1D(
821 "METPhiHFEGammasMinus_BXm1Filled",
"METPhi_PFHFEGammasMinus prev bunch filled", 50, -
M_PI,
M_PI);
823 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
824 DirName +
"/" +
"METPhiChargedHadronsBarrel_BXm1Filled", meMETPhiChargedHadronsBarrel_BXm1Filled));
825 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
826 DirName +
"/" +
"METPhiChargedHadronsEndcapPlus_BXm1Filled", meMETPhiChargedHadronsEndcapPlus_BXm1Filled));
828 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiChargedHadronsEndcapMinus_BXm1Filled",
829 meMETPhiChargedHadronsEndcapMinus_BXm1Filled));
830 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
831 DirName +
"/" +
"METPhiNeutralHadronsBarrel_BXm1Filled", meMETPhiNeutralHadronsBarrel_BXm1Filled));
832 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
833 DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus_BXm1Filled", meMETPhiNeutralHadronsEndcapPlus_BXm1Filled));
835 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus_BXm1Filled",
836 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled));
837 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsBarrel_BXm1Filled",
838 meMETPhiPhotonsBarrel_BXm1Filled));
839 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsEndcapPlus_BXm1Filled",
840 meMETPhiPhotonsEndcapPlus_BXm1Filled));
841 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsEndcapMinus_BXm1Filled",
842 meMETPhiPhotonsEndcapMinus_BXm1Filled));
843 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFHadronsPlus_BXm1Filled",
844 meMETPhiHFHadronsPlus_BXm1Filled));
845 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFHadronsMinus_BXm1Filled",
846 meMETPhiHFHadronsMinus_BXm1Filled));
847 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFEGammasPlus_BXm1Filled",
848 meMETPhiHFEGammasPlus_BXm1Filled));
849 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFEGammasMinus_BXm1Filled",
850 meMETPhiHFEGammasMinus_BXm1Filled));
852 meMETPhiChargedHadronsBarrel_BXm1Empty = ibooker.
book1D(
853 "METPhiChargedHadronsBarrel_BXm1Empty",
"METPhi_PFChargedHadronsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
854 meMETPhiChargedHadronsEndcapPlus_BXm1Empty =
855 ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus_BXm1Empty",
856 "METPhi_PFChargedHadronsEndcapPlus prev bunch empty",
860 meMETPhiChargedHadronsEndcapMinus_BXm1Empty =
861 ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus_BXm1Empty",
862 "METPhi_PFChargedHadronsEndcapMinus prev bunch empty",
866 meMETPhiNeutralHadronsBarrel_BXm1Empty = ibooker.
book1D(
867 "METPhiNeutralHadronsBarrel_BXm1Empty",
"METPhi_PFNeutralHadronsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
868 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty =
869 ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus_BXm1Empty",
870 "METPhi_PFNeutralHadronsEndcapPlus prev bunch empty",
874 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty =
875 ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus_BXm1Empty",
876 "METPhi_PFNeutralHadronsEndcapMinus prev bunch empty",
880 meMETPhiPhotonsBarrel_BXm1Empty =
881 ibooker.
book1D(
"METPhiPhotonsBarrel_BXm1Empty",
"METPhi_PFPhotonsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
882 meMETPhiPhotonsEndcapPlus_BXm1Empty = ibooker.
book1D(
883 "METPhiPhotonsEndcapPlus_BXm1Empty",
"METPhi_PFPhotonsEndcapPlus prev bunch empty", 50, -
M_PI,
M_PI);
884 meMETPhiPhotonsEndcapMinus_BXm1Empty = ibooker.
book1D(
885 "METPhiPhotonsEndcapMinus_BXm1Empty",
"METPhi_PFPhotonsEndcapMinus prev bunch empty", 50, -
M_PI,
M_PI);
886 meMETPhiHFHadronsPlus_BXm1Empty =
887 ibooker.
book1D(
"METPhiHFHadronsPlus_BXm1Empty",
"METPhi_PFHFHadronsPlus prev bunch empty", 50, -
M_PI,
M_PI);
888 meMETPhiHFHadronsMinus_BXm1Empty = ibooker.
book1D(
889 "METPhiHFHadronsMinus_BXm1Empty",
"METPhi_PFHFHadronsMinus prev bunch empty", 50, -
M_PI,
M_PI);
890 meMETPhiHFEGammasPlus_BXm1Empty =
891 ibooker.
book1D(
"METPhiHFEGammasPlus_BXm1Empty",
"METPhi_PFHFEGammasPlus prev bunch empty", 50, -
M_PI,
M_PI);
892 meMETPhiHFEGammasMinus_BXm1Empty = ibooker.
book1D(
893 "METPhiHFEGammasMinus_BXm1Empty",
"METPhi_PFHFEGammasMinus prev bunch empty", 50, -
M_PI,
M_PI);
895 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
896 DirName +
"/" +
"METPhiChargedHadronsBarrel_BXm1Empty", meMETPhiChargedHadronsBarrel_BXm1Empty));
897 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
898 DirName +
"/" +
"METPhiChargedHadronsEndcapPlus_BXm1Empty", meMETPhiChargedHadronsEndcapPlus_BXm1Empty));
899 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
900 DirName +
"/" +
"METPhiChargedHadronsEndcapMinus_BXm1Empty", meMETPhiChargedHadronsEndcapMinus_BXm1Empty));
901 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
902 DirName +
"/" +
"METPhiNeutralHadronsBarrel_BXm1Empty", meMETPhiNeutralHadronsBarrel_BXm1Empty));
903 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
904 DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus_BXm1Empty", meMETPhiNeutralHadronsEndcapPlus_BXm1Empty));
905 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
906 DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus_BXm1Empty", meMETPhiNeutralHadronsEndcapMinus_BXm1Empty));
907 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsBarrel_BXm1Empty",
908 meMETPhiPhotonsBarrel_BXm1Empty));
909 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsEndcapPlus_BXm1Empty",
910 meMETPhiPhotonsEndcapPlus_BXm1Empty));
911 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsEndcapMinus_BXm1Empty",
912 meMETPhiPhotonsEndcapMinus_BXm1Empty));
913 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFHadronsPlus_BXm1Empty",
914 meMETPhiHFHadronsPlus_BXm1Empty));
915 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFHadronsMinus_BXm1Empty",
916 meMETPhiHFHadronsMinus_BXm1Empty));
917 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFEGammasPlus_BXm1Empty",
918 meMETPhiHFEGammasPlus_BXm1Empty));
919 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFEGammasMinus_BXm1Empty",
920 meMETPhiHFEGammasMinus_BXm1Empty));
922 meMETPhiChargedHadronsBarrel =
923 ibooker.
book1D(
"METPhiChargedHadronsBarrel",
"METPhi_PFChargedHadronsBarrel", 50, -
M_PI,
M_PI);
924 meMETPhiChargedHadronsEndcapPlus =
925 ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus",
"METPhi_PFChargedHadronsEndcapPlus", 50, -
M_PI,
M_PI);
926 meMETPhiChargedHadronsEndcapMinus =
927 ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus",
"METPhi_PFChargedHadronsEndcapMinus", 50, -
M_PI,
M_PI);
928 meMETPhiNeutralHadronsBarrel =
929 ibooker.
book1D(
"METPhiNeutralHadronsBarrel",
"METPhi_PFNeutralHadronsBarrel", 50, -
M_PI,
M_PI);
930 meMETPhiNeutralHadronsEndcapPlus =
931 ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus",
"METPhi_PFNeutralHadronsEndcapPlus", 50, -
M_PI,
M_PI);
932 meMETPhiNeutralHadronsEndcapMinus =
933 ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus",
"METPhi_PFNeutralHadronsEndcapMinus", 50, -
M_PI,
M_PI);
934 meMETPhiPhotonsBarrel = ibooker.
book1D(
"METPhiPhotonsBarrel",
"METPhi_PFPhotonsBarrel", 50, -
M_PI,
M_PI);
935 meMETPhiPhotonsEndcapPlus =
936 ibooker.
book1D(
"METPhiPhotonsEndcapPlus",
"METPhi_PFPhotonsEndcapPlus", 50, -
M_PI,
M_PI);
937 meMETPhiPhotonsEndcapMinus =
938 ibooker.
book1D(
"METPhiPhotonsEndcapMinus",
"METPhi_PFPhotonsEndcapMinus", 50, -
M_PI,
M_PI);
939 meMETPhiHFHadronsPlus = ibooker.
book1D(
"METPhiHFHadronsPlus",
"METPhi_PFHFHadronsPlus", 50, -
M_PI,
M_PI);
940 meMETPhiHFHadronsMinus = ibooker.
book1D(
"METPhiHFHadronsMinus",
"METPhi_PFHFHadronsMinus", 50, -
M_PI,
M_PI);
941 meMETPhiHFEGammasPlus = ibooker.
book1D(
"METPhiHFEGammasPlus",
"METPhi_PFHFEGammasPlus", 50, -
M_PI,
M_PI);
942 meMETPhiHFEGammasMinus = ibooker.
book1D(
"METPhiHFEGammasMinus",
"METPhi_PFHFEGammasMinus", 50, -
M_PI,
M_PI);
944 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiChargedHadronsBarrel",
945 meMETPhiChargedHadronsBarrel));
946 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiChargedHadronsEndcapPlus",
947 meMETPhiChargedHadronsEndcapPlus));
948 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiChargedHadronsEndcapMinus",
949 meMETPhiChargedHadronsEndcapMinus));
950 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiNeutralHadronsBarrel",
951 meMETPhiNeutralHadronsBarrel));
952 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus",
953 meMETPhiNeutralHadronsEndcapPlus));
954 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus",
955 meMETPhiNeutralHadronsEndcapMinus));
957 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsBarrel", meMETPhiPhotonsBarrel));
958 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsEndcapPlus",
959 meMETPhiPhotonsEndcapPlus));
960 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiPhotonsEndcapMinus",
961 meMETPhiPhotonsEndcapMinus));
963 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFHadronsPlus", meMETPhiHFHadronsPlus));
965 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFHadronsMinus", meMETPhiHFHadronsMinus));
967 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFEGammasPlus", meMETPhiHFEGammasPlus));
969 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METPhiHFEGammasMinus", meMETPhiHFEGammasMinus));
972 if (fillPFCandPlots && fillCandidateMap_histos) {
973 if (!profilePFCand_x_.empty()) {
974 etaMinPFCand_.clear();
975 etaMaxPFCand_.clear();
977 countsPFCand_.clear();
980 profilePFCand_x_.clear();
981 profilePFCand_y_.clear();
982 profilePFCand_x_name_.clear();
983 profilePFCand_y_name_.clear();
985 for (std::vector<edm::ParameterSet>::const_iterator
v = diagnosticsParameters_.begin();
986 v != diagnosticsParameters_.end();
988 double etaMinPFCand =
v->getParameter<
double>(
"etaMin");
989 double etaMaxPFCand =
v->getParameter<
double>(
"etaMax");
990 int nMinPFCand =
v->getParameter<
int>(
"nMin");
991 int nMaxPFCand =
v->getParameter<
int>(
"nMax");
992 int nbinsPFCand =
v->getParameter<
double>(
"nbins");
995 etaMinPFCand_.push_back(etaMinPFCand);
996 etaMaxPFCand_.push_back(etaMaxPFCand);
997 typePFCand_.push_back(
v->getParameter<
int>(
"type"));
998 countsPFCand_.push_back(0);
999 MExPFCand_.push_back(0.);
1000 MEyPFCand_.push_back(0.);
1002 profilePFCand_x_.push_back(
1011 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
1012 DirName +
"/" + profilePFCand_x_name_[profilePFCand_x_name_.size() - 1],
1013 profilePFCand_x_[profilePFCand_x_.size() - 1]));
1014 profilePFCand_y_.push_back(
1023 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
1024 DirName +
"/" + profilePFCand_y_name_[profilePFCand_y_name_.size() - 1],
1025 profilePFCand_y_[profilePFCand_y_.size() - 1]));
1029 if (isMiniAODMet_) {
1030 if (fillPFCandPlots &&
1031 fillCandidateMap_histos) {
1032 if (!profilePFCand_x_.empty()) {
1033 etaMinPFCand_.clear();
1034 etaMaxPFCand_.clear();
1035 typePFCand_.clear();
1036 countsPFCand_.clear();
1037 profilePFCand_x_.clear();
1038 profilePFCand_y_.clear();
1040 for (std::vector<edm::ParameterSet>::const_iterator
v = diagnosticsParameters_.begin();
1041 v != diagnosticsParameters_.end();
1043 double etaMinPFCand =
v->getParameter<
double>(
"etaMin");
1044 double etaMaxPFCand =
v->getParameter<
double>(
"etaMax");
1046 etaMinPFCand_.push_back(etaMinPFCand);
1047 etaMaxPFCand_.push_back(etaMaxPFCand);
1048 typePFCand_.push_back(
v->getParameter<
int>(
"type"));
1049 countsPFCand_.push_back(0);
1050 MExPFCand_.push_back(0.);
1051 MEyPFCand_.push_back(0.);
1056 if (isPFMet_ || isMiniAODMet_) {
1057 mePhotonEtFraction = ibooker.
book1D(
"PfPhotonEtFraction",
"photonEtFraction()", 50, 0, 1);
1058 meNeutralHadronEtFraction = ibooker.
book1D(
"PfNeutralHadronEtFraction",
"neutralHadronEtFraction()", 50, 0, 1);
1059 meChargedHadronEtFraction = ibooker.
book1D(
"PfChargedHadronEtFraction",
"chargedHadronEtFraction()", 50, 0, 1);
1060 meHFHadronEtFraction = ibooker.
book1D(
"PfHFHadronEtFraction",
"HFHadronEtFraction()", 50, 0, 1);
1061 meHFEMEtFraction = ibooker.
book1D(
"PfHFEMEtFraction",
"HFEMEtFraction()", 50, 0, 1);
1064 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFraction", mePhotonEtFraction));
1065 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfNeutralHadronEtFraction",
1066 meNeutralHadronEtFraction));
1067 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfChargedHadronEtFraction",
1068 meChargedHadronEtFraction));
1070 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEtFraction", meHFHadronEtFraction));
1071 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEtFraction", meHFEMEtFraction));
1073 mePhotonEtFraction_profile =
1074 ibooker.
bookProfile(
"PfPhotonEtFraction_profile",
"photonEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1075 meNeutralHadronEtFraction_profile = ibooker.
bookProfile(
1076 "PfNeutralHadronEtFraction_profile",
"neutralHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1077 meChargedHadronEtFraction_profile = ibooker.
bookProfile(
1078 "PfChargedHadronEtFraction_profile",
"chargedHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1079 meHFHadronEtFraction_profile = ibooker.
bookProfile(
1080 "PfHFHadronEtFraction_profile",
"HFHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1081 meHFEMEtFraction_profile =
1082 ibooker.
bookProfile(
"PfHFEMEtFraction_profile",
"HFEMEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1084 meNeutralHadronEtFraction_profile->setAxisTitle(
"nvtx", 1);
1085 meChargedHadronEtFraction_profile->setAxisTitle(
"nvtx", 1);
1086 meHFHadronEtFraction_profile->setAxisTitle(
"nvtx", 1);
1087 meHFEMEtFraction_profile->setAxisTitle(
"nvtx", 1);
1089 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEtFraction_profile",
1090 mePhotonEtFraction_profile));
1091 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfNeutralHadronEtFraction_profile",
1092 meNeutralHadronEtFraction_profile));
1093 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfChargedHadronEtFraction_profile",
1094 meChargedHadronEtFraction_profile));
1095 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEtFraction_profile",
1096 meHFHadronEtFraction_profile));
1097 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEtFraction_profile",
1098 meHFEMEtFraction_profile));
1100 mePhotonEt = ibooker.
book1D(
"PfPhotonEt",
"photonEt()", 50, 0, 1000);
1101 meNeutralHadronEt = ibooker.
book1D(
"PfNeutralHadronEt",
"neutralHadronEt()", 50, 0, 1000);
1102 meElectronEt = ibooker.
book1D(
"PfElectronEt",
"electronEt()", 50, 0, 100);
1103 meChargedHadronEt = ibooker.
book1D(
"PfChargedHadronEt",
"chargedHadronEt()", 50, 0, 2000);
1104 meMuonEt = ibooker.
book1D(
"PfMuonEt",
"muonEt()", 50, 0, 100);
1105 meHFHadronEt = ibooker.
book1D(
"PfHFHadronEt",
"HFHadronEt()", 50, 0, 2000);
1106 meHFEMEt = ibooker.
book1D(
"PfHFEMEt",
"HFEMEt()", 50, 0, 1000);
1108 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEt", mePhotonEt));
1110 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfNeutralHadronEt", meNeutralHadronEt));
1111 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfElectronEt", meElectronEt));
1113 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfChargedHadronEt", meChargedHadronEt));
1114 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfMuonEt", meMuonEt));
1115 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEt", meHFHadronEt));
1116 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEt", meHFEMEt));
1118 mePhotonEt_profile =
1119 ibooker.
bookProfile(
"PfPhotonEt_profile",
"photonEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1121 "PfNeutralHadronEt_profile",
"neutralHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1123 "PfChargedHadronEt_profile",
"chargedHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1124 meHFHadronEt_profile =
1125 ibooker.
bookProfile(
"PfHFHadronEt_profile",
"HFHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1126 meHFEMEt_profile = ibooker.
bookProfile(
"PfHFEMEt_profile",
"HFEMEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1129 meNeutralHadronEt_profile->setAxisTitle(
"nvtx", 1);
1130 meChargedHadronEt_profile->setAxisTitle(
"nvtx", 1);
1131 meHFHadronEt_profile->setAxisTitle(
"nvtx", 1);
1132 meHFEMEt_profile->setAxisTitle(
"nvtx", 1);
1135 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfPhotonEt_profile", mePhotonEt_profile));
1136 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfNeutralHadronEt_profile",
1137 meNeutralHadronEt_profile));
1138 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfChargedHadronEt_profile",
1139 meChargedHadronEt_profile));
1141 std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFHadronEt_profile", meHFHadronEt_profile));
1142 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"PfHFEMEt_profile", meHFEMEt_profile));
1146 if (fill_met_high_level_histo) {
1147 hMExLS = ibooker.
book2D(
"MExLS",
"MEx_LS", 200, -200, 200, 250, 0., 2500.);
1149 hMExLS->setAxisTitle(
"Lumi Section", 2);
1150 hMExLS->setOption(
"colz");
1151 hMEyLS = ibooker.
book2D(
"MEyLS",
"MEy_LS", 200, -200, 200, 250, 0., 2500.);
1153 hMEyLS->setAxisTitle(
"Lumi Section", 2);
1154 hMEyLS->setOption(
"colz");
1155 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MExLS", hMExLS));
1156 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"MEyLS", hMEyLS));
1160 hMETRate = ibooker.
book1D(
"METRate",
"METRate", 200, 0, 1000);
1161 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
DirName +
"/" +
"METRate", hMETRate));
1164 lumisecME = ibooker.
book1D(
"lumisec",
"lumisec", 2501, -1., 2500.);
1165 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
"JetMET/lumisec", lumisecME));
1172 for (
CItAlgo techTrig =
menu->gtTechnicalTriggerMap().begin(); techTrig !=
menu->gtTechnicalTriggerMap().end();
1174 if ((techTrig->second).algoName() == m_l1algoname_) {
1175 m_bitAlgTechTrig_ = (techTrig->second).algoBitNumber();
1183 if (hltConfig_.init(iRun, iSetup, triggerResultsLabel_.process(), changed)) {
1195 std::cout <<
"HLTEventAnalyzerAOD::analyze:" 1196 <<
" config extraction failure with process name " << triggerResultsLabel_.process() << std::endl;
1200 for (std::vector<GenericTriggerEventFlag*>::const_iterator
it = triggerFolderEventFlag_.begin();
1201 it != triggerFolderEventFlag_.end();
1203 int pos =
it - triggerFolderEventFlag_.begin();
1205 (*it)->initRun(iRun, iSetup);
1206 if (triggerSelectedSubFolders_[
pos].exists(
std::string(
"hltDBKey"))) {
1207 if ((*it)->expressionsFromDB((*it)->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
1208 triggerFolderExpr_[
pos] = (*it)->expressionsFromDB((*it)->hltDBKey(), iSetup);
1212 if (isMiniAODMet_) {
1213 bool changed_filter =
true;
1214 std::vector<int> initializeFilter(8, -1);
1215 miniaodFilterIndex_ = initializeFilter;
1216 if (FilterhltConfig_.init(iRun, iSetup, METFilterMiniAODLabel_.process(), changed_filter)) {
1217 miniaodfilterdec = 0;
1218 for (
unsigned int i = 0;
i < FilterhltConfig_.size();
i++) {
1222 HBHENoiseStringMiniAOD;
1224 if (
found != std::string::npos) {
1225 miniaodFilterIndex_[0] =
i;
1227 search2 = CSCHaloResultTag_.label().substr(0, CSCHaloResultTag_.label().size() - 3);
1229 if (
found != std::string::npos) {
1230 miniaodFilterIndex_[1] =
i;
1232 search2 = eeBadScFilterTag_.label().substr(0, eeBadScFilterTag_.label().size() - 3);
1234 if (
found != std::string::npos) {
1235 miniaodFilterIndex_[2] =
i;
1237 search2 = HBHEIsoNoiseStringMiniAOD;
1239 if (
found != std::string::npos) {
1240 miniaodFilterIndex_[3] =
i;
1242 search2 = CSCHalo2015ResultTag_.label().substr(0, CSCHalo2015ResultTag_.label().size() - 3);
1244 if (
found != std::string::npos) {
1245 miniaodFilterIndex_[4] =
i;
1247 search2 = EcalDeadCellTriggerTag_.label().substr(0, EcalDeadCellTriggerTag_.label().size() - 3);
1249 if (
found != std::string::npos) {
1250 miniaodFilterIndex_[5] =
i;
1252 search2 = EcalDeadCellBoundaryTag_.label().substr(0, EcalDeadCellBoundaryTag_.label().size() - 3);
1254 if (
found != std::string::npos) {
1255 miniaodFilterIndex_[6] =
i;
1257 search2 = HcalStripHaloTag_.label().substr(0, HcalStripHaloTag_.label().size() - 3);
1259 if (
found != std::string::npos) {
1260 miniaodFilterIndex_[7] =
i;
1263 }
else if (FilterhltConfig_.init(iRun, iSetup, METFilterMiniAODLabel2_.process(), changed_filter)) {
1264 miniaodfilterdec = 1;
1265 for (
unsigned int i = 0;
i < FilterhltConfig_.size();
i++) {
1269 HBHENoiseStringMiniAOD;
1271 if (
found != std::string::npos) {
1272 miniaodFilterIndex_[0] =
i;
1274 search2 = CSCHaloResultTag_.label().substr(0, CSCHaloResultTag_.label().size() - 3);
1276 if (
found != std::string::npos) {
1277 miniaodFilterIndex_[1] =
i;
1279 search2 = eeBadScFilterTag_.label().substr(0, eeBadScFilterTag_.label().size() - 3);
1281 if (
found != std::string::npos) {
1282 miniaodFilterIndex_[2] =
i;
1284 search2 = HBHEIsoNoiseStringMiniAOD;
1286 if (
found != std::string::npos) {
1287 miniaodFilterIndex_[3] =
i;
1289 search2 = CSCHalo2015ResultTag_.label().substr(0, CSCHalo2015ResultTag_.label().size() - 3);
1291 if (
found != std::string::npos) {
1292 miniaodFilterIndex_[4] =
i;
1294 search2 = EcalDeadCellTriggerTag_.label().substr(0, EcalDeadCellTriggerTag_.label().size() - 3);
1296 if (
found != std::string::npos) {
1297 miniaodFilterIndex_[5] =
i;
1299 search2 = EcalDeadCellBoundaryTag_.label().substr(0, EcalDeadCellBoundaryTag_.label().size() - 3);
1301 if (
found != std::string::npos) {
1302 miniaodFilterIndex_[6] =
i;
1304 search2 = HcalStripHaloTag_.label().substr(0, HcalStripHaloTag_.label().size() - 3);
1306 if (
found != std::string::npos) {
1307 miniaodFilterIndex_[7] =
i;
1312 <<
"nothing found with both RECO and reRECO label" << std::endl;
1325 meLumiSec = map_dijet_MEs[
"JetMET/lumisec"];
1328 int totlssecsum = 0;
1329 double totltime = 0.;
1331 tlumisec = meLumiSec->
getTH1F();
1336 for (
int i = 0;
i < (tlumisec->GetNbinsX());
i++) {
1337 if (tlumisec->GetBinContent(
i) != 0) {
1339 totlssecsum += tlumisec->GetBinContent(
i);
1342 int num_per_ls = (double)totlssecsum / (
double)totlsec;
1343 totlsec = totlsec + tlumisec->GetBinContent(tlumisec->GetNbinsX() + 1) / (
double)num_per_ls;
1344 totltime = double(totlsec * 90);
1355 for (std::vector<std::string>::const_iterator ic = folderNames_.begin(); ic != folderNames_.end(); ic++) {
1358 makeRatePlot(
DirName, totltime);
1359 for (std::vector<GenericTriggerEventFlag*>::const_iterator
it = triggerFolderEventFlag_.begin();
1360 it != triggerFolderEventFlag_.end();
1362 int pos =
it - triggerFolderEventFlag_.begin();
1364 makeRatePlot(
DirName +
"/" + triggerFolderLabels_[
pos], totltime);
1379 if (meMET && mMETRate) {
1384 tMETRate = (TH1F*)tMET->Clone(
"METRateHist");
1385 for (
int i = tMETRate->GetNbinsX() - 1;
i >= 0;
i--) {
1386 tMETRate->SetBinContent(
i + 1, tMETRate->GetBinContent(
i + 2) + tMET->GetBinContent(
i + 1));
1388 for (
int i = 0;
i < tMETRate->GetNbinsX();
i++) {
1389 tMETRate->SetBinContent(
i + 1, tMETRate->GetBinContent(
i + 1) / double(totltime));
1399 int myLuminosityBlock;
1400 myLuminosityBlock =
iEvent.luminosityBlock();
1401 if (fill_met_high_level_histo) {
1402 lumisecME = map_dijet_MEs[
"JetMET/lumisec"];
1403 if (lumisecME && lumisecME->getRootObject())
1404 lumisecME->Fill(myLuminosityBlock);
1407 if (myLuminosityBlock < LSBegin_)
1409 if (myLuminosityBlock > LSEnd_ && LSEnd_ > 0)
1413 std::cout <<
"METAnalyzer analyze" << std::endl;
1429 std::vector<int> triggerFolderDecisions;
1430 triggerFolderDecisions_ = std::vector<int>(triggerFolderEventFlag_.size(), 0);
1438 int ntrigs = (*triggerResults).size();
1440 std::cout <<
"ntrigs=" << ntrigs << std::endl;
1442 for (std::vector<GenericTriggerEventFlag*>::const_iterator
it = triggerFolderEventFlag_.begin();
1443 it != triggerFolderEventFlag_.end();
1445 unsigned int pos =
it - triggerFolderEventFlag_.begin();
1446 bool fd = (*it)->accept(
iEvent, iSetup);
1447 triggerFolderDecisions_[
pos] =
fd;
1465 iEvent.getByToken(caloMetToken_, calometcoll);
1470 iEvent.getByToken(pfMetToken_, pfmetcoll);
1474 if (isMiniAODMet_) {
1475 iEvent.getByToken(patMetToken_, patmetcoll);
1480 const MET*
met =
nullptr;
1482 const PFMET* pfmet =
nullptr;
1483 const CaloMET* calomet =
nullptr;
1488 assert(!pfmetcoll->empty());
1489 met = &(pfmetcoll->front());
1490 pfmet = &(pfmetcoll->front());
1493 assert(!calometcoll->empty());
1494 met = &(calometcoll->front());
1495 calomet = &(calometcoll->front());
1497 if (isMiniAODMet_) {
1498 assert(!patmetcoll->empty());
1499 met = &(patmetcoll->front());
1500 patmet = &(patmetcoll->front());
1503 LogTrace(
"METAnalyzer") <<
"[METAnalyzer] Call to the MET analyzer";
1525 bool bJetID =
false;
1526 bool bDiJetID =
false;
1540 LogDebug(
"") <<
"METAnalyzer: Could not find calojet product" << std::endl;
1542 std::cout <<
"METAnalyzer: Could not find calojet product" << std::endl;
1559 iEvent.getByToken(jetID_ValueMapToken_, jetID_ValueMap_Handle);
1563 if (isMiniAODMet_) {
1566 LogDebug(
"") <<
"METAnalyzer: Could not find patjet product" << std::endl;
1568 std::cout <<
"METAnalyzer: Could not find patjet product" << std::endl;
1576 LogDebug(
"") <<
"METAnalyzer: Could not find pfjet product" << std::endl;
1578 std::cout <<
"METAnalyzer: Could not find pfjet product" << std::endl;
1580 collsize =
pfJets->size();
1583 unsigned int ind1 = -1;
1585 bool pass_jetID1 =
false;
1586 unsigned int ind2 = -1;
1588 bool pass_jetID2 =
false;
1591 bool pass_correction_flag =
false;
1592 if (!isMiniAODMet_) {
1593 iEvent.getByToken(jetCorrectorToken_, jetCorr);
1595 pass_correction_flag =
true;
1598 pass_correction_flag =
true;
1601 for (
int ijet = 0; ijet < collsize; ijet++) {
1602 double pt_jet = -10;
1604 bool iscleaned =
false;
1605 if (pass_correction_flag) {
1617 pt_jet =
scale * (*caloJets)[ijet].pt();
1618 if (pt_jet > ptThreshold_) {
1621 reco::JetID jetID = (*jetID_ValueMap_Handle)[calojetref];
1622 iscleaned = jetIDFunctorLoose((*
caloJets)[ijet], jetID);
1644 pt_jet =
scale * (*pfJets)[ijet].pt();
1645 if (pt_jet > ptThreshold_) {
1646 iscleaned = pfjetIDFunctorLoose((*
pfJets)[ijet]);
1649 if (isMiniAODMet_) {
1650 pt_jet = (*patJets)[ijet].pt();
1651 if (pt_jet > ptThreshold_) {
1652 pat::strbitset stringbitset = pfjetIDFunctorLoose.getBitTemplate();
1653 iscleaned = pfjetIDFunctorLoose((*
patJets)[ijet], stringbitset);
1662 pass_jetID2 = pass_jetID1;
1665 pass_jetID1 = iscleaned;
1666 }
else if (pt_jet >
pt2) {
1669 pass_jetID2 = iscleaned;
1672 if (pass_jetID1 && pass_jetID2) {
1681 dphi = fabs((*
pfJets)[ind1].phi() - (*
pfJets)[ind2].phi());
1683 if (isMiniAODMet_) {
1686 if (dphi > acos(-1.)) {
1687 dphi = 2 * acos(-1.) - dphi;
1697 iEvent.getByToken(vertexToken_, vertexHandle);
1699 if (!vertexHandle.
isValid()) {
1700 LogDebug(
"") <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1702 std::cout <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1709 bool bPrimaryVertex = (bypassAllPVChecks_ || (numPV_ > 0));
1711 bool bZJets =
false;
1718 double pt_muon0 = -1;
1719 double pt_muon1 = -1;
1724 for (
unsigned int i = 0;
i <
Muons->size();
i++) {
1725 bool pass_muon_id =
false;
1726 bool pass_muon_iso =
false;
1728 double dz = fabs((*
Muons)[
i].muonBestTrack()->
dz());
1734 if ((*
Muons)[
i].isGlobalMuon() && (*
Muons)[
i].isPFMuon() &&
1736 (*
Muons)[
i].numberOfMatchedStations() > 1 &&
dxy < 0.2 && (*
Muons)[
i].numberOfMatchedStations() > 1 &&
1738 (*
Muons)[
i].
innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5) {
1739 pass_muon_id =
true;
1743 ((*Muons)[
i].pfIsolationR04().sumChargedHadronPt +
1748 if (muonIsoPFdb < 0.12) {
1749 pass_muon_iso =
true;
1752 if (pass_muon_id && pass_muon_iso) {
1754 mu_index1 = mu_index0;
1755 pt_muon1 = pt_muon0;
1757 pt_muon0 = (*Muons)[
i].pt();
1758 }
else if ((*
Muons)[
i].
pt() > pt_muon1) {
1760 pt_muon1 = (*Muons)[
i].pt();
1765 if (mu_index0 >= 0 && mu_index1 >= 0) {
1767 zCand = (*Muons)[mu_index0].polarP4() + (*Muons)[mu_index1].polarP4();
1768 if (fabs(zCand.M() - 91.) < 20) {
1778 iEvent.getByToken(gtToken_, gtReadoutRecord);
1780 bool techTriggerResultBxM2 =
false;
1781 bool techTriggerResultBxM1 =
false;
1782 bool techTriggerResultBx0 =
false;
1784 if (!gtReadoutRecord.
isValid()) {
1785 LogDebug(
"") <<
"METAnalyzer: Could not find GT readout record" << std::endl;
1787 std::cout <<
"METAnalyzer: Could not find GT readout record product" << std::endl;
1795 if (m_bitAlgTechTrig_ > -1 && !technicalTriggerWordBeforeMaskBx0.empty()) {
1796 techTriggerResultBx0 = technicalTriggerWordBeforeMaskBx0.at(m_bitAlgTechTrig_);
1797 if (techTriggerResultBx0 != 0) {
1798 techTriggerResultBxM2 = technicalTriggerWordBeforeMaskBxM2.at(m_bitAlgTechTrig_);
1799 techTriggerResultBxM1 = technicalTriggerWordBeforeMaskBxM1.at(m_bitAlgTechTrig_);
1804 std::vector<bool> trigger_flag(4,
false);
1805 if (techTriggerResultBx0 && techTriggerResultBxM2 &&
1806 techTriggerResultBxM1) {
1807 trigger_flag[0] =
true;
1809 if (techTriggerResultBx0 && techTriggerResultBxM1) {
1810 trigger_flag[1] =
true;
1812 if (techTriggerResultBx0 && !techTriggerResultBxM1) {
1813 trigger_flag[2] =
true;
1815 if (techTriggerResultBx0 && !techTriggerResultBxM2 &&
1816 !techTriggerResultBxM1) {
1817 trigger_flag[3] =
true;
1819 std::vector<bool> filter_decisions(
1821 if (!isMiniAODMet_ &&
1824 iEvent.getByToken(hbheNoiseFilterResultToken_, HBHENoiseFilterResultHandle);
1825 if (!HBHENoiseFilterResultHandle.
isValid()) {
1826 LogDebug(
"") <<
"METAnalyzer: Could not find HBHENoiseFilterResult" << std::endl;
1828 std::cout <<
"METAnalyzer: Could not find HBHENoiseFilterResult" << std::endl;
1830 filter_decisions[0] = *HBHENoiseFilterResultHandle;
1832 iEvent.getByToken(CSCHaloResultToken_, CSCTightHaloFilterResultHandle);
1833 if (!CSCTightHaloFilterResultHandle.
isValid()) {
1834 LogDebug(
"") <<
"METAnalyzer: Could not find CSCTightHaloFilterResultHandle" << std::endl;
1836 std::cout <<
"METAnalyzer: CSCTightHaloFilterResultHandle" << std::endl;
1838 filter_decisions[1] = *CSCTightHaloFilterResultHandle;
1840 iEvent.getByToken(eeBadScFilterToken_, eeBadScFilterResultHandle);
1841 if (!eeBadScFilterResultHandle.
isValid()) {
1842 LogDebug(
"") <<
"METAnalyzer: Could not find eeBadScFilterResultHandle" << std::endl;
1844 std::cout <<
"METAnalyzer: eeBadScFilterResultHandle" << std::endl;
1846 filter_decisions[2] = *eeBadScFilterResultHandle;
1848 iEvent.getByToken(hbheIsoNoiseFilterResultToken_, HBHENoiseIsoFilterResultHandle);
1849 if (!HBHENoiseIsoFilterResultHandle.
isValid()) {
1850 LogDebug(
"") <<
"METAnalyzer: Could not find HBHENoiseIsoFilterResult" << std::endl;
1852 std::cout <<
"METAnalyzer: Could not find HBHENoiseIsoFilterResult" << std::endl;
1854 filter_decisions[3] = *HBHENoiseIsoFilterResultHandle;
1856 iEvent.getByToken(CSCHalo2015ResultToken_, CSCTightHalo2015FilterResultHandle);
1857 if (!CSCTightHalo2015FilterResultHandle.
isValid()) {
1858 LogDebug(
"") <<
"METAnalyzer: Could not find CSCTightHalo2015FilterResultHandle" << std::endl;
1860 std::cout <<
"METAnalyzer: CSCTightHalo2015FilterResultHandle" << std::endl;
1862 filter_decisions[4] = *CSCTightHalo2015FilterResultHandle;
1864 iEvent.getByToken(EcalDeadCellTriggerToken_, EcalDeadCellTriggerFilterResultHandle);
1865 if (!EcalDeadCellTriggerFilterResultHandle.
isValid()) {
1866 LogDebug(
"") <<
"METAnalyzer: Could not find EcalDeadCellTriggerFilterResultHandle" << std::endl;
1868 std::cout <<
"METAnalyzer: EcalDeadCellTriggerFilterResultHandle" << std::endl;
1870 filter_decisions[5] = *EcalDeadCellTriggerFilterResultHandle;
1872 iEvent.getByToken(EcalDeadCellBoundaryToken_, EcalDeadCellBoundaryHandle);
1873 if (!EcalDeadCellBoundaryHandle.
isValid()) {
1874 LogDebug(
"") <<
"METAnalyzer: Could not find EcalDeadCellBoundaryHandle" << std::endl;
1876 std::cout <<
"METAnalyzer: EcalDeadCellBoundaryHandle" << std::endl;
1878 filter_decisions[6] = *EcalDeadCellBoundaryHandle;
1880 iEvent.getByToken(HcalStripHaloToken_, HcalStripHaloFilterHandle);
1881 if (!HcalStripHaloFilterHandle.
isValid()) {
1882 LogDebug(
"") <<
"METAnalyzer: Could not find CSCTightHalo2015FilterResultHandle" << std::endl;
1884 std::cout <<
"METAnalyzer: CSCTightHalo2015FilterResultHandle" << std::endl;
1886 filter_decisions[7] = *HcalStripHaloFilterHandle;
1887 }
else if (isMiniAODMet_) {
1890 iEvent.getByToken(METFilterMiniAODToken_, metFilterResults);
1891 if (metFilterResults.
isValid()) {
1892 if (miniaodFilterIndex_[0] != -1) {
1893 filter_decisions[0] = metFilterResults->
accept(miniaodFilterIndex_[0]);
1895 if (miniaodFilterIndex_[1] != -1) {
1896 filter_decisions[1] = metFilterResults->
accept(miniaodFilterIndex_[1]);
1898 if (miniaodFilterIndex_[2] != -1) {
1899 filter_decisions[2] = metFilterResults->
accept(miniaodFilterIndex_[2]);
1901 if (miniaodFilterIndex_[3] != -1) {
1902 filter_decisions[3] = metFilterResults->
accept(miniaodFilterIndex_[3]);
1904 if (miniaodFilterIndex_[4] != -1) {
1905 filter_decisions[4] = metFilterResults->
accept(miniaodFilterIndex_[4]);
1907 if (miniaodFilterIndex_[5] != -1) {
1908 filter_decisions[5] = metFilterResults->
accept(miniaodFilterIndex_[5]);
1910 if (miniaodFilterIndex_[6] != -1) {
1911 filter_decisions[6] = metFilterResults->
accept(miniaodFilterIndex_[6]);
1913 if (miniaodFilterIndex_[7] != -1) {
1914 filter_decisions[7] = metFilterResults->
accept(miniaodFilterIndex_[7]);
1917 iEvent.getByToken(METFilterMiniAODToken2_, metFilterResults);
1918 if (metFilterResults.
isValid()) {
1919 if (miniaodFilterIndex_[0] != -1) {
1920 filter_decisions[0] = metFilterResults->
accept(miniaodFilterIndex_[0]);
1922 if (miniaodFilterIndex_[1] != -1) {
1923 filter_decisions[1] = metFilterResults->
accept(miniaodFilterIndex_[1]);
1925 if (miniaodFilterIndex_[2] != -1) {
1926 filter_decisions[2] = metFilterResults->
accept(miniaodFilterIndex_[2]);
1928 if (miniaodFilterIndex_[3] != -1) {
1929 filter_decisions[3] = metFilterResults->
accept(miniaodFilterIndex_[3]);
1931 if (miniaodFilterIndex_[4] != -1) {
1932 filter_decisions[4] = metFilterResults->
accept(miniaodFilterIndex_[4]);
1934 if (miniaodFilterIndex_[5] != -1) {
1935 filter_decisions[5] = metFilterResults->
accept(miniaodFilterIndex_[5]);
1937 if (miniaodFilterIndex_[6] != -1) {
1938 filter_decisions[6] = metFilterResults->
accept(miniaodFilterIndex_[6]);
1940 if (miniaodFilterIndex_[7] != -1) {
1941 filter_decisions[7] = metFilterResults->
accept(miniaodFilterIndex_[7]);
1946 bool HBHENoiseFilterResultFlag = filter_decisions[0];
1949 bool bHBHENoiseFilter = HBHENoiseFilterResultFlag;
1952 bool bDCSFilter = (bypassAllDCSChecks_ || DCSFilter_->filter(
iEvent, iSetup));
1956 for (std::vector<std::string>::const_iterator ic = folderNames_.begin(); ic != folderNames_.end(); ic++) {
1957 bool pass_selection =
false;
1958 if ((*ic ==
"Uncleaned") && (isCaloMet_ || bPrimaryVertex)) {
1960 DirName_old +
"/" + *ic,
1969 pass_selection =
true;
1972 if ((*ic ==
"Cleaned") && bDCSFilter && bHBHENoiseFilter && bPrimaryVertex && bJetID) {
1974 DirName_old +
"/" + *ic,
1983 pass_selection =
true;
1985 if ((*ic ==
"DiJet") && bDCSFilter && bHBHENoiseFilter && bPrimaryVertex && bDiJetID) {
1987 DirName_old +
"/" + *ic,
1996 pass_selection =
true;
1998 if ((*ic ==
"ZJets") && bDCSFilter && bHBHENoiseFilter && bPrimaryVertex && bZJets) {
2000 DirName_old +
"/" + *ic,
2009 pass_selection =
true;
2011 if (pass_selection && isPFMet_) {
2012 DirName = DirName_old +
"/" + *ic;
2025 std::map<std::string, MonitorElement*>& map_of_MEs,
2026 std::vector<bool> techTriggerCase,
2027 std::vector<bool> METFilterDecision) {
2028 bool bLumiSecPlot = fill_met_high_level_histo;
2029 bool fillPFCandidatePlots =
false;
2030 if (
DirName.find(
"Cleaned") != std::string::npos) {
2031 fillPFCandidatePlots =
true;
2032 fillMonitorElement(
iEvent,
2042 fillPFCandidatePlots,
2045 for (
unsigned int i = 0;
i < triggerFolderLabels_.size();
i++) {
2046 fillPFCandidatePlots =
false;
2047 if (triggerFolderDecisions_[
i]) {
2048 fillMonitorElement(
iEvent,
2050 triggerFolderLabels_[
i],
2058 fillPFCandidatePlots,
2063 }
else if (
DirName.find(
"DiJet") != std::string::npos) {
2064 fillMonitorElement(
iEvent,
2074 fillPFCandidatePlots,
2077 for (
unsigned int i = 0;
i < triggerFolderLabels_.size();
i++) {
2078 if (triggerFolderDecisions_[
i])
2079 fillMonitorElement(
iEvent,
2081 triggerFolderLabels_[
i],
2089 fillPFCandidatePlots,
2093 }
else if (
DirName.find(
"ZJets") != std::string::npos) {
2094 fillMonitorElement(
iEvent,
2104 fillPFCandidatePlots,
2108 fillMonitorElement(
iEvent,
2118 fillPFCandidatePlots,
2133 std::map<std::string, MonitorElement*>& map_of_MEs,
2135 bool fillPFCandidatePlots,
2136 std::vector<bool> techTriggerCase,
2137 std::vector<bool> METFilterDecision) {
2138 bool do_only_Z_histograms =
false;
2139 if (
DirName.find(
"ZJets") != std::string::npos) {
2140 do_only_Z_histograms =
true;
2143 double u_x = -
met.px() - zCand.Px();
2144 double u_y = -
met.py() - zCand.Py();
2148 double u_perp =
sqrt(u_x * u_x + u_y * u_y);
2151 if (zCand.Pt() != 0) {
2152 e_Z_x = zCand.Px() / zCand.Pt();
2153 e_Z_y = zCand.Py() / zCand.Pt();
2155 u_par = u_x * e_Z_x + u_y * e_Z_y;
2156 u_perp = -e_Z_y * u_x + e_Z_x * u_y;
2158 meZJets_u_par = map_of_MEs[
DirName +
"/" +
"u_parallel_Z_inc"];
2159 if (meZJets_u_par && meZJets_u_par->getRootObject())
2160 meZJets_u_par->Fill(u_par);
2161 if (zCand.Pt() < 15) {
2162 meZJets_u_par_ZPt_0_15 = map_of_MEs[
DirName +
"/" +
"u_parallel_ZPt_0_15"];
2163 if (meZJets_u_par_ZPt_0_15 && meZJets_u_par_ZPt_0_15->getRootObject())
2164 meZJets_u_par_ZPt_0_15->Fill(u_par);
2165 }
else if (zCand.Pt() < 30) {
2166 meZJets_u_par_ZPt_15_30 = map_of_MEs[
DirName +
"/" +
"u_parallel_ZPt_15_30"];
2167 if (meZJets_u_par_ZPt_15_30 && meZJets_u_par_ZPt_15_30->getRootObject())
2168 meZJets_u_par_ZPt_15_30->Fill(u_par);
2169 }
else if (zCand.Pt() < 55) {
2170 meZJets_u_par_ZPt_30_55 = map_of_MEs[
DirName +
"/" +
"u_parallel_ZPt_30_55"];
2171 if (meZJets_u_par_ZPt_30_55 && meZJets_u_par_ZPt_30_55->getRootObject())
2172 meZJets_u_par_ZPt_30_55->Fill(u_par);
2173 }
else if (zCand.Pt() < 75) {
2174 meZJets_u_par_ZPt_55_75 = map_of_MEs[
DirName +
"/" +
"u_parallel_ZPt_55_75"];
2175 if (meZJets_u_par_ZPt_55_75 && meZJets_u_par_ZPt_55_75->getRootObject())
2176 meZJets_u_par_ZPt_55_75->Fill(u_par);
2177 }
else if (zCand.Pt() < 150) {
2178 meZJets_u_par_ZPt_75_150 = map_of_MEs[
DirName +
"/" +
"u_parallel_ZPt_75_150"];
2179 if (meZJets_u_par_ZPt_75_150 && meZJets_u_par_ZPt_75_150->getRootObject())
2180 meZJets_u_par_ZPt_75_150->Fill(u_par);
2181 }
else if (zCand.Pt() < 290) {
2182 meZJets_u_par_ZPt_150_290 = map_of_MEs[
DirName +
"/" +
"u_parallel_ZPt_150_290"];
2183 if (meZJets_u_par_ZPt_150_290 && meZJets_u_par_ZPt_150_290->getRootObject())
2184 meZJets_u_par_ZPt_150_290->Fill(u_par);
2186 meZJets_u_par_ZPt_290 = map_of_MEs[
DirName +
"/" +
"u_parallel_ZPt_290"];
2187 if (meZJets_u_par_ZPt_290 && meZJets_u_par_ZPt_290->getRootObject())
2188 meZJets_u_par_ZPt_290->Fill(u_par);
2191 meZJets_u_perp = map_of_MEs[
DirName +
"/" +
"u_perp_Z_inc"];
2192 if (meZJets_u_perp && meZJets_u_perp->getRootObject())
2193 meZJets_u_perp->Fill(u_perp);
2194 if (zCand.Pt() < 15) {
2195 meZJets_u_perp_ZPt_0_15 = map_of_MEs[
DirName +
"/" +
"u_perp_ZPt_0_15"];
2196 if (meZJets_u_perp_ZPt_0_15 && meZJets_u_perp_ZPt_0_15->getRootObject())
2197 meZJets_u_perp_ZPt_0_15->Fill(u_perp);
2198 }
else if (zCand.Pt() < 30) {
2199 meZJets_u_perp_ZPt_15_30 = map_of_MEs[
DirName +
"/" +
"u_perp_ZPt_15_30"];
2200 if (meZJets_u_perp_ZPt_15_30 && meZJets_u_perp_ZPt_15_30->getRootObject())
2201 meZJets_u_perp_ZPt_15_30->Fill(u_perp);
2202 }
else if (zCand.Pt() < 55) {
2203 meZJets_u_perp_ZPt_30_55 = map_of_MEs[
DirName +
"/" +
"u_perp_ZPt_30_55"];
2204 if (meZJets_u_perp_ZPt_30_55 && meZJets_u_perp_ZPt_30_55->getRootObject())
2205 meZJets_u_perp_ZPt_30_55->Fill(u_perp);
2206 }
else if (zCand.Pt() < 75) {
2207 meZJets_u_perp_ZPt_55_75 = map_of_MEs[
DirName +
"/" +
"u_perp_ZPt_55_75"];
2208 if (meZJets_u_perp_ZPt_55_75 && meZJets_u_perp_ZPt_55_75->getRootObject())
2209 meZJets_u_perp_ZPt_55_75->Fill(u_perp);
2210 }
else if (zCand.Pt() < 150) {
2211 meZJets_u_perp_ZPt_75_150 = map_of_MEs[
DirName +
"/" +
"u_perp_ZPt_75_150"];
2212 if (meZJets_u_perp_ZPt_75_150 && meZJets_u_perp_ZPt_75_150->getRootObject())
2213 meZJets_u_perp_ZPt_75_150->Fill(u_perp);
2214 }
else if (zCand.Pt() < 290) {
2215 meZJets_u_perp_ZPt_150_290 = map_of_MEs[
DirName +
"/" +
"u_perp_ZPt_150_290"];
2216 if (meZJets_u_perp_ZPt_150_290 && meZJets_u_perp_ZPt_150_290->getRootObject())
2217 meZJets_u_perp_ZPt_150_290->Fill(u_perp);
2219 meZJets_u_perp_ZPt_290 = map_of_MEs[
DirName +
"/" +
"u_perp_ZPt_290"];
2220 if (meZJets_u_perp_ZPt_290 && meZJets_u_perp_ZPt_290->getRootObject())
2221 meZJets_u_perp_ZPt_290->Fill(u_perp);
2224 if (!do_only_Z_histograms) {
2226 double SumET =
met.sumEt();
2227 double METSig =
met.mEtSig();
2230 double MEx =
met.px();
2231 double MEy =
met.py();
2232 double METPhi =
met.phi();
2234 int myLuminosityBlock;
2235 myLuminosityBlock =
iEvent.luminosityBlock();
2238 if (!subFolderName.empty()) {
2242 hMEx = map_of_MEs[
DirName +
"/" +
"MEx"];
2243 if (hMEx && hMEx->getRootObject())
2245 hMEy = map_of_MEs[
DirName +
"/" +
"MEy"];
2246 if (hMEy && hMEy->getRootObject())
2248 hMET = map_of_MEs[
DirName +
"/" +
"MET"];
2249 if (hMET && hMET->getRootObject())
2251 hMET_2 = map_of_MEs[
DirName +
"/" +
"MET_2"];
2252 if (hMET_2 && hMET_2->getRootObject())
2264 bool HBHENoiseFilterResult =
false;
2265 bool CSCTightHaloFilterResult =
false;
2266 bool eeBadScFilterResult =
false;
2267 bool HBHEIsoNoiseFilterResult =
false;
2268 bool CSCTightHalo2015FilterResult =
false;
2269 bool EcalDeadCellTriggerFilterResult =
false;
2270 bool EcalDeadCellBoundaryFilterResult =
false;
2271 bool HcalStripHaloFilterResult =
false;
2272 HBHENoiseFilterResult = METFilterDecision[0];
2273 if (HBHENoiseFilterResult) {
2274 hMET_HBHENoiseFilter = map_of_MEs[
DirName +
"/" +
"MET_HBHENoiseFilter"];
2275 if (hMET_HBHENoiseFilter && hMET_HBHENoiseFilter->getRootObject())
2276 hMET_HBHENoiseFilter->Fill(
MET);
2278 CSCTightHaloFilterResult = METFilterDecision[1];
2279 if (CSCTightHaloFilterResult) {
2280 hMET_CSCTightHaloFilter = map_of_MEs[
DirName +
"/" +
"MET_CSCTightHaloFilter"];
2281 if (hMET_CSCTightHaloFilter && hMET_CSCTightHaloFilter->getRootObject())
2282 hMET_CSCTightHaloFilter->Fill(
MET);
2284 eeBadScFilterResult = METFilterDecision[2];
2285 if (eeBadScFilterResult) {
2286 hMET_eeBadScFilter = map_of_MEs[
DirName +
"/" +
"MET_eeBadScFilter"];
2287 if (hMET_eeBadScFilter && hMET_eeBadScFilter->getRootObject())
2288 hMET_eeBadScFilter->Fill(
MET);
2290 HBHEIsoNoiseFilterResult = METFilterDecision[3];
2291 if (HBHEIsoNoiseFilterResult) {
2292 hMET_HBHEIsoNoiseFilter = map_of_MEs[
DirName +
"/" +
"MET_HBHEIsoNoiseFilter"];
2293 if (hMET_HBHEIsoNoiseFilter && hMET_HBHEIsoNoiseFilter->getRootObject())
2294 hMET_HBHEIsoNoiseFilter->Fill(
MET);
2296 CSCTightHalo2015FilterResult = METFilterDecision[4];
2297 if (CSCTightHalo2015FilterResult) {
2298 hMET_CSCTightHalo2015Filter = map_of_MEs[
DirName +
"/" +
"MET_CSCTightHalo2015Filter"];
2299 if (hMET_CSCTightHalo2015Filter && hMET_CSCTightHalo2015Filter->getRootObject())
2300 hMET_CSCTightHalo2015Filter->Fill(
MET);
2302 EcalDeadCellTriggerFilterResult = METFilterDecision[5];
2303 if (EcalDeadCellTriggerFilterResult) {
2304 hMET_EcalDeadCellTriggerFilter = map_of_MEs[
DirName +
"/" +
"MET_EcalDeadCellTriggerFilter"];
2305 if (hMET_EcalDeadCellTriggerFilter && hMET_EcalDeadCellTriggerFilter->getRootObject())
2306 hMET_EcalDeadCellTriggerFilter->Fill(
MET);
2308 EcalDeadCellBoundaryFilterResult = METFilterDecision[6];
2309 if (EcalDeadCellBoundaryFilterResult) {
2310 hMET_EcalDeadCellBoundaryFilter = map_of_MEs[
DirName +
"/" +
"MET_EcalDeadCellBoundaryFilter"];
2311 if (hMET_EcalDeadCellBoundaryFilter && hMET_EcalDeadCellBoundaryFilter->getRootObject())
2312 hMET_EcalDeadCellBoundaryFilter->Fill(
MET);
2314 HcalStripHaloFilterResult = METFilterDecision[7];
2315 if (HcalStripHaloFilterResult) {
2316 hMET_HcalStripHaloFilter = map_of_MEs[
DirName +
"/" +
"MET_HcalStripHaloFilter"];
2317 if (hMET_HcalStripHaloFilter && hMET_HcalStripHaloFilter->getRootObject())
2318 hMET_HcalStripHaloFilter->Fill(
MET);
2320 hMETPhi = map_of_MEs[
DirName +
"/" +
"METPhi"];
2321 if (hMETPhi && hMETPhi->getRootObject())
2322 hMETPhi->Fill(METPhi);
2323 hSumET = map_of_MEs[
DirName +
"/" +
"SumET"];
2324 if (hSumET && hSumET->getRootObject())
2325 hSumET->Fill(SumET);
2326 hMETSig = map_of_MEs[
DirName +
"/" +
"METSig"];
2327 if (hMETSig && hMETSig->getRootObject())
2328 hMETSig->Fill(METSig);
2329 hMET_logx = map_of_MEs[
DirName +
"/" +
"MET_logx"];
2330 if (hMET_logx && hMET_logx->getRootObject())
2331 hMET_logx->Fill(log10(
MET));
2332 hSumET_logx = map_of_MEs[
DirName +
"/" +
"SumET_logx"];
2333 if (hSumET_logx && hSumET_logx->getRootObject())
2334 hSumET_logx->Fill(log10(SumET));
2338 meMEx_profile = map_of_MEs[
DirName +
"/MEx_profile"];
2339 meMEy_profile = map_of_MEs[
DirName +
"/MEy_profile"];
2340 meMET_profile = map_of_MEs[
DirName +
"/MET_profile"];
2341 meSumET_profile = map_of_MEs[
DirName +
"/SumET_profile"];
2343 if (meMEx_profile && meMEx_profile->getRootObject())
2344 meMEx_profile->Fill(numPV_, MEx);
2345 if (meMEy_profile && meMEy_profile->getRootObject())
2346 meMEy_profile->Fill(numPV_, MEy);
2347 if (meMET_profile && meMET_profile->getRootObject())
2348 meMET_profile->Fill(numPV_,
MET);
2349 if (meSumET_profile && meSumET_profile->getRootObject())
2350 meSumET_profile->Fill(numPV_, SumET);
2360 double caloHadEtInHB = calomet->
hadEtInHB();
2361 double caloHadEtInHO = calomet->
hadEtInHO();
2362 double caloHadEtInHE = calomet->
hadEtInHE();
2363 double caloHadEtInHF = calomet->
hadEtInHF();
2364 double caloEmEtInEB = calomet->
emEtInEB();
2365 double caloEmEtInEE = calomet->
emEtInEE();
2366 double caloEmEtInHF = calomet->
emEtInHF();
2368 hCaloHadEtInHB = map_of_MEs[
DirName +
"/" +
"CaloHadEtInHB"];
2369 if (hCaloHadEtInHB && hCaloHadEtInHB->getRootObject())
2370 hCaloHadEtInHB->Fill(caloHadEtInHB);
2371 hCaloHadEtInHO = map_of_MEs[
DirName +
"/" +
"CaloHadEtInHO"];
2372 if (hCaloHadEtInHO && hCaloHadEtInHO->getRootObject())
2373 hCaloHadEtInHO->Fill(caloHadEtInHO);
2374 hCaloHadEtInHE = map_of_MEs[
DirName +
"/" +
"CaloHadEtInHE"];
2375 if (hCaloHadEtInHE && hCaloHadEtInHE->getRootObject())
2376 hCaloHadEtInHE->Fill(caloHadEtInHE);
2377 hCaloHadEtInHF = map_of_MEs[
DirName +
"/" +
"CaloHadEtInHF"];
2378 if (hCaloHadEtInHF && hCaloHadEtInHF->getRootObject())
2379 hCaloHadEtInHF->Fill(caloHadEtInHF);
2380 hCaloEmEtInEB = map_of_MEs[
DirName +
"/" +
"CaloEmEtInEB"];
2381 if (hCaloEmEtInEB && hCaloEmEtInEB->getRootObject())
2382 hCaloEmEtInEB->Fill(caloEmEtInEB);
2383 hCaloEmEtInEE = map_of_MEs[
DirName +
"/" +
"CaloEmEtInEE"];
2384 if (hCaloEmEtInEE && hCaloEmEtInEE->getRootObject())
2385 hCaloEmEtInEE->Fill(caloEmEtInEE);
2386 hCaloEmEtInHF = map_of_MEs[
DirName +
"/" +
"CaloEmEtInHF"];
2387 if (hCaloEmEtInHF && hCaloEmEtInHF->getRootObject())
2388 hCaloEmEtInHF->Fill(caloEmEtInHF);
2390 hCaloMETPhi020 = map_of_MEs[
DirName +
"/" +
"CaloMETPhi020"];
2391 if (
MET > 20. && hCaloMETPhi020 && hCaloMETPhi020->getRootObject()) {
2392 hCaloMETPhi020->Fill(METPhi);
2395 hCaloEtFractionHadronic = map_of_MEs[
DirName +
"/" +
"CaloEtFractionHadronic"];
2396 if (hCaloEtFractionHadronic && hCaloEtFractionHadronic->getRootObject())
2397 hCaloEtFractionHadronic->Fill(caloEtFractionHadronic);
2398 hCaloEmEtFraction = map_of_MEs[
DirName +
"/" +
"CaloEmEtFraction"];
2399 if (hCaloEmEtFraction && hCaloEmEtFraction->getRootObject())
2400 hCaloEmEtFraction->Fill(caloEmEtFraction);
2401 hCaloEmEtFraction020 = map_of_MEs[
DirName +
"/" +
"CaloEmEtFraction020"];
2402 if (
MET > 20. && hCaloEmEtFraction020 && hCaloEmEtFraction020->getRootObject())
2403 hCaloEmEtFraction020->Fill(caloEmEtFraction);
2406 if (fillPFCandidatePlots && fillCandidateMap_histos) {
2407 for (
unsigned int i = 0;
i < countsPFCand_.size();
i++) {
2408 countsPFCand_[
i] = 0;
2417 float pt_sum_CHF_Barrel = 0;
2418 float pt_sum_CHF_Endcap_plus = 0;
2419 float pt_sum_CHF_Endcap_minus = 0;
2420 float pt_sum_NHF_Barrel = 0;
2421 float pt_sum_NHF_Endcap_plus = 0;
2422 float pt_sum_NHF_Endcap_minus = 0;
2423 float pt_sum_PhF_Barrel = 0;
2424 float pt_sum_PhF_Endcap_plus = 0;
2425 float pt_sum_PhF_Endcap_minus = 0;
2426 float pt_sum_HFH_plus = 0;
2427 float pt_sum_HFH_minus = 0;
2428 float pt_sum_HFE_plus = 0;
2429 float pt_sum_HFE_minus = 0;
2431 float px_chargedHadronsBarrel = 0;
2432 float py_chargedHadronsBarrel = 0;
2433 float px_chargedHadronsEndcapPlus = 0;
2434 float py_chargedHadronsEndcapPlus = 0;
2435 float px_chargedHadronsEndcapMinus = 0;
2436 float py_chargedHadronsEndcapMinus = 0;
2437 float px_neutralHadronsBarrel = 0;
2438 float py_neutralHadronsBarrel = 0;
2439 float px_neutralHadronsEndcapPlus = 0;
2440 float py_neutralHadronsEndcapPlus = 0;
2441 float px_neutralHadronsEndcapMinus = 0;
2442 float py_neutralHadronsEndcapMinus = 0;
2443 float px_PhotonsBarrel = 0;
2444 float py_PhotonsBarrel = 0;
2445 float px_PhotonsEndcapPlus = 0;
2446 float py_PhotonsEndcapPlus = 0;
2447 float px_PhotonsEndcapMinus = 0;
2448 float py_PhotonsEndcapMinus = 0;
2449 float px_HFHadronsPlus = 0;
2450 float py_HFHadronsPlus = 0;
2451 float px_HFHadronsMinus = 0;
2452 float py_HFHadronsMinus = 0;
2453 float px_HFEGammasPlus = 0;
2454 float py_HFEGammasPlus = 0;
2455 float px_HFEGammasMinus = 0;
2456 float py_HFEGammasMinus = 0;
2459 if (
c.particleId() == 1) {
2461 if (
c.eta() > (-3.0) &&
c.eta() < (-1.392)) {
2462 px_chargedHadronsEndcapMinus -=
c.px();
2463 py_chargedHadronsEndcapMinus -=
c.py();
2464 pt_sum_CHF_Endcap_minus +=
c.et();
2465 }
else if (
c.eta() >= (-1.392) &&
c.eta() <= 1.392) {
2466 px_chargedHadronsBarrel -=
c.px();
2467 py_chargedHadronsBarrel -=
c.py();
2468 pt_sum_CHF_Barrel +=
c.et();
2469 }
else if (
c.eta() > 1.392 &&
c.eta() < 3.0) {
2470 px_chargedHadronsEndcapPlus -=
c.px();
2471 py_chargedHadronsEndcapPlus -=
c.py();
2472 pt_sum_CHF_Endcap_plus +=
c.et();
2475 if (
c.particleId() == 5) {
2477 if (
c.eta() > (-3.0) &&
c.eta() < (-1.392)) {
2478 px_neutralHadronsEndcapMinus -=
c.px();
2479 py_neutralHadronsEndcapMinus -=
c.py();
2480 pt_sum_NHF_Endcap_minus +=
c.et();
2481 }
else if (
c.eta() >= (-1.392) &&
c.eta() <= 1.392) {
2482 px_neutralHadronsBarrel -=
c.px();
2483 py_neutralHadronsBarrel -=
c.py();
2484 pt_sum_NHF_Barrel +=
c.et();
2485 }
else if (
c.eta() > 1.392 &&
c.eta() < 3.0) {
2486 px_neutralHadronsEndcapPlus -=
c.px();
2487 py_neutralHadronsEndcapPlus -=
c.py();
2488 pt_sum_NHF_Endcap_plus +=
c.et();
2491 if (
c.particleId() == 4) {
2493 if (
c.eta() > (-3.0) &&
c.eta() < (-1.479)) {
2494 px_PhotonsEndcapMinus -=
c.px();
2495 py_PhotonsEndcapMinus -=
c.py();
2496 pt_sum_PhF_Endcap_minus +=
c.et();
2497 }
else if (
c.eta() >= (-1.479) &&
c.eta() <= 1.479) {
2498 px_PhotonsBarrel -=
c.px();
2499 py_PhotonsBarrel -=
c.py();
2500 pt_sum_PhF_Barrel +=
c.et();
2501 }
else if (
c.eta() > 1.479 &&
c.eta() < 3.0) {
2502 px_PhotonsEndcapPlus -=
c.px();
2503 py_PhotonsEndcapPlus -=
c.py();
2504 pt_sum_PhF_Endcap_plus +=
c.et();
2507 if (
c.particleId() == 6) {
2509 if (
c.eta() > (-5.20) &&
c.eta() < -2.901376) {
2510 pt_sum_HFH_minus +=
c.et();
2511 px_HFHadronsMinus -=
c.px();
2512 py_HFHadronsMinus -=
c.py();
2513 }
else if (
c.eta() > 2.901376 &&
c.eta() < 5.20) {
2514 px_HFHadronsPlus -=
c.px();
2515 py_HFHadronsPlus -=
c.py();
2516 pt_sum_HFH_plus +=
c.et();
2519 if (
c.particleId() == 7) {
2521 if (
c.eta() > (-5.20) &&
c.eta() < -2.901376) {
2522 pt_sum_HFE_minus +=
c.et();
2523 px_HFEGammasMinus -=
c.px();
2524 py_HFEGammasMinus -=
c.py();
2525 }
else if (
c.eta() > 2.901376 &&
c.eta() < 5.20) {
2526 px_HFEGammasPlus -=
c.px();
2527 py_HFEGammasPlus -=
c.py();
2528 pt_sum_HFE_plus +=
c.et();
2531 for (
unsigned int j = 0;
j < typePFCand_.size();
j++) {
2532 if (
c.particleId() == typePFCand_[
j]) {
2534 if (((
c.eta() > etaMinPFCand_[
j]) && (
c.eta() < etaMaxPFCand_[
j])) ||
2535 ((
c.eta() > (-etaMaxPFCand_[
j])) && (
c.eta() < (-etaMinPFCand_[
j])))) {
2536 countsPFCand_[
j] += 1;
2537 MExPFCand_[
j] -=
c.px();
2538 MEyPFCand_[
j] -=
c.py();
2544 for (
unsigned int j = 0;
j < countsPFCand_.size();
j++) {
2545 profilePFCand_x_[
j] = map_of_MEs[
DirName +
"/" + profilePFCand_x_name_[
j]];
2546 if (profilePFCand_x_[
j] && profilePFCand_x_[
j]->getRootObject())
2547 profilePFCand_x_[
j]->
Fill(countsPFCand_[
j], MExPFCand_[
j]);
2548 profilePFCand_y_[
j] = map_of_MEs[
DirName +
"/" + profilePFCand_y_name_[
j]];
2549 if (profilePFCand_y_[
j] && profilePFCand_y_[
j]->getRootObject())
2550 profilePFCand_y_[
j]->
Fill(countsPFCand_[
j], MEyPFCand_[
j]);
2552 meCHF_Barrel = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionBarrel"];
2553 if (meCHF_Barrel && meCHF_Barrel->getRootObject())
2554 meCHF_Barrel->Fill(pt_sum_CHF_Barrel / pfmet->
sumEt());
2555 meCHF_EndcapPlus = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus"];
2556 if (meCHF_EndcapPlus && meCHF_EndcapPlus->getRootObject())
2557 meCHF_EndcapPlus->Fill(pt_sum_CHF_Endcap_plus / pfmet->
sumEt());
2558 meCHF_EndcapMinus = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus"];
2559 if (meCHF_EndcapMinus && meCHF_EndcapMinus->getRootObject())
2560 meCHF_EndcapMinus->Fill(pt_sum_CHF_Endcap_minus / pfmet->
sumEt());
2561 meNHF_Barrel = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionBarrel"];
2562 if (meNHF_Barrel && meNHF_Barrel->getRootObject())
2563 meNHF_Barrel->Fill(pt_sum_NHF_Barrel / pfmet->
sumEt());
2564 meNHF_EndcapPlus = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus"];
2565 if (meNHF_EndcapPlus && meNHF_EndcapPlus->getRootObject())
2566 meNHF_EndcapPlus->Fill(pt_sum_NHF_Endcap_plus / pfmet->
sumEt());
2567 meNHF_EndcapMinus = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus"];
2568 if (meNHF_EndcapMinus && meNHF_EndcapMinus->getRootObject())
2569 meNHF_EndcapMinus->Fill(pt_sum_NHF_Endcap_minus / pfmet->
sumEt());
2570 mePhF_Barrel = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionBarrel"];
2571 if (mePhF_Barrel && mePhF_Barrel->getRootObject())
2572 mePhF_Barrel->Fill(pt_sum_PhF_Barrel / pfmet->
sumEt());
2573 mePhF_EndcapPlus = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionEndcapPlus"];
2574 if (mePhF_EndcapPlus && mePhF_EndcapPlus->getRootObject())
2575 mePhF_EndcapPlus->Fill(pt_sum_PhF_Endcap_plus / pfmet->
sumEt());
2576 mePhF_EndcapMinus = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionEndcapMinus"];
2577 if (mePhF_EndcapMinus && mePhF_EndcapMinus->getRootObject())
2578 mePhF_EndcapMinus->Fill(pt_sum_PhF_Endcap_minus / pfmet->
sumEt());
2579 meHFHadF_Plus = map_of_MEs[
DirName +
"/" +
"PfHFHadronEtFractionPlus"];
2580 if (meHFHadF_Plus && meHFHadF_Plus->getRootObject())
2581 meHFHadF_Plus->Fill(pt_sum_HFH_plus / pfmet->
sumEt());
2582 meHFHadF_Minus = map_of_MEs[
DirName +
"/" +
"PfHFHadronEtFractionMinus"];
2583 if (meHFHadF_Minus && meHFHadF_Minus->getRootObject())
2584 meHFHadF_Minus->Fill(pt_sum_HFH_minus / pfmet->
sumEt());
2585 meHFEMF_Plus = map_of_MEs[
DirName +
"/" +
"PfHFEMEtFractionPlus"];
2586 if (meHFEMF_Plus && meHFEMF_Plus->getRootObject())
2587 meHFEMF_Plus->Fill(pt_sum_HFE_plus / pfmet->
sumEt());
2588 meHFEMF_Minus = map_of_MEs[
DirName +
"/" +
"PfHFEMEtFractionMinus"];
2589 if (meHFEMF_Minus && meHFEMF_Minus->getRootObject())
2590 meHFEMF_Minus->Fill(pt_sum_HFE_minus / pfmet->
sumEt());
2594 if (pt_sum_CHF_Barrel) {
2595 meMETPhiChargedHadronsBarrel = map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsBarrel"];
2596 if (meMETPhiChargedHadronsBarrel && meMETPhiChargedHadronsBarrel->getRootObject())
2597 meMETPhiChargedHadronsBarrel->Fill(atan2(py_chargedHadronsBarrel, px_chargedHadronsBarrel));
2599 if (pt_sum_CHF_Endcap_plus) {
2600 meMETPhiChargedHadronsEndcapPlus = map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsEndcapPlus"];
2601 if (meMETPhiChargedHadronsEndcapPlus && meMETPhiChargedHadronsEndcapPlus->getRootObject())
2602 meMETPhiChargedHadronsEndcapPlus->Fill(atan2(py_chargedHadronsEndcapPlus, px_chargedHadronsEndcapPlus));
2604 if (pt_sum_CHF_Endcap_minus) {
2605 meMETPhiChargedHadronsEndcapMinus = map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsEndcapMinus"];
2606 if (meMETPhiChargedHadronsEndcapMinus && meMETPhiChargedHadronsEndcapMinus->getRootObject())
2607 meMETPhiChargedHadronsEndcapMinus->Fill(atan2(py_chargedHadronsEndcapMinus, px_chargedHadronsEndcapMinus));
2609 if (pt_sum_NHF_Barrel) {
2610 meMETPhiNeutralHadronsBarrel = map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsBarrel"];
2611 if (meMETPhiNeutralHadronsBarrel && meMETPhiNeutralHadronsBarrel->getRootObject())
2612 meMETPhiNeutralHadronsBarrel->Fill(atan2(py_neutralHadronsBarrel, px_neutralHadronsBarrel));
2614 if (pt_sum_NHF_Endcap_plus) {
2615 meMETPhiNeutralHadronsEndcapPlus = map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus"];
2616 if (meMETPhiNeutralHadronsEndcapPlus && meMETPhiNeutralHadronsEndcapPlus->getRootObject())
2617 meMETPhiNeutralHadronsEndcapPlus->Fill(atan2(py_neutralHadronsEndcapPlus, px_neutralHadronsEndcapPlus));
2619 if (pt_sum_NHF_Endcap_minus) {
2620 meMETPhiNeutralHadronsEndcapMinus = map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus"];
2621 if (meMETPhiNeutralHadronsEndcapMinus && meMETPhiNeutralHadronsEndcapMinus->getRootObject())
2622 meMETPhiNeutralHadronsEndcapMinus->Fill(atan2(py_neutralHadronsEndcapMinus, px_neutralHadronsEndcapMinus));
2624 if (pt_sum_PhF_Barrel) {
2625 meMETPhiPhotonsBarrel = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsBarrel"];
2626 if (meMETPhiPhotonsBarrel && meMETPhiPhotonsBarrel->getRootObject())
2627 meMETPhiPhotonsBarrel->Fill(atan2(py_PhotonsBarrel, px_PhotonsBarrel));
2629 if (pt_sum_PhF_Endcap_plus) {
2630 meMETPhiPhotonsEndcapPlus = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsEndcapPlus"];
2631 if (meMETPhiPhotonsEndcapPlus && meMETPhiPhotonsEndcapPlus->getRootObject())
2632 meMETPhiPhotonsEndcapPlus->Fill(atan2(py_PhotonsEndcapPlus, px_PhotonsEndcapPlus));
2634 if (pt_sum_PhF_Endcap_minus) {
2635 meMETPhiPhotonsEndcapMinus = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsEndcapMinus"];
2636 if (meMETPhiPhotonsEndcapMinus && meMETPhiPhotonsEndcapMinus->getRootObject())
2637 meMETPhiPhotonsEndcapMinus->Fill(atan2(py_PhotonsEndcapMinus, px_PhotonsEndcapMinus));
2639 if (pt_sum_HFH_plus) {
2640 meMETPhiHFHadronsPlus = map_of_MEs[
DirName +
"/" +
"METPhiHFHadronsPlus"];
2641 if (meMETPhiHFHadronsPlus && meMETPhiHFHadronsPlus->getRootObject())
2642 meMETPhiHFHadronsPlus->Fill(atan2(py_HFHadronsPlus, px_HFHadronsPlus));
2644 if (pt_sum_HFH_minus) {
2645 meMETPhiHFHadronsMinus = map_of_MEs[
DirName +
"/" +
"METPhiHFHadronsMinus"];
2646 if (meMETPhiHFHadronsMinus && meMETPhiHFHadronsMinus->getRootObject())
2647 meMETPhiHFHadronsMinus->Fill(atan2(py_HFHadronsMinus, px_HFHadronsMinus));
2649 if (pt_sum_HFE_plus) {
2650 meMETPhiHFEGammasPlus = map_of_MEs[
DirName +
"/" +
"METPhiHFEGammasPlus"];
2651 if (meMETPhiHFEGammasPlus && meMETPhiHFEGammasPlus->getRootObject())
2652 meMETPhiHFEGammasPlus->Fill(atan2(py_HFEGammasPlus, px_HFEGammasPlus));
2654 if (pt_sum_HFE_minus) {
2655 meMETPhiHFEGammasMinus = map_of_MEs[
DirName +
"/" +
"METPhiHFEGammasMinus"];
2656 if (meMETPhiHFEGammasMinus && meMETPhiHFEGammasMinus->getRootObject())
2657 meMETPhiHFEGammasMinus->Fill(atan2(py_HFEGammasMinus, px_HFEGammasMinus));
2719 if (techTriggerCase[1]) {
2720 meCHF_Barrel_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionBarrel_BXm1Filled"];
2721 if (meCHF_Barrel_BXm1Filled && meCHF_Barrel_BXm1Filled->getRootObject())
2722 meCHF_Barrel_BXm1Filled->Fill(pt_sum_CHF_Barrel / pfmet->
sumEt());
2723 meCHF_EndcapPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled"];
2724 if (meCHF_EndcapPlus_BXm1Filled && meCHF_EndcapPlus_BXm1Filled->getRootObject())
2725 meCHF_EndcapPlus_BXm1Filled->Fill(pt_sum_CHF_Endcap_plus / pfmet->
sumEt());
2726 meCHF_EndcapMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled"];
2727 if (meCHF_EndcapMinus_BXm1Filled && meCHF_EndcapMinus_BXm1Filled->getRootObject())
2728 meCHF_EndcapMinus_BXm1Filled->Fill(pt_sum_CHF_Endcap_minus / pfmet->
sumEt());
2729 meNHF_Barrel_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionBarrel_BXm1Filled"];
2730 if (meNHF_Barrel_BXm1Filled && meNHF_Barrel_BXm1Filled->getRootObject())
2731 meNHF_Barrel_BXm1Filled->Fill(pt_sum_NHF_Barrel / pfmet->
sumEt());
2732 meNHF_EndcapPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled"];
2733 if (meNHF_EndcapPlus_BXm1Filled && meNHF_EndcapPlus_BXm1Filled->getRootObject())
2734 meNHF_EndcapPlus_BXm1Filled->Fill(pt_sum_NHF_Endcap_plus / pfmet->
sumEt());
2735 meNHF_EndcapMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled"];
2736 if (meNHF_EndcapMinus_BXm1Filled && meNHF_EndcapMinus_BXm1Filled->getRootObject())
2737 meNHF_EndcapMinus_BXm1Filled->Fill(pt_sum_NHF_Endcap_minus / pfmet->
sumEt());
2738 mePhF_Barrel_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionBarrel_BXm1Filled"];
2739 if (mePhF_Barrel_BXm1Filled && mePhF_Barrel_BXm1Filled->getRootObject())
2740 mePhF_Barrel_BXm1Filled->Fill(pt_sum_PhF_Barrel / pfmet->
sumEt());
2741 mePhF_EndcapPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionEndcapPlus_BXm1Filled"];
2742 if (mePhF_EndcapPlus_BXm1Filled && mePhF_EndcapPlus_BXm1Filled->getRootObject())
2743 mePhF_EndcapPlus_BXm1Filled->Fill(pt_sum_PhF_Endcap_plus / pfmet->
sumEt());
2744 mePhF_EndcapMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionEndcapMinus_BXm1Filled"];
2745 if (mePhF_EndcapMinus_BXm1Filled && mePhF_EndcapMinus_BXm1Filled->getRootObject())
2746 mePhF_EndcapMinus_BXm1Filled->Fill(pt_sum_PhF_Endcap_minus / pfmet->
sumEt());
2747 meHFHadF_Plus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfHFHadronEtFractionPlus_BXm1Filled"];
2748 if (meHFHadF_Plus_BXm1Filled && meHFHadF_Plus_BXm1Filled->getRootObject())
2749 meHFHadF_Plus_BXm1Filled->Fill(pt_sum_HFH_plus / pfmet->
sumEt());
2750 meHFHadF_Minus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfHFHadronEtFractionMinus_BXm1Filled"];
2751 if (meHFHadF_Minus_BXm1Filled && meHFHadF_Minus_BXm1Filled->getRootObject())
2752 meHFHadF_Minus_BXm1Filled->Fill(pt_sum_HFH_minus / pfmet->
sumEt());
2753 meHFEMF_Plus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfHFEMEtFractionPlus_BXm1Filled"];
2754 if (meHFEMF_Plus_BXm1Filled && meHFEMF_Plus_BXm1Filled->getRootObject())
2755 meHFEMF_Plus_BXm1Filled->Fill(pt_sum_HFE_plus / pfmet->
sumEt());
2756 meHFEMF_Minus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfHFEMEtFractionMinus_BXm1Filled"];
2757 if (meHFEMF_Minus_BXm1Filled && meHFEMF_Minus_BXm1Filled->getRootObject())
2758 meHFEMF_Minus_BXm1Filled->Fill(pt_sum_HFE_minus / pfmet->
sumEt());
2759 mePhotonEtFraction_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFraction_BXm1Filled"];
2760 if (mePhotonEtFraction_BXm1Filled && mePhotonEtFraction_BXm1Filled->getRootObject())
2762 meNeutralHadronEtFraction_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFraction_BXm1Filled"];
2763 if (meNeutralHadronEtFraction_BXm1Filled && meNeutralHadronEtFraction_BXm1Filled->getRootObject())
2765 meChargedHadronEtFraction_BXm1Filled = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFraction_BXm1Filled"];
2766 if (meChargedHadronEtFraction_BXm1Filled && meChargedHadronEtFraction_BXm1Filled->getRootObject())
2768 meMET_BXm1Filled = map_of_MEs[
DirName +
"/" +
"MET_BXm1Filled"];
2769 if (meMET_BXm1Filled && meMET_BXm1Filled->getRootObject())
2770 meMET_BXm1Filled->Fill(pfmet->
pt());
2771 meSumET_BXm1Filled = map_of_MEs[
DirName +
"/" +
"SumET_BXm1Filled"];
2772 if (meSumET_BXm1Filled && meSumET_BXm1Filled->getRootObject())
2773 meSumET_BXm1Filled->Fill(pfmet->
sumEt());
2774 if (pt_sum_CHF_Barrel) {
2775 meMETPhiChargedHadronsBarrel_BXm1Filled =
2776 map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsBarrel_BXm1Filled"];
2777 if (meMETPhiChargedHadronsBarrel_BXm1Filled && meMETPhiChargedHadronsBarrel_BXm1Filled->getRootObject())
2778 meMETPhiChargedHadronsBarrel_BXm1Filled->Fill(atan2(py_chargedHadronsBarrel, px_chargedHadronsBarrel));
2780 if (pt_sum_CHF_Endcap_plus) {
2781 meMETPhiChargedHadronsEndcapPlus_BXm1Filled =
2782 map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsEndcapPlus_BXm1Filled"];
2783 if (meMETPhiChargedHadronsEndcapPlus_BXm1Filled &&
2784 meMETPhiChargedHadronsEndcapPlus_BXm1Filled->getRootObject())
2785 meMETPhiChargedHadronsEndcapPlus_BXm1Filled->Fill(
2786 atan2(py_chargedHadronsEndcapPlus, px_chargedHadronsEndcapPlus));
2788 if (pt_sum_CHF_Endcap_minus) {
2789 meMETPhiChargedHadronsEndcapMinus_BXm1Filled =
2790 map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsEndcapMinus_BXm1Filled"];
2791 if (meMETPhiChargedHadronsEndcapMinus_BXm1Filled &&
2792 meMETPhiChargedHadronsEndcapMinus_BXm1Filled->getRootObject())
2793 meMETPhiChargedHadronsEndcapMinus_BXm1Filled->Fill(
2794 atan2(py_chargedHadronsEndcapMinus, px_chargedHadronsEndcapMinus));
2796 if (pt_sum_NHF_Barrel) {
2797 meMETPhiNeutralHadronsBarrel_BXm1Filled =
2798 map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsBarrel_BXm1Filled"];
2799 if (meMETPhiNeutralHadronsBarrel_BXm1Filled && meMETPhiNeutralHadronsBarrel_BXm1Filled->getRootObject())
2800 meMETPhiNeutralHadronsBarrel_BXm1Filled->Fill(atan2(py_neutralHadronsBarrel, px_neutralHadronsBarrel));
2802 if (pt_sum_NHF_Endcap_plus) {
2803 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled =
2804 map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus_BXm1Filled"];
2805 if (meMETPhiNeutralHadronsEndcapPlus_BXm1Filled &&
2806 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled->getRootObject())
2807 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled->Fill(
2808 atan2(py_neutralHadronsEndcapPlus, px_neutralHadronsEndcapPlus));
2810 if (pt_sum_NHF_Endcap_minus) {
2811 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled =
2812 map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus_BXm1Filled"];
2813 if (meMETPhiNeutralHadronsEndcapMinus_BXm1Filled &&
2814 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled->getRootObject())
2815 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled->Fill(
2816 atan2(py_neutralHadronsEndcapMinus, px_neutralHadronsEndcapMinus));
2818 if (pt_sum_PhF_Barrel) {
2819 meMETPhiPhotonsBarrel_BXm1Filled = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsBarrel_BXm1Filled"];
2820 if (meMETPhiPhotonsBarrel_BXm1Filled && meMETPhiPhotonsBarrel_BXm1Filled->getRootObject())
2821 meMETPhiPhotonsBarrel_BXm1Filled->Fill(atan2(py_PhotonsBarrel, px_PhotonsBarrel));
2823 if (pt_sum_PhF_Endcap_plus) {
2824 meMETPhiPhotonsEndcapPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsEndcapPlus_BXm1Filled"];
2825 if (meMETPhiPhotonsEndcapPlus_BXm1Filled && meMETPhiPhotonsEndcapPlus_BXm1Filled->getRootObject())
2826 meMETPhiPhotonsEndcapPlus_BXm1Filled->Fill(atan2(py_PhotonsEndcapPlus, px_PhotonsEndcapPlus));
2828 if (pt_sum_PhF_Endcap_minus) {
2829 meMETPhiPhotonsEndcapMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsEndcapMinus_BXm1Filled"];
2830 if (meMETPhiPhotonsEndcapMinus_BXm1Filled && meMETPhiPhotonsEndcapMinus_BXm1Filled->getRootObject())
2831 meMETPhiPhotonsEndcapMinus_BXm1Filled->Fill(atan2(py_PhotonsEndcapMinus, px_PhotonsEndcapMinus));
2833 if (pt_sum_HFH_plus) {
2834 meMETPhiHFHadronsPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"METPhiHFHadronsPlus_BXm1Filled"];
2835 if (meMETPhiHFHadronsPlus_BXm1Filled && meMETPhiHFHadronsPlus_BXm1Filled->getRootObject())
2836 meMETPhiHFHadronsPlus_BXm1Filled->Fill(atan2(py_HFHadronsPlus, px_HFHadronsPlus));
2838 if (pt_sum_HFH_minus) {
2839 meMETPhiHFHadronsMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"METPhiHFHadronsMinus_BXm1Filled"];
2840 if (meMETPhiHFHadronsMinus_BXm1Filled && meMETPhiHFHadronsMinus_BXm1Filled->getRootObject())
2841 meMETPhiHFHadronsMinus_BXm1Filled->Fill(atan2(py_HFHadronsMinus, px_HFHadronsMinus));
2843 if (pt_sum_HFE_plus) {
2844 meMETPhiHFEGammasPlus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"METPhiHFEGammasPlus_BXm1Filled"];
2845 if (meMETPhiHFEGammasPlus_BXm1Filled && meMETPhiHFEGammasPlus_BXm1Filled->getRootObject())
2846 meMETPhiHFEGammasPlus_BXm1Filled->Fill(atan2(py_HFEGammasPlus, px_HFEGammasPlus));
2848 if (pt_sum_HFE_minus) {
2849 meMETPhiHFEGammasMinus_BXm1Filled = map_of_MEs[
DirName +
"/" +
"METPhiHFEGammasMinus_BXm1Filled"];
2850 if (meMETPhiHFEGammasMinus_BXm1Filled && meMETPhiHFEGammasMinus_BXm1Filled->getRootObject())
2851 meMETPhiHFEGammasMinus_BXm1Filled->Fill(atan2(py_HFEGammasMinus, px_HFEGammasMinus));
2913 if (techTriggerCase[2]) {
2914 meCHF_Barrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionBarrel_BXm1Empty"];
2915 if (meCHF_Barrel_BXm1Empty && meCHF_Barrel_BXm1Empty->getRootObject())
2916 meCHF_Barrel_BXm1Empty->Fill(pt_sum_CHF_Barrel / pfmet->
sumEt());
2917 meCHF_EndcapPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty"];
2918 if (meCHF_EndcapPlus_BXm1Empty && meCHF_EndcapPlus_BXm1Empty->getRootObject())
2919 meCHF_EndcapPlus_BXm1Empty->Fill(pt_sum_CHF_Endcap_plus / pfmet->
sumEt());
2920 meCHF_EndcapMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty"];
2921 if (meCHF_EndcapMinus_BXm1Empty && meCHF_EndcapMinus_BXm1Empty->getRootObject())
2922 meCHF_EndcapMinus_BXm1Empty->Fill(pt_sum_CHF_Endcap_minus / pfmet->
sumEt());
2923 meNHF_Barrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionBarrel_BXm1Empty"];
2924 if (meNHF_Barrel_BXm1Empty && meNHF_Barrel_BXm1Empty->getRootObject())
2925 meNHF_Barrel_BXm1Empty->Fill(pt_sum_NHF_Barrel / pfmet->
sumEt());
2926 meNHF_EndcapPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty"];
2927 if (meNHF_EndcapPlus_BXm1Empty && meNHF_EndcapPlus_BXm1Empty->getRootObject())
2928 meNHF_EndcapPlus_BXm1Empty->Fill(pt_sum_NHF_Endcap_plus / pfmet->
sumEt());
2929 meNHF_EndcapMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty"];
2930 if (meNHF_EndcapMinus_BXm1Empty && meNHF_EndcapMinus_BXm1Empty->getRootObject())
2931 meNHF_EndcapMinus_BXm1Empty->Fill(pt_sum_NHF_Endcap_minus / pfmet->
sumEt());
2932 mePhF_Barrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionBarrel_BXm1Empty"];
2933 if (mePhF_Barrel_BXm1Empty && mePhF_Barrel_BXm1Empty->getRootObject())
2934 mePhF_Barrel_BXm1Empty->Fill(pt_sum_PhF_Barrel / pfmet->
sumEt());
2935 mePhF_EndcapPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionEndcapPlus_BXm1Empty"];
2936 if (mePhF_EndcapPlus_BXm1Empty && mePhF_EndcapPlus_BXm1Empty->getRootObject())
2937 mePhF_EndcapPlus_BXm1Empty->Fill(pt_sum_PhF_Endcap_plus / pfmet->
sumEt());
2938 mePhF_EndcapMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFractionEndcapMinus_BXm1Empty"];
2939 if (mePhF_EndcapMinus_BXm1Empty && mePhF_EndcapMinus_BXm1Empty->getRootObject())
2940 mePhF_EndcapMinus_BXm1Empty->Fill(pt_sum_PhF_Endcap_minus / pfmet->
sumEt());
2941 meHFHadF_Plus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfHFHadronEtFractionPlus_BXm1Empty"];
2942 if (meHFHadF_Plus_BXm1Empty && meHFHadF_Plus_BXm1Empty->getRootObject())
2943 meHFHadF_Plus_BXm1Empty->Fill(pt_sum_HFH_plus / pfmet->
sumEt());
2944 meHFHadF_Minus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfHFHadronEtFractionMinus_BXm1Empty"];
2945 if (meHFHadF_Minus_BXm1Empty && meHFHadF_Minus_BXm1Empty->getRootObject())
2946 meHFHadF_Minus_BXm1Empty->Fill(pt_sum_HFH_minus / pfmet->
sumEt());
2947 meHFEMF_Plus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfHFEMEtFractionPlus_BXm1Empty"];
2948 if (meHFEMF_Plus_BXm1Empty && meHFEMF_Plus_BXm1Empty->getRootObject())
2949 meHFEMF_Plus_BXm1Empty->Fill(pt_sum_HFE_plus / pfmet->
sumEt());
2950 meHFEMF_Minus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfHFEMEtFractionMinus_BXm1Empty"];
2951 if (meHFEMF_Minus_BXm1Empty && meHFEMF_Minus_BXm1Empty->getRootObject())
2952 meHFEMF_Minus_BXm1Empty->Fill(pt_sum_HFE_minus / pfmet->
sumEt());
2953 mePhotonEtFraction_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfPhotonEtFraction_BXm1Empty"];
2954 if (mePhotonEtFraction_BXm1Empty && mePhotonEtFraction_BXm1Empty->getRootObject())
2956 meNeutralHadronEtFraction_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfNeutralHadronEtFraction_BXm1Empty"];
2957 if (meNeutralHadronEtFraction_BXm1Empty && meNeutralHadronEtFraction_BXm1Empty->getRootObject())
2959 meChargedHadronEtFraction_BXm1Empty = map_of_MEs[
DirName +
"/" +
"PfChargedHadronEtFraction_BXm1Empty"];
2960 if (meChargedHadronEtFraction_BXm1Empty && meChargedHadronEtFraction_BXm1Empty->getRootObject())
2962 meMET_BXm1Empty = map_of_MEs[
DirName +
"/" +
"MET_BXm1Empty"];
2963 if (meMET_BXm1Empty && meMET_BXm1Empty->getRootObject())
2964 meMET_BXm1Empty->Fill(pfmet->
pt());
2965 meSumET_BXm1Empty = map_of_MEs[
DirName +
"/" +
"SumET_BXm1Empty"];
2966 if (meSumET_BXm1Empty && meSumET_BXm1Empty->getRootObject())
2967 meSumET_BXm1Empty->Fill(pfmet->
sumEt());
2968 if (pt_sum_CHF_Barrel) {
2969 meMETPhiChargedHadronsBarrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsBarrel_BXm1Empty"];
2970 if (meMETPhiChargedHadronsBarrel_BXm1Empty && meMETPhiChargedHadronsBarrel_BXm1Empty->getRootObject())
2971 meMETPhiChargedHadronsBarrel_BXm1Empty->Fill(atan2(py_chargedHadronsBarrel, px_chargedHadronsBarrel));
2973 if (pt_sum_CHF_Endcap_plus) {
2974 meMETPhiChargedHadronsEndcapPlus_BXm1Empty =
2975 map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsEndcapPlus_BXm1Empty"];
2976 if (meMETPhiChargedHadronsEndcapPlus_BXm1Empty &&
2977 meMETPhiChargedHadronsEndcapPlus_BXm1Empty->getRootObject())
2978 meMETPhiChargedHadronsEndcapPlus_BXm1Empty->Fill(
2979 atan2(py_chargedHadronsEndcapPlus, px_chargedHadronsEndcapPlus));
2981 if (pt_sum_CHF_Endcap_minus) {
2982 meMETPhiChargedHadronsEndcapMinus_BXm1Empty =
2983 map_of_MEs[
DirName +
"/" +
"METPhiChargedHadronsEndcapMinus_BXm1Empty"];
2984 if (meMETPhiChargedHadronsEndcapMinus_BXm1Empty &&
2985 meMETPhiChargedHadronsEndcapMinus_BXm1Empty->getRootObject())
2986 meMETPhiChargedHadronsEndcapMinus_BXm1Empty->Fill(
2987 atan2(py_chargedHadronsEndcapMinus, px_chargedHadronsEndcapMinus));
2989 if (pt_sum_NHF_Barrel) {
2990 meMETPhiNeutralHadronsBarrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsBarrel_BXm1Empty"];
2991 if (meMETPhiNeutralHadronsBarrel_BXm1Empty && meMETPhiNeutralHadronsBarrel_BXm1Empty->getRootObject())
2992 meMETPhiNeutralHadronsBarrel_BXm1Empty->Fill(atan2(py_neutralHadronsBarrel, px_neutralHadronsBarrel));
2994 if (pt_sum_NHF_Endcap_plus) {
2995 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty =
2996 map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus_BXm1Empty"];
2997 if (meMETPhiNeutralHadronsEndcapPlus_BXm1Empty &&
2998 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty->getRootObject())
2999 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty->Fill(
3000 atan2(py_neutralHadronsEndcapPlus, px_neutralHadronsEndcapPlus));
3002 if (pt_sum_NHF_Endcap_minus) {
3003 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty =
3004 map_of_MEs[
DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus_BXm1Empty"];
3005 if (meMETPhiNeutralHadronsEndcapMinus_BXm1Empty &&
3006 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty->getRootObject())
3007 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty->Fill(
3008 atan2(py_neutralHadronsEndcapMinus, px_neutralHadronsEndcapMinus));
3010 if (pt_sum_PhF_Barrel) {
3011 meMETPhiPhotonsBarrel_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsBarrel_BXm1Empty"];
3012 if (meMETPhiPhotonsBarrel_BXm1Empty && meMETPhiPhotonsBarrel_BXm1Empty->getRootObject())
3013 meMETPhiPhotonsBarrel_BXm1Empty->Fill(atan2(py_PhotonsBarrel, px_PhotonsBarrel));
3015 if (pt_sum_PhF_Endcap_plus) {
3016 meMETPhiPhotonsEndcapPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsEndcapPlus_BXm1Empty"];
3017 if (meMETPhiPhotonsEndcapPlus_BXm1Empty && meMETPhiPhotonsEndcapPlus_BXm1Empty->getRootObject())
3018 meMETPhiPhotonsEndcapPlus_BXm1Empty->Fill(atan2(py_PhotonsEndcapPlus, px_PhotonsEndcapPlus));
3020 if (pt_sum_PhF_Endcap_minus) {
3021 meMETPhiPhotonsEndcapMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiPhotonsEndcapMinus_BXm1Empty"];
3022 if (meMETPhiPhotonsEndcapMinus_BXm1Empty && meMETPhiPhotonsEndcapMinus_BXm1Empty->getRootObject())
3023 meMETPhiPhotonsEndcapMinus_BXm1Empty->Fill(atan2(py_PhotonsEndcapMinus, px_PhotonsEndcapMinus));
3025 if (pt_sum_HFH_plus) {
3026 meMETPhiHFHadronsPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiHFHadronsPlus_BXm1Empty"];
3027 if (meMETPhiHFHadronsPlus_BXm1Empty && meMETPhiHFHadronsPlus_BXm1Empty->getRootObject())
3028 meMETPhiHFHadronsPlus_BXm1Empty->Fill(atan2(py_HFHadronsPlus, px_HFHadronsPlus));
3030 if (pt_sum_HFH_minus) {
3031 meMETPhiHFHadronsMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiHFHadronsMinus_BXm1Empty"];
3032 if (meMETPhiHFHadronsMinus_BXm1Empty && meMETPhiHFHadronsMinus_BXm1Empty->getRootObject())
3033 meMETPhiHFHadronsMinus_BXm1Empty->Fill(atan2(py_HFHadronsMinus, px_HFHadronsMinus));
3035 if (pt_sum_HFE_plus) {
3036 meMETPhiHFEGammasPlus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiHFEGammasPlus_BXm1Empty"];
3037 if (meMETPhiHFEGammasPlus_BXm1Empty && meMETPhiHFEGammasPlus_BXm1Empty->getRootObject())
3038 meMETPhiHFEGammasPlus_BXm1Empty->Fill(atan2(py_HFEGammasPlus, px_HFEGammasPlus));
3040 if (pt_sum_HFE_minus) {
3041 meMETPhiHFEGammasMinus_BXm1Empty = map_of_MEs[
DirName +
"/" +
"METPhiHFEGammasMinus_BXm1Empty"];
3042 if (meMETPhiHFEGammasMinus_BXm1Empty && meMETPhiHFEGammasMinus_BXm1Empty->getRootObject())
3043 meMETPhiHFEGammasMinus_BXm1Empty->Fill(atan2(py_HFEGammasMinus, px_HFEGammasMinus));
3052 double pfPhotonEt = pfmet->
photonEt();
3058 double pfMuonEt = pfmet->
muonEt();
3062 double pfHFEMEt = pfmet->
HFEMEt();
3063 mePhotonEtFraction = map_of_MEs[
DirName +
"/PfPhotonEtFraction"];
3064 mePhotonEt = map_of_MEs[
DirName +
"/PfPhotonEt"];
3065 meNeutralHadronEtFraction = map_of_MEs[
DirName +
"/PfNeutralHadronEtFraction"];
3066 meNeutralHadronEt = map_of_MEs[
DirName +
"/PfNeutralHadronEt"];
3067 meElectronEt = map_of_MEs[
DirName +
"/PfElectronEt"];
3068 meChargedHadronEtFraction = map_of_MEs[
DirName +
"/PfChargedHadronEtFraction"];
3069 meChargedHadronEt = map_of_MEs[
DirName +
"/PfChargedHadronEt"];
3070 meMuonEt = map_of_MEs[
DirName +
"/PfMuonEt"];
3071 meHFHadronEtFraction = map_of_MEs[
DirName +
"/PfHFHadronEtFraction"];
3072 meHFHadronEt = map_of_MEs[
DirName +
"/PfHFHadronEt"];
3073 meHFEMEtFraction = map_of_MEs[
DirName +
"/PfHFEMEtFraction"];
3074 meHFEMEt = map_of_MEs[
DirName +
"/PfHFEMEt"];
3076 if (mePhotonEtFraction && mePhotonEtFraction->getRootObject())
3077 mePhotonEtFraction->Fill(pfPhotonEtFraction);
3078 if (mePhotonEt && mePhotonEt->getRootObject())
3079 mePhotonEt->Fill(pfPhotonEt);
3080 if (meNeutralHadronEtFraction && meNeutralHadronEtFraction->getRootObject())
3081 meNeutralHadronEtFraction->Fill(pfNeutralHadronEtFraction);
3082 if (meNeutralHadronEt && meNeutralHadronEt->getRootObject())
3083 meNeutralHadronEt->Fill(pfNeutralHadronEt);
3084 if (meElectronEt && meElectronEt->getRootObject())
3085 meElectronEt->Fill(pfElectronEt);
3086 if (meChargedHadronEtFraction && meChargedHadronEtFraction->getRootObject())
3087 meChargedHadronEtFraction->Fill(pfChargedHadronEtFraction);
3088 if (meChargedHadronEt && meChargedHadronEt->getRootObject())
3089 meChargedHadronEt->Fill(pfChargedHadronEt);
3090 if (meMuonEt && meMuonEt->getRootObject())
3091 meMuonEt->Fill(pfMuonEt);
3092 if (meHFHadronEtFraction && meHFHadronEtFraction->getRootObject())
3093 meHFHadronEtFraction->Fill(pfHFHadronEtFraction);
3094 if (meHFHadronEt && meHFHadronEt->getRootObject())
3095 meHFHadronEt->Fill(pfHFHadronEt);
3096 if (meHFEMEtFraction && meHFEMEtFraction->getRootObject())
3097 meHFEMEtFraction->Fill(pfHFEMEtFraction);
3098 if (meHFEMEt && meHFEMEt->getRootObject())
3099 meHFEMEt->Fill(pfHFEMEt);
3103 mePhotonEtFraction_profile = map_of_MEs[
DirName +
"/PfPhotonEtFraction_profile"];
3104 mePhotonEt_profile = map_of_MEs[
DirName +
"/PfPhotonEt_profile"];
3105 meNeutralHadronEtFraction_profile = map_of_MEs[
DirName +
"/PfNeutralHadronEtFraction_profile"];
3106 meNeutralHadronEt_profile = map_of_MEs[
DirName +
"/PfNeutralHadronEt_profile"];
3107 meChargedHadronEtFraction_profile = map_of_MEs[
DirName +
"/PfChargedHadronEtFraction_profile"];
3108 meChargedHadronEt_profile = map_of_MEs[
DirName +
"/PfChargedHadronEt_profile"];
3109 meHFHadronEtFraction_profile = map_of_MEs[
DirName +
"/PfHFHadronEtFraction_profile"];
3110 meHFHadronEt_profile = map_of_MEs[
DirName +
"/PfHFHadronEt_profile"];
3111 meHFEMEtFraction_profile = map_of_MEs[
DirName +
"/PfHFEMEtFraction_profile"];
3112 meHFEMEt_profile = map_of_MEs[
DirName +
"/PfHFEMEt_profile"];
3114 if (mePhotonEtFraction_profile && mePhotonEtFraction_profile->getRootObject())
3115 mePhotonEtFraction_profile->Fill(numPV_, pfPhotonEtFraction);
3116 if (mePhotonEt_profile && mePhotonEt_profile->getRootObject())
3117 mePhotonEt_profile->Fill(numPV_, pfPhotonEt);
3118 if (meNeutralHadronEtFraction_profile && meNeutralHadronEtFraction_profile->getRootObject())
3119 meNeutralHadronEtFraction_profile->Fill(numPV_, pfNeutralHadronEtFraction);
3120 if (meNeutralHadronEt_profile && meNeutralHadronEt_profile->getRootObject())
3121 meNeutralHadronEt_profile->Fill(numPV_, pfNeutralHadronEt);
3122 if (meChargedHadronEtFraction_profile && meChargedHadronEtFraction_profile->getRootObject())
3123 meChargedHadronEtFraction_profile->Fill(numPV_, pfChargedHadronEtFraction);
3124 if (meChargedHadronEt_profile && meChargedHadronEt_profile->getRootObject())
3125 meChargedHadronEt_profile->Fill(numPV_, pfChargedHadronEt);
3126 if (meHFHadronEtFraction_profile && meHFHadronEtFraction_profile->getRootObject())
3127 meHFHadronEtFraction_profile->Fill(numPV_, pfHFHadronEtFraction);
3128 if (meHFHadronEt_profile && meHFHadronEt_profile->getRootObject())
3129 meHFHadronEt_profile->Fill(numPV_, pfHFHadronEt);
3130 if (meHFEMEtFraction_profile && meHFEMEtFraction_profile->getRootObject())
3131 meHFEMEtFraction_profile->Fill(numPV_, pfHFEMEtFraction);
3132 if (meHFEMEt_profile && meHFEMEt_profile->getRootObject())
3133 meHFEMEt_profile->Fill(numPV_, pfHFEMEt);
3136 if (isMiniAODMet_) {
3137 mePhotonEtFraction = map_of_MEs[
DirName +
"/PfPhotonEtFraction"];
3138 meNeutralHadronEtFraction = map_of_MEs[
DirName +
"/PfNeutralHadronEtFraction"];
3139 meChargedHadronEtFraction = map_of_MEs[
DirName +
"/PfChargedHadronEtFraction"];
3140 meHFHadronEtFraction = map_of_MEs[
DirName +
"/PfHFHadronEtFraction"];
3141 meHFEMEtFraction = map_of_MEs[
DirName +
"/PfHFEMEtFraction"];
3143 if (mePhotonEtFraction && mePhotonEtFraction->getRootObject())
3145 if (meNeutralHadronEtFraction && meNeutralHadronEtFraction->getRootObject())
3147 if (meChargedHadronEtFraction && meChargedHadronEtFraction->getRootObject())
3149 if (meHFHadronEtFraction && meHFHadronEtFraction->getRootObject())
3151 if (meHFEMEtFraction && meHFEMEtFraction->getRootObject())
3155 mePhotonEtFraction_profile = map_of_MEs[
DirName +
"/PfPhotonEtFraction_profile"];
3156 meNeutralHadronEtFraction_profile = map_of_MEs[
DirName +
"/PfNeutralHadronEtFraction_profile"];
3157 meChargedHadronEtFraction_profile = map_of_MEs[
DirName +
"/PfChargedHadronEtFraction_profile"];
3158 meHFHadronEtFraction_profile = map_of_MEs[
DirName +
"/PfHFHadronEtFraction_profile"];
3159 meHFEMEtFraction_profile = map_of_MEs[
DirName +
"/PfHFEMEtFraction_profile"];
3161 if (mePhotonEtFraction_profile && mePhotonEtFraction_profile->getRootObject())
3163 if (meNeutralHadronEtFraction_profile && meNeutralHadronEtFraction_profile->getRootObject())
3165 if (meChargedHadronEtFraction_profile && meChargedHadronEtFraction_profile->getRootObject())
3167 if (meHFHadronEtFraction_profile && meHFHadronEtFraction_profile->getRootObject())
3168 meHFHadronEtFraction_profile->Fill(numPV_, patmet->
Type6EtFraction());
3169 if (meHFEMEtFraction_profile && meHFEMEtFraction_profile->getRootObject())
3172 mePhotonEt = map_of_MEs[
DirName +
"/PfPhotonEt"];
3173 meNeutralHadronEt = map_of_MEs[
DirName +
"/PfNeutralHadronEt"];
3174 meChargedHadronEt = map_of_MEs[
DirName +
"/PfChargedHadronEt"];
3175 meHFHadronEt = map_of_MEs[
DirName +
"/PfHFHadronEt"];
3176 meHFEMEt = map_of_MEs[
DirName +
"/PfHFEMEt"];
3177 meMuonEt = map_of_MEs[
DirName +
"/PfMuonEt"];
3178 meElectronEt = map_of_MEs[
DirName +
"/PfElectronEt"];
3180 if (mePhotonEt && mePhotonEt->getRootObject())
3182 if (meNeutralHadronEt && meNeutralHadronEt->getRootObject())
3184 if (meChargedHadronEt && meChargedHadronEt->getRootObject())
3186 if (meHFHadronEt && meHFHadronEt->getRootObject())
3188 if (meHFEMEt && meHFEMEt->getRootObject())
3190 if (meMuonEt && meMuonEt->getRootObject())
3192 if (meElectronEt && meElectronEt->getRootObject())
3196 mePhotonEt_profile = map_of_MEs[
DirName +
"/PfPhotonEt_profile"];
3197 meNeutralHadronEt_profile = map_of_MEs[
DirName +
"/PfNeutralHadronEt_profile"];
3198 meChargedHadronEt_profile = map_of_MEs[
DirName +
"/PfChargedHadronEt_profile"];
3199 meHFHadronEt_profile = map_of_MEs[
DirName +
"/PfHFHadronEt_profile"];
3200 meHFEMEt_profile = map_of_MEs[
DirName +
"/PfHFEMEt_profile"];
3202 if (mePhotonEt_profile && mePhotonEt_profile->getRootObject())
3204 if (meNeutralHadronEt_profile && meNeutralHadronEt_profile->getRootObject())
3206 if (meChargedHadronEt_profile && meChargedHadronEt_profile->getRootObject())
3208 if (meHFHadronEt_profile && meHFHadronEt_profile->getRootObject())
3210 if (meHFEMEt_profile && meHFEMEt_profile->getRootObject())
3216 if (fill_met_high_level_histo) {
3217 hMExLS = map_of_MEs[
DirName +
"/" +
"MExLS"];
3218 if (hMExLS && hMExLS->getRootObject())
3219 hMExLS->Fill(MEx, myLuminosityBlock);
3220 hMEyLS = map_of_MEs[
DirName +
"/" +
"MEyLS"];
3221 if (hMEyLS && hMEyLS->getRootObject())
3222 hMEyLS->Fill(MEy, myLuminosityBlock);
bool accept() const
Has at least one path accepted the event?
Analysis-level MET class.
double Type6EtFraction() const
T getParameter(std::string const &) const
double neutralHadronEt() const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
double pt() const final
transverse momentum
double chargedHadronEt() const
virtual void setCurrentFolder(std::string const &fullpath)
double chargedHadronEtFraction() const
double ChargedEMEtFraction() const
std::vector< T >::const_iterator search(const cond::Time_t &val, const std::vector< T > &container)
std::vector< ParameterSet > VParameterSet
T const * product() const
double neutralHadronEtFraction() const
virtual MonitorElementData::Scope setScope(MonitorElementData::Scope newscope)
double etFractionHadronic() const
double HFHadronEtFraction() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
double HFHadronEt() const
double electronEt() const
double Type7EtFraction() const
double correction(const LorentzVector &fJet) const
get correction using Jet information only
double HFEMEtFraction() const
double emEtFraction() const
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
const TechnicalTriggerWord & technicalTriggerWord(int bxInEventValue) const
UseScope< MonitorElementData::Scope::LUMI > UseLumiScope
numberOfValidPixelHits
at most 999 lost hits
PF Jet selector for pat::Jets.
Jet selector for pat::Jets and for CaloJets.
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
static std::string const triggerResults("TriggerResults")
virtual TH1F * getTH1F() const
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
double NeutralHadEtFraction() const
Particle reconstructed by the particle flow algorithm.
double ChargedHadEtFraction() const
double photonEtFraction() const
static int position[264][3]
TObject * getRootObject() const override
double NeutralEMFraction() const
Log< level::Warning, false > LogWarning
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
double MuonEtFraction() const
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.