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");
105 hTriggerLabelsIsSet_ =
false;
109 diagnosticsParameters_ = pSet.
getParameter<std::vector<edm::ParameterSet> >(
"METDiagonisticsParameters");
116 bypassAllPVChecks_ = cleaningParameters_.getParameter<
bool>(
"bypassAllPVChecks");
117 bypassAllDCSChecks_ = cleaningParameters_.getParameter<
bool>(
"bypassAllDCSChecks");
118 runcosmics_ =
parameters.getUntrackedParameter<
bool>(
"runcosmics");
119 onlyCleaned_ =
parameters.getUntrackedParameter<
bool>(
"onlyCleaned");
120 vertexTag_ = cleaningParameters_.getParameter<
edm::InputTag>(
"vertexCollection");
121 vertexToken_ = consumes<std::vector<reco::Vertex> >(
edm::InputTag(vertexTag_));
124 gtTag_ = cleaningParameters_.getParameter<
edm::InputTag>(
"gtLabel");
125 gtToken_ = consumes<L1GlobalTriggerReadoutRecord>(
edm::InputTag(gtTag_));
130 caloJetsToken_ = consumes<reco::CaloJetCollection>(jetCollectionLabel_);
133 pfJetsToken_ = consumes<reco::PFJetCollection>(jetCollectionLabel_);
135 patJetsToken_ = consumes<pat::JetCollection>(jetCollectionLabel_);
141 hbheNoiseFilterResultToken_ = consumes<bool>(hbheNoiseFilterResultTag_);
143 hbheIsoNoiseFilterResultToken_ = consumes<bool>(hbheNoiseIsoFilterResultTag_);
145 CSCHaloResultToken_ = consumes<bool>(CSCHaloResultTag_);
147 CSCHalo2015ResultToken_ = consumes<bool>(CSCHalo2015ResultTag_);
149 EcalDeadCellTriggerToken_ = consumes<bool>(EcalDeadCellTriggerTag_);
151 EcalDeadCellBoundaryToken_ = consumes<bool>(EcalDeadCellBoundaryTag_);
153 eeBadScFilterToken_ = consumes<bool>(eeBadScFilterTag_);
155 HcalStripHaloToken_ = consumes<bool>(HcalStripHaloTag_);
159 METFilterMiniAODToken_ = consumes<edm::TriggerResults>(METFilterMiniAODLabel_);
162 METFilterMiniAODToken2_ = consumes<edm::TriggerResults>(METFilterMiniAODLabel2_);
166 nbinsPV_ =
parameters.getParameter<
int>(
"pVBin");
167 nPVMin_ =
parameters.getParameter<
double>(
"pVMin");
168 nPVMax_ =
parameters.getParameter<
double>(
"pVMax");
171 for (edm::VParameterSet::const_iterator it = triggerSelectedSubFolders_.begin();
172 it != triggerSelectedSubFolders_.end();
175 triggerFolderExpr_.push_back(it->getParameter<std::vector<std::string> >(
"hltPaths"));
176 triggerFolderLabels_.push_back(it->getParameter<
std::string>(
"label"));
181 verbose_ =
parameters.getParameter<
int>(
"verbose");
185 l1gtTrigMenuToken_ = esConsumes<edm::Transition::BeginRun>();
190 for (std::vector<GenericTriggerEventFlag*>::const_iterator it = triggerFolderEventFlag_.begin();
191 it != triggerFolderEventFlag_.end();
199 std::string DirName = FolderName_ + metCollectionLabel_.label();
203 ibooker.
setScope(MonitorElementData::Scope::RUN);
205 if (!folderNames_.empty()) {
206 folderNames_.clear();
209 folderNames_.push_back(
"Uncleaned");
212 folderNames_.push_back(
"Uncleaned");
214 folderNames_.push_back(
"Cleaned");
215 folderNames_.push_back(
"DiJet");
216 if (!isMiniAODMet_) {
217 folderNames_.push_back(
"ZJets");
220 for (std::vector<std::string>::const_iterator ic = folderNames_.begin(); ic != folderNames_.end(); ic++) {
221 bookMESet(DirName +
"/" + *ic, ibooker, map_dijet_MEs);
228 std::map<std::string, MonitorElement*>& map_of_MEs) {
229 bool bLumiSecPlot = fill_met_high_level_histo;
231 bool fillPFCandidatePlots =
false;
232 bool fillZPlots =
false;
234 if (DirName.find(
"Cleaned") != std::string::npos) {
235 fillPFCandidatePlots =
true;
236 bookMonitorElement(DirName, ibooker, map_of_MEs, bLumiSecPlot, fillPFCandidatePlots, fillZPlots);
243 }
else if (DirName.find(
"ZJets") != std::string::npos) {
244 fillPFCandidatePlots =
false;
246 bookMonitorElement(DirName, ibooker, map_of_MEs, bLumiSecPlot, fillPFCandidatePlots, fillZPlots);
248 bookMonitorElement(DirName, ibooker, map_of_MEs, bLumiSecPlot, fillPFCandidatePlots, fillZPlots);
255 std::map<std::string, MonitorElement*>& map_of_MEs,
256 bool bLumiSecPlot =
false,
257 bool fillPFCandPlots =
false,
258 bool fillZPlots =
false) {
260 std::cout <<
"bookMonitorElement " << DirName << std::endl;
265 meZJets_u_par = ibooker.
book1D(
"u_parallel_Z_inc",
"u_parallel_Z_inc", 50, -1000., 75);
267 meZJets_u_par = ibooker.
book1D(
"u_parallel_Z_inc",
"u_parallel_Z_inc", 50, -800., 75);
269 meZJets_u_par_ZPt_0_15 = ibooker.
book1D(
"u_parallel_ZPt_0_15",
"u_parallel_ZPt_0_15", 50, -100, 75);
270 meZJets_u_par_ZPt_15_30 = ibooker.
book1D(
"u_parallel_ZPt_15_30",
"u_parallel_ZPt_15_30", 50, -100, 50);
271 meZJets_u_par_ZPt_30_55 = ibooker.
book1D(
"u_parallel_ZPt_30_55",
"u_parallel_ZPt_30_55", 50, -175, 50);
272 meZJets_u_par_ZPt_55_75 = ibooker.
book1D(
"u_parallel_ZPt_55_75",
"u_parallel_ZPt_55_75", 50, -175, 0);
273 meZJets_u_par_ZPt_75_150 = ibooker.
book1D(
"u_parallel_ZPt_75_150",
"u_parallel_ZPt_75_150", 50, -300, 0);
275 meZJets_u_par_ZPt_150_290 = ibooker.
book1D(
"u_parallel_ZPt_150_290",
"u_parallel_ZPt_150_290", 50, -750, -100);
277 meZJets_u_par_ZPt_150_290 = ibooker.
book1D(
"u_parallel_ZPt_150_290",
"u_parallel_ZPt_150_290", 50, -450, -50);
280 meZJets_u_par_ZPt_290 = ibooker.
book1D(
"u_parallel_ZPt_290",
"u_parallel_ZPt_290", 50, -1000., -350.);
282 meZJets_u_par_ZPt_290 = ibooker.
book1D(
"u_parallel_ZPt_290",
"u_parallel_ZPt_290", 50, -750., -150.);
284 meZJets_u_perp = ibooker.
book1D(
"u_perp_Z_inc",
"u_perp_Z_inc", 50, -85., 85.);
285 meZJets_u_perp_ZPt_0_15 = ibooker.
book1D(
"u_perp_ZPt_0_15",
"u_perp_ZPt_0_15", 50, -85., 85.);
286 meZJets_u_perp_ZPt_15_30 = ibooker.
book1D(
"u_perp_ZPt_15_30",
"u_perp_ZPt_15_30", 50, -85., 85.);
287 meZJets_u_perp_ZPt_30_55 = ibooker.
book1D(
"u_perp_ZPt_30_55",
"u_perp_ZPt_30_55", 50, -85., 85.);
288 meZJets_u_perp_ZPt_55_75 = ibooker.
book1D(
"u_perp_ZPt_55_75",
"u_perp_ZPt_55_75", 50, -85., 85.);
289 meZJets_u_perp_ZPt_75_150 = ibooker.
book1D(
"u_perp_ZPt_75_150",
"u_perp_ZPt_75_150", 50, -85., 85.);
290 meZJets_u_perp_ZPt_150_290 = ibooker.
book1D(
"u_perp_ZPt_150_290",
"u_perp_ZPt_150_290", 50, -85., 85.);
291 meZJets_u_perp_ZPt_290 = ibooker.
book1D(
"u_perp_ZPt_290",
"u_perp_ZPt_290", 50, -85., 85.);
293 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_parallel_Z_inc", meZJets_u_par));
295 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_parallel_ZPt_0_15", meZJets_u_par_ZPt_0_15));
297 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_parallel_ZPt_15_30", meZJets_u_par_ZPt_15_30));
299 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_parallel_ZPt_30_55", meZJets_u_par_ZPt_30_55));
301 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_parallel_ZPt_55_75", meZJets_u_par_ZPt_55_75));
303 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_parallel_ZPt_75_150", meZJets_u_par_ZPt_75_150));
305 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_parallel_ZPt_150_290", meZJets_u_par_ZPt_150_290));
307 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_parallel_ZPt_290", meZJets_u_par_ZPt_290));
309 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_perp_Z_inc", meZJets_u_perp));
311 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_perp_ZPt_0_15", meZJets_u_perp_ZPt_0_15));
313 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_perp_ZPt_15_30", meZJets_u_perp_ZPt_15_30));
315 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_perp_ZPt_30_55", meZJets_u_perp_ZPt_30_55));
317 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_perp_ZPt_55_75", meZJets_u_perp_ZPt_55_75));
319 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_perp_ZPt_75_150", meZJets_u_perp_ZPt_75_150));
321 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_perp_ZPt_150_290", meZJets_u_perp_ZPt_150_290));
323 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"u_perp_ZPt_290", meZJets_u_perp_ZPt_290));
327 hTrigger = ibooker.
book1D(
"triggerResults",
"triggerResults", 500, 0, 500);
328 for (
unsigned int i = 0;
i < allTriggerNames_.size();
i++) {
329 if (
i < (
unsigned int)hTrigger->getNbinsX()) {
330 if (!hTriggerLabelsIsSet_) {
335 hTriggerLabelsIsSet_ =
true;
337 hMEx = ibooker.
book1D(
"MEx",
"MEx", 200, -500, 500);
338 hMEy = ibooker.
book1D(
"MEy",
"MEy", 200, -500, 500);
339 hMET = ibooker.
book1D(
"MET",
"MET", 200, 0, 1000);
340 hMET_2 = ibooker.
book1D(
"MET_2",
"MET Range 2", 200, 0, 2000);
341 hSumET = ibooker.
book1D(
"SumET",
"SumET", 400, 0, 4000);
345 hMETSig = ibooker.
book1D(
"METSig",
"METSig", 51, 0, 51);
349 hMET_logx = ibooker.
book1D(
"MET_logx",
"MET_logx", 40, -1, 9);
350 hSumET_logx = ibooker.
book1D(
"SumET_logx",
"SumET_logx", 40, -1, 9);
353 hMEy->setAxisTitle(
"MEy [GeV]", 1);
354 hMET->setAxisTitle(
"MET [GeV]", 1);
355 hMET_2->setAxisTitle(
"MET [GeV]", 1);
356 hSumET->setAxisTitle(
"SumET [GeV]", 1);
357 hMETSig->setAxisTitle(
"METSig", 1);
358 hMETPhi->setAxisTitle(
"METPhi [rad]", 1);
359 hMET_logx->setAxisTitle(
"log(MET) [GeV]", 1);
360 hSumET_logx->setAxisTitle(
"log(SumET) [GeV]", 1);
362 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"triggerResults", hTrigger));
363 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MEx", hMEx));
364 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MEy", hMEy));
365 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET", hMET));
366 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_2", hMET_2));
367 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"SumET", hSumET));
368 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METSig", hMETSig));
369 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhi", hMETPhi));
370 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_logx", hMET_logx));
371 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"SumET_logx", hSumET_logx));
373 hMET_HBHENoiseFilter = ibooker.
book1D(
"MET_HBHENoiseFilter",
"MET_HBHENoiseFiltered", 200, 0, 1000);
374 hMET_CSCTightHaloFilter = ibooker.
book1D(
"MET_CSCTightHaloFilter",
"MET_CSCTightHaloFiltered", 200, 0, 1000);
375 hMET_eeBadScFilter = ibooker.
book1D(
"MET_eeBadScFilter",
"MET_eeBadScFiltered", 200, 0, 1000);
376 hMET_HBHEIsoNoiseFilter = ibooker.
book1D(
"MET_HBHEIsoNoiseFilter",
"MET_HBHEIsoNoiseFiltered", 200, 0, 1000);
377 hMET_CSCTightHalo2015Filter =
378 ibooker.
book1D(
"MET_CSCTightHalo2015Filter",
"MET_CSCTightHalo2015Filtered", 200, 0, 1000);
379 hMET_EcalDeadCellTriggerFilter =
380 ibooker.
book1D(
"MET_EcalDeadCellTriggerFilter",
"MET_EcalDeadCellTriggerFiltered", 200, 0, 1000);
381 hMET_EcalDeadCellBoundaryFilter =
382 ibooker.
book1D(
"MET_EcalDeadCellBoundaryFilter",
"MET_EcalDeadCellBoundaryFiltered", 200, 0, 1000);
383 hMET_HcalStripHaloFilter = ibooker.
book1D(
"MET_HcalStripHaloFilter",
"MET_HcalStripHaloFiltered", 200, 0, 1000);
386 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_HBHENoiseFilter", hMET_HBHENoiseFilter));
388 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_CSCTightHaloFilter", hMET_CSCTightHaloFilter));
389 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_eeBadScFilter", hMET_eeBadScFilter));
391 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_HBHEIsoNoiseFilter", hMET_HBHEIsoNoiseFilter));
392 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_CSCTightHalo2015Filter",
393 hMET_CSCTightHalo2015Filter));
394 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_EcalDeadCellTriggerFilter",
395 hMET_EcalDeadCellTriggerFilter));
396 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_EcalDeadCellBoundaryFilter",
397 hMET_EcalDeadCellBoundaryFilter));
399 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_HcalStripHaloFilter", hMET_HcalStripHaloFilter));
403 meMEx_profile = ibooker.
bookProfile(
"MEx_profile",
"met.px()", nbinsPV_, nPVMin_, nPVMax_, 200, -500, 500);
404 meMEy_profile = ibooker.
bookProfile(
"MEy_profile",
"met.py()", nbinsPV_, nPVMin_, nPVMax_, 200, -500, 500);
405 meMET_profile = ibooker.
bookProfile(
"MET_profile",
"met.pt()", nbinsPV_, nPVMin_, nPVMax_, 200, 0, 1000);
406 meSumET_profile = ibooker.
bookProfile(
"SumET_profile",
"met.sumEt()", nbinsPV_, nPVMin_, nPVMax_, 400, 0, 4000);
410 meMEy_profile->setAxisTitle(
"nvtx", 1);
411 meMET_profile->setAxisTitle(
"nvtx", 1);
412 meSumET_profile->setAxisTitle(
"nvtx", 1);
414 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MEx_profile", meMEx_profile));
415 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MEy_profile", meMEy_profile));
416 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_profile", meMET_profile));
417 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"SumET_profile", meSumET_profile));
420 hCaloHadEtInHB = ibooker.
book1D(
"CaloHadEtInHB",
"CaloHadEtInHB", 50, 0, 2000);
422 hCaloHadEtInHO = ibooker.
book1D(
"CaloHadEtInHO",
"CaloHadEtInHO", 25, 0, 500);
424 hCaloHadEtInHE = ibooker.
book1D(
"CaloHadEtInHE",
"CaloHadEtInHE", 50, 0, 2000);
426 hCaloHadEtInHF = ibooker.
book1D(
"CaloHadEtInHF",
"CaloHadEtInHF", 50, 0, 1000);
428 hCaloEmEtInHF = ibooker.
book1D(
"CaloEmEtInHF",
"CaloEmEtInHF", 25, 0, 500);
430 hCaloEmEtInEE = ibooker.
book1D(
"CaloEmEtInEE",
"CaloEmEtInEE", 50, 0, 1000);
432 hCaloEmEtInEB = ibooker.
book1D(
"CaloEmEtInEB",
"CaloEmEtInEB", 50, 0, 2000);
435 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloHadEtInHO", hCaloHadEtInHO));
436 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloHadEtInHF", hCaloHadEtInHF));
437 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloHadEtInHE", hCaloHadEtInHE));
438 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloHadEtInHB", hCaloHadEtInHB));
439 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloEmEtInHF", hCaloEmEtInHF));
440 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloEmEtInEE", hCaloEmEtInEE));
441 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloEmEtInEB", hCaloEmEtInEB));
443 hCaloMETPhi020 = ibooker.
book1D(
"CaloMETPhi020",
"CaloMETPhi020", 60, -
M_PI,
M_PI);
444 hCaloMETPhi020->
setAxisTitle(
"METPhi [rad] (MET>20 GeV)", 1);
446 hCaloEtFractionHadronic = ibooker.
book1D(
"CaloEtFractionHadronic",
"CaloEtFractionHadronic", 50, 0, 1);
447 hCaloEtFractionHadronic->
setAxisTitle(
"Hadronic Et Fraction", 1);
448 hCaloEmEtFraction = ibooker.
book1D(
"CaloEmEtFraction",
"CaloEmEtFraction", 50, 0, 1);
451 hCaloEmEtFraction020 = ibooker.
book1D(
"CaloEmEtFraction020",
"CaloEmEtFraction020", 50, 0, 1);
452 hCaloEmEtFraction020->
setAxisTitle(
"EM Et Fraction (MET>20 GeV)", 1);
454 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloMETPhi020", hCaloMETPhi020));
456 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloEtFractionHadronic", hCaloEtFractionHadronic));
457 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloEmEtFraction", hCaloEmEtFraction));
459 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"CaloEmEtFraction020", hCaloEmEtFraction020));
463 if (fillPFCandPlots &&
464 fillCandidateMap_histos) {
466 meCHF_Barrel = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel",
"chargedHadronEtFractionBarrel", 50, 0, 1);
468 ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus",
"chargedHadronEtFractionEndcapPlus", 50, 0, 1);
470 ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus",
"chargedHadronEtFractionEndcapMinus", 50, 0, 1);
471 meCHF_Barrel_BXm1Empty = ibooker.
book1D(
472 "PfChargedHadronEtFractionBarrel_BXm1Empty",
"chargedHadronEtFractionBarrel prev empty bunch", 50, 0, 1);
473 meCHF_EndcapPlus_BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty",
474 "chargedHadronEtFractionEndcapPlus prev empty bunch",
478 meCHF_EndcapMinus_BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty",
479 "chargedHadronEtFractionEndcapMinus prev empty bunch",
483 meCHF_Barrel_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel_BXm1Filled",
484 "chargedHadronEtFractionBarrel prev filled 2 bunches",
488 meCHF_EndcapPlus_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled",
489 "chargedHadronEtFractionEndcapPlus prev filled bunch",
493 meCHF_EndcapMinus_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled",
494 "chargedHadronEtFractionEndcapMinus prev filled bunch",
500 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfChargedHadronEtFractionBarrel", meCHF_Barrel));
501 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus",
503 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
504 DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus", meCHF_EndcapMinus));
505 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
506 DirName +
"/" +
"PfChargedHadronEtFractionBarrel_BXm1Empty", meCHF_Barrel_BXm1Empty));
507 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
508 DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty", meCHF_EndcapPlus_BXm1Empty));
509 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
510 DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty", meCHF_EndcapMinus_BXm1Empty));
514 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
515 DirName +
"/" +
"PfChargedHadronEtFractionBarrel_BXm1Filled", meCHF_Barrel_BXm1Filled));
516 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
517 DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled", meCHF_EndcapPlus_BXm1Filled));
518 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
519 DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled", meCHF_EndcapMinus_BXm1Filled));
524 meNHF_Barrel = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel",
"neutralHadronEtFractionBarrel", 50, 0, 1);
526 ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus",
"neutralHadronEtFractionEndcapPlus", 50, 0, 1);
528 ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus",
"neutralHadronEtFractionEndcapMinus", 50, 0, 1);
529 meNHF_Barrel_BXm1Empty = ibooker.
book1D(
530 "PfNeutralHadronEtFractionBarrel_BXm1Empty",
"neutralHadronEtFractionBarrel prev empty bunch", 50, 0, 1);
531 meNHF_EndcapPlus_BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty",
532 "neutralHadronEtFractionEndcapPlus prev empty bunch",
536 meNHF_EndcapMinus_BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty",
537 "neutralHadronEtFractionEndcapMinus prev empty bunch",
544 meNHF_Barrel_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel_BXm1Filled",
545 "neutralHadronEtFractionBarrel prev filled 2 bunches",
549 meNHF_EndcapPlus_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled",
550 "neutralHadronEtFractionEndcapPlus prev filled bunch",
554 meNHF_EndcapMinus_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled",
555 "neutralHadronEtFractionEndcapMinus prev filled bunch",
564 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfNeutralHadronEtFractionBarrel", meNHF_Barrel));
565 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus",
567 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
568 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus", meNHF_EndcapMinus));
569 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
570 DirName +
"/" +
"PfNeutralHadronEtFractionBarrel_BXm1Empty", meNHF_Barrel_BXm1Empty));
571 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
572 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty", meNHF_EndcapPlus_BXm1Empty));
573 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
574 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty", meNHF_EndcapMinus_BXm1Empty));
578 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
579 DirName +
"/" +
"PfNeutralHadronEtFractionBarrel_BXm1Filled", meNHF_Barrel_BXm1Filled));
580 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
581 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled", meNHF_EndcapPlus_BXm1Filled));
582 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
583 DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled", meNHF_EndcapMinus_BXm1Filled));
588 mePhF_Barrel = ibooker.
book1D(
"PfPhotonEtFractionBarrel",
"photonEtFractionBarrel", 50, 0, 1);
589 mePhF_EndcapPlus = ibooker.
book1D(
"PfPhotonEtFractionEndcapPlus",
"photonEtFractionEndcapPlus", 50, 0, 1);
590 mePhF_EndcapMinus = ibooker.
book1D(
"PfPhotonEtFractionEndcapMinus",
"photonEtFractionEndcapMinus", 50, 0, 1);
591 mePhF_Barrel_BXm1Empty =
592 ibooker.
book1D(
"PfPhotonEtFractionBarrel_BXm1Empty",
"photonEtFractionBarrel prev empty bunch", 50, 0, 1);
593 mePhF_EndcapPlus_BXm1Empty = ibooker.
book1D(
594 "PfPhotonEtFractionEndcapPlus_BXm1Empty",
"photonEtFractionEndcapPlus prev empty bunch", 50, 0, 1);
595 mePhF_EndcapMinus_BXm1Empty = ibooker.
book1D(
596 "PfPhotonEtFractionEndcapMinus_BXm1Empty",
"photonEtFractionEndcapMinus prev empty bunch", 50, 0, 1);
600 mePhF_Barrel_BXm1Filled = ibooker.
book1D(
601 "PfPhotonEtFractionBarrel_BXm1Filled",
"photonEtFractionBarrel prev filled 2 bunches", 50, 0, 1);
602 mePhF_EndcapPlus_BXm1Filled = ibooker.
book1D(
603 "PfPhotonEtFractionEndcapPlus_BXm1Filled",
"photonEtFractionEndcapPlus prev filled bunch", 50, 0, 1);
604 mePhF_EndcapMinus_BXm1Filled = ibooker.
book1D(
605 "PfPhotonEtFractionEndcapMinus_BXm1Filled",
"photonEtFractionEndcapMinus prev filled bunch", 50, 0, 1);
611 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFractionBarrel", mePhF_Barrel));
613 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFractionEndcapPlus", mePhF_EndcapPlus));
614 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFractionEndcapMinus",
616 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFractionBarrel_BXm1Empty",
617 mePhF_Barrel_BXm1Empty));
618 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
619 DirName +
"/" +
"PfPhotonEtFractionEndcapPlus_BXm1Empty", mePhF_EndcapPlus_BXm1Empty));
620 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
621 DirName +
"/" +
"PfPhotonEtFractionEndcapMinus_BXm1Empty", mePhF_EndcapMinus_BXm1Empty));
625 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFractionBarrel_BXm1Filled",
626 mePhF_Barrel_BXm1Filled));
627 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
628 DirName +
"/" +
"PfPhotonEtFractionEndcapPlus_BXm1Filled", mePhF_EndcapPlus_BXm1Filled));
629 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
630 DirName +
"/" +
"PfPhotonEtFractionEndcapMinus_BXm1Filled", mePhF_EndcapMinus_BXm1Filled));
635 meHFHadF_Plus = ibooker.
book1D(
"PfHFHadronEtFractionPlus",
"HFHadronEtFractionPlus", 50, 0, 1);
636 meHFHadF_Minus = ibooker.
book1D(
"PfHFHadronEtFractionMinus",
"HFHadronEtFractionMinus", 50, 0, 1);
637 meHFHadF_Plus_BXm1Empty =
638 ibooker.
book1D(
"PfHFHadronEtFractionPlus_BXm1Empty",
"HFHadronEtFractionPlus prev empty bunch", 50, 0, 1);
639 meHFHadF_Minus_BXm1Empty =
640 ibooker.
book1D(
"PfHFHadronEtFractionMinus_BXm1Empty",
"HFHadronEtFractionMinus prev empty bunch", 50, 0, 1);
643 meHFHadF_Plus_BXm1Filled =
644 ibooker.
book1D(
"PfHFHadronEtFractionPlus_BXm1Filled",
"HFHadronEtFractionPlus prev filled bunch", 50, 0, 1);
645 meHFHadF_Minus_BXm1Filled = ibooker.
book1D(
646 "PfHFHadronEtFractionMinus_BXm1Filled",
"HFHadronEtFractionMinus prev filled bunch", 50, 0, 1);
651 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEtFractionPlus", meHFHadF_Plus));
653 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEtFractionMinus", meHFHadF_Minus));
654 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEtFractionPlus_BXm1Empty",
655 meHFHadF_Plus_BXm1Empty));
656 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEtFractionMinus_BXm1Empty",
657 meHFHadF_Minus_BXm1Empty));
660 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEtFractionPlus_BXm1Filled",
661 meHFHadF_Plus_BXm1Filled));
662 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
663 DirName +
"/" +
"PfHFHadronEtFractionMinus_BXm1Filled", meHFHadF_Minus_BXm1Filled));
667 meHFEMF_Plus = ibooker.
book1D(
"PfHFEMEtFractionPlus",
"HFEMEtFractionPlus", 50, 0, 1);
668 meHFEMF_Minus = ibooker.
book1D(
"PfHFEMEtFractionMinus",
"HFEMEtFractionMinus", 50, 0, 1);
669 meHFEMF_Plus_BXm1Empty =
670 ibooker.
book1D(
"PfHFEMEtFractionPlus_BXm1Empty",
"HFEMEtFractionPlus prev empty bunch", 50, 0, 1);
671 meHFEMF_Minus_BXm1Empty =
672 ibooker.
book1D(
"PfHFEMEtFractionMinus_BXm1Empty",
"HFEMEtFractionMinus prev empty bunch", 50, 0, 1);
675 meHFEMF_Plus_BXm1Filled =
676 ibooker.
book1D(
"PfHFEMEtFractionPlus_BXm1Filled",
"HFEMEtFractionPlus prev filled bunch", 50, 0, 1);
677 meHFEMF_Minus_BXm1Filled =
678 ibooker.
book1D(
"PfHFEMEtFractionMinus_BXm1Filled",
"HFEMEtFractionMinus prev filled bunch", 50, 0, 1);
683 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEtFractionPlus", meHFEMF_Plus));
685 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEtFractionMinus", meHFEMF_Minus));
686 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEtFractionPlus_BXm1Empty",
687 meHFEMF_Plus_BXm1Empty));
688 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEtFractionMinus_BXm1Empty",
689 meHFEMF_Minus_BXm1Empty));
692 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEtFractionPlus_BXm1Filled",
693 meHFEMF_Plus_BXm1Filled));
694 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEtFractionMinus_BXm1Filled",
695 meHFEMF_Minus_BXm1Filled));
756 mePhotonEtFraction_BXm1Empty =
757 ibooker.
book1D(
"PfPhotonEtFraction_BXm1Empty",
"photonEtFraction() prev empty bunch", 50, 0, 1);
758 mePhotonEtFraction_BXm1Filled =
759 ibooker.
book1D(
"PfPhotonEtFraction_BXm1Filled",
"photonEtFraction() prev filled bunch", 50, 0, 1);
760 meNeutralHadronEtFraction_BXm1Empty = ibooker.
book1D(
761 "PfNeutralHadronEtFraction_BXm1Empty",
"neutralHadronEtFraction() prev empty bunch", 50, 0, 1);
762 meNeutralHadronEtFraction_BXm1Filled = ibooker.
book1D(
763 "PfNeutralHadronEtFraction_BXm1Filled",
"neutralHadronEtFraction() prev filled bunch", 50, 0, 1);
764 meChargedHadronEtFraction_BXm1Empty = ibooker.
book1D(
765 "PfChargedHadronEtFraction_BXm1Empty",
"chargedHadronEtFraction() prev empty bunch", 50, 0, 1);
766 meChargedHadronEtFraction_BXm1Filled = ibooker.
book1D(
767 "PfChargedHadronEtFraction_BXm1Filled",
"chargedHadronEtFraction() prev filled bunch", 50, 0, 1);
768 meMET_BXm1Empty = ibooker.
book1D(
"MET_BXm1Empty",
"MET prev empty bunch", 200, 0, 1000);
769 meMET_BXm1Filled = ibooker.
book1D(
"MET_BXm1Filled",
"MET prev filled bunch", 200, 0, 1000);
770 meSumET_BXm1Empty = ibooker.
book1D(
"SumET_BXm1Empty",
"SumET prev empty bunch", 400, 0, 4000);
771 meSumET_BXm1Filled = ibooker.
book1D(
"SumET_BXm1Filled",
"SumET prev filled bunch", 400, 0, 4000);
773 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFraction_BXm1Empty",
774 mePhotonEtFraction_BXm1Empty));
775 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFraction_BXm1Filled",
776 mePhotonEtFraction_BXm1Filled));
777 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfNeutralHadronEtFraction_BXm1Empty",
778 meNeutralHadronEtFraction_BXm1Empty));
779 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfNeutralEtFraction_BXm1Filled",
780 meNeutralHadronEtFraction_BXm1Filled));
781 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfChargedHadronEtFraction_BXm1Empty",
782 meChargedHadronEtFraction_BXm1Empty));
783 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfChargedEtFraction_BXm1Filled",
784 meChargedHadronEtFraction_BXm1Filled));
785 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_BXm1Empty", meMET_BXm1Empty));
786 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MET_BXm1Filled", meMET_BXm1Filled));
788 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"SumET_BXm1Empty", meSumET_BXm1Empty));
790 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"SumET_BXm1Filled", meSumET_BXm1Filled));
792 meMETPhiChargedHadronsBarrel_BXm1Filled = ibooker.
book1D(
793 "METPhiChargedHadronsBarrel_BXm1Filled",
"METPhi_PFChargedHadronsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
794 meMETPhiChargedHadronsEndcapPlus_BXm1Filled =
795 ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus_BXm1Filled",
796 "METPhi_PFChargedHadronsEndcapPlus prev bunch filled",
800 meMETPhiChargedHadronsEndcapMinus_BXm1Filled =
801 ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus_BXm1Filled",
802 "METPhi_PFChargedHadronsEndcapMinus prev bunch filled",
806 meMETPhiNeutralHadronsBarrel_BXm1Filled = ibooker.
book1D(
807 "METPhiNeutralHadronsBarrel_BXm1Filled",
"METPhi_PFNeutralHadronsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
808 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled =
809 ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus_BXm1Filled",
810 "METPhi_PFNeutralHadronsEndcapPlus prev bunch filled",
814 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled =
815 ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus_BXm1Filled",
816 "METPhi_PFNeutralHadronsEndcapMinus prev bunch filled",
820 meMETPhiPhotonsBarrel_BXm1Filled = ibooker.
book1D(
821 "METPhiPhotonsBarrel_BXm1Filled",
"METPhi_PFPhotonsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
822 meMETPhiPhotonsEndcapPlus_BXm1Filled = ibooker.
book1D(
823 "METPhiPhotonsEndcapPlus_BXm1Filled",
"METPhi_PFPhotonsEndcapPlus prev bunch filled", 50, -
M_PI,
M_PI);
824 meMETPhiPhotonsEndcapMinus_BXm1Filled = ibooker.
book1D(
825 "METPhiPhotonsEndcapMinus_BXm1Filled",
"METPhi_PFPhotonsEndcapMinus prev bunch filled", 50, -
M_PI,
M_PI);
826 meMETPhiHFHadronsPlus_BXm1Filled = ibooker.
book1D(
827 "METPhiHFHadronsPlus_BXm1Filled",
"METPhi_PFHFHadronsPlus prev bunch filled", 50, -
M_PI,
M_PI);
828 meMETPhiHFHadronsMinus_BXm1Filled = ibooker.
book1D(
829 "METPhiHFHadronsMinus_BXm1Filled",
"METPhi_PFHFHadronsMinus prev bunch filled", 50, -
M_PI,
M_PI);
830 meMETPhiHFEGammasPlus_BXm1Filled = ibooker.
book1D(
831 "METPhiHFEGammasPlus_BXm1Filled",
"METPhi_PFHFEGammasPlus prev bunch filled", 50, -
M_PI,
M_PI);
832 meMETPhiHFEGammasMinus_BXm1Filled = ibooker.
book1D(
833 "METPhiHFEGammasMinus_BXm1Filled",
"METPhi_PFHFEGammasMinus prev bunch filled", 50, -
M_PI,
M_PI);
835 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
836 DirName +
"/" +
"METPhiChargedHadronsBarrel_BXm1Filled", meMETPhiChargedHadronsBarrel_BXm1Filled));
837 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
838 DirName +
"/" +
"METPhiChargedHadronsEndcapPlus_BXm1Filled", meMETPhiChargedHadronsEndcapPlus_BXm1Filled));
840 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiChargedHadronsEndcapMinus_BXm1Filled",
841 meMETPhiChargedHadronsEndcapMinus_BXm1Filled));
842 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
843 DirName +
"/" +
"METPhiNeutralHadronsBarrel_BXm1Filled", meMETPhiNeutralHadronsBarrel_BXm1Filled));
844 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
845 DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus_BXm1Filled", meMETPhiNeutralHadronsEndcapPlus_BXm1Filled));
847 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus_BXm1Filled",
848 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled));
849 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsBarrel_BXm1Filled",
850 meMETPhiPhotonsBarrel_BXm1Filled));
851 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsEndcapPlus_BXm1Filled",
852 meMETPhiPhotonsEndcapPlus_BXm1Filled));
853 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsEndcapMinus_BXm1Filled",
854 meMETPhiPhotonsEndcapMinus_BXm1Filled));
855 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFHadronsPlus_BXm1Filled",
856 meMETPhiHFHadronsPlus_BXm1Filled));
857 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFHadronsMinus_BXm1Filled",
858 meMETPhiHFHadronsMinus_BXm1Filled));
859 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFEGammasPlus_BXm1Filled",
860 meMETPhiHFEGammasPlus_BXm1Filled));
861 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFEGammasMinus_BXm1Filled",
862 meMETPhiHFEGammasMinus_BXm1Filled));
864 meMETPhiChargedHadronsBarrel_BXm1Empty = ibooker.
book1D(
865 "METPhiChargedHadronsBarrel_BXm1Empty",
"METPhi_PFChargedHadronsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
866 meMETPhiChargedHadronsEndcapPlus_BXm1Empty =
867 ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus_BXm1Empty",
868 "METPhi_PFChargedHadronsEndcapPlus prev bunch empty",
872 meMETPhiChargedHadronsEndcapMinus_BXm1Empty =
873 ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus_BXm1Empty",
874 "METPhi_PFChargedHadronsEndcapMinus prev bunch empty",
878 meMETPhiNeutralHadronsBarrel_BXm1Empty = ibooker.
book1D(
879 "METPhiNeutralHadronsBarrel_BXm1Empty",
"METPhi_PFNeutralHadronsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
880 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty =
881 ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus_BXm1Empty",
882 "METPhi_PFNeutralHadronsEndcapPlus prev bunch empty",
886 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty =
887 ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus_BXm1Empty",
888 "METPhi_PFNeutralHadronsEndcapMinus prev bunch empty",
892 meMETPhiPhotonsBarrel_BXm1Empty =
893 ibooker.
book1D(
"METPhiPhotonsBarrel_BXm1Empty",
"METPhi_PFPhotonsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
894 meMETPhiPhotonsEndcapPlus_BXm1Empty = ibooker.
book1D(
895 "METPhiPhotonsEndcapPlus_BXm1Empty",
"METPhi_PFPhotonsEndcapPlus prev bunch empty", 50, -
M_PI,
M_PI);
896 meMETPhiPhotonsEndcapMinus_BXm1Empty = ibooker.
book1D(
897 "METPhiPhotonsEndcapMinus_BXm1Empty",
"METPhi_PFPhotonsEndcapMinus prev bunch empty", 50, -
M_PI,
M_PI);
898 meMETPhiHFHadronsPlus_BXm1Empty =
899 ibooker.
book1D(
"METPhiHFHadronsPlus_BXm1Empty",
"METPhi_PFHFHadronsPlus prev bunch empty", 50, -
M_PI,
M_PI);
900 meMETPhiHFHadronsMinus_BXm1Empty = ibooker.
book1D(
901 "METPhiHFHadronsMinus_BXm1Empty",
"METPhi_PFHFHadronsMinus prev bunch empty", 50, -
M_PI,
M_PI);
902 meMETPhiHFEGammasPlus_BXm1Empty =
903 ibooker.
book1D(
"METPhiHFEGammasPlus_BXm1Empty",
"METPhi_PFHFEGammasPlus prev bunch empty", 50, -
M_PI,
M_PI);
904 meMETPhiHFEGammasMinus_BXm1Empty = ibooker.
book1D(
905 "METPhiHFEGammasMinus_BXm1Empty",
"METPhi_PFHFEGammasMinus prev bunch empty", 50, -
M_PI,
M_PI);
907 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
908 DirName +
"/" +
"METPhiChargedHadronsBarrel_BXm1Empty", meMETPhiChargedHadronsBarrel_BXm1Empty));
909 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
910 DirName +
"/" +
"METPhiChargedHadronsEndcapPlus_BXm1Empty", meMETPhiChargedHadronsEndcapPlus_BXm1Empty));
911 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
912 DirName +
"/" +
"METPhiChargedHadronsEndcapMinus_BXm1Empty", meMETPhiChargedHadronsEndcapMinus_BXm1Empty));
913 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
914 DirName +
"/" +
"METPhiNeutralHadronsBarrel_BXm1Empty", meMETPhiNeutralHadronsBarrel_BXm1Empty));
915 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
916 DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus_BXm1Empty", meMETPhiNeutralHadronsEndcapPlus_BXm1Empty));
917 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
918 DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus_BXm1Empty", meMETPhiNeutralHadronsEndcapMinus_BXm1Empty));
919 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsBarrel_BXm1Empty",
920 meMETPhiPhotonsBarrel_BXm1Empty));
921 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsEndcapPlus_BXm1Empty",
922 meMETPhiPhotonsEndcapPlus_BXm1Empty));
923 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsEndcapMinus_BXm1Empty",
924 meMETPhiPhotonsEndcapMinus_BXm1Empty));
925 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFHadronsPlus_BXm1Empty",
926 meMETPhiHFHadronsPlus_BXm1Empty));
927 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFHadronsMinus_BXm1Empty",
928 meMETPhiHFHadronsMinus_BXm1Empty));
929 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFEGammasPlus_BXm1Empty",
930 meMETPhiHFEGammasPlus_BXm1Empty));
931 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFEGammasMinus_BXm1Empty",
932 meMETPhiHFEGammasMinus_BXm1Empty));
934 meMETPhiChargedHadronsBarrel =
935 ibooker.
book1D(
"METPhiChargedHadronsBarrel",
"METPhi_PFChargedHadronsBarrel", 50, -
M_PI,
M_PI);
936 meMETPhiChargedHadronsEndcapPlus =
937 ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus",
"METPhi_PFChargedHadronsEndcapPlus", 50, -
M_PI,
M_PI);
938 meMETPhiChargedHadronsEndcapMinus =
939 ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus",
"METPhi_PFChargedHadronsEndcapMinus", 50, -
M_PI,
M_PI);
940 meMETPhiNeutralHadronsBarrel =
941 ibooker.
book1D(
"METPhiNeutralHadronsBarrel",
"METPhi_PFNeutralHadronsBarrel", 50, -
M_PI,
M_PI);
942 meMETPhiNeutralHadronsEndcapPlus =
943 ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus",
"METPhi_PFNeutralHadronsEndcapPlus", 50, -
M_PI,
M_PI);
944 meMETPhiNeutralHadronsEndcapMinus =
945 ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus",
"METPhi_PFNeutralHadronsEndcapMinus", 50, -
M_PI,
M_PI);
946 meMETPhiPhotonsBarrel = ibooker.
book1D(
"METPhiPhotonsBarrel",
"METPhi_PFPhotonsBarrel", 50, -
M_PI,
M_PI);
947 meMETPhiPhotonsEndcapPlus =
948 ibooker.
book1D(
"METPhiPhotonsEndcapPlus",
"METPhi_PFPhotonsEndcapPlus", 50, -
M_PI,
M_PI);
949 meMETPhiPhotonsEndcapMinus =
950 ibooker.
book1D(
"METPhiPhotonsEndcapMinus",
"METPhi_PFPhotonsEndcapMinus", 50, -
M_PI,
M_PI);
951 meMETPhiHFHadronsPlus = ibooker.
book1D(
"METPhiHFHadronsPlus",
"METPhi_PFHFHadronsPlus", 50, -
M_PI,
M_PI);
952 meMETPhiHFHadronsMinus = ibooker.
book1D(
"METPhiHFHadronsMinus",
"METPhi_PFHFHadronsMinus", 50, -
M_PI,
M_PI);
953 meMETPhiHFEGammasPlus = ibooker.
book1D(
"METPhiHFEGammasPlus",
"METPhi_PFHFEGammasPlus", 50, -
M_PI,
M_PI);
954 meMETPhiHFEGammasMinus = ibooker.
book1D(
"METPhiHFEGammasMinus",
"METPhi_PFHFEGammasMinus", 50, -
M_PI,
M_PI);
956 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiChargedHadronsBarrel",
957 meMETPhiChargedHadronsBarrel));
958 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiChargedHadronsEndcapPlus",
959 meMETPhiChargedHadronsEndcapPlus));
960 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiChargedHadronsEndcapMinus",
961 meMETPhiChargedHadronsEndcapMinus));
962 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiNeutralHadronsBarrel",
963 meMETPhiNeutralHadronsBarrel));
964 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus",
965 meMETPhiNeutralHadronsEndcapPlus));
966 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus",
967 meMETPhiNeutralHadronsEndcapMinus));
969 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsBarrel", meMETPhiPhotonsBarrel));
970 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsEndcapPlus",
971 meMETPhiPhotonsEndcapPlus));
972 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiPhotonsEndcapMinus",
973 meMETPhiPhotonsEndcapMinus));
975 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFHadronsPlus", meMETPhiHFHadronsPlus));
977 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFHadronsMinus", meMETPhiHFHadronsMinus));
979 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFEGammasPlus", meMETPhiHFEGammasPlus));
981 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METPhiHFEGammasMinus", meMETPhiHFEGammasMinus));
984 if (fillPFCandPlots && fillCandidateMap_histos) {
985 if (!profilePFCand_x_.empty()) {
986 etaMinPFCand_.clear();
987 etaMaxPFCand_.clear();
989 countsPFCand_.clear();
992 profilePFCand_x_.clear();
993 profilePFCand_y_.clear();
994 profilePFCand_x_name_.clear();
995 profilePFCand_y_name_.clear();
997 for (std::vector<edm::ParameterSet>::const_iterator
v = diagnosticsParameters_.begin();
998 v != diagnosticsParameters_.end();
1000 double etaMinPFCand =
v->getParameter<
double>(
"etaMin");
1001 double etaMaxPFCand =
v->getParameter<
double>(
"etaMax");
1002 int nMinPFCand =
v->getParameter<
int>(
"nMin");
1003 int nMaxPFCand =
v->getParameter<
int>(
"nMax");
1004 int nbinsPFCand =
v->getParameter<
double>(
"nbins");
1007 etaMinPFCand_.push_back(etaMinPFCand);
1008 etaMaxPFCand_.push_back(etaMaxPFCand);
1009 typePFCand_.push_back(
v->getParameter<
int>(
"type"));
1010 countsPFCand_.push_back(0);
1011 MExPFCand_.push_back(0.);
1012 MEyPFCand_.push_back(0.);
1014 profilePFCand_x_.push_back(
1023 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
1024 DirName +
"/" + profilePFCand_x_name_[profilePFCand_x_name_.size() - 1],
1025 profilePFCand_x_[profilePFCand_x_.size() - 1]));
1026 profilePFCand_y_.push_back(
1035 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
1036 DirName +
"/" + profilePFCand_y_name_[profilePFCand_y_name_.size() - 1],
1037 profilePFCand_y_[profilePFCand_y_.size() - 1]));
1041 if (isMiniAODMet_) {
1042 if (fillPFCandPlots &&
1043 fillCandidateMap_histos) {
1044 if (!profilePFCand_x_.empty()) {
1045 etaMinPFCand_.clear();
1046 etaMaxPFCand_.clear();
1047 typePFCand_.clear();
1048 countsPFCand_.clear();
1049 profilePFCand_x_.clear();
1050 profilePFCand_y_.clear();
1052 for (std::vector<edm::ParameterSet>::const_iterator
v = diagnosticsParameters_.begin();
1053 v != diagnosticsParameters_.end();
1055 double etaMinPFCand =
v->getParameter<
double>(
"etaMin");
1056 double etaMaxPFCand =
v->getParameter<
double>(
"etaMax");
1058 etaMinPFCand_.push_back(etaMinPFCand);
1059 etaMaxPFCand_.push_back(etaMaxPFCand);
1060 typePFCand_.push_back(
v->getParameter<
int>(
"type"));
1061 countsPFCand_.push_back(0);
1062 MExPFCand_.push_back(0.);
1063 MEyPFCand_.push_back(0.);
1068 if (isPFMet_ || isMiniAODMet_) {
1069 mePhotonEtFraction = ibooker.
book1D(
"PfPhotonEtFraction",
"photonEtFraction()", 50, 0, 1);
1070 meNeutralHadronEtFraction = ibooker.
book1D(
"PfNeutralHadronEtFraction",
"neutralHadronEtFraction()", 50, 0, 1);
1071 meChargedHadronEtFraction = ibooker.
book1D(
"PfChargedHadronEtFraction",
"chargedHadronEtFraction()", 50, 0, 1);
1072 meHFHadronEtFraction = ibooker.
book1D(
"PfHFHadronEtFraction",
"HFHadronEtFraction()", 50, 0, 1);
1073 meHFEMEtFraction = ibooker.
book1D(
"PfHFEMEtFraction",
"HFEMEtFraction()", 50, 0, 1);
1076 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFraction", mePhotonEtFraction));
1077 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfNeutralHadronEtFraction",
1078 meNeutralHadronEtFraction));
1079 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfChargedHadronEtFraction",
1080 meChargedHadronEtFraction));
1082 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEtFraction", meHFHadronEtFraction));
1083 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEtFraction", meHFEMEtFraction));
1085 mePhotonEtFraction_profile =
1086 ibooker.
bookProfile(
"PfPhotonEtFraction_profile",
"photonEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1087 meNeutralHadronEtFraction_profile = ibooker.
bookProfile(
1088 "PfNeutralHadronEtFraction_profile",
"neutralHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1089 meChargedHadronEtFraction_profile = ibooker.
bookProfile(
1090 "PfChargedHadronEtFraction_profile",
"chargedHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1091 meHFHadronEtFraction_profile = ibooker.
bookProfile(
1092 "PfHFHadronEtFraction_profile",
"HFHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1093 meHFEMEtFraction_profile =
1094 ibooker.
bookProfile(
"PfHFEMEtFraction_profile",
"HFEMEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
1096 meNeutralHadronEtFraction_profile->setAxisTitle(
"nvtx", 1);
1097 meChargedHadronEtFraction_profile->setAxisTitle(
"nvtx", 1);
1098 meHFHadronEtFraction_profile->setAxisTitle(
"nvtx", 1);
1099 meHFEMEtFraction_profile->setAxisTitle(
"nvtx", 1);
1101 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEtFraction_profile",
1102 mePhotonEtFraction_profile));
1103 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfNeutralHadronEtFraction_profile",
1104 meNeutralHadronEtFraction_profile));
1105 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfChargedHadronEtFraction_profile",
1106 meChargedHadronEtFraction_profile));
1107 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEtFraction_profile",
1108 meHFHadronEtFraction_profile));
1109 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEtFraction_profile",
1110 meHFEMEtFraction_profile));
1112 mePhotonEt = ibooker.
book1D(
"PfPhotonEt",
"photonEt()", 50, 0, 1000);
1113 meNeutralHadronEt = ibooker.
book1D(
"PfNeutralHadronEt",
"neutralHadronEt()", 50, 0, 1000);
1114 meElectronEt = ibooker.
book1D(
"PfElectronEt",
"electronEt()", 50, 0, 100);
1115 meChargedHadronEt = ibooker.
book1D(
"PfChargedHadronEt",
"chargedHadronEt()", 50, 0, 2000);
1116 meMuonEt = ibooker.
book1D(
"PfMuonEt",
"muonEt()", 50, 0, 100);
1117 meHFHadronEt = ibooker.
book1D(
"PfHFHadronEt",
"HFHadronEt()", 50, 0, 2000);
1118 meHFEMEt = ibooker.
book1D(
"PfHFEMEt",
"HFEMEt()", 50, 0, 1000);
1120 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEt", mePhotonEt));
1122 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfNeutralHadronEt", meNeutralHadronEt));
1123 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfElectronEt", meElectronEt));
1125 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfChargedHadronEt", meChargedHadronEt));
1126 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfMuonEt", meMuonEt));
1127 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEt", meHFHadronEt));
1128 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEt", meHFEMEt));
1130 mePhotonEt_profile =
1131 ibooker.
bookProfile(
"PfPhotonEt_profile",
"photonEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1133 "PfNeutralHadronEt_profile",
"neutralHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1135 "PfChargedHadronEt_profile",
"chargedHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1136 meHFHadronEt_profile =
1137 ibooker.
bookProfile(
"PfHFHadronEt_profile",
"HFHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1138 meHFEMEt_profile = ibooker.
bookProfile(
"PfHFEMEt_profile",
"HFEMEt()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1000);
1141 meNeutralHadronEt_profile->setAxisTitle(
"nvtx", 1);
1142 meChargedHadronEt_profile->setAxisTitle(
"nvtx", 1);
1143 meHFHadronEt_profile->setAxisTitle(
"nvtx", 1);
1144 meHFEMEt_profile->setAxisTitle(
"nvtx", 1);
1147 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfPhotonEt_profile", mePhotonEt_profile));
1148 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfNeutralHadronEt_profile",
1149 meNeutralHadronEt_profile));
1150 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfChargedHadronEt_profile",
1151 meChargedHadronEt_profile));
1153 std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFHadronEt_profile", meHFHadronEt_profile));
1154 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"PfHFEMEt_profile", meHFEMEt_profile));
1158 if (fill_met_high_level_histo) {
1159 hMExLS = ibooker.
book2D(
"MExLS",
"MEx_LS", 200, -200, 200, 250, 0., 2500.);
1161 hMExLS->setAxisTitle(
"Lumi Section", 2);
1162 hMExLS->setOption(
"colz");
1163 hMEyLS = ibooker.
book2D(
"MEyLS",
"MEy_LS", 200, -200, 200, 250, 0., 2500.);
1165 hMEyLS->setAxisTitle(
"Lumi Section", 2);
1166 hMEyLS->setOption(
"colz");
1167 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MExLS", hMExLS));
1168 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"MEyLS", hMEyLS));
1172 hMETRate = ibooker.
book1D(
"METRate",
"METRate", 200, 0, 1000);
1173 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName +
"/" +
"METRate", hMETRate));
1176 lumisecME = ibooker.
book1D(
"lumisec",
"lumisec", 2501, -1., 2500.);
1177 map_of_MEs.insert(std::pair<std::string, MonitorElement*>(
"JetMET/lumisec", lumisecME));
1186 if ((techTrig->second).algoName() == m_l1algoname_) {
1187 m_bitAlgTechTrig_ = (techTrig->second).algoBitNumber();
1195 if (hltConfig_.init(iRun, iSetup, triggerResultsLabel_.process(), changed)) {
1207 std::cout <<
"HLTEventAnalyzerAOD::analyze:"
1208 <<
" config extraction failure with process name " << triggerResultsLabel_.process() << std::endl;
1211 allTriggerNames_.clear();
1212 for (
unsigned int i = 0;
i < hltConfig_.size();
i++) {
1213 allTriggerNames_.push_back(hltConfig_.triggerName(
i));
1218 for (std::vector<GenericTriggerEventFlag*>::const_iterator it = triggerFolderEventFlag_.begin();
1219 it != triggerFolderEventFlag_.end();
1221 int pos = it - triggerFolderEventFlag_.begin();
1223 (*it)->initRun(iRun, iSetup);
1224 if (triggerSelectedSubFolders_[pos].exists(
std::string(
"hltDBKey"))) {
1225 if ((*it)->expressionsFromDB((*it)->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
1226 triggerFolderExpr_[pos] = (*it)->expressionsFromDB((*it)->hltDBKey(), iSetup);
1230 if (isMiniAODMet_) {
1231 bool changed_filter =
true;
1232 std::vector<int> initializeFilter(8, -1);
1233 miniaodFilterIndex_ = initializeFilter;
1234 if (FilterhltConfig_.init(iRun, iSetup, METFilterMiniAODLabel_.process(), changed_filter)) {
1235 miniaodfilterdec = 0;
1236 for (
unsigned int i = 0;
i < FilterhltConfig_.size();
i++) {
1240 HBHENoiseStringMiniAOD;
1241 std::size_t
found = search2.find(search);
1242 if (found != std::string::npos) {
1243 miniaodFilterIndex_[0] =
i;
1245 search2 = CSCHaloResultTag_.label().substr(0, CSCHaloResultTag_.label().size() - 3);
1246 found = search2.find(search);
1247 if (found != std::string::npos) {
1248 miniaodFilterIndex_[1] =
i;
1250 search2 = eeBadScFilterTag_.label().substr(0, eeBadScFilterTag_.label().size() - 3);
1251 found = search2.find(search);
1252 if (found != std::string::npos) {
1253 miniaodFilterIndex_[2] =
i;
1255 search2 = HBHEIsoNoiseStringMiniAOD;
1256 found = search2.find(search);
1257 if (found != std::string::npos) {
1258 miniaodFilterIndex_[3] =
i;
1260 search2 = CSCHalo2015ResultTag_.label().substr(0, CSCHalo2015ResultTag_.label().size() - 3);
1261 found = search2.find(search);
1262 if (found != std::string::npos) {
1263 miniaodFilterIndex_[4] =
i;
1265 search2 = EcalDeadCellTriggerTag_.label().substr(0, EcalDeadCellTriggerTag_.label().size() - 3);
1266 found = search2.find(search);
1267 if (found != std::string::npos) {
1268 miniaodFilterIndex_[5] =
i;
1270 search2 = EcalDeadCellBoundaryTag_.label().substr(0, EcalDeadCellBoundaryTag_.label().size() - 3);
1271 found = search2.find(search);
1272 if (found != std::string::npos) {
1273 miniaodFilterIndex_[6] =
i;
1275 search2 = HcalStripHaloTag_.label().substr(0, HcalStripHaloTag_.label().size() - 3);
1276 found = search2.find(search);
1277 if (found != std::string::npos) {
1278 miniaodFilterIndex_[7] =
i;
1281 }
else if (FilterhltConfig_.init(iRun, iSetup, METFilterMiniAODLabel2_.process(), changed_filter)) {
1282 miniaodfilterdec = 1;
1283 for (
unsigned int i = 0;
i < FilterhltConfig_.size();
i++) {
1287 HBHENoiseStringMiniAOD;
1288 std::size_t
found = search2.find(search);
1289 if (found != std::string::npos) {
1290 miniaodFilterIndex_[0] =
i;
1292 search2 = CSCHaloResultTag_.label().substr(0, CSCHaloResultTag_.label().size() - 3);
1293 found = search2.find(search);
1294 if (found != std::string::npos) {
1295 miniaodFilterIndex_[1] =
i;
1297 search2 = eeBadScFilterTag_.label().substr(0, eeBadScFilterTag_.label().size() - 3);
1298 found = search2.find(search);
1299 if (found != std::string::npos) {
1300 miniaodFilterIndex_[2] =
i;
1302 search2 = HBHEIsoNoiseStringMiniAOD;
1303 found = search2.find(search);
1304 if (found != std::string::npos) {
1305 miniaodFilterIndex_[3] =
i;
1307 search2 = CSCHalo2015ResultTag_.label().substr(0, CSCHalo2015ResultTag_.label().size() - 3);
1308 found = search2.find(search);
1309 if (found != std::string::npos) {
1310 miniaodFilterIndex_[4] =
i;
1312 search2 = EcalDeadCellTriggerTag_.label().substr(0, EcalDeadCellTriggerTag_.label().size() - 3);
1313 found = search2.find(search);
1314 if (found != std::string::npos) {
1315 miniaodFilterIndex_[5] =
i;
1317 search2 = EcalDeadCellBoundaryTag_.label().substr(0, EcalDeadCellBoundaryTag_.label().size() - 3);
1318 found = search2.find(search);
1319 if (found != std::string::npos) {
1320 miniaodFilterIndex_[6] =
i;
1322 search2 = HcalStripHaloTag_.label().substr(0, HcalStripHaloTag_.label().size() - 3);
1323 found = search2.find(search);
1324 if (found != std::string::npos) {
1325 miniaodFilterIndex_[7] =
i;
1330 <<
"nothing found with both RECO and reRECO label" << std::endl;
1343 meLumiSec = map_dijet_MEs[
"JetMET/lumisec"];
1346 int totlssecsum = 0;
1347 double totltime = 0.;
1349 tlumisec = meLumiSec->
getTH1F();
1354 for (
int i = 0;
i < (tlumisec->GetNbinsX());
i++) {
1355 if (tlumisec->GetBinContent(
i) != 0) {
1357 totlssecsum += tlumisec->GetBinContent(
i);
1360 int num_per_ls = (double)totlssecsum / (
double)totlsec;
1361 totlsec = totlsec + tlumisec->GetBinContent(tlumisec->GetNbinsX() + 1) / (
double)num_per_ls;
1362 totltime = double(totlsec * 90);
1373 for (std::vector<std::string>::const_iterator ic = folderNames_.begin(); ic != folderNames_.end(); ic++) {
1375 DirName = dirName + *ic;
1376 makeRatePlot(DirName, totltime);
1377 for (std::vector<GenericTriggerEventFlag*>::const_iterator it = triggerFolderEventFlag_.begin();
1378 it != triggerFolderEventFlag_.end();
1380 int pos = it - triggerFolderEventFlag_.begin();
1382 makeRatePlot(DirName +
"/" + triggerFolderLabels_[pos], totltime);
1392 MonitorElement* mMETRate = map_dijet_MEs[DirName +
"/" +
"METRate"];
1397 if (meMET && mMETRate) {
1402 tMETRate = (TH1F*)tMET->Clone(
"METRateHist");
1403 for (
int i = tMETRate->GetNbinsX() - 1;
i >= 0;
i--) {
1404 tMETRate->SetBinContent(
i + 1, tMETRate->GetBinContent(
i + 2) + tMET->GetBinContent(
i + 1));
1406 for (
int i = 0;
i < tMETRate->GetNbinsX();
i++) {
1407 tMETRate->SetBinContent(
i + 1, tMETRate->GetBinContent(
i + 1) / double(totltime));
1417 int myLuminosityBlock;
1419 if (fill_met_high_level_histo) {
1420 lumisecME = map_dijet_MEs[
"JetMET/lumisec"];
1421 if (lumisecME && lumisecME->getRootObject())
1422 lumisecME->Fill(myLuminosityBlock);
1425 if (myLuminosityBlock < LSBegin_)
1427 if (myLuminosityBlock > LSEnd_ && LSEnd_ > 0)
1431 std::cout <<
"METAnalyzer analyze" << std::endl;
1433 std::string DirName = FolderName_ + metCollectionLabel_.label();
1447 std::vector<int> triggerFolderDecisions;
1448 triggerFolderDecisions_ = std::vector<int>(triggerFolderEventFlag_.size(), 0);
1451 iEvent.
getByToken(triggerResultsToken_, triggerResults);
1453 if (triggerResults.isValid()) {
1456 int ntrigs = (*triggerResults).size();
1458 std::cout <<
"ntrigs=" << ntrigs << std::endl;
1460 for (std::vector<GenericTriggerEventFlag*>::const_iterator it = triggerFolderEventFlag_.begin();
1461 it != triggerFolderEventFlag_.end();
1463 unsigned int pos = it - triggerFolderEventFlag_.begin();
1464 bool fd = (*it)->accept(iEvent, iSetup);
1465 triggerFolderDecisions_[pos] =
fd;
1467 allTriggerDecisions_.clear();
1468 for (
unsigned int i = 0;
i < allTriggerNames_.size(); ++
i) {
1469 allTriggerDecisions_.push_back((*triggerResults).accept(
i));
1488 iEvent.
getByToken(caloMetToken_, calometcoll);
1497 if (isMiniAODMet_) {
1503 const MET*
met =
nullptr;
1505 const PFMET* pfmet =
nullptr;
1506 const CaloMET* calomet =
nullptr;
1511 assert(!pfmetcoll->empty());
1512 met = &(pfmetcoll->front());
1513 pfmet = &(pfmetcoll->front());
1516 assert(!calometcoll->empty());
1517 met = &(calometcoll->front());
1518 calomet = &(calometcoll->front());
1520 if (isMiniAODMet_) {
1521 assert(!patmetcoll->empty());
1522 met = &(patmetcoll->front());
1523 patmet = &(patmetcoll->front());
1526 LogTrace(
"METAnalyzer") <<
"[METAnalyzer] Call to the MET analyzer";
1548 bool bJetID =
false;
1549 bool bDiJetID =
false;
1563 LogDebug(
"") <<
"METAnalyzer: Could not find calojet product" << std::endl;
1565 std::cout <<
"METAnalyzer: Could not find calojet product" << std::endl;
1567 collsize = caloJets->size();
1582 iEvent.
getByToken(jetID_ValueMapToken_, jetID_ValueMap_Handle);
1586 if (isMiniAODMet_) {
1589 LogDebug(
"") <<
"METAnalyzer: Could not find patjet product" << std::endl;
1591 std::cout <<
"METAnalyzer: Could not find patjet product" << std::endl;
1593 collsize = patJets->size();
1599 LogDebug(
"") <<
"METAnalyzer: Could not find pfjet product" << std::endl;
1601 std::cout <<
"METAnalyzer: Could not find pfjet product" << std::endl;
1603 collsize = pfJets->size();
1606 unsigned int ind1 = -1;
1608 bool pass_jetID1 =
false;
1609 unsigned int ind2 = -1;
1611 bool pass_jetID2 =
false;
1614 bool pass_correction_flag =
false;
1615 if (!isMiniAODMet_) {
1616 iEvent.
getByToken(jetCorrectorToken_, jetCorr);
1618 pass_correction_flag =
true;
1621 pass_correction_flag =
true;
1624 for (
int ijet = 0; ijet < collsize; ijet++) {
1625 double pt_jet = -10;
1627 bool iscleaned =
false;
1628 if (pass_correction_flag) {
1630 scale = jetCorr->correction((*caloJets)[ijet]);
1636 scale = jetCorr->correction((*pfJets)[ijet]);
1640 pt_jet = scale * (*caloJets)[ijet].pt();
1641 if (pt_jet > ptThreshold_) {
1644 reco::JetID jetID = (*jetID_ValueMap_Handle)[calojetref];
1645 iscleaned = jetIDFunctorLoose((*caloJets)[ijet], jetID);
1667 pt_jet = scale * (*pfJets)[ijet].pt();
1668 if (pt_jet > ptThreshold_) {
1669 iscleaned = pfjetIDFunctorLoose((*pfJets)[ijet]);
1672 if (isMiniAODMet_) {
1673 pt_jet = (*patJets)[ijet].pt();
1674 if (pt_jet > ptThreshold_) {
1675 pat::strbitset stringbitset = pfjetIDFunctorLoose.getBitTemplate();
1676 iscleaned = pfjetIDFunctorLoose((*patJets)[ijet], stringbitset);
1685 pass_jetID2 = pass_jetID1;
1688 pass_jetID1 = iscleaned;
1689 }
else if (pt_jet > pt2) {
1692 pass_jetID2 = iscleaned;
1695 if (pass_jetID1 && pass_jetID2) {
1698 dphi = fabs((*caloJets)[ind1].phi() - (*caloJets)[ind2].phi());
1704 dphi = fabs((*pfJets)[ind1].phi() - (*pfJets)[ind2].phi());
1706 if (isMiniAODMet_) {
1707 dphi = fabs((*patJets)[0].phi() - (*patJets)[1].phi());
1709 if (dphi > acos(-1.)) {
1710 dphi = 2 * acos(-1.) - dphi;
1720 iEvent.
getByToken(vertexToken_, vertexHandle);
1722 if (!vertexHandle.
isValid()) {
1723 LogDebug(
"") <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1725 std::cout <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1730 numPV_ = vertexCollection.size();
1732 bool bPrimaryVertex = (bypassAllPVChecks_ || (numPV_ > 0));
1734 bool bZJets =
false;
1741 double pt_muon0 = -1;
1742 double pt_muon1 = -1;
1746 if (Muons.
isValid() && Muons->size() > 1) {
1747 for (
unsigned int i = 0;
i < Muons->size();
i++) {
1748 bool pass_muon_id =
false;
1749 bool pass_muon_iso =
false;
1750 double dxy = fabs((*Muons)[
i].muonBestTrack()->
dxy());
1751 double dz = fabs((*Muons)[
i].muonBestTrack()->
dz());
1753 dxy = fabs((*Muons)[
i].muonBestTrack()->
dxy((*vertexHandle)[0].
position()));
1754 dz = fabs((*Muons)[
i].muonBestTrack()->
dz((*vertexHandle)[0].
position()));
1756 if ((*Muons)[
i].
pt() > 20 && fabs((*Muons)[
i].
eta()) < 2.3) {
1757 if ((*Muons)[
i].isGlobalMuon() && (*Muons)[
i].isPFMuon() &&
1758 (*Muons)[
i].globalTrack()->hitPattern().numberOfValidMuonHits() > 0 &&
1759 (*Muons)[
i].numberOfMatchedStations() > 1 && dxy < 0.2 && (*Muons)[
i].numberOfMatchedStations() > 1 &&
1761 (*Muons)[
i].
innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5) {
1762 pass_muon_id =
true;
1766 ((*Muons)[
i].pfIsolationR04().sumChargedHadronPt +
1768 (*Muons)[
i].pfIsolationR04().sumNeutralHadronEt + (*Muons)[
i].pfIsolationR04().sumPhotonEt -
1769 0.5 * (*Muons)[
i].pfIsolationR04().sumPUPt)) /
1771 if (muonIsoPFdb < 0.12) {
1772 pass_muon_iso =
true;
1775 if (pass_muon_id && pass_muon_iso) {
1776 if ((*Muons)[
i].
pt() > pt_muon0) {
1777 mu_index1 = mu_index0;
1778 pt_muon1 = pt_muon0;
1780 pt_muon0 = (*Muons)[
i].pt();
1781 }
else if ((*Muons)[
i].
pt() > pt_muon1) {
1783 pt_muon1 = (*Muons)[
i].pt();
1788 if (mu_index0 >= 0 && mu_index1 >= 0) {
1789 if ((*Muons)[mu_index0].
charge() * (*Muons)[mu_index1].
charge() < 0) {
1790 zCand = (*Muons)[mu_index0].polarP4() + (*Muons)[mu_index1].polarP4();
1791 if (fabs(zCand.M() - 91.) < 20) {
1801 iEvent.
getByToken(gtToken_, gtReadoutRecord);
1803 bool techTriggerResultBxM2 =
false;
1804 bool techTriggerResultBxM1 =
false;
1805 bool techTriggerResultBx0 =
false;
1807 if (!gtReadoutRecord.
isValid()) {
1808 LogDebug(
"") <<
"METAnalyzer: Could not find GT readout record" << std::endl;
1810 std::cout <<
"METAnalyzer: Could not find GT readout record product" << std::endl;
1813 const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBxM2 = gtReadoutRecord->technicalTriggerWord(-2);
1814 const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBxM1 = gtReadoutRecord->technicalTriggerWord(-1);
1815 const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBx0 = gtReadoutRecord->technicalTriggerWord();
1818 if (m_bitAlgTechTrig_ > -1 && !technicalTriggerWordBeforeMaskBx0.empty()) {
1819 techTriggerResultBx0 = technicalTriggerWordBeforeMaskBx0.at(m_bitAlgTechTrig_);
1820 if (techTriggerResultBx0 != 0) {
1821 techTriggerResultBxM2 = technicalTriggerWordBeforeMaskBxM2.at(m_bitAlgTechTrig_);
1822 techTriggerResultBxM1 = technicalTriggerWordBeforeMaskBxM1.at(m_bitAlgTechTrig_);
1827 std::vector<bool> trigger_flag(4,
false);
1828 if (techTriggerResultBx0 && techTriggerResultBxM2 &&
1829 techTriggerResultBxM1) {
1830 trigger_flag[0] =
true;
1832 if (techTriggerResultBx0 && techTriggerResultBxM1) {
1833 trigger_flag[1] =
true;
1835 if (techTriggerResultBx0 && !techTriggerResultBxM1) {
1836 trigger_flag[2] =
true;
1838 if (techTriggerResultBx0 && !techTriggerResultBxM2 &&
1839 !techTriggerResultBxM1) {
1840 trigger_flag[3] =
true;
1842 std::vector<bool> filter_decisions(
1844 if (!isMiniAODMet_ &&
1847 iEvent.
getByToken(hbheNoiseFilterResultToken_, HBHENoiseFilterResultHandle);
1848 if (!HBHENoiseFilterResultHandle.
isValid()) {
1849 LogDebug(
"") <<
"METAnalyzer: Could not find HBHENoiseFilterResult" << std::endl;
1851 std::cout <<
"METAnalyzer: Could not find HBHENoiseFilterResult" << std::endl;
1853 filter_decisions[0] = *HBHENoiseFilterResultHandle;
1855 iEvent.
getByToken(CSCHaloResultToken_, CSCTightHaloFilterResultHandle);
1856 if (!CSCTightHaloFilterResultHandle.
isValid()) {
1857 LogDebug(
"") <<
"METAnalyzer: Could not find CSCTightHaloFilterResultHandle" << std::endl;
1859 std::cout <<
"METAnalyzer: CSCTightHaloFilterResultHandle" << std::endl;
1861 filter_decisions[1] = *CSCTightHaloFilterResultHandle;
1863 iEvent.
getByToken(eeBadScFilterToken_, eeBadScFilterResultHandle);
1864 if (!eeBadScFilterResultHandle.
isValid()) {
1865 LogDebug(
"") <<
"METAnalyzer: Could not find eeBadScFilterResultHandle" << std::endl;
1867 std::cout <<
"METAnalyzer: eeBadScFilterResultHandle" << std::endl;
1869 filter_decisions[2] = *eeBadScFilterResultHandle;
1871 iEvent.
getByToken(hbheIsoNoiseFilterResultToken_, HBHENoiseIsoFilterResultHandle);
1872 if (!HBHENoiseIsoFilterResultHandle.
isValid()) {
1873 LogDebug(
"") <<
"METAnalyzer: Could not find HBHENoiseIsoFilterResult" << std::endl;
1875 std::cout <<
"METAnalyzer: Could not find HBHENoiseIsoFilterResult" << std::endl;
1877 filter_decisions[3] = *HBHENoiseIsoFilterResultHandle;
1879 iEvent.
getByToken(CSCHalo2015ResultToken_, CSCTightHalo2015FilterResultHandle);
1880 if (!CSCTightHalo2015FilterResultHandle.
isValid()) {
1881 LogDebug(
"") <<
"METAnalyzer: Could not find CSCTightHalo2015FilterResultHandle" << std::endl;
1883 std::cout <<
"METAnalyzer: CSCTightHalo2015FilterResultHandle" << std::endl;
1885 filter_decisions[4] = *CSCTightHalo2015FilterResultHandle;
1887 iEvent.
getByToken(EcalDeadCellTriggerToken_, EcalDeadCellTriggerFilterResultHandle);
1888 if (!EcalDeadCellTriggerFilterResultHandle.
isValid()) {
1889 LogDebug(
"") <<
"METAnalyzer: Could not find EcalDeadCellTriggerFilterResultHandle" << std::endl;
1891 std::cout <<
"METAnalyzer: EcalDeadCellTriggerFilterResultHandle" << std::endl;
1893 filter_decisions[5] = *EcalDeadCellTriggerFilterResultHandle;
1895 iEvent.
getByToken(EcalDeadCellBoundaryToken_, EcalDeadCellBoundaryHandle);
1896 if (!EcalDeadCellBoundaryHandle.
isValid()) {
1897 LogDebug(
"") <<
"METAnalyzer: Could not find EcalDeadCellBoundaryHandle" << std::endl;
1899 std::cout <<
"METAnalyzer: EcalDeadCellBoundaryHandle" << std::endl;
1901 filter_decisions[6] = *EcalDeadCellBoundaryHandle;
1903 iEvent.
getByToken(HcalStripHaloToken_, HcalStripHaloFilterHandle);
1904 if (!HcalStripHaloFilterHandle.
isValid()) {
1905 LogDebug(
"") <<
"METAnalyzer: Could not find CSCTightHalo2015FilterResultHandle" << std::endl;
1907 std::cout <<
"METAnalyzer: CSCTightHalo2015FilterResultHandle" << std::endl;
1909 filter_decisions[7] = *HcalStripHaloFilterHandle;
1910 }
else if (isMiniAODMet_) {
1913 iEvent.
getByToken(METFilterMiniAODToken_, metFilterResults);
1914 if (metFilterResults.
isValid()) {
1915 if (miniaodFilterIndex_[0] != -1) {
1916 filter_decisions[0] = metFilterResults->accept(miniaodFilterIndex_[0]);
1918 if (miniaodFilterIndex_[1] != -1) {
1919 filter_decisions[1] = metFilterResults->accept(miniaodFilterIndex_[1]);
1921 if (miniaodFilterIndex_[2] != -1) {
1922 filter_decisions[2] = metFilterResults->accept(miniaodFilterIndex_[2]);
1924 if (miniaodFilterIndex_[3] != -1) {
1925 filter_decisions[3] = metFilterResults->accept(miniaodFilterIndex_[3]);
1927 if (miniaodFilterIndex_[4] != -1) {
1928 filter_decisions[4] = metFilterResults->accept(miniaodFilterIndex_[4]);
1930 if (miniaodFilterIndex_[5] != -1) {
1931 filter_decisions[5] = metFilterResults->accept(miniaodFilterIndex_[5]);
1933 if (miniaodFilterIndex_[6] != -1) {
1934 filter_decisions[6] = metFilterResults->accept(miniaodFilterIndex_[6]);
1936 if (miniaodFilterIndex_[7] != -1) {
1937 filter_decisions[7] = metFilterResults->accept(miniaodFilterIndex_[7]);
1940 iEvent.
getByToken(METFilterMiniAODToken2_, metFilterResults);
1941 if (metFilterResults.
isValid()) {
1942 if (miniaodFilterIndex_[0] != -1) {
1943 filter_decisions[0] = metFilterResults->accept(miniaodFilterIndex_[0]);
1945 if (miniaodFilterIndex_[1] != -1) {
1946 filter_decisions[1] = metFilterResults->accept(miniaodFilterIndex_[1]);
1948 if (miniaodFilterIndex_[2] != -1) {
1949 filter_decisions[2] = metFilterResults->accept(miniaodFilterIndex_[2]);
1951 if (miniaodFilterIndex_[3] != -1) {
1952 filter_decisions[3] = metFilterResults->accept(miniaodFilterIndex_[3]);
1954 if (miniaodFilterIndex_[4] != -1) {
1955 filter_decisions[4] = metFilterResults->accept(miniaodFilterIndex_[4]);
1957 if (miniaodFilterIndex_[5] != -1) {
1958 filter_decisions[5] = metFilterResults->accept(miniaodFilterIndex_[5]);
1960 if (miniaodFilterIndex_[6] != -1) {
1961 filter_decisions[6] = metFilterResults->accept(miniaodFilterIndex_[6]);
1963 if (miniaodFilterIndex_[7] != -1) {
1964 filter_decisions[7] = metFilterResults->accept(miniaodFilterIndex_[7]);
1969 bool HBHENoiseFilterResultFlag = filter_decisions[0];
1972 bool bHBHENoiseFilter = HBHENoiseFilterResultFlag;
1975 bool bDCSFilter = (bypassAllDCSChecks_ || DCSFilter_->filter(iEvent, iSetup));
1979 for (std::vector<std::string>::const_iterator ic = folderNames_.begin(); ic != folderNames_.end(); ic++) {
1980 bool pass_selection =
false;
1981 if ((*ic ==
"Uncleaned") && (isCaloMet_ || bPrimaryVertex)) {
1983 DirName_old +
"/" + *ic,
1992 pass_selection =
true;
1995 if ((*ic ==
"Cleaned") && bDCSFilter && bHBHENoiseFilter && bPrimaryVertex && bJetID) {
1997 DirName_old +
"/" + *ic,
2006 pass_selection =
true;
2008 if ((*ic ==
"DiJet") && bDCSFilter && bHBHENoiseFilter && bPrimaryVertex && bDiJetID) {
2010 DirName_old +
"/" + *ic,
2019 pass_selection =
true;
2021 if ((*ic ==
"ZJets") && bDCSFilter && bHBHENoiseFilter && bPrimaryVertex && bZJets) {
2023 DirName_old +
"/" + *ic,
2032 pass_selection =
true;
2034 if (pass_selection && isPFMet_) {
2035 DirName = DirName_old +
"/" + *ic;
2048 std::map<std::string, MonitorElement*>& map_of_MEs,
2049 std::vector<bool> techTriggerCase,
2050 std::vector<bool> METFilterDecision) {
2051 bool bLumiSecPlot = fill_met_high_level_histo;
2052 bool fillPFCandidatePlots =
false;
2053 if (DirName.find(
"Cleaned") != std::string::npos) {
2054 fillPFCandidatePlots =
true;
2055 fillMonitorElement(iEvent,
2065 fillPFCandidatePlots,
2068 for (
unsigned int i = 0;
i < triggerFolderLabels_.size();
i++) {
2069 fillPFCandidatePlots =
false;
2070 if (triggerFolderDecisions_[
i]) {
2071 fillMonitorElement(iEvent,
2073 triggerFolderLabels_[i],
2081 fillPFCandidatePlots,
2086 }
else if (DirName.find(
"DiJet") != std::string::npos) {
2087 fillMonitorElement(iEvent,
2097 fillPFCandidatePlots,
2100 for (
unsigned int i = 0;
i < triggerFolderLabels_.size();
i++) {
2101 if (triggerFolderDecisions_[
i])
2102 fillMonitorElement(iEvent,
2104 triggerFolderLabels_[i],
2112 fillPFCandidatePlots,
2116 }
else if (DirName.find(
"ZJets") != std::string::npos) {
2117 fillMonitorElement(iEvent,
2127 fillPFCandidatePlots,
2131 fillMonitorElement(iEvent,
2141 fillPFCandidatePlots,
2156 std::map<std::string, MonitorElement*>& map_of_MEs,
2158 bool fillPFCandidatePlots,
2159 std::vector<bool> techTriggerCase,
2160 std::vector<bool> METFilterDecision) {
2161 bool do_only_Z_histograms =
false;
2162 if (DirName.find(
"ZJets") != std::string::npos) {
2163 do_only_Z_histograms =
true;
2166 double u_x = -met.
px() - zCand.Px();
2167 double u_y = -met.
py() - zCand.Py();
2171 double u_perp =
sqrt(u_x * u_x + u_y * u_y);
2174 if (zCand.Pt() != 0) {
2175 e_Z_x = zCand.Px() / zCand.Pt();
2176 e_Z_y = zCand.Py() / zCand.Pt();
2178 u_par = u_x * e_Z_x + u_y * e_Z_y;
2179 u_perp = -e_Z_y * u_x + e_Z_x * u_y;
2181 meZJets_u_par = map_of_MEs[DirName +
"/" +
"u_parallel_Z_inc"];
2182 if (meZJets_u_par && meZJets_u_par->getRootObject())
2183 meZJets_u_par->Fill(u_par);
2184 if (zCand.Pt() < 15) {
2185 meZJets_u_par_ZPt_0_15 = map_of_MEs[DirName +
"/" +
"u_parallel_ZPt_0_15"];
2186 if (meZJets_u_par_ZPt_0_15 && meZJets_u_par_ZPt_0_15->getRootObject())
2187 meZJets_u_par_ZPt_0_15->Fill(u_par);
2188 }
else if (zCand.Pt() < 30) {
2189 meZJets_u_par_ZPt_15_30 = map_of_MEs[DirName +
"/" +
"u_parallel_ZPt_15_30"];
2190 if (meZJets_u_par_ZPt_15_30 && meZJets_u_par_ZPt_15_30->getRootObject())
2191 meZJets_u_par_ZPt_15_30->Fill(u_par);
2192 }
else if (zCand.Pt() < 55) {
2193 meZJets_u_par_ZPt_30_55 = map_of_MEs[DirName +
"/" +
"u_parallel_ZPt_30_55"];
2194 if (meZJets_u_par_ZPt_30_55 && meZJets_u_par_ZPt_30_55->getRootObject())
2195 meZJets_u_par_ZPt_30_55->Fill(u_par);
2196 }
else if (zCand.Pt() < 75) {
2197 meZJets_u_par_ZPt_55_75 = map_of_MEs[DirName +
"/" +
"u_parallel_ZPt_55_75"];
2198 if (meZJets_u_par_ZPt_55_75 && meZJets_u_par_ZPt_55_75->getRootObject())
2199 meZJets_u_par_ZPt_55_75->Fill(u_par);
2200 }
else if (zCand.Pt() < 150) {
2201 meZJets_u_par_ZPt_75_150 = map_of_MEs[DirName +
"/" +
"u_parallel_ZPt_75_150"];
2202 if (meZJets_u_par_ZPt_75_150 && meZJets_u_par_ZPt_75_150->getRootObject())
2203 meZJets_u_par_ZPt_75_150->Fill(u_par);
2204 }
else if (zCand.Pt() < 290) {
2205 meZJets_u_par_ZPt_150_290 = map_of_MEs[DirName +
"/" +
"u_parallel_ZPt_150_290"];
2206 if (meZJets_u_par_ZPt_150_290 && meZJets_u_par_ZPt_150_290->getRootObject())
2207 meZJets_u_par_ZPt_150_290->Fill(u_par);
2209 meZJets_u_par_ZPt_290 = map_of_MEs[DirName +
"/" +
"u_parallel_ZPt_290"];
2210 if (meZJets_u_par_ZPt_290 && meZJets_u_par_ZPt_290->getRootObject())
2211 meZJets_u_par_ZPt_290->Fill(u_par);
2214 meZJets_u_perp = map_of_MEs[DirName +
"/" +
"u_perp_Z_inc"];
2215 if (meZJets_u_perp && meZJets_u_perp->getRootObject())
2216 meZJets_u_perp->Fill(u_perp);
2217 if (zCand.Pt() < 15) {
2218 meZJets_u_perp_ZPt_0_15 = map_of_MEs[DirName +
"/" +
"u_perp_ZPt_0_15"];
2219 if (meZJets_u_perp_ZPt_0_15 && meZJets_u_perp_ZPt_0_15->getRootObject())
2220 meZJets_u_perp_ZPt_0_15->Fill(u_perp);
2221 }
else if (zCand.Pt() < 30) {
2222 meZJets_u_perp_ZPt_15_30 = map_of_MEs[DirName +
"/" +
"u_perp_ZPt_15_30"];
2223 if (meZJets_u_perp_ZPt_15_30 && meZJets_u_perp_ZPt_15_30->getRootObject())
2224 meZJets_u_perp_ZPt_15_30->Fill(u_perp);
2225 }
else if (zCand.Pt() < 55) {
2226 meZJets_u_perp_ZPt_30_55 = map_of_MEs[DirName +
"/" +
"u_perp_ZPt_30_55"];
2227 if (meZJets_u_perp_ZPt_30_55 && meZJets_u_perp_ZPt_30_55->getRootObject())
2228 meZJets_u_perp_ZPt_30_55->Fill(u_perp);
2229 }
else if (zCand.Pt() < 75) {
2230 meZJets_u_perp_ZPt_55_75 = map_of_MEs[DirName +
"/" +
"u_perp_ZPt_55_75"];
2231 if (meZJets_u_perp_ZPt_55_75 && meZJets_u_perp_ZPt_55_75->getRootObject())
2232 meZJets_u_perp_ZPt_55_75->Fill(u_perp);
2233 }
else if (zCand.Pt() < 150) {
2234 meZJets_u_perp_ZPt_75_150 = map_of_MEs[DirName +
"/" +
"u_perp_ZPt_75_150"];
2235 if (meZJets_u_perp_ZPt_75_150 && meZJets_u_perp_ZPt_75_150->getRootObject())
2236 meZJets_u_perp_ZPt_75_150->Fill(u_perp);
2237 }
else if (zCand.Pt() < 290) {
2238 meZJets_u_perp_ZPt_150_290 = map_of_MEs[DirName +
"/" +
"u_perp_ZPt_150_290"];
2239 if (meZJets_u_perp_ZPt_150_290 && meZJets_u_perp_ZPt_150_290->getRootObject())
2240 meZJets_u_perp_ZPt_150_290->Fill(u_perp);
2242 meZJets_u_perp_ZPt_290 = map_of_MEs[DirName +
"/" +
"u_perp_ZPt_290"];
2243 if (meZJets_u_perp_ZPt_290 && meZJets_u_perp_ZPt_290->getRootObject())
2244 meZJets_u_perp_ZPt_290->Fill(u_perp);
2247 if (!do_only_Z_histograms) {
2249 double SumET = met.
sumEt();
2250 double METSig = met.
mEtSig();
2252 double MET = met.
pt();
2253 double MEx = met.
px();
2254 double MEy = met.
py();
2255 double METPhi = met.
phi();
2257 int myLuminosityBlock;
2261 if (!subFolderName.empty()) {
2262 DirName = DirName +
"/" + subFolderName;
2265 hTrigger = map_of_MEs[DirName +
"/triggerResults"];
2266 if (hTrigger && hTrigger->getRootObject()) {
2267 for (
unsigned int i = 0;
i < allTriggerDecisions_.size();
i++) {
2268 if (
i < (
unsigned int)hTrigger->getNbinsX()) {
2269 hTrigger->Fill(
i + .5, allTriggerDecisions_[
i]);
2274 hMEx = map_of_MEs[DirName +
"/" +
"MEx"];
2275 if (hMEx && hMEx->getRootObject())
2277 hMEy = map_of_MEs[DirName +
"/" +
"MEy"];
2278 if (hMEy && hMEy->getRootObject())
2280 hMET = map_of_MEs[DirName +
"/" +
"MET"];
2281 if (hMET && hMET->getRootObject())
2283 hMET_2 = map_of_MEs[DirName +
"/" +
"MET_2"];
2284 if (hMET_2 && hMET_2->getRootObject())
2296 bool HBHENoiseFilterResult =
false;
2297 bool CSCTightHaloFilterResult =
false;
2298 bool eeBadScFilterResult =
false;
2299 bool HBHEIsoNoiseFilterResult =
false;
2300 bool CSCTightHalo2015FilterResult =
false;
2301 bool EcalDeadCellTriggerFilterResult =
false;
2302 bool EcalDeadCellBoundaryFilterResult =
false;
2303 bool HcalStripHaloFilterResult =
false;
2304 HBHENoiseFilterResult = METFilterDecision[0];
2305 if (HBHENoiseFilterResult) {
2306 hMET_HBHENoiseFilter = map_of_MEs[DirName +
"/" +
"MET_HBHENoiseFilter"];
2307 if (hMET_HBHENoiseFilter && hMET_HBHENoiseFilter->getRootObject())
2308 hMET_HBHENoiseFilter->Fill(MET);
2310 CSCTightHaloFilterResult = METFilterDecision[1];
2311 if (CSCTightHaloFilterResult) {
2312 hMET_CSCTightHaloFilter = map_of_MEs[DirName +
"/" +
"MET_CSCTightHaloFilter"];
2313 if (hMET_CSCTightHaloFilter && hMET_CSCTightHaloFilter->getRootObject())
2314 hMET_CSCTightHaloFilter->Fill(MET);
2316 eeBadScFilterResult = METFilterDecision[2];
2317 if (eeBadScFilterResult) {
2318 hMET_eeBadScFilter = map_of_MEs[DirName +
"/" +
"MET_eeBadScFilter"];
2319 if (hMET_eeBadScFilter && hMET_eeBadScFilter->getRootObject())
2320 hMET_eeBadScFilter->Fill(MET);
2322 HBHEIsoNoiseFilterResult = METFilterDecision[3];
2323 if (HBHEIsoNoiseFilterResult) {
2324 hMET_HBHEIsoNoiseFilter = map_of_MEs[DirName +
"/" +
"MET_HBHEIsoNoiseFilter"];
2325 if (hMET_HBHEIsoNoiseFilter && hMET_HBHEIsoNoiseFilter->getRootObject())
2326 hMET_HBHEIsoNoiseFilter->Fill(MET);
2328 CSCTightHalo2015FilterResult = METFilterDecision[4];
2329 if (CSCTightHalo2015FilterResult) {
2330 hMET_CSCTightHalo2015Filter = map_of_MEs[DirName +
"/" +
"MET_CSCTightHalo2015Filter"];
2331 if (hMET_CSCTightHalo2015Filter && hMET_CSCTightHalo2015Filter->getRootObject())
2332 hMET_CSCTightHalo2015Filter->Fill(MET);
2334 EcalDeadCellTriggerFilterResult = METFilterDecision[5];
2335 if (EcalDeadCellTriggerFilterResult) {
2336 hMET_EcalDeadCellTriggerFilter = map_of_MEs[DirName +
"/" +
"MET_EcalDeadCellTriggerFilter"];
2337 if (hMET_EcalDeadCellTriggerFilter && hMET_EcalDeadCellTriggerFilter->getRootObject())
2338 hMET_EcalDeadCellTriggerFilter->Fill(MET);
2340 EcalDeadCellBoundaryFilterResult = METFilterDecision[6];
2341 if (EcalDeadCellBoundaryFilterResult) {
2342 hMET_EcalDeadCellBoundaryFilter = map_of_MEs[DirName +
"/" +
"MET_EcalDeadCellBoundaryFilter"];
2343 if (hMET_EcalDeadCellBoundaryFilter && hMET_EcalDeadCellBoundaryFilter->getRootObject())
2344 hMET_EcalDeadCellBoundaryFilter->Fill(MET);
2346 HcalStripHaloFilterResult = METFilterDecision[7];
2347 if (HcalStripHaloFilterResult) {
2348 hMET_HcalStripHaloFilter = map_of_MEs[DirName +
"/" +
"MET_HcalStripHaloFilter"];
2349 if (hMET_HcalStripHaloFilter && hMET_HcalStripHaloFilter->getRootObject())
2350 hMET_HcalStripHaloFilter->Fill(MET);
2352 hMETPhi = map_of_MEs[DirName +
"/" +
"METPhi"];
2353 if (hMETPhi && hMETPhi->getRootObject())
2354 hMETPhi->Fill(METPhi);
2355 hSumET = map_of_MEs[DirName +
"/" +
"SumET"];
2356 if (hSumET && hSumET->getRootObject())
2357 hSumET->Fill(SumET);
2358 hMETSig = map_of_MEs[DirName +
"/" +
"METSig"];
2359 if (hMETSig && hMETSig->getRootObject())
2360 hMETSig->Fill(METSig);
2361 hMET_logx = map_of_MEs[DirName +
"/" +
"MET_logx"];
2362 if (hMET_logx && hMET_logx->getRootObject())
2363 hMET_logx->Fill(log10(MET));
2364 hSumET_logx = map_of_MEs[DirName +
"/" +
"SumET_logx"];
2365 if (hSumET_logx && hSumET_logx->getRootObject())
2366 hSumET_logx->Fill(log10(SumET));
2370 meMEx_profile = map_of_MEs[DirName +
"/MEx_profile"];
2371 meMEy_profile = map_of_MEs[DirName +
"/MEy_profile"];
2372 meMET_profile = map_of_MEs[DirName +
"/MET_profile"];
2373 meSumET_profile = map_of_MEs[DirName +
"/SumET_profile"];
2375 if (meMEx_profile && meMEx_profile->getRootObject())
2376 meMEx_profile->Fill(numPV_, MEx);
2377 if (meMEy_profile && meMEy_profile->getRootObject())
2378 meMEy_profile->Fill(numPV_, MEy);
2379 if (meMET_profile && meMET_profile->getRootObject())
2380 meMET_profile->Fill(numPV_, MET);
2381 if (meSumET_profile && meSumET_profile->getRootObject())
2382 meSumET_profile->Fill(numPV_, SumET);
2392 double caloHadEtInHB = calomet->
hadEtInHB();
2393 double caloHadEtInHO = calomet->
hadEtInHO();
2394 double caloHadEtInHE = calomet->
hadEtInHE();
2395 double caloHadEtInHF = calomet->
hadEtInHF();
2396 double caloEmEtInEB = calomet->
emEtInEB();
2397 double caloEmEtInEE = calomet->
emEtInEE();
2398 double caloEmEtInHF = calomet->
emEtInHF();
2400 hCaloHadEtInHB = map_of_MEs[DirName +
"/" +
"CaloHadEtInHB"];
2401 if (hCaloHadEtInHB && hCaloHadEtInHB->getRootObject())
2402 hCaloHadEtInHB->Fill(caloHadEtInHB);
2403 hCaloHadEtInHO = map_of_MEs[DirName +
"/" +
"CaloHadEtInHO"];
2404 if (hCaloHadEtInHO && hCaloHadEtInHO->getRootObject())
2405 hCaloHadEtInHO->Fill(caloHadEtInHO);
2406 hCaloHadEtInHE = map_of_MEs[DirName +
"/" +
"CaloHadEtInHE"];
2407 if (hCaloHadEtInHE && hCaloHadEtInHE->getRootObject())
2408 hCaloHadEtInHE->Fill(caloHadEtInHE);
2409 hCaloHadEtInHF = map_of_MEs[DirName +
"/" +
"CaloHadEtInHF"];
2410 if (hCaloHadEtInHF && hCaloHadEtInHF->getRootObject())
2411 hCaloHadEtInHF->Fill(caloHadEtInHF);
2412 hCaloEmEtInEB = map_of_MEs[DirName +
"/" +
"CaloEmEtInEB"];
2413 if (hCaloEmEtInEB && hCaloEmEtInEB->getRootObject())
2414 hCaloEmEtInEB->Fill(caloEmEtInEB);
2415 hCaloEmEtInEE = map_of_MEs[DirName +
"/" +
"CaloEmEtInEE"];
2416 if (hCaloEmEtInEE && hCaloEmEtInEE->getRootObject())
2417 hCaloEmEtInEE->Fill(caloEmEtInEE);
2418 hCaloEmEtInHF = map_of_MEs[DirName +
"/" +
"CaloEmEtInHF"];
2419 if (hCaloEmEtInHF && hCaloEmEtInHF->getRootObject())
2420 hCaloEmEtInHF->Fill(caloEmEtInHF);
2422 hCaloMETPhi020 = map_of_MEs[DirName +
"/" +
"CaloMETPhi020"];
2423 if (MET > 20. && hCaloMETPhi020 && hCaloMETPhi020->getRootObject()) {
2424 hCaloMETPhi020->Fill(METPhi);
2427 hCaloEtFractionHadronic = map_of_MEs[DirName +
"/" +
"CaloEtFractionHadronic"];
2428 if (hCaloEtFractionHadronic && hCaloEtFractionHadronic->getRootObject())
2429 hCaloEtFractionHadronic->Fill(caloEtFractionHadronic);
2430 hCaloEmEtFraction = map_of_MEs[DirName +
"/" +
"CaloEmEtFraction"];
2431 if (hCaloEmEtFraction && hCaloEmEtFraction->getRootObject())
2432 hCaloEmEtFraction->Fill(caloEmEtFraction);
2433 hCaloEmEtFraction020 = map_of_MEs[DirName +
"/" +
"CaloEmEtFraction020"];
2434 if (MET > 20. && hCaloEmEtFraction020 && hCaloEmEtFraction020->getRootObject())
2435 hCaloEmEtFraction020->Fill(caloEmEtFraction);
2438 if (fillPFCandidatePlots && fillCandidateMap_histos) {
2439 for (
unsigned int i = 0;
i < countsPFCand_.size();
i++) {
2440 countsPFCand_[
i] = 0;
2447 iEvent.
getByToken(pflowToken_, particleFlow);
2449 float pt_sum_CHF_Barrel = 0;
2450 float pt_sum_CHF_Endcap_plus = 0;
2451 float pt_sum_CHF_Endcap_minus = 0;
2452 float pt_sum_NHF_Barrel = 0;
2453 float pt_sum_NHF_Endcap_plus = 0;
2454 float pt_sum_NHF_Endcap_minus = 0;
2455 float pt_sum_PhF_Barrel = 0;
2456 float pt_sum_PhF_Endcap_plus = 0;
2457 float pt_sum_PhF_Endcap_minus = 0;
2458 float pt_sum_HFH_plus = 0;
2459 float pt_sum_HFH_minus = 0;
2460 float pt_sum_HFE_plus = 0;
2461 float pt_sum_HFE_minus = 0;
2463 float px_chargedHadronsBarrel = 0;
2464 float py_chargedHadronsBarrel = 0;
2465 float px_chargedHadronsEndcapPlus = 0;
2466 float py_chargedHadronsEndcapPlus = 0;
2467 float px_chargedHadronsEndcapMinus = 0;
2468 float py_chargedHadronsEndcapMinus = 0;
2469 float px_neutralHadronsBarrel = 0;
2470 float py_neutralHadronsBarrel = 0;
2471 float px_neutralHadronsEndcapPlus = 0;
2472 float py_neutralHadronsEndcapPlus = 0;
2473 float px_neutralHadronsEndcapMinus = 0;
2474 float py_neutralHadronsEndcapMinus = 0;
2475 float px_PhotonsBarrel = 0;
2476 float py_PhotonsBarrel = 0;
2477 float px_PhotonsEndcapPlus = 0;
2478 float py_PhotonsEndcapPlus = 0;
2479 float px_PhotonsEndcapMinus = 0;
2480 float py_PhotonsEndcapMinus = 0;
2481 float px_HFHadronsPlus = 0;
2482 float py_HFHadronsPlus = 0;
2483 float px_HFHadronsMinus = 0;
2484 float py_HFHadronsMinus = 0;
2485 float px_HFEGammasPlus = 0;
2486 float py_HFEGammasPlus = 0;
2487 float px_HFEGammasMinus = 0;
2488 float py_HFEGammasMinus = 0;
2489 for (
unsigned int i = 0;
i < particleFlow->size();
i++) {
2493 if (c.
eta() > (-3.0) && c.
eta() < (-1.392)) {
2494 px_chargedHadronsEndcapMinus -= c.
px();
2495 py_chargedHadronsEndcapMinus -= c.
py();
2496 pt_sum_CHF_Endcap_minus += c.
et();
2497 }
else if (c.
eta() >= (-1.392) && c.
eta() <= 1.392) {
2498 px_chargedHadronsBarrel -= c.
px();
2499 py_chargedHadronsBarrel -= c.
py();
2500 pt_sum_CHF_Barrel += c.
et();
2501 }
else if (c.
eta() > 1.392 && c.
eta() < 3.0) {
2502 px_chargedHadronsEndcapPlus -= c.
px();
2503 py_chargedHadronsEndcapPlus -= c.
py();
2504 pt_sum_CHF_Endcap_plus += c.
et();
2509 if (c.
eta() > (-3.0) && c.
eta() < (-1.392)) {
2510 px_neutralHadronsEndcapMinus -= c.
px();
2511 py_neutralHadronsEndcapMinus -= c.
py();
2512 pt_sum_NHF_Endcap_minus += c.
et();
2513 }
else if (c.
eta() >= (-1.392) && c.
eta() <= 1.392) {
2514 px_neutralHadronsBarrel -= c.
px();
2515 py_neutralHadronsBarrel -= c.
py();
2516 pt_sum_NHF_Barrel += c.
et();
2517 }
else if (c.
eta() > 1.392 && c.
eta() < 3.0) {
2518 px_neutralHadronsEndcapPlus -= c.
px();
2519 py_neutralHadronsEndcapPlus -= c.
py();
2520 pt_sum_NHF_Endcap_plus += c.
et();
2525 if (c.
eta() > (-3.0) && c.
eta() < (-1.479)) {
2526 px_PhotonsEndcapMinus -= c.
px();
2527 py_PhotonsEndcapMinus -= c.
py();
2528 pt_sum_PhF_Endcap_minus += c.
et();
2529 }
else if (c.
eta() >= (-1.479) && c.
eta() <= 1.479) {
2530 px_PhotonsBarrel -= c.
px();
2531 py_PhotonsBarrel -= c.
py();
2532 pt_sum_PhF_Barrel += c.
et();
2533 }
else if (c.
eta() > 1.479 && c.
eta() < 3.0) {
2534 px_PhotonsEndcapPlus -= c.
px();
2535 py_PhotonsEndcapPlus -= c.
py();
2536 pt_sum_PhF_Endcap_plus += c.
et();
2541 if (c.
eta() > (-5.20) && c.
eta() < -2.901376) {
2542 pt_sum_HFH_minus += c.
et();
2543 px_HFHadronsMinus -= c.
px();
2544 py_HFHadronsMinus -= c.
py();
2545 }
else if (c.
eta() > 2.901376 && c.
eta() < 5.20) {
2546 px_HFHadronsPlus -= c.
px();
2547 py_HFHadronsPlus -= c.
py();
2548 pt_sum_HFH_plus += c.
et();
2553 if (c.
eta() > (-5.20) && c.
eta() < -2.901376) {
2554 pt_sum_HFE_minus += c.
et();
2555 px_HFEGammasMinus -= c.
px();
2556 py_HFEGammasMinus -= c.
py();
2557 }
else if (c.
eta() > 2.901376 && c.
eta() < 5.20) {
2558 px_HFEGammasPlus -= c.
px();
2559 py_HFEGammasPlus -= c.
py();
2560 pt_sum_HFE_plus += c.
et();
2563 for (
unsigned int j = 0;
j < typePFCand_.size();
j++) {
2566 if (((c.
eta() > etaMinPFCand_[
j]) && (c.
eta() < etaMaxPFCand_[
j])) ||
2567 ((c.
eta() > (-etaMaxPFCand_[
j])) && (c.
eta() < (-etaMinPFCand_[
j])))) {
2568 countsPFCand_[
j] += 1;
2569 MExPFCand_[
j] -= c.
px();
2570 MEyPFCand_[
j] -= c.
py();
2576 for (
unsigned int j = 0;
j < countsPFCand_.size();
j++) {
2577 profilePFCand_x_[
j] = map_of_MEs[DirName +
"/" + profilePFCand_x_name_[
j]];
2578 if (profilePFCand_x_[
j] && profilePFCand_x_[
j]->getRootObject())
2579 profilePFCand_x_[
j]->
Fill(countsPFCand_[
j], MExPFCand_[j]);
2580 profilePFCand_y_[
j] = map_of_MEs[DirName +
"/" + profilePFCand_y_name_[
j]];
2581 if (profilePFCand_y_[j] && profilePFCand_y_[j]->getRootObject())
2582 profilePFCand_y_[j]->
Fill(countsPFCand_[j], MEyPFCand_[j]);
2584 meCHF_Barrel = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionBarrel"];
2585 if (meCHF_Barrel && meCHF_Barrel->getRootObject())
2586 meCHF_Barrel->Fill(pt_sum_CHF_Barrel / pfmet->
sumEt());
2587 meCHF_EndcapPlus = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus"];
2588 if (meCHF_EndcapPlus && meCHF_EndcapPlus->getRootObject())
2589 meCHF_EndcapPlus->Fill(pt_sum_CHF_Endcap_plus / pfmet->
sumEt());
2590 meCHF_EndcapMinus = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus"];
2591 if (meCHF_EndcapMinus && meCHF_EndcapMinus->getRootObject())
2592 meCHF_EndcapMinus->Fill(pt_sum_CHF_Endcap_minus / pfmet->
sumEt());
2593 meNHF_Barrel = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionBarrel"];
2594 if (meNHF_Barrel && meNHF_Barrel->getRootObject())
2595 meNHF_Barrel->Fill(pt_sum_NHF_Barrel / pfmet->
sumEt());
2596 meNHF_EndcapPlus = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus"];
2597 if (meNHF_EndcapPlus && meNHF_EndcapPlus->getRootObject())
2598 meNHF_EndcapPlus->Fill(pt_sum_NHF_Endcap_plus / pfmet->
sumEt());
2599 meNHF_EndcapMinus = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus"];
2600 if (meNHF_EndcapMinus && meNHF_EndcapMinus->getRootObject())
2601 meNHF_EndcapMinus->Fill(pt_sum_NHF_Endcap_minus / pfmet->
sumEt());
2602 mePhF_Barrel = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionBarrel"];
2603 if (mePhF_Barrel && mePhF_Barrel->getRootObject())
2604 mePhF_Barrel->Fill(pt_sum_PhF_Barrel / pfmet->
sumEt());
2605 mePhF_EndcapPlus = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionEndcapPlus"];
2606 if (mePhF_EndcapPlus && mePhF_EndcapPlus->getRootObject())
2607 mePhF_EndcapPlus->Fill(pt_sum_PhF_Endcap_plus / pfmet->
sumEt());
2608 mePhF_EndcapMinus = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionEndcapMinus"];
2609 if (mePhF_EndcapMinus && mePhF_EndcapMinus->getRootObject())
2610 mePhF_EndcapMinus->Fill(pt_sum_PhF_Endcap_minus / pfmet->
sumEt());
2611 meHFHadF_Plus = map_of_MEs[DirName +
"/" +
"PfHFHadronEtFractionPlus"];
2612 if (meHFHadF_Plus && meHFHadF_Plus->getRootObject())
2613 meHFHadF_Plus->Fill(pt_sum_HFH_plus / pfmet->
sumEt());
2614 meHFHadF_Minus = map_of_MEs[DirName +
"/" +
"PfHFHadronEtFractionMinus"];
2615 if (meHFHadF_Minus && meHFHadF_Minus->getRootObject())
2616 meHFHadF_Minus->Fill(pt_sum_HFH_minus / pfmet->
sumEt());
2617 meHFEMF_Plus = map_of_MEs[DirName +
"/" +
"PfHFEMEtFractionPlus"];
2618 if (meHFEMF_Plus && meHFEMF_Plus->getRootObject())
2619 meHFEMF_Plus->Fill(pt_sum_HFE_plus / pfmet->
sumEt());
2620 meHFEMF_Minus = map_of_MEs[DirName +
"/" +
"PfHFEMEtFractionMinus"];
2621 if (meHFEMF_Minus && meHFEMF_Minus->getRootObject())
2622 meHFEMF_Minus->Fill(pt_sum_HFE_minus / pfmet->
sumEt());
2626 if (pt_sum_CHF_Barrel) {
2627 meMETPhiChargedHadronsBarrel = map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsBarrel"];
2628 if (meMETPhiChargedHadronsBarrel && meMETPhiChargedHadronsBarrel->getRootObject())
2629 meMETPhiChargedHadronsBarrel->Fill(atan2(py_chargedHadronsBarrel, px_chargedHadronsBarrel));
2631 if (pt_sum_CHF_Endcap_plus) {
2632 meMETPhiChargedHadronsEndcapPlus = map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsEndcapPlus"];
2633 if (meMETPhiChargedHadronsEndcapPlus && meMETPhiChargedHadronsEndcapPlus->getRootObject())
2634 meMETPhiChargedHadronsEndcapPlus->Fill(atan2(py_chargedHadronsEndcapPlus, px_chargedHadronsEndcapPlus));
2636 if (pt_sum_CHF_Endcap_minus) {
2637 meMETPhiChargedHadronsEndcapMinus = map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsEndcapMinus"];
2638 if (meMETPhiChargedHadronsEndcapMinus && meMETPhiChargedHadronsEndcapMinus->getRootObject())
2639 meMETPhiChargedHadronsEndcapMinus->Fill(atan2(py_chargedHadronsEndcapMinus, px_chargedHadronsEndcapMinus));
2641 if (pt_sum_NHF_Barrel) {
2642 meMETPhiNeutralHadronsBarrel = map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsBarrel"];
2643 if (meMETPhiNeutralHadronsBarrel && meMETPhiNeutralHadronsBarrel->getRootObject())
2644 meMETPhiNeutralHadronsBarrel->Fill(atan2(py_neutralHadronsBarrel, px_neutralHadronsBarrel));
2646 if (pt_sum_NHF_Endcap_plus) {
2647 meMETPhiNeutralHadronsEndcapPlus = map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus"];
2648 if (meMETPhiNeutralHadronsEndcapPlus && meMETPhiNeutralHadronsEndcapPlus->getRootObject())
2649 meMETPhiNeutralHadronsEndcapPlus->Fill(atan2(py_neutralHadronsEndcapPlus, px_neutralHadronsEndcapPlus));
2651 if (pt_sum_NHF_Endcap_minus) {
2652 meMETPhiNeutralHadronsEndcapMinus = map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus"];
2653 if (meMETPhiNeutralHadronsEndcapMinus && meMETPhiNeutralHadronsEndcapMinus->getRootObject())
2654 meMETPhiNeutralHadronsEndcapMinus->Fill(atan2(py_neutralHadronsEndcapMinus, px_neutralHadronsEndcapMinus));
2656 if (pt_sum_PhF_Barrel) {
2657 meMETPhiPhotonsBarrel = map_of_MEs[DirName +
"/" +
"METPhiPhotonsBarrel"];
2658 if (meMETPhiPhotonsBarrel && meMETPhiPhotonsBarrel->getRootObject())
2659 meMETPhiPhotonsBarrel->Fill(atan2(py_PhotonsBarrel, px_PhotonsBarrel));
2661 if (pt_sum_PhF_Endcap_plus) {
2662 meMETPhiPhotonsEndcapPlus = map_of_MEs[DirName +
"/" +
"METPhiPhotonsEndcapPlus"];
2663 if (meMETPhiPhotonsEndcapPlus && meMETPhiPhotonsEndcapPlus->getRootObject())
2664 meMETPhiPhotonsEndcapPlus->Fill(atan2(py_PhotonsEndcapPlus, px_PhotonsEndcapPlus));
2666 if (pt_sum_PhF_Endcap_minus) {
2667 meMETPhiPhotonsEndcapMinus = map_of_MEs[DirName +
"/" +
"METPhiPhotonsEndcapMinus"];
2668 if (meMETPhiPhotonsEndcapMinus && meMETPhiPhotonsEndcapMinus->getRootObject())
2669 meMETPhiPhotonsEndcapMinus->Fill(atan2(py_PhotonsEndcapMinus, px_PhotonsEndcapMinus));
2671 if (pt_sum_HFH_plus) {
2672 meMETPhiHFHadronsPlus = map_of_MEs[DirName +
"/" +
"METPhiHFHadronsPlus"];
2673 if (meMETPhiHFHadronsPlus && meMETPhiHFHadronsPlus->getRootObject())
2674 meMETPhiHFHadronsPlus->Fill(atan2(py_HFHadronsPlus, px_HFHadronsPlus));
2676 if (pt_sum_HFH_minus) {
2677 meMETPhiHFHadronsMinus = map_of_MEs[DirName +
"/" +
"METPhiHFHadronsMinus"];
2678 if (meMETPhiHFHadronsMinus && meMETPhiHFHadronsMinus->getRootObject())
2679 meMETPhiHFHadronsMinus->Fill(atan2(py_HFHadronsMinus, px_HFHadronsMinus));
2681 if (pt_sum_HFE_plus) {
2682 meMETPhiHFEGammasPlus = map_of_MEs[DirName +
"/" +
"METPhiHFEGammasPlus"];
2683 if (meMETPhiHFEGammasPlus && meMETPhiHFEGammasPlus->getRootObject())
2684 meMETPhiHFEGammasPlus->Fill(atan2(py_HFEGammasPlus, px_HFEGammasPlus));
2686 if (pt_sum_HFE_minus) {
2687 meMETPhiHFEGammasMinus = map_of_MEs[DirName +
"/" +
"METPhiHFEGammasMinus"];
2688 if (meMETPhiHFEGammasMinus && meMETPhiHFEGammasMinus->getRootObject())
2689 meMETPhiHFEGammasMinus->Fill(atan2(py_HFEGammasMinus, px_HFEGammasMinus));
2751 if (techTriggerCase[1]) {
2752 meCHF_Barrel_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionBarrel_BXm1Filled"];
2753 if (meCHF_Barrel_BXm1Filled && meCHF_Barrel_BXm1Filled->getRootObject())
2754 meCHF_Barrel_BXm1Filled->Fill(pt_sum_CHF_Barrel / pfmet->
sumEt());
2755 meCHF_EndcapPlus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled"];
2756 if (meCHF_EndcapPlus_BXm1Filled && meCHF_EndcapPlus_BXm1Filled->getRootObject())
2757 meCHF_EndcapPlus_BXm1Filled->Fill(pt_sum_CHF_Endcap_plus / pfmet->
sumEt());
2758 meCHF_EndcapMinus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled"];
2759 if (meCHF_EndcapMinus_BXm1Filled && meCHF_EndcapMinus_BXm1Filled->getRootObject())
2760 meCHF_EndcapMinus_BXm1Filled->Fill(pt_sum_CHF_Endcap_minus / pfmet->
sumEt());
2761 meNHF_Barrel_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionBarrel_BXm1Filled"];
2762 if (meNHF_Barrel_BXm1Filled && meNHF_Barrel_BXm1Filled->getRootObject())
2763 meNHF_Barrel_BXm1Filled->Fill(pt_sum_NHF_Barrel / pfmet->
sumEt());
2764 meNHF_EndcapPlus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled"];
2765 if (meNHF_EndcapPlus_BXm1Filled && meNHF_EndcapPlus_BXm1Filled->getRootObject())
2766 meNHF_EndcapPlus_BXm1Filled->Fill(pt_sum_NHF_Endcap_plus / pfmet->
sumEt());
2767 meNHF_EndcapMinus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled"];
2768 if (meNHF_EndcapMinus_BXm1Filled && meNHF_EndcapMinus_BXm1Filled->getRootObject())
2769 meNHF_EndcapMinus_BXm1Filled->Fill(pt_sum_NHF_Endcap_minus / pfmet->
sumEt());
2770 mePhF_Barrel_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionBarrel_BXm1Filled"];
2771 if (mePhF_Barrel_BXm1Filled && mePhF_Barrel_BXm1Filled->getRootObject())
2772 mePhF_Barrel_BXm1Filled->Fill(pt_sum_PhF_Barrel / pfmet->
sumEt());
2773 mePhF_EndcapPlus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionEndcapPlus_BXm1Filled"];
2774 if (mePhF_EndcapPlus_BXm1Filled && mePhF_EndcapPlus_BXm1Filled->getRootObject())
2775 mePhF_EndcapPlus_BXm1Filled->Fill(pt_sum_PhF_Endcap_plus / pfmet->
sumEt());
2776 mePhF_EndcapMinus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionEndcapMinus_BXm1Filled"];
2777 if (mePhF_EndcapMinus_BXm1Filled && mePhF_EndcapMinus_BXm1Filled->getRootObject())
2778 mePhF_EndcapMinus_BXm1Filled->Fill(pt_sum_PhF_Endcap_minus / pfmet->
sumEt());
2779 meHFHadF_Plus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfHFHadronEtFractionPlus_BXm1Filled"];
2780 if (meHFHadF_Plus_BXm1Filled && meHFHadF_Plus_BXm1Filled->getRootObject())
2781 meHFHadF_Plus_BXm1Filled->Fill(pt_sum_HFH_plus / pfmet->
sumEt());
2782 meHFHadF_Minus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfHFHadronEtFractionMinus_BXm1Filled"];
2783 if (meHFHadF_Minus_BXm1Filled && meHFHadF_Minus_BXm1Filled->getRootObject())
2784 meHFHadF_Minus_BXm1Filled->Fill(pt_sum_HFH_minus / pfmet->
sumEt());
2785 meHFEMF_Plus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfHFEMEtFractionPlus_BXm1Filled"];
2786 if (meHFEMF_Plus_BXm1Filled && meHFEMF_Plus_BXm1Filled->getRootObject())
2787 meHFEMF_Plus_BXm1Filled->Fill(pt_sum_HFE_plus / pfmet->
sumEt());
2788 meHFEMF_Minus_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfHFEMEtFractionMinus_BXm1Filled"];
2789 if (meHFEMF_Minus_BXm1Filled && meHFEMF_Minus_BXm1Filled->getRootObject())
2790 meHFEMF_Minus_BXm1Filled->Fill(pt_sum_HFE_minus / pfmet->
sumEt());
2791 mePhotonEtFraction_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfPhotonEtFraction_BXm1Filled"];
2792 if (mePhotonEtFraction_BXm1Filled && mePhotonEtFraction_BXm1Filled->getRootObject())
2794 meNeutralHadronEtFraction_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFraction_BXm1Filled"];
2795 if (meNeutralHadronEtFraction_BXm1Filled && meNeutralHadronEtFraction_BXm1Filled->getRootObject())
2797 meChargedHadronEtFraction_BXm1Filled = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFraction_BXm1Filled"];
2798 if (meChargedHadronEtFraction_BXm1Filled && meChargedHadronEtFraction_BXm1Filled->getRootObject())
2800 meMET_BXm1Filled = map_of_MEs[DirName +
"/" +
"MET_BXm1Filled"];
2801 if (meMET_BXm1Filled && meMET_BXm1Filled->getRootObject())
2802 meMET_BXm1Filled->Fill(pfmet->
pt());
2803 meSumET_BXm1Filled = map_of_MEs[DirName +
"/" +
"SumET_BXm1Filled"];
2804 if (meSumET_BXm1Filled && meSumET_BXm1Filled->getRootObject())
2805 meSumET_BXm1Filled->Fill(pfmet->
sumEt());
2806 if (pt_sum_CHF_Barrel) {
2807 meMETPhiChargedHadronsBarrel_BXm1Filled =
2808 map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsBarrel_BXm1Filled"];
2809 if (meMETPhiChargedHadronsBarrel_BXm1Filled && meMETPhiChargedHadronsBarrel_BXm1Filled->getRootObject())
2810 meMETPhiChargedHadronsBarrel_BXm1Filled->Fill(atan2(py_chargedHadronsBarrel, px_chargedHadronsBarrel));
2812 if (pt_sum_CHF_Endcap_plus) {
2813 meMETPhiChargedHadronsEndcapPlus_BXm1Filled =
2814 map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsEndcapPlus_BXm1Filled"];
2815 if (meMETPhiChargedHadronsEndcapPlus_BXm1Filled &&
2816 meMETPhiChargedHadronsEndcapPlus_BXm1Filled->getRootObject())
2817 meMETPhiChargedHadronsEndcapPlus_BXm1Filled->Fill(
2818 atan2(py_chargedHadronsEndcapPlus, px_chargedHadronsEndcapPlus));
2820 if (pt_sum_CHF_Endcap_minus) {
2821 meMETPhiChargedHadronsEndcapMinus_BXm1Filled =
2822 map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsEndcapMinus_BXm1Filled"];
2823 if (meMETPhiChargedHadronsEndcapMinus_BXm1Filled &&
2824 meMETPhiChargedHadronsEndcapMinus_BXm1Filled->getRootObject())
2825 meMETPhiChargedHadronsEndcapMinus_BXm1Filled->Fill(
2826 atan2(py_chargedHadronsEndcapMinus, px_chargedHadronsEndcapMinus));
2828 if (pt_sum_NHF_Barrel) {
2829 meMETPhiNeutralHadronsBarrel_BXm1Filled =
2830 map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsBarrel_BXm1Filled"];
2831 if (meMETPhiNeutralHadronsBarrel_BXm1Filled && meMETPhiNeutralHadronsBarrel_BXm1Filled->getRootObject())
2832 meMETPhiNeutralHadronsBarrel_BXm1Filled->Fill(atan2(py_neutralHadronsBarrel, px_neutralHadronsBarrel));
2834 if (pt_sum_NHF_Endcap_plus) {
2835 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled =
2836 map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus_BXm1Filled"];
2837 if (meMETPhiNeutralHadronsEndcapPlus_BXm1Filled &&
2838 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled->getRootObject())
2839 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled->Fill(
2840 atan2(py_neutralHadronsEndcapPlus, px_neutralHadronsEndcapPlus));
2842 if (pt_sum_NHF_Endcap_minus) {
2843 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled =
2844 map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus_BXm1Filled"];
2845 if (meMETPhiNeutralHadronsEndcapMinus_BXm1Filled &&
2846 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled->getRootObject())
2847 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled->Fill(
2848 atan2(py_neutralHadronsEndcapMinus, px_neutralHadronsEndcapMinus));
2850 if (pt_sum_PhF_Barrel) {
2851 meMETPhiPhotonsBarrel_BXm1Filled = map_of_MEs[DirName +
"/" +
"METPhiPhotonsBarrel_BXm1Filled"];
2852 if (meMETPhiPhotonsBarrel_BXm1Filled && meMETPhiPhotonsBarrel_BXm1Filled->getRootObject())
2853 meMETPhiPhotonsBarrel_BXm1Filled->Fill(atan2(py_PhotonsBarrel, px_PhotonsBarrel));
2855 if (pt_sum_PhF_Endcap_plus) {
2856 meMETPhiPhotonsEndcapPlus_BXm1Filled = map_of_MEs[DirName +
"/" +
"METPhiPhotonsEndcapPlus_BXm1Filled"];
2857 if (meMETPhiPhotonsEndcapPlus_BXm1Filled && meMETPhiPhotonsEndcapPlus_BXm1Filled->getRootObject())
2858 meMETPhiPhotonsEndcapPlus_BXm1Filled->Fill(atan2(py_PhotonsEndcapPlus, px_PhotonsEndcapPlus));
2860 if (pt_sum_PhF_Endcap_minus) {
2861 meMETPhiPhotonsEndcapMinus_BXm1Filled = map_of_MEs[DirName +
"/" +
"METPhiPhotonsEndcapMinus_BXm1Filled"];
2862 if (meMETPhiPhotonsEndcapMinus_BXm1Filled && meMETPhiPhotonsEndcapMinus_BXm1Filled->getRootObject())
2863 meMETPhiPhotonsEndcapMinus_BXm1Filled->Fill(atan2(py_PhotonsEndcapMinus, px_PhotonsEndcapMinus));
2865 if (pt_sum_HFH_plus) {
2866 meMETPhiHFHadronsPlus_BXm1Filled = map_of_MEs[DirName +
"/" +
"METPhiHFHadronsPlus_BXm1Filled"];
2867 if (meMETPhiHFHadronsPlus_BXm1Filled && meMETPhiHFHadronsPlus_BXm1Filled->getRootObject())
2868 meMETPhiHFHadronsPlus_BXm1Filled->Fill(atan2(py_HFHadronsPlus, px_HFHadronsPlus));
2870 if (pt_sum_HFH_minus) {
2871 meMETPhiHFHadronsMinus_BXm1Filled = map_of_MEs[DirName +
"/" +
"METPhiHFHadronsMinus_BXm1Filled"];
2872 if (meMETPhiHFHadronsMinus_BXm1Filled && meMETPhiHFHadronsMinus_BXm1Filled->getRootObject())
2873 meMETPhiHFHadronsMinus_BXm1Filled->Fill(atan2(py_HFHadronsMinus, px_HFHadronsMinus));
2875 if (pt_sum_HFE_plus) {
2876 meMETPhiHFEGammasPlus_BXm1Filled = map_of_MEs[DirName +
"/" +
"METPhiHFEGammasPlus_BXm1Filled"];
2877 if (meMETPhiHFEGammasPlus_BXm1Filled && meMETPhiHFEGammasPlus_BXm1Filled->getRootObject())
2878 meMETPhiHFEGammasPlus_BXm1Filled->Fill(atan2(py_HFEGammasPlus, px_HFEGammasPlus));
2880 if (pt_sum_HFE_minus) {
2881 meMETPhiHFEGammasMinus_BXm1Filled = map_of_MEs[DirName +
"/" +
"METPhiHFEGammasMinus_BXm1Filled"];
2882 if (meMETPhiHFEGammasMinus_BXm1Filled && meMETPhiHFEGammasMinus_BXm1Filled->getRootObject())
2883 meMETPhiHFEGammasMinus_BXm1Filled->Fill(atan2(py_HFEGammasMinus, px_HFEGammasMinus));
2945 if (techTriggerCase[2]) {
2946 meCHF_Barrel_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionBarrel_BXm1Empty"];
2947 if (meCHF_Barrel_BXm1Empty && meCHF_Barrel_BXm1Empty->getRootObject())
2948 meCHF_Barrel_BXm1Empty->Fill(pt_sum_CHF_Barrel / pfmet->
sumEt());
2949 meCHF_EndcapPlus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty"];
2950 if (meCHF_EndcapPlus_BXm1Empty && meCHF_EndcapPlus_BXm1Empty->getRootObject())
2951 meCHF_EndcapPlus_BXm1Empty->Fill(pt_sum_CHF_Endcap_plus / pfmet->
sumEt());
2952 meCHF_EndcapMinus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty"];
2953 if (meCHF_EndcapMinus_BXm1Empty && meCHF_EndcapMinus_BXm1Empty->getRootObject())
2954 meCHF_EndcapMinus_BXm1Empty->Fill(pt_sum_CHF_Endcap_minus / pfmet->
sumEt());
2955 meNHF_Barrel_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionBarrel_BXm1Empty"];
2956 if (meNHF_Barrel_BXm1Empty && meNHF_Barrel_BXm1Empty->getRootObject())
2957 meNHF_Barrel_BXm1Empty->Fill(pt_sum_NHF_Barrel / pfmet->
sumEt());
2958 meNHF_EndcapPlus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty"];
2959 if (meNHF_EndcapPlus_BXm1Empty && meNHF_EndcapPlus_BXm1Empty->getRootObject())
2960 meNHF_EndcapPlus_BXm1Empty->Fill(pt_sum_NHF_Endcap_plus / pfmet->
sumEt());
2961 meNHF_EndcapMinus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty"];
2962 if (meNHF_EndcapMinus_BXm1Empty && meNHF_EndcapMinus_BXm1Empty->getRootObject())
2963 meNHF_EndcapMinus_BXm1Empty->Fill(pt_sum_NHF_Endcap_minus / pfmet->
sumEt());
2964 mePhF_Barrel_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionBarrel_BXm1Empty"];
2965 if (mePhF_Barrel_BXm1Empty && mePhF_Barrel_BXm1Empty->getRootObject())
2966 mePhF_Barrel_BXm1Empty->Fill(pt_sum_PhF_Barrel / pfmet->
sumEt());
2967 mePhF_EndcapPlus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionEndcapPlus_BXm1Empty"];
2968 if (mePhF_EndcapPlus_BXm1Empty && mePhF_EndcapPlus_BXm1Empty->getRootObject())
2969 mePhF_EndcapPlus_BXm1Empty->Fill(pt_sum_PhF_Endcap_plus / pfmet->
sumEt());
2970 mePhF_EndcapMinus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfPhotonEtFractionEndcapMinus_BXm1Empty"];
2971 if (mePhF_EndcapMinus_BXm1Empty && mePhF_EndcapMinus_BXm1Empty->getRootObject())
2972 mePhF_EndcapMinus_BXm1Empty->Fill(pt_sum_PhF_Endcap_minus / pfmet->
sumEt());
2973 meHFHadF_Plus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfHFHadronEtFractionPlus_BXm1Empty"];
2974 if (meHFHadF_Plus_BXm1Empty && meHFHadF_Plus_BXm1Empty->getRootObject())
2975 meHFHadF_Plus_BXm1Empty->Fill(pt_sum_HFH_plus / pfmet->
sumEt());
2976 meHFHadF_Minus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfHFHadronEtFractionMinus_BXm1Empty"];
2977 if (meHFHadF_Minus_BXm1Empty && meHFHadF_Minus_BXm1Empty->getRootObject())
2978 meHFHadF_Minus_BXm1Empty->Fill(pt_sum_HFH_minus / pfmet->
sumEt());
2979 meHFEMF_Plus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfHFEMEtFractionPlus_BXm1Empty"];
2980 if (meHFEMF_Plus_BXm1Empty && meHFEMF_Plus_BXm1Empty->getRootObject())
2981 meHFEMF_Plus_BXm1Empty->Fill(pt_sum_HFE_plus / pfmet->
sumEt());
2982 meHFEMF_Minus_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfHFEMEtFractionMinus_BXm1Empty"];
2983 if (meHFEMF_Minus_BXm1Empty && meHFEMF_Minus_BXm1Empty->getRootObject())
2984 meHFEMF_Minus_BXm1Empty->Fill(pt_sum_HFE_minus / pfmet->
sumEt());
2985 mePhotonEtFraction_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfPhotonEtFraction_BXm1Empty"];
2986 if (mePhotonEtFraction_BXm1Empty && mePhotonEtFraction_BXm1Empty->getRootObject())
2988 meNeutralHadronEtFraction_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfNeutralHadronEtFraction_BXm1Empty"];
2989 if (meNeutralHadronEtFraction_BXm1Empty && meNeutralHadronEtFraction_BXm1Empty->getRootObject())
2991 meChargedHadronEtFraction_BXm1Empty = map_of_MEs[DirName +
"/" +
"PfChargedHadronEtFraction_BXm1Empty"];
2992 if (meChargedHadronEtFraction_BXm1Empty && meChargedHadronEtFraction_BXm1Empty->getRootObject())
2994 meMET_BXm1Empty = map_of_MEs[DirName +
"/" +
"MET_BXm1Empty"];
2995 if (meMET_BXm1Empty && meMET_BXm1Empty->getRootObject())
2996 meMET_BXm1Empty->Fill(pfmet->
pt());
2997 meSumET_BXm1Empty = map_of_MEs[DirName +
"/" +
"SumET_BXm1Empty"];
2998 if (meSumET_BXm1Empty && meSumET_BXm1Empty->getRootObject())
2999 meSumET_BXm1Empty->Fill(pfmet->
sumEt());
3000 if (pt_sum_CHF_Barrel) {
3001 meMETPhiChargedHadronsBarrel_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsBarrel_BXm1Empty"];
3002 if (meMETPhiChargedHadronsBarrel_BXm1Empty && meMETPhiChargedHadronsBarrel_BXm1Empty->getRootObject())
3003 meMETPhiChargedHadronsBarrel_BXm1Empty->Fill(atan2(py_chargedHadronsBarrel, px_chargedHadronsBarrel));
3005 if (pt_sum_CHF_Endcap_plus) {
3006 meMETPhiChargedHadronsEndcapPlus_BXm1Empty =
3007 map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsEndcapPlus_BXm1Empty"];
3008 if (meMETPhiChargedHadronsEndcapPlus_BXm1Empty &&
3009 meMETPhiChargedHadronsEndcapPlus_BXm1Empty->getRootObject())
3010 meMETPhiChargedHadronsEndcapPlus_BXm1Empty->Fill(
3011 atan2(py_chargedHadronsEndcapPlus, px_chargedHadronsEndcapPlus));
3013 if (pt_sum_CHF_Endcap_minus) {
3014 meMETPhiChargedHadronsEndcapMinus_BXm1Empty =
3015 map_of_MEs[DirName +
"/" +
"METPhiChargedHadronsEndcapMinus_BXm1Empty"];
3016 if (meMETPhiChargedHadronsEndcapMinus_BXm1Empty &&
3017 meMETPhiChargedHadronsEndcapMinus_BXm1Empty->getRootObject())
3018 meMETPhiChargedHadronsEndcapMinus_BXm1Empty->Fill(
3019 atan2(py_chargedHadronsEndcapMinus, px_chargedHadronsEndcapMinus));
3021 if (pt_sum_NHF_Barrel) {
3022 meMETPhiNeutralHadronsBarrel_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsBarrel_BXm1Empty"];
3023 if (meMETPhiNeutralHadronsBarrel_BXm1Empty && meMETPhiNeutralHadronsBarrel_BXm1Empty->getRootObject())
3024 meMETPhiNeutralHadronsBarrel_BXm1Empty->Fill(atan2(py_neutralHadronsBarrel, px_neutralHadronsBarrel));
3026 if (pt_sum_NHF_Endcap_plus) {
3027 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty =
3028 map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsEndcapPlus_BXm1Empty"];
3029 if (meMETPhiNeutralHadronsEndcapPlus_BXm1Empty &&
3030 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty->getRootObject())
3031 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty->Fill(
3032 atan2(py_neutralHadronsEndcapPlus, px_neutralHadronsEndcapPlus));
3034 if (pt_sum_NHF_Endcap_minus) {
3035 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty =
3036 map_of_MEs[DirName +
"/" +
"METPhiNeutralHadronsEndcapMinus_BXm1Empty"];
3037 if (meMETPhiNeutralHadronsEndcapMinus_BXm1Empty &&
3038 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty->getRootObject())
3039 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty->Fill(
3040 atan2(py_neutralHadronsEndcapMinus, px_neutralHadronsEndcapMinus));
3042 if (pt_sum_PhF_Barrel) {
3043 meMETPhiPhotonsBarrel_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiPhotonsBarrel_BXm1Empty"];
3044 if (meMETPhiPhotonsBarrel_BXm1Empty && meMETPhiPhotonsBarrel_BXm1Empty->getRootObject())
3045 meMETPhiPhotonsBarrel_BXm1Empty->Fill(atan2(py_PhotonsBarrel, px_PhotonsBarrel));
3047 if (pt_sum_PhF_Endcap_plus) {
3048 meMETPhiPhotonsEndcapPlus_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiPhotonsEndcapPlus_BXm1Empty"];
3049 if (meMETPhiPhotonsEndcapPlus_BXm1Empty && meMETPhiPhotonsEndcapPlus_BXm1Empty->getRootObject())
3050 meMETPhiPhotonsEndcapPlus_BXm1Empty->Fill(atan2(py_PhotonsEndcapPlus, px_PhotonsEndcapPlus));
3052 if (pt_sum_PhF_Endcap_minus) {
3053 meMETPhiPhotonsEndcapMinus_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiPhotonsEndcapMinus_BXm1Empty"];
3054 if (meMETPhiPhotonsEndcapMinus_BXm1Empty && meMETPhiPhotonsEndcapMinus_BXm1Empty->getRootObject())
3055 meMETPhiPhotonsEndcapMinus_BXm1Empty->Fill(atan2(py_PhotonsEndcapMinus, px_PhotonsEndcapMinus));
3057 if (pt_sum_HFH_plus) {
3058 meMETPhiHFHadronsPlus_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiHFHadronsPlus_BXm1Empty"];
3059 if (meMETPhiHFHadronsPlus_BXm1Empty && meMETPhiHFHadronsPlus_BXm1Empty->getRootObject())
3060 meMETPhiHFHadronsPlus_BXm1Empty->Fill(atan2(py_HFHadronsPlus, px_HFHadronsPlus));
3062 if (pt_sum_HFH_minus) {
3063 meMETPhiHFHadronsMinus_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiHFHadronsMinus_BXm1Empty"];
3064 if (meMETPhiHFHadronsMinus_BXm1Empty && meMETPhiHFHadronsMinus_BXm1Empty->getRootObject())
3065 meMETPhiHFHadronsMinus_BXm1Empty->Fill(atan2(py_HFHadronsMinus, px_HFHadronsMinus));
3067 if (pt_sum_HFE_plus) {
3068 meMETPhiHFEGammasPlus_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiHFEGammasPlus_BXm1Empty"];
3069 if (meMETPhiHFEGammasPlus_BXm1Empty && meMETPhiHFEGammasPlus_BXm1Empty->getRootObject())
3070 meMETPhiHFEGammasPlus_BXm1Empty->Fill(atan2(py_HFEGammasPlus, px_HFEGammasPlus));
3072 if (pt_sum_HFE_minus) {
3073 meMETPhiHFEGammasMinus_BXm1Empty = map_of_MEs[DirName +
"/" +
"METPhiHFEGammasMinus_BXm1Empty"];
3074 if (meMETPhiHFEGammasMinus_BXm1Empty && meMETPhiHFEGammasMinus_BXm1Empty->getRootObject())
3075 meMETPhiHFEGammasMinus_BXm1Empty->Fill(atan2(py_HFEGammasMinus, px_HFEGammasMinus));
3084 double pfPhotonEt = pfmet->
photonEt();
3090 double pfMuonEt = pfmet->
muonEt();
3094 double pfHFEMEt = pfmet->
HFEMEt();
3095 mePhotonEtFraction = map_of_MEs[DirName +
"/PfPhotonEtFraction"];
3096 mePhotonEt = map_of_MEs[DirName +
"/PfPhotonEt"];
3097 meNeutralHadronEtFraction = map_of_MEs[DirName +
"/PfNeutralHadronEtFraction"];
3098 meNeutralHadronEt = map_of_MEs[DirName +
"/PfNeutralHadronEt"];
3099 meElectronEt = map_of_MEs[DirName +
"/PfElectronEt"];
3100 meChargedHadronEtFraction = map_of_MEs[DirName +
"/PfChargedHadronEtFraction"];
3101 meChargedHadronEt = map_of_MEs[DirName +
"/PfChargedHadronEt"];
3102 meMuonEt = map_of_MEs[DirName +
"/PfMuonEt"];
3103 meHFHadronEtFraction = map_of_MEs[DirName +
"/PfHFHadronEtFraction"];
3104 meHFHadronEt = map_of_MEs[DirName +
"/PfHFHadronEt"];
3105 meHFEMEtFraction = map_of_MEs[DirName +
"/PfHFEMEtFraction"];
3106 meHFEMEt = map_of_MEs[DirName +
"/PfHFEMEt"];
3108 if (mePhotonEtFraction && mePhotonEtFraction->getRootObject())
3109 mePhotonEtFraction->Fill(pfPhotonEtFraction);
3110 if (mePhotonEt && mePhotonEt->getRootObject())
3111 mePhotonEt->Fill(pfPhotonEt);
3112 if (meNeutralHadronEtFraction && meNeutralHadronEtFraction->getRootObject())
3113 meNeutralHadronEtFraction->Fill(pfNeutralHadronEtFraction);
3114 if (meNeutralHadronEt && meNeutralHadronEt->getRootObject())
3115 meNeutralHadronEt->Fill(pfNeutralHadronEt);
3116 if (meElectronEt && meElectronEt->getRootObject())
3117 meElectronEt->Fill(pfElectronEt);
3118 if (meChargedHadronEtFraction && meChargedHadronEtFraction->getRootObject())
3119 meChargedHadronEtFraction->Fill(pfChargedHadronEtFraction);
3120 if (meChargedHadronEt && meChargedHadronEt->getRootObject())
3121 meChargedHadronEt->Fill(pfChargedHadronEt);
3122 if (meMuonEt && meMuonEt->getRootObject())
3123 meMuonEt->Fill(pfMuonEt);
3124 if (meHFHadronEtFraction && meHFHadronEtFraction->getRootObject())
3125 meHFHadronEtFraction->Fill(pfHFHadronEtFraction);
3126 if (meHFHadronEt && meHFHadronEt->getRootObject())
3127 meHFHadronEt->Fill(pfHFHadronEt);
3128 if (meHFEMEtFraction && meHFEMEtFraction->getRootObject())
3129 meHFEMEtFraction->Fill(pfHFEMEtFraction);
3130 if (meHFEMEt && meHFEMEt->getRootObject())
3131 meHFEMEt->Fill(pfHFEMEt);
3135 mePhotonEtFraction_profile = map_of_MEs[DirName +
"/PfPhotonEtFraction_profile"];
3136 mePhotonEt_profile = map_of_MEs[DirName +
"/PfPhotonEt_profile"];
3137 meNeutralHadronEtFraction_profile = map_of_MEs[DirName +
"/PfNeutralHadronEtFraction_profile"];
3138 meNeutralHadronEt_profile = map_of_MEs[DirName +
"/PfNeutralHadronEt_profile"];
3139 meChargedHadronEtFraction_profile = map_of_MEs[DirName +
"/PfChargedHadronEtFraction_profile"];
3140 meChargedHadronEt_profile = map_of_MEs[DirName +
"/PfChargedHadronEt_profile"];
3141 meHFHadronEtFraction_profile = map_of_MEs[DirName +
"/PfHFHadronEtFraction_profile"];
3142 meHFHadronEt_profile = map_of_MEs[DirName +
"/PfHFHadronEt_profile"];
3143 meHFEMEtFraction_profile = map_of_MEs[DirName +
"/PfHFEMEtFraction_profile"];
3144 meHFEMEt_profile = map_of_MEs[DirName +
"/PfHFEMEt_profile"];
3146 if (mePhotonEtFraction_profile && mePhotonEtFraction_profile->getRootObject())
3147 mePhotonEtFraction_profile->Fill(numPV_, pfPhotonEtFraction);
3148 if (mePhotonEt_profile && mePhotonEt_profile->getRootObject())
3149 mePhotonEt_profile->Fill(numPV_, pfPhotonEt);
3150 if (meNeutralHadronEtFraction_profile && meNeutralHadronEtFraction_profile->getRootObject())
3151 meNeutralHadronEtFraction_profile->Fill(numPV_, pfNeutralHadronEtFraction);
3152 if (meNeutralHadronEt_profile && meNeutralHadronEt_profile->getRootObject())
3153 meNeutralHadronEt_profile->Fill(numPV_, pfNeutralHadronEt);
3154 if (meChargedHadronEtFraction_profile && meChargedHadronEtFraction_profile->getRootObject())
3155 meChargedHadronEtFraction_profile->Fill(numPV_, pfChargedHadronEtFraction);
3156 if (meChargedHadronEt_profile && meChargedHadronEt_profile->getRootObject())
3157 meChargedHadronEt_profile->Fill(numPV_, pfChargedHadronEt);
3158 if (meHFHadronEtFraction_profile && meHFHadronEtFraction_profile->getRootObject())
3159 meHFHadronEtFraction_profile->Fill(numPV_, pfHFHadronEtFraction);
3160 if (meHFHadronEt_profile && meHFHadronEt_profile->getRootObject())
3161 meHFHadronEt_profile->Fill(numPV_, pfHFHadronEt);
3162 if (meHFEMEtFraction_profile && meHFEMEtFraction_profile->getRootObject())
3163 meHFEMEtFraction_profile->Fill(numPV_, pfHFEMEtFraction);
3164 if (meHFEMEt_profile && meHFEMEt_profile->getRootObject())
3165 meHFEMEt_profile->Fill(numPV_, pfHFEMEt);
3168 if (isMiniAODMet_) {
3169 mePhotonEtFraction = map_of_MEs[DirName +
"/PfPhotonEtFraction"];
3170 meNeutralHadronEtFraction = map_of_MEs[DirName +
"/PfNeutralHadronEtFraction"];
3171 meChargedHadronEtFraction = map_of_MEs[DirName +
"/PfChargedHadronEtFraction"];
3172 meHFHadronEtFraction = map_of_MEs[DirName +
"/PfHFHadronEtFraction"];
3173 meHFEMEtFraction = map_of_MEs[DirName +
"/PfHFEMEtFraction"];
3175 if (mePhotonEtFraction && mePhotonEtFraction->getRootObject())
3177 if (meNeutralHadronEtFraction && meNeutralHadronEtFraction->getRootObject())
3179 if (meChargedHadronEtFraction && meChargedHadronEtFraction->getRootObject())
3181 if (meHFHadronEtFraction && meHFHadronEtFraction->getRootObject())
3183 if (meHFEMEtFraction && meHFEMEtFraction->getRootObject())
3187 mePhotonEtFraction_profile = map_of_MEs[DirName +
"/PfPhotonEtFraction_profile"];
3188 meNeutralHadronEtFraction_profile = map_of_MEs[DirName +
"/PfNeutralHadronEtFraction_profile"];
3189 meChargedHadronEtFraction_profile = map_of_MEs[DirName +
"/PfChargedHadronEtFraction_profile"];
3190 meHFHadronEtFraction_profile = map_of_MEs[DirName +
"/PfHFHadronEtFraction_profile"];
3191 meHFEMEtFraction_profile = map_of_MEs[DirName +
"/PfHFEMEtFraction_profile"];
3193 if (mePhotonEtFraction_profile && mePhotonEtFraction_profile->getRootObject())
3195 if (meNeutralHadronEtFraction_profile && meNeutralHadronEtFraction_profile->getRootObject())
3197 if (meChargedHadronEtFraction_profile && meChargedHadronEtFraction_profile->getRootObject())
3199 if (meHFHadronEtFraction_profile && meHFHadronEtFraction_profile->getRootObject())
3200 meHFHadronEtFraction_profile->Fill(numPV_, patmet->
Type6EtFraction());
3201 if (meHFEMEtFraction_profile && meHFEMEtFraction_profile->getRootObject())
3204 mePhotonEt = map_of_MEs[DirName +
"/PfPhotonEt"];
3205 meNeutralHadronEt = map_of_MEs[DirName +
"/PfNeutralHadronEt"];
3206 meChargedHadronEt = map_of_MEs[DirName +
"/PfChargedHadronEt"];
3207 meHFHadronEt = map_of_MEs[DirName +
"/PfHFHadronEt"];
3208 meHFEMEt = map_of_MEs[DirName +
"/PfHFEMEt"];
3209 meMuonEt = map_of_MEs[DirName +
"/PfMuonEt"];
3210 meElectronEt = map_of_MEs[DirName +
"/PfElectronEt"];
3212 if (mePhotonEt && mePhotonEt->getRootObject())
3214 if (meNeutralHadronEt && meNeutralHadronEt->getRootObject())
3216 if (meChargedHadronEt && meChargedHadronEt->getRootObject())
3218 if (meHFHadronEt && meHFHadronEt->getRootObject())
3220 if (meHFEMEt && meHFEMEt->getRootObject())
3222 if (meMuonEt && meMuonEt->getRootObject())
3224 if (meElectronEt && meElectronEt->getRootObject())
3228 mePhotonEt_profile = map_of_MEs[DirName +
"/PfPhotonEt_profile"];
3229 meNeutralHadronEt_profile = map_of_MEs[DirName +
"/PfNeutralHadronEt_profile"];
3230 meChargedHadronEt_profile = map_of_MEs[DirName +
"/PfChargedHadronEt_profile"];
3231 meHFHadronEt_profile = map_of_MEs[DirName +
"/PfHFHadronEt_profile"];
3232 meHFEMEt_profile = map_of_MEs[DirName +
"/PfHFEMEt_profile"];
3234 if (mePhotonEt_profile && mePhotonEt_profile->getRootObject())
3236 if (meNeutralHadronEt_profile && meNeutralHadronEt_profile->getRootObject())
3238 if (meChargedHadronEt_profile && meChargedHadronEt_profile->getRootObject())
3240 if (meHFHadronEt_profile && meHFHadronEt_profile->getRootObject())
3242 if (meHFEMEt_profile && meHFEMEt_profile->getRootObject())
3248 if (fill_met_high_level_histo) {
3249 hMExLS = map_of_MEs[DirName +
"/" +
"MExLS"];
3250 if (hMExLS && hMExLS->getRootObject())
3251 hMExLS->Fill(MEx, myLuminosityBlock);
3252 hMEyLS = map_of_MEs[DirName +
"/" +
"MEyLS"];
3253 if (hMEyLS && hMEyLS->getRootObject())
3254 hMEyLS->Fill(MEy, myLuminosityBlock);
Analysis-level MET class.
const edm::EventSetup & c
double HFEMEtFraction() const
double ChargedHadEtFraction() const
double pt() const final
transverse momentum
double MuonEtFraction() const
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< T >::const_iterator search(const cond::Time_t &val, const std::vector< T > &container)
std::vector< ParameterSet > VParameterSet
double neutralHadronEtFraction() const
virtual MonitorElementData::Scope setScope(MonitorElementData::Scope newscope)
edm::LuminosityBlockNumber_t luminosityBlock() const
tuple numberOfValidPixelHits
std::vector< Vertex > VertexCollection
collection of Vertex objects
double NeutralEMFraction() const
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
double ChargedEMEtFraction() const
double Type6EtFraction() const
double Type7EtFraction() const
double NeutralHadEtFraction() const
bool getData(T &iHolder) const
double px() const final
x coordinate of momentum vector
double HFHadronEtFraction() const
double HFHadronEt() 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)
double photonEtFraction() const
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
UseScope< MonitorElementData::Scope::LUMI > UseLumiScope
double py() const final
y coordinate of momentum vector
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
PF Jet selector for pat::Jets.
double electronEt() const
Jet selector for pat::Jets and for CaloJets.
double etFractionHadronic() const
T const * product() const
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
static std::string const triggerResults("TriggerResults")
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
T getParameter(std::string const &) const
double chargedHadronEtFraction() const
Particle reconstructed by the particle flow algorithm.
double et() const final
transverse energy
static int position[264][3]
double neutralHadronEt() const
Log< level::Warning, false > LogWarning
virtual ParticleType particleId() const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
double phi() const final
momentum azimuthal angle
virtual TObject const * getRootObject() const
double emEtFraction() const
double chargedHadronEt() 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.
double eta() const final
momentum pseudorapidity