64 isMiniAODMet_ = (
std::string(
"miniaod") ==MetType_);
74 jetID_ValueMapToken_= consumes< edm::ValueMap<reco::JetID> >(inputJetIDValueMap);
77 if(isPFMet_ || isMiniAODMet_){
81 ptThreshold_ =
parameters.getParameter<
double>(
"ptThreshold");
85 pfMetToken_= consumes<reco::PFMETCollection>(
edm::InputTag(metCollectionLabel_));
88 caloMetToken_= consumes<reco::CaloMETCollection>(
edm::InputTag(metCollectionLabel_));
91 patMetToken_= consumes<pat::METCollection>(
edm::InputTag(metCollectionLabel_));
97 fill_met_high_level_histo =
parameters.getParameter<
bool>(
"fillMetHighLevel");
98 fillCandidateMap_histos =
parameters.getParameter<
bool>(
"fillCandidateMaps");
100 hTriggerLabelsIsSet_ =
false;
104 diagnosticsParameters_ = pSet.
getParameter<std::vector<edm::ParameterSet> >(
"METDiagonisticsParameters");
111 bypassAllPVChecks_ = cleaningParameters_.getParameter<
bool>(
"bypassAllPVChecks");
112 bypassAllDCSChecks_ = cleaningParameters_.getParameter<
bool>(
"bypassAllDCSChecks");
113 runcosmics_ =
parameters.getUntrackedParameter<
bool>(
"runcosmics");
114 onlyCleaned_ =
parameters.getUntrackedParameter<
bool>(
"onlyCleaned");
115 vertexTag_ = cleaningParameters_.getParameter<
edm::InputTag>(
"vertexCollection");
116 vertexToken_ = consumes<std::vector<reco::Vertex> >(
edm::InputTag(vertexTag_));
119 gtTag_ = cleaningParameters_.getParameter<
edm::InputTag>(
"gtLabel");
120 gtToken_= consumes<L1GlobalTriggerReadoutRecord>(
edm::InputTag(gtTag_));
124 if (isCaloMet_) caloJetsToken_ = consumes<reco::CaloJetCollection>(jetCollectionLabel_);
126 if (isPFMet_) pfJetsToken_ = consumes<reco::PFJetCollection>(jetCollectionLabel_);
127 if (isMiniAODMet_) patJetsToken_ = consumes<pat::JetCollection>(jetCollectionLabel_);
130 hbheNoiseFilterResultToken_=consumes<bool>(hbheNoiseFilterResultTag_);
133 nbinsPV_ =
parameters.getParameter<
int>(
"pVBin");
134 nPVMin_ =
parameters.getParameter<
double>(
"pVMin");
135 nPVMax_ =
parameters.getParameter<
double>(
"pVMax");
138 for (edm::VParameterSet::const_iterator it = triggerSelectedSubFolders_.begin(); it!= triggerSelectedSubFolders_.end(); it++) {
140 triggerFolderExpr_.push_back(it->getParameter<std::vector<std::string> >(
"hltPaths"));
141 triggerFolderLabels_.push_back(it->getParameter<
std::string>(
"label"));
146 verbose_ =
parameters.getParameter<
int>(
"verbose");
150 nCh = std::vector<unsigned int>(10,
static_cast<unsigned int>(0));
151 nEv = std::vector<unsigned int>(2,
static_cast<unsigned int>(0));
157 for (std::vector<GenericTriggerEventFlag *>::const_iterator it = triggerFolderEventFlag_.begin(); it!= triggerFolderEventFlag_.end(); it++) {
170 if(!folderNames_.empty()){
171 folderNames_.clear();
174 folderNames_.push_back(
"Uncleaned");
177 folderNames_.push_back(
"Uncleaned");
179 folderNames_.push_back(
"Cleaned");
180 folderNames_.push_back(
"DiJet");
182 for (std::vector<std::string>::const_iterator ic = folderNames_.begin();
183 ic != folderNames_.end(); ic++){
184 bookMESet(DirName+
"/"+*ic, ibooker,map_dijet_MEs);
192 bool bLumiSecPlot=fill_met_high_level_histo;
194 bool fillPFCandidatePlots=
false;
197 if (DirName.find(
"Cleaned")!=std::string::npos) {
198 fillPFCandidatePlots=
true;
199 bookMonitorElement(DirName,ibooker,map_of_MEs,bLumiSecPlot,fillPFCandidatePlots);
200 for (
unsigned int i = 0;
i<triggerFolderEventFlag_.size();
i++) {
201 fillPFCandidatePlots=
false;
202 if (triggerFolderEventFlag_[
i]->on()) {
203 bookMonitorElement(DirName+
"/"+triggerFolderLabels_[
i],ibooker,map_of_MEs,bLumiSecPlot,fillPFCandidatePlots);
207 bookMonitorElement(DirName,ibooker,map_of_MEs,bLumiSecPlot,fillPFCandidatePlots);
214 if (verbose_)
std::cout <<
"bookMonitorElement " << DirName << std::endl;
218 hTrigger = ibooker.
book1D(
"triggerResults",
"triggerResults", 500, 0, 500);
219 for (
unsigned int i = 0;
i<allTriggerNames_.size();
i++){
220 if(
i<(
unsigned int)hTrigger->getNbinsX()){
221 if (!hTriggerLabelsIsSet_) {
226 if (!hTriggerLabelsIsSet_)
for (
int i = allTriggerNames_.size();
i<hTrigger->getNbinsX();
i++){
227 hTrigger->setBinLabel(
i+1,
"");
229 hTriggerLabelsIsSet_ =
true;
231 hMEx = ibooker.
book1D(
"MEx",
"MEx", 200, -500, 500);
232 hMEy = ibooker.
book1D(
"MEy",
"MEy", 200, -500, 500);
233 hMET = ibooker.
book1D(
"MET",
"MET", 200, 0, 1000);
234 hSumET = ibooker.
book1D(
"SumET",
"SumET", 400, 0, 4000);
235 hMETSig = ibooker.
book1D(
"METSig",
"METSig", 51, 0, 51);
237 hMET_logx = ibooker.
book1D(
"MET_logx",
"MET_logx", 40, -1, 7);
238 hSumET_logx = ibooker.
book1D(
"SumET_logx",
"SumET_logx", 40, -1, 7);
241 hMEy ->setAxisTitle(
"MEy [GeV]", 1);
242 hMET ->setAxisTitle(
"MET [GeV]", 1);
243 hSumET ->setAxisTitle(
"SumET [GeV]", 1);
244 hMETSig ->setAxisTitle(
"METSig", 1);
245 hMETPhi ->setAxisTitle(
"METPhi [rad]", 1);
246 hMET_logx ->setAxisTitle(
"log(MET) [GeV]", 1);
247 hSumET_logx->setAxisTitle(
"log(SumET) [GeV]", 1);
249 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"triggerResults",hTrigger));
250 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MEx",hMEx));
251 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MEy",hMEy));
252 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MET",hMET));
253 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"SumET",hSumET));
254 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METSig",hMETSig));
255 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhi",hMETPhi));
256 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MET_logx",hMET_logx));
257 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"SumET_logx",hSumET_logx));
261 meMEx_profile = ibooker.
bookProfile(
"MEx_profile",
"met.px()", nbinsPV_, nPVMin_, nPVMax_, 200, -500, 500);
262 meMEy_profile = ibooker.
bookProfile(
"MEy_profile",
"met.py()", nbinsPV_, nPVMin_, nPVMax_, 200, -500, 500);
263 meMET_profile = ibooker.
bookProfile(
"MET_profile",
"met.pt()", nbinsPV_, nPVMin_, nPVMax_, 200, 0, 1000);
264 meSumET_profile = ibooker.
bookProfile(
"SumET_profile",
"met.sumEt()", nbinsPV_, nPVMin_, nPVMax_, 400, 0, 4000);
268 meMEy_profile ->setAxisTitle(
"nvtx", 1);
269 meMET_profile ->setAxisTitle(
"nvtx", 1);
270 meSumET_profile->setAxisTitle(
"nvtx", 1);
272 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MEx_profile",meMEx_profile));
273 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MEy_profile",meMEy_profile));
274 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MET_profile",meMET_profile));
275 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"SumET_profile",meSumET_profile));
279 hCaloHadEtInHB = ibooker.
book1D(
"CaloHadEtInHB",
"CaloHadEtInHB",100,0,2000);
281 hCaloHadEtInHO = ibooker.
book1D(
"CaloHadEtInHO",
"CaloHadEtInHO",25,0,500);
283 hCaloHadEtInHE = ibooker.
book1D(
"CaloHadEtInHE",
"CaloHadEtInHE",100,0,2000);
285 hCaloHadEtInHF = ibooker.
book1D(
"CaloHadEtInHF",
"CaloHadEtInHF",50,0,1000);
287 hCaloEmEtInHF = ibooker.
book1D(
"CaloEmEtInHF" ,
"CaloEmEtInHF" ,25,0,500);
289 hCaloEmEtInEE = ibooker.
book1D(
"CaloEmEtInEE" ,
"CaloEmEtInEE" ,50,0,1000);
291 hCaloEmEtInEB = ibooker.
book1D(
"CaloEmEtInEB" ,
"CaloEmEtInEB" ,100,0,2000);
294 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloHadEtInHO",hCaloHadEtInHO));
295 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloHadEtInHF",hCaloHadEtInHF));
296 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloHadEtInHE",hCaloHadEtInHE));
297 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloHadEtInHB",hCaloHadEtInHB));
298 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloEmEtInHF",hCaloEmEtInHF));
299 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloEmEtInEE",hCaloEmEtInEE));
300 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloEmEtInEB",hCaloEmEtInEB));
302 hCaloMETPhi020 = ibooker.
book1D(
"CaloMETPhi020",
"CaloMETPhi020", 60, -
M_PI,
M_PI);
303 hCaloMETPhi020 ->
setAxisTitle(
"METPhi [rad] (MET>20 GeV)", 1);
305 hCaloEtFractionHadronic = ibooker.
book1D(
"CaloEtFractionHadronic",
"CaloEtFractionHadronic",100,0,1);
306 hCaloEtFractionHadronic->
setAxisTitle(
"Hadronic Et Fraction",1);
307 hCaloEmEtFraction = ibooker.
book1D(
"CaloEmEtFraction",
"CaloEmEtFraction" ,100,0,1);
310 hCaloEmEtFraction020 = ibooker.
book1D(
"CaloEmEtFraction020",
"CaloEmEtFraction020" ,100,0,1);
311 hCaloEmEtFraction020->
setAxisTitle(
"EM Et Fraction (MET>20 GeV)",1);
313 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloMETPhi020",hCaloMETPhi020));
314 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloEtFractionHadronic",hCaloEtFractionHadronic));
315 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloEmEtFraction", hCaloEmEtFraction));
316 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"CaloEmEtFraction020",hCaloEmEtFraction020));
321 if(fillPFCandPlots && fillCandidateMap_histos){
323 mePhotonEtFraction_BXm2BXm1Empty = ibooker.
book1D(
"PfPhotonEtFraction_BXm2BXm1Empty",
"pfmet.photonEtFraction() prev empty 2 bunches", 50, 0, 1);
324 mePhotonEtFraction_BXm1Bxm2Filled = ibooker.
book1D(
"PfPhotonEtFraction_BXm2BXm1Filled",
"pfmet.photonEtFraction() prev filled 2 bunches", 50, 0, 1);
325 meNeutralHadronEtFraction_BXm2BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFraction_BXm2BXm1Empty",
"pfmet.neutralHadronEtFraction() prev empty 2 bunches", 50, 0, 1);
326 meNeutralHadronEtFraction_BXm1Bxm2Filled = ibooker.
book1D(
"PfNeutralHadronEtFraction_BXm2BXm1Filled",
"pfmet.neutralHadronEtFraction() prev filled 2 bunches", 50, 0, 1);
327 meChargedHadronEtFraction_BXm2BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFraction_BXm2BXm1Empty",
"pfmet.chargedHadronEtFraction() prev empty 2 bunches", 50, 0, 1);
328 meChargedHadronEtFraction_BXm1Bxm2Filled = ibooker.
book1D(
"PfChargedHadronEtFraction_BXm2BXm1Filled",
"pfmet.chargedHadronEtFraction() prev filled 2 bunches", 50, 0, 1);
329 meMET_BXm2BXm1Empty = ibooker.
book1D(
"MET_BXm2BXm1Empty",
"MET prev empty 2 bunches", 200, 0, 1000);
330 meMET_BXm1Bxm2Filled = ibooker.
book1D(
"MET_BXm2BXm1Filled",
"MET prev filled 2 bunches", 200, 0, 1000);
331 meSumET_BXm2BXm1Empty = ibooker.
book1D(
"SumET_BXm2BXm1Empty",
"SumET prev empty 2 bunches", 400, 0, 4000);
332 meSumET_BXm1Bxm2Filled = ibooker.
book1D(
"SumET_BXm2BXm1Filled",
"SumET prev filled 2 bunches", 400, 0, 4000);
334 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFraction_BXm2BXm1Empty" ,mePhotonEtFraction_BXm2BXm1Empty));
335 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFraction_BXm2BXm1Filled" ,mePhotonEtFraction_BXm1Bxm2Filled));
336 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFraction_BXm2BXm1Empty" ,meNeutralHadronEtFraction_BXm2BXm1Empty));
337 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralEtFraction_BXm2BXm1Filled" ,meNeutralHadronEtFraction_BXm1Bxm2Filled));
338 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFraction_BXm2BXm1Empty" ,meChargedHadronEtFraction_BXm2BXm1Empty));
339 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedEtFraction_BXm2BXm1Filled" ,meChargedHadronEtFraction_BXm1Bxm2Filled));
340 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MET_BXm2BXm1Empty" ,meMET_BXm2BXm1Empty));
341 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MET_BXm2BXm1Filled" ,meMET_BXm1Bxm2Filled));
342 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"SumET_BXm2BXm1Empty" ,meSumET_BXm2BXm1Empty));
343 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"SumET_BXm2BXm1Filled",meSumET_BXm1Bxm2Filled));
345 meCHF_Barrel = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel",
"chargedHadronEtFractionBarrel", 50, 0, 1);
346 meCHF_EndcapPlus = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus",
"chargedHadronEtFractionEndcapPlus", 50, 0, 1);
347 meCHF_EndcapMinus = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus",
"chargedHadronEtFractionEndcapMinus", 50, 0, 1);
348 meCHF_Barrel_BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel_BXm1Empty",
"chargedHadronEtFractionBarrel prev empty bunch", 50, 0, 1);
349 meCHF_EndcapPlus_BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty",
"chargedHadronEtFractionEndcapPlus prev empty bunch", 50, 0, 1);
350 meCHF_EndcapMinus_BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty",
"chargedHadronEtFractionEndcapMinus prev empty bunch", 50, 0, 1);
351 meCHF_Barrel_BXm1BXm2Empty = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel_BXm1BXm2Empty",
"chargedHadronEtFractionBarrel prev empty 2 bunches", 50, 0, 1);
352 meCHF_EndcapPlus_BXm1BXm2Empty = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus_BXm1BXm2Empty",
"chargedHadronEtFractionEndcapPlus prev empty 2 bunches", 50, 0, 1);
353 meCHF_EndcapMinus_BXm1BXm2Empty = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus_BXm1BXm2Empty",
"chargedHadronEtFractionEndcapMinus prev empty 2 bunches", 50, 0, 1);
354 meCHF_Barrel_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel_BXm1Filled",
"chargedHadronEtFractionBarrel prev filled 2 bunches", 50, 0, 1);
355 meCHF_EndcapPlus_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled",
"chargedHadronEtFractionEndcapPlus prev filled bunch", 50, 0, 1);
356 meCHF_EndcapMinus_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled",
"chargedHadronEtFractionEndcapMinus prev filled bunch", 50, 0, 1);
357 meCHF_Barrel_BXm1BXm2Filled = ibooker.
book1D(
"PfChargedHadronEtFractionBarrel_BXm1BXm2Filled",
"chargedHadronEtFractionBarrel prev filled 2 bunches", 50, 0, 1);
358 meCHF_EndcapPlus_BXm1BXm2Filled = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapPlus_BXm1BXm2Filled",
"chargedHadronEtFractionEndcapPlus prev filled 2 bunches", 50, 0, 1);
359 meCHF_EndcapMinus_BXm1BXm2Filled = ibooker.
book1D(
"PfChargedHadronEtFractionEndcapMinus_BXm1BXm2Filled",
"chargedHadronEtFractionEndcapMinus prev filled 2 bunches", 50, 0, 1);
361 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionBarrel", meCHF_Barrel));
362 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus", meCHF_EndcapPlus));
363 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus", meCHF_EndcapMinus));
364 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionBarrel_BXm1Empty", meCHF_Barrel_BXm1Empty));
365 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty", meCHF_EndcapPlus_BXm1Empty));
366 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty", meCHF_EndcapMinus_BXm1Empty));
367 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionBarrel_BXm1BXm2Empty", meCHF_Barrel_BXm1BXm2Empty));
368 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus_BXm1BXm2Empty", meCHF_EndcapPlus_BXm1BXm2Empty));
369 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus_BXm1BXm2Empty", meCHF_EndcapMinus_BXm1BXm2Empty));
370 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionBarrel_BXm1Filled", meCHF_Barrel_BXm1Filled));
371 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled", meCHF_EndcapPlus_BXm1Filled));
372 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled", meCHF_EndcapMinus_BXm1Filled));
373 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionBarrel_BXm1BXm2Filled", meCHF_Barrel_BXm1BXm2Filled));
374 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus_BXm1BXm2Filled", meCHF_EndcapPlus_BXm1BXm2Filled));
375 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus_BXm1BXm2Filled", meCHF_EndcapMinus_BXm1BXm2Filled));
377 meNHF_Barrel = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel",
"neutralHadronEtFractionBarrel", 50, 0, 1);
378 meNHF_EndcapPlus = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus",
"neutralHadronEtFractionEndcapPlus", 50, 0, 1);
379 meNHF_EndcapMinus = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus",
"neutralHadronEtFractionEndcapMinus", 50, 0, 1);
380 meNHF_Barrel_BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel_BXm1Empty",
"neutralHadronEtFractionBarrel prev empty bunch", 50, 0, 1);
381 meNHF_EndcapPlus_BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty",
"neutralHadronEtFractionEndcapPlus prev empty bunch", 50, 0, 1);
382 meNHF_EndcapMinus_BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty",
"neutralHadronEtFractionEndcapMinus prev empty bunch", 50, 0, 1);
383 meNHF_Barrel_BXm1BXm2Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel_BXm1BXm2Empty",
"neutralHadronEtFractionBarrel prev empty 2 bunches", 50, 0, 1);
384 meNHF_EndcapPlus_BXm1BXm2Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus_BXm1BXm2Empty",
"neutralHadronEtFractionEndcapPlus prev empty 2 bunches", 50, 0, 1);
385 meNHF_EndcapMinus_BXm1BXm2Empty = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus_BXm1BXm2Empty",
"neutralHadronEtFractionEndcapMinus prev empty 2 bunches", 50, 0, 1);
386 meNHF_Barrel_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel_BXm1Filled",
"neutralHadronEtFractionBarrel prev filled 2 bunches", 50, 0, 1);
387 meNHF_EndcapPlus_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled",
"neutralHadronEtFractionEndcapPlus prev filled bunch", 50, 0, 1);
388 meNHF_EndcapMinus_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled",
"neutralHadronEtFractionEndcapMinus prev filled bunch", 50, 0, 1);
389 meNHF_Barrel_BXm1BXm2Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionBarrel_BXm1BXm2Filled",
"neutralHadronEtFractionBarrel prev filled 2 bunches", 50, 0, 1);
390 meNHF_EndcapPlus_BXm1BXm2Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapPlus_BXm1BXm2Filled",
"neutralHadronEtFractionEndcapPlus prev filled 2 bunches", 50, 0, 1);
391 meNHF_EndcapMinus_BXm1BXm2Filled = ibooker.
book1D(
"PfNeutralHadronEtFractionEndcapMinus_BXm1BXm2Filled",
"neutralHadronEtFractionEndcapMinus prev filled 2 bunches", 50, 0, 1);
393 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionBarrel", meNHF_Barrel));
394 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus", meNHF_EndcapPlus));
395 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus", meNHF_EndcapMinus));
396 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionBarrel_BXm1Empty", meNHF_Barrel_BXm1Empty));
397 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty", meNHF_EndcapPlus_BXm1Empty));
398 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty", meNHF_EndcapMinus_BXm1Empty));
399 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionBarrel_BXm1BXm2Empty", meNHF_Barrel_BXm1BXm2Empty));
400 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus_BXm1BXm2Empty", meNHF_EndcapPlus_BXm1BXm2Empty));
401 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus_BXm1BXm2Empty", meNHF_EndcapMinus_BXm1BXm2Empty));
402 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionBarrel_BXm1Filled", meNHF_Barrel_BXm1Filled));
403 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled", meNHF_EndcapPlus_BXm1Filled));
404 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled", meNHF_EndcapMinus_BXm1Filled));
405 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionBarrel_BXm1BXm2Filled", meNHF_Barrel_BXm1BXm2Filled));
406 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus_BXm1BXm2Filled", meNHF_EndcapPlus_BXm1BXm2Filled));
407 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus_BXm1BXm2Filled", meNHF_EndcapMinus_BXm1BXm2Filled));
409 mePhF_Barrel = ibooker.
book1D(
"PfPhotonEtFractionBarrel",
"photonEtFractionBarrel", 50, 0, 1);
410 mePhF_EndcapPlus = ibooker.
book1D(
"PfPhotonEtFractionEndcapPlus",
"photonEtFractionEndcapPlus", 50, 0, 1);
411 mePhF_EndcapMinus = ibooker.
book1D(
"PfPhotonEtFractionEndcapMinus",
"photonEtFractionEndcapMinus", 50, 0, 1);
412 mePhF_Barrel_BXm1Empty = ibooker.
book1D(
"PfPhotonEtFractionBarrel_BXm1Empty",
"photonEtFractionBarrel prev empty bunch", 50, 0, 1);
413 mePhF_EndcapPlus_BXm1Empty = ibooker.
book1D(
"PfPhotonEtFractionEndcapPlus_BXm1Empty",
"photonEtFractionEndcapPlus prev empty bunch", 50, 0, 1);
414 mePhF_EndcapMinus_BXm1Empty = ibooker.
book1D(
"PfPhotonEtFractionEndcapMinus_BXm1Empty",
"photonEtFractionEndcapMinus prev empty bunch", 50, 0, 1);
415 mePhF_Barrel_BXm1BXm2Empty = ibooker.
book1D(
"PfPhotonEtFractionBarrel_BXm1BXm2Empty",
"photonEtFractionBarrel prev empty 2 bunches", 50, 0, 1);
416 mePhF_EndcapPlus_BXm1BXm2Empty = ibooker.
book1D(
"PfPhotonEtFractionEndcapPlus_BXm1BXm2Empty",
"photonEtFractionEndcapPlus prev empty 2 bunches", 50, 0, 1);
417 mePhF_EndcapMinus_BXm1BXm2Empty = ibooker.
book1D(
"PfPhotonEtFractionEndcapMinus_BXm1BXm2Empty",
"photonEtFractionEndcapMinus prev empty 2 bunches", 50, 0, 1);
418 mePhF_Barrel_BXm1Filled = ibooker.
book1D(
"PfPhotonEtFractionBarrel_BXm1Filled",
"photonEtFractionBarrel prev filled 2 bunches", 50, 0, 1);
419 mePhF_EndcapPlus_BXm1Filled = ibooker.
book1D(
"PfPhotonEtFractionEndcapPlus_BXm1Filled",
"photonEtFractionEndcapPlus prev filled bunch", 50, 0, 1);
420 mePhF_EndcapMinus_BXm1Filled = ibooker.
book1D(
"PfPhotonEtFractionEndcapMinus_BXm1Filled",
"photonEtFractionEndcapMinus prev filled bunch", 50, 0, 1);
421 mePhF_Barrel_BXm1BXm2Filled = ibooker.
book1D(
"PfPhotonEtFractionBarrel_BXm1BXm2Filled",
"photonEtFractionBarrel prev filled 2 bunches", 50, 0, 1);
422 mePhF_EndcapPlus_BXm1BXm2Filled = ibooker.
book1D(
"PfPhotonEtFractionEndcapPlus_BXm1BXm2Filled",
"photonEtFractionEndcapPlus prev filled 2 bunches", 50, 0, 1);
423 mePhF_EndcapMinus_BXm1BXm2Filled = ibooker.
book1D(
"PfPhotonEtFractionEndcapMinus_BXm1BXm2Filled",
"photonEtFractionEndcapMinus prev filled 2 bunches", 50, 0, 1);
425 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionBarrel", mePhF_Barrel));
426 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapPlus", mePhF_EndcapPlus));
427 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapMinus", mePhF_EndcapMinus));
428 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionBarrel_BXm1Empty", mePhF_Barrel_BXm1Empty));
429 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapPlus_BXm1Empty", mePhF_EndcapPlus_BXm1Empty));
430 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapMinus_BXm1Empty", mePhF_EndcapMinus_BXm1Empty));
431 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionBarrel_BXm1BXm2Empty", mePhF_Barrel_BXm1BXm2Empty));
432 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapPlus_BXm1BXm2Empty", mePhF_EndcapPlus_BXm1BXm2Empty));
433 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapMinus_BXm1BXm2Empty", mePhF_EndcapMinus_BXm1BXm2Empty));
434 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionBarrel_BXm1Filled", mePhF_Barrel_BXm1Filled));
435 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapPlus_BXm1Filled", mePhF_EndcapPlus_BXm1Filled));
436 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapMinus_BXm1Filled", mePhF_EndcapMinus_BXm1Filled));
437 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionBarrel_BXm1BXm2Filled", mePhF_Barrel_BXm1BXm2Filled));
438 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapPlus_BXm1BXm2Filled", mePhF_EndcapPlus_BXm1BXm2Filled));
439 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFractionEndcapMinus_BXm1BXm2Filled", mePhF_EndcapMinus_BXm1BXm2Filled));
441 meHFHadF_Plus = ibooker.
book1D(
"PfHFHadronEtFractionPlus",
"HFHadronEtFractionPlus", 50, 0, 1);
442 meHFHadF_Minus = ibooker.
book1D(
"PfHFHadronEtFractionMinus",
"HFHadronEtFractionMinus", 50, 0, 1);
443 meHFHadF_Plus_BXm1Empty = ibooker.
book1D(
"PfHFHadronEtFractionPlus_BXm1Empty",
"HFHadronEtFractionPlus prev empty bunch", 50, 0, 1);
444 meHFHadF_Minus_BXm1Empty = ibooker.
book1D(
"PfHFHadronEtFractionMinus_BXm1Empty",
"HFHadronEtFractionMinus prev empty bunch", 50, 0, 1);
445 meHFHadF_Plus_BXm1BXm2Empty = ibooker.
book1D(
"PfHFHadronEtFractionPlus_BXm1BXm2Empty",
"HFHadronEtFractionPlus prev empty 2 bunches", 50, 0, 1);
446 meHFHadF_Minus_BXm1BXm2Empty = ibooker.
book1D(
"PfHFHadronEtFractionMinus_BXm1BXm2Empty",
"HFHadronEtFractionMinus prev empty 2 bunches", 50, 0, 1);
447 meHFHadF_Plus_BXm1Filled = ibooker.
book1D(
"PfHFHadronEtFractionPlus_BXm1Filled",
"HFHadronEtFractionPlus prev filled bunch", 50, 0, 1);
448 meHFHadF_Minus_BXm1Filled = ibooker.
book1D(
"PfHFHadronEtFractionMinus_BXm1Filled",
"HFHadronEtFractionMinus prev filled bunch", 50, 0, 1);
449 meHFHadF_Plus_BXm1BXm2Filled = ibooker.
book1D(
"PfHFHadronEtFractionPlus_BXm1BXm2Filled",
"HFHadronEtFractionPlus prev filled 2 bunches", 50, 0, 1);
450 meHFHadF_Minus_BXm1BXm2Filled = ibooker.
book1D(
"PfHFHadronEtFractionMinus_BXm1BXm2Filled",
"HFHadronEtFractionMinus prev filled 2 bunches", 50, 0, 1);
452 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionPlus", meHFHadF_Plus));
453 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionMinus", meHFHadF_Minus));
454 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionPlus_BXm1Empty", meHFHadF_Plus_BXm1Empty));
455 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionMinus_BXm1Empty", meHFHadF_Minus_BXm1Empty));
456 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionPlus_BXm1BXm2Empty", meHFHadF_Plus_BXm1BXm2Empty));
457 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionMinus_BXm1BXm2Empty", meHFHadF_Minus_BXm1BXm2Empty));
458 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionPlus_BXm1Filled", meHFHadF_Plus_BXm1Filled));
459 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionMinus_BXm1Filled", meHFHadF_Minus_BXm1Filled));
460 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionPlus_BXm1BXm2Filled", meHFHadF_Plus_BXm1BXm2Filled));
461 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFractionMinus_BXm1BXm2Filled", meHFHadF_Minus_BXm1BXm2Filled));
463 meHFEMF_Plus = ibooker.
book1D(
"PfHFEMEtFractionPlus",
"HFEMEtFractionPlus", 50, 0, 1);
464 meHFEMF_Minus = ibooker.
book1D(
"PfHFEMEtFractionMinus",
"HFEMEtFractionMinus", 50, 0, 1);
465 meHFEMF_Plus_BXm1Empty = ibooker.
book1D(
"PfHFEMEtFractionPlus_BXm1Empty",
"HFEMEtFractionPlus prev empty bunch", 50, 0, 1);
466 meHFEMF_Minus_BXm1Empty = ibooker.
book1D(
"PfHFEMEtFractionMinus_BXm1Empty",
"HFEMEtFractionMinus prev empty bunch", 50, 0, 1);
467 meHFEMF_Plus_BXm1BXm2Empty = ibooker.
book1D(
"PfHFEMEtFractionPlus_BXm1BXm2Empty",
"HFEMEtFractionPlus prev empty 2 bunches", 50, 0, 1);
468 meHFEMF_Minus_BXm1BXm2Empty = ibooker.
book1D(
"PfHFEMEtFractionMinus_BXm1BXm2Empty",
"HFEMEtFractionMinus prev empty 2 bunches", 50, 0, 1);
469 meHFEMF_Plus_BXm1Filled = ibooker.
book1D(
"PfHFEMEtFractionPlus_BXm1Filled",
"HFEMEtFractionPlus prev filled bunch", 50, 0, 1);
470 meHFEMF_Minus_BXm1Filled = ibooker.
book1D(
"PfHFEMEtFractionMinus_BXm1Filled",
"HFEMEtFractionMinus prev filled bunch", 50, 0, 1);
471 meHFEMF_Plus_BXm1BXm2Filled = ibooker.
book1D(
"PfHFEMEtFractionPlus_BXm1BXm2Filled",
"HFEMEtFractionPlus prev filled 2 bunches", 50, 0, 1);
472 meHFEMF_Minus_BXm1BXm2Filled = ibooker.
book1D(
"PfHFEMEtFractionMinus_BXm1BXm2Filled",
"HFEMEtFractionMinus prev filled 2 bunches", 50, 0, 1);
474 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionPlus", meHFEMF_Plus));
475 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionMinus", meHFEMF_Minus));
476 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionPlus_BXm1Empty", meHFEMF_Plus_BXm1Empty));
477 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionMinus_BXm1Empty", meHFEMF_Minus_BXm1Empty));
478 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionPlus_BXm1BXm2Empty", meHFEMF_Plus_BXm1BXm2Empty));
479 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionMinus_BXm1BXm2Empty", meHFEMF_Minus_BXm1BXm2Empty));
480 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionPlus_BXm1Filled", meHFEMF_Plus_BXm1Filled));
481 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionMinus_BXm1Filled", meHFEMF_Minus_BXm1Filled));
482 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionPlus_BXm1BXm2Filled", meHFEMF_Plus_BXm1BXm2Filled));
483 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFractionMinus_BXm1BXm2Filled", meHFEMF_Minus_BXm1BXm2Filled));
485 meMETPhiChargedHadronsBarrel_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiChargedHadronsBarrel_BXm2BXm1Filled",
"METPhi_PFChargedHadronsBarrel prev two bunches filled", 50, -
M_PI,
M_PI);
486 meMETPhiChargedHadronsEndcapPlus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus_BXm2BXm1Filled",
"METPhi_PFChargedHadronsEndcapPlus prev two bunches filled", 50, -
M_PI,
M_PI);
487 meMETPhiChargedHadronsEndcapMinus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus_BXm2BXm1Filled",
"METPhi_PFChargedHadronsEndcapMinus prev two bunches filled", 50, -
M_PI,
M_PI);
488 meMETPhiNeutralHadronsBarrel_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiNeutralHadronsBarrel_BXm2BXm1Filled",
"METPhi_PFNeutralHadronsBarrel prev two bunches filled", 50, -
M_PI,
M_PI);
489 meMETPhiNeutralHadronsEndcapPlus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus_BXm2BXm1Filled",
"METPhi_PFNeutralHadronsEndcapPlus prev two bunches filled", 50, -
M_PI,
M_PI);
490 meMETPhiNeutralHadronsEndcapMinus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus_BXm2BXm1Filled",
"METPhi_PFNeutralHadronsEndcapMinus prev two bunches filled", 50, -
M_PI,
M_PI);
491 meMETPhiPhotonsBarrel_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiPhotonsBarrel_BXm2BXm1Filled",
"METPhi_PFPhotonsBarrel prev two bunches filled", 50, -
M_PI,
M_PI);
492 meMETPhiPhotonsEndcapPlus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiPhotonsEndcapPlus_BXm2BXm1Filled",
"METPhi_PFPhotonsEndcapPlus prev two bunches filled", 50, -
M_PI,
M_PI);
493 meMETPhiPhotonsEndcapMinus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiPhotonsEndcapMinus_BXm2BXm1Filled",
"METPhi_PFPhotonsEndcapMinus prev two bunches filled", 50, -
M_PI,
M_PI);
494 meMETPhiHFHadronsPlus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiHFHadronsPlus_BXm2BXm1Filled",
"METPhi_PFHFHadronsPlus prev two bunches filled", 50, -
M_PI,
M_PI);
495 meMETPhiHFHadronsMinus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiHFHadronsMinus_BXm2BXm1Filled",
"METPhi_PFHFHadronsMinus prev two bunches filled", 50, -
M_PI,
M_PI);
496 meMETPhiHFEGammasPlus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiHFEGammasPlus_BXm2BXm1Filled",
"METPhi_PFHFEGammasPlus prev two bunches filled", 50, -
M_PI,
M_PI);
497 meMETPhiHFEGammasMinus_BXm1Bxm2Filled = ibooker.
book1D(
"METPhiHFEGammasMinus_BXm2BXm1Filled",
"METPhi_PFHFEGammasMinus prev two bunches filled", 50, -
M_PI,
M_PI);
499 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsBarrel_BXm2BXm1Filled" ,meMETPhiChargedHadronsBarrel_BXm1Bxm2Filled));
500 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapPlus_BXm2BXm1Filled" ,meMETPhiChargedHadronsEndcapPlus_BXm1Bxm2Filled));
501 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapMinus_BXm2BXm1Filled" ,meMETPhiChargedHadronsEndcapMinus_BXm1Bxm2Filled));
502 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsBarrel_BXm2BXm1Filled" ,meMETPhiNeutralHadronsBarrel_BXm1Bxm2Filled));
503 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus_BXm2BXm1Filled" ,meMETPhiNeutralHadronsEndcapPlus_BXm1Bxm2Filled));
504 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus_BXm2BXm1Filled" ,meMETPhiNeutralHadronsEndcapMinus_BXm1Bxm2Filled));
505 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsBarrel_BXm2BXm1Filled" ,meMETPhiPhotonsBarrel_BXm1Bxm2Filled));
506 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapPlus_BXm2BXm1Filled" ,meMETPhiPhotonsEndcapPlus_BXm1Bxm2Filled));
507 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapMinus_BXm2BXm1Filled" ,meMETPhiPhotonsEndcapMinus_BXm1Bxm2Filled));
508 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsPlus_BXm2BXm1Filled" ,meMETPhiHFHadronsPlus_BXm1Bxm2Filled));
509 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsMinus_BXm2BXm1Filled" ,meMETPhiHFHadronsMinus_BXm1Bxm2Filled));
510 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasPlus_BXm2BXm1Filled" ,meMETPhiHFEGammasPlus_BXm1Bxm2Filled));
511 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasMinus_BXm2BXm1Filled" ,meMETPhiHFEGammasMinus_BXm1Bxm2Filled));
513 meMETPhiChargedHadronsBarrel_BXm2BXm1Empty = ibooker.
book1D(
"METPhiChargedHadronsBarrel_BXm2BXm1Empty",
"METPhi_PFChargedHadronsBarrel prev two bunches empty", 50, -
M_PI,
M_PI);
514 meMETPhiChargedHadronsEndcapPlus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus_BXm2BXm1Empty",
"METPhi_PFChargedHadronsEndcapPlus prev two bunches empty", 50, -
M_PI,
M_PI);
515 meMETPhiChargedHadronsEndcapMinus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus_BXm2BXm1Empty",
"METPhi_PFChargedHadronsEndcapMinus prev two bunches empty", 50, -
M_PI,
M_PI);
516 meMETPhiNeutralHadronsBarrel_BXm2BXm1Empty = ibooker.
book1D(
"METPhiNeutralHadronsBarrel_BXm2BXm1Empty",
"METPhi_PFNeutralHadronsBarrel prev two bunches empty", 50, -
M_PI,
M_PI);
517 meMETPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty",
"METPhi_PFNeutralHadronsEndcapPlus prev two bunches empty", 50, -
M_PI,
M_PI);
518 meMETPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty",
"METPhi_PFNeutralHadronsEndcapMinus prev two bunches empty", 50, -
M_PI,
M_PI);
519 meMETPhiPhotonsBarrel_BXm2BXm1Empty = ibooker.
book1D(
"METPhiPhotonsBarrel_BXm2BXm1Empty",
"METPhi_PFPhotonsBarrel prev two bunches empty", 50, -
M_PI,
M_PI);
520 meMETPhiPhotonsEndcapPlus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiPhotonsEndcapPlus_BXm2BXm1Empty",
"METPhi_PFPhotonsEndcapPlus prev two bunches empty", 50, -
M_PI,
M_PI);
521 meMETPhiPhotonsEndcapMinus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiPhotonsEndcapMinus_BXm2BXm1Empty",
"METPhi_PFPhotonsEndcapMinus prev two bunches empty", 50, -
M_PI,
M_PI);
522 meMETPhiHFHadronsPlus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiHFHadronsPlus_BXm2BXm1Empty",
"METPhi_PFHFHadronsPlus prev two bunches empty", 50, -
M_PI,
M_PI);
523 meMETPhiHFHadronsMinus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiHFHadronsMinus_BXm2BXm1Empty",
"METPhi_PFHFHadronsMinus prev two bunches empty", 50, -
M_PI,
M_PI);
524 meMETPhiHFEGammasPlus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiHFEGammasPlus_BXm2BXm1Empty",
"METPhi_PFHFEGammasPlus prev two bunches empty", 50, -
M_PI,
M_PI);
525 meMETPhiHFEGammasMinus_BXm2BXm1Empty = ibooker.
book1D(
"METPhiHFEGammasMinus_BXm2BXm1Empty",
"METPhi_PFHFEGammasMinus prev two bunches empty", 50, -
M_PI,
M_PI);
527 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsBarrel_BXm2BXm1Empty" ,meMETPhiChargedHadronsBarrel_BXm2BXm1Empty));
528 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapPlus_BXm2BXm1Empty" ,meMETPhiChargedHadronsEndcapPlus_BXm2BXm1Empty));
529 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapMinus_BXm2BXm1Empty" ,meMETPhiChargedHadronsEndcapMinus_BXm2BXm1Empty));
530 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsBarrel_BXm2BXm1Empty" ,meMETPhiNeutralHadronsBarrel_BXm2BXm1Empty));
531 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty" ,meMETPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty));
532 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty" ,meMETPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty));
533 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsBarrel_BXm2BXm1Empty" ,meMETPhiPhotonsBarrel_BXm2BXm1Empty));
534 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapPlus_BXm2BXm1Empty" ,meMETPhiPhotonsEndcapPlus_BXm2BXm1Empty));
535 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapMinus_BXm2BXm1Empty" ,meMETPhiPhotonsEndcapMinus_BXm2BXm1Empty));
536 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsPlus_BXm2BXm1Empty" ,meMETPhiHFHadronsPlus_BXm2BXm1Empty));
537 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsMinus_BXm2BXm1Empty" ,meMETPhiHFHadronsMinus_BXm2BXm1Empty));
538 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasPlus_BXm2BXm1Empty" ,meMETPhiHFEGammasPlus_BXm2BXm1Empty));
539 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasMinus_BXm2BXm1Empty" ,meMETPhiHFEGammasMinus_BXm2BXm1Empty));
542 mePhotonEtFraction_BXm1Empty = ibooker.
book1D(
"PfPhotonEtFraction_BXm1Empty",
"photonEtFraction() prev empty bunch", 50, 0, 1);
543 mePhotonEtFraction_BXm1Filled = ibooker.
book1D(
"PfPhotonEtFraction_BXm1Filled",
"photonEtFraction() prev filled bunch", 50, 0, 1);
544 meNeutralHadronEtFraction_BXm1Empty = ibooker.
book1D(
"PfNeutralHadronEtFraction_BXm1Empty",
"neutralHadronEtFraction() prev empty bunch", 50, 0, 1);
545 meNeutralHadronEtFraction_BXm1Filled = ibooker.
book1D(
"PfNeutralHadronEtFraction_BXm1Filled",
"neutralHadronEtFraction() prev filled bunch", 50, 0, 1);
546 meChargedHadronEtFraction_BXm1Empty = ibooker.
book1D(
"PfChargedHadronEtFraction_BXm1Empty",
"chargedHadronEtFraction() prev empty bunch", 50, 0, 1);
547 meChargedHadronEtFraction_BXm1Filled = ibooker.
book1D(
"PfChargedHadronEtFraction_BXm1Filled",
"chargedHadronEtFraction() prev filled bunch", 50, 0, 1);
548 meMET_BXm1Empty = ibooker.
book1D(
"MET_BXm1Empty",
"MET prev empty bunch", 200, 0, 1000);
549 meMET_BXm1Filled = ibooker.
book1D(
"MET_BXm1Filled",
"MET prev filled bunch", 200, 0, 1000);
550 meSumET_BXm1Empty = ibooker.
book1D(
"SumET_BXm1Empty",
"SumET prev empty bunch", 400, 0, 4000);
551 meSumET_BXm1Filled = ibooker.
book1D(
"SumET_BXm1Filled",
"SumET prev filled bunch", 400, 0, 4000);
553 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFraction_BXm1Empty" ,mePhotonEtFraction_BXm1Empty));
554 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFraction_BXm1Filled" ,mePhotonEtFraction_BXm1Filled));
555 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFraction_BXm1Empty" ,meNeutralHadronEtFraction_BXm1Empty));
556 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralEtFraction_BXm1Filled" ,meNeutralHadronEtFraction_BXm1Filled));
557 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFraction_BXm1Empty" ,meChargedHadronEtFraction_BXm1Empty));
558 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedEtFraction_BXm1Filled" ,meChargedHadronEtFraction_BXm1Filled));
559 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MET_BXm1Empty" ,meMET_BXm1Empty));
560 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MET_BXm1Filled" ,meMET_BXm1Filled));
561 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"SumET_BXm1Empty" ,meSumET_BXm1Empty));
562 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"SumET_BXm1Filled",meSumET_BXm1Filled));
564 meMETPhiChargedHadronsBarrel_BXm1Filled = ibooker.
book1D(
"METPhiChargedHadronsBarrel_BXm1Filled",
"METPhi_PFChargedHadronsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
565 meMETPhiChargedHadronsEndcapPlus_BXm1Filled = ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus_BXm1Filled",
"METPhi_PFChargedHadronsEndcapPlus prev bunch filled", 50, -
M_PI,
M_PI);
566 meMETPhiChargedHadronsEndcapMinus_BXm1Filled = ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus_BXm1Filled",
"METPhi_PFChargedHadronsEndcapMinus prev bunch filled", 50, -
M_PI,
M_PI);
567 meMETPhiNeutralHadronsBarrel_BXm1Filled = ibooker.
book1D(
"METPhiNeutralHadronsBarrel_BXm1Filled",
"METPhi_PFNeutralHadronsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
568 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled = ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus_BXm1Filled",
"METPhi_PFNeutralHadronsEndcapPlus prev bunch filled", 50, -
M_PI,
M_PI);
569 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled = ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus_BXm1Filled",
"METPhi_PFNeutralHadronsEndcapMinus prev bunch filled", 50, -
M_PI,
M_PI);
570 meMETPhiPhotonsBarrel_BXm1Filled = ibooker.
book1D(
"METPhiPhotonsBarrel_BXm1Filled",
"METPhi_PFPhotonsBarrel prev bunch filled", 50, -
M_PI,
M_PI);
571 meMETPhiPhotonsEndcapPlus_BXm1Filled = ibooker.
book1D(
"METPhiPhotonsEndcapPlus_BXm1Filled",
"METPhi_PFPhotonsEndcapPlus prev bunch filled", 50, -
M_PI,
M_PI);
572 meMETPhiPhotonsEndcapMinus_BXm1Filled = ibooker.
book1D(
"METPhiPhotonsEndcapMinus_BXm1Filled",
"METPhi_PFPhotonsEndcapMinus prev bunch filled", 50, -
M_PI,
M_PI);
573 meMETPhiHFHadronsPlus_BXm1Filled = ibooker.
book1D(
"METPhiHFHadronsPlus_BXm1Filled",
"METPhi_PFHFHadronsPlus prev bunch filled", 50, -
M_PI,
M_PI);
574 meMETPhiHFHadronsMinus_BXm1Filled = ibooker.
book1D(
"METPhiHFHadronsMinus_BXm1Filled",
"METPhi_PFHFHadronsMinus prev bunch filled", 50, -
M_PI,
M_PI);
575 meMETPhiHFEGammasPlus_BXm1Filled = ibooker.
book1D(
"METPhiHFEGammasPlus_BXm1Filled",
"METPhi_PFHFEGammasPlus prev bunch filled", 50, -
M_PI,
M_PI);
576 meMETPhiHFEGammasMinus_BXm1Filled = ibooker.
book1D(
"METPhiHFEGammasMinus_BXm1Filled",
"METPhi_PFHFEGammasMinus prev bunch filled", 50, -
M_PI,
M_PI);
578 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsBarrel_BXm1Filled" ,meMETPhiChargedHadronsBarrel_BXm1Filled));
579 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapPlus_BXm1Filled" ,meMETPhiChargedHadronsEndcapPlus_BXm1Filled));
580 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapMinus_BXm1Filled" ,meMETPhiChargedHadronsEndcapMinus_BXm1Filled));
581 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsBarrel_BXm1Filled" ,meMETPhiNeutralHadronsBarrel_BXm1Filled));
582 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus_BXm1Filled" ,meMETPhiNeutralHadronsEndcapPlus_BXm1Filled));
583 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus_BXm1Filled" ,meMETPhiNeutralHadronsEndcapMinus_BXm1Filled));
584 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsBarrel_BXm1Filled" ,meMETPhiPhotonsBarrel_BXm1Filled));
585 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapPlus_BXm1Filled" ,meMETPhiPhotonsEndcapPlus_BXm1Filled));
586 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapMinus_BXm1Filled" ,meMETPhiPhotonsEndcapMinus_BXm1Filled));
587 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsPlus_BXm1Filled" ,meMETPhiHFHadronsPlus_BXm1Filled));
588 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsMinus_BXm1Filled" ,meMETPhiHFHadronsMinus_BXm1Filled));
589 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasPlus_BXm1Filled" ,meMETPhiHFEGammasPlus_BXm1Filled));
590 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasMinus_BXm1Filled" ,meMETPhiHFEGammasMinus_BXm1Filled));
592 meMETPhiChargedHadronsBarrel_BXm1Empty = ibooker.
book1D(
"METPhiChargedHadronsBarrel_BXm1Empty",
"METPhi_PFChargedHadronsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
593 meMETPhiChargedHadronsEndcapPlus_BXm1Empty = ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus_BXm1Empty",
"METPhi_PFChargedHadronsEndcapPlus prev bunch empty", 50, -
M_PI,
M_PI);
594 meMETPhiChargedHadronsEndcapMinus_BXm1Empty = ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus_BXm1Empty",
"METPhi_PFChargedHadronsEndcapMinus prev bunch empty", 50, -
M_PI,
M_PI);
595 meMETPhiNeutralHadronsBarrel_BXm1Empty = ibooker.
book1D(
"METPhiNeutralHadronsBarrel_BXm1Empty",
"METPhi_PFNeutralHadronsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
596 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty = ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus_BXm1Empty",
"METPhi_PFNeutralHadronsEndcapPlus prev bunch empty", 50, -
M_PI,
M_PI);
597 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty = ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus_BXm1Empty",
"METPhi_PFNeutralHadronsEndcapMinus prev bunch empty", 50, -
M_PI,
M_PI);
598 meMETPhiPhotonsBarrel_BXm1Empty = ibooker.
book1D(
"METPhiPhotonsBarrel_BXm1Empty",
"METPhi_PFPhotonsBarrel prev bunch empty", 50, -
M_PI,
M_PI);
599 meMETPhiPhotonsEndcapPlus_BXm1Empty = ibooker.
book1D(
"METPhiPhotonsEndcapPlus_BXm1Empty",
"METPhi_PFPhotonsEndcapPlus prev bunch empty", 50, -
M_PI,
M_PI);
600 meMETPhiPhotonsEndcapMinus_BXm1Empty = ibooker.
book1D(
"METPhiPhotonsEndcapMinus_BXm1Empty",
"METPhi_PFPhotonsEndcapMinus prev bunch empty", 50, -
M_PI,
M_PI);
601 meMETPhiHFHadronsPlus_BXm1Empty = ibooker.
book1D(
"METPhiHFHadronsPlus_BXm1Empty",
"METPhi_PFHFHadronsPlus prev bunch empty", 50, -
M_PI,
M_PI);
602 meMETPhiHFHadronsMinus_BXm1Empty = ibooker.
book1D(
"METPhiHFHadronsMinus_BXm1Empty",
"METPhi_PFHFHadronsMinus prev bunch empty", 50, -
M_PI,
M_PI);
603 meMETPhiHFEGammasPlus_BXm1Empty = ibooker.
book1D(
"METPhiHFEGammasPlus_BXm1Empty",
"METPhi_PFHFEGammasPlus prev bunch empty", 50, -
M_PI,
M_PI);
604 meMETPhiHFEGammasMinus_BXm1Empty = ibooker.
book1D(
"METPhiHFEGammasMinus_BXm1Empty",
"METPhi_PFHFEGammasMinus prev bunch empty", 50, -
M_PI,
M_PI);
606 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsBarrel_BXm1Empty" ,meMETPhiChargedHadronsBarrel_BXm1Empty));
607 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapPlus_BXm1Empty" ,meMETPhiChargedHadronsEndcapPlus_BXm1Empty));
608 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapMinus_BXm1Empty" ,meMETPhiChargedHadronsEndcapMinus_BXm1Empty));
609 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsBarrel_BXm1Empty" ,meMETPhiNeutralHadronsBarrel_BXm1Empty));
610 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus_BXm1Empty" ,meMETPhiNeutralHadronsEndcapPlus_BXm1Empty));
611 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus_BXm1Empty" ,meMETPhiNeutralHadronsEndcapMinus_BXm1Empty));
612 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsBarrel_BXm1Empty" ,meMETPhiPhotonsBarrel_BXm1Empty));
613 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapPlus_BXm1Empty" ,meMETPhiPhotonsEndcapPlus_BXm1Empty));
614 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapMinus_BXm1Empty" ,meMETPhiPhotonsEndcapMinus_BXm1Empty));
615 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsPlus_BXm1Empty" ,meMETPhiHFHadronsPlus_BXm1Empty));
616 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsMinus_BXm1Empty" ,meMETPhiHFHadronsMinus_BXm1Empty));
617 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasPlus_BXm1Empty" ,meMETPhiHFEGammasPlus_BXm1Empty));
618 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasMinus_BXm1Empty" ,meMETPhiHFEGammasMinus_BXm1Empty));
620 meMETPhiChargedHadronsBarrel = ibooker.
book1D(
"METPhiChargedHadronsBarrel",
"METPhi_PFChargedHadronsBarrel", 50, -
M_PI,
M_PI);
621 meMETPhiChargedHadronsEndcapPlus = ibooker.
book1D(
"METPhiChargedHadronsEndcapPlus",
"METPhi_PFChargedHadronsEndcapPlus", 50, -
M_PI,
M_PI);
622 meMETPhiChargedHadronsEndcapMinus = ibooker.
book1D(
"METPhiChargedHadronsEndcapMinus",
"METPhi_PFChargedHadronsEndcapMinus", 50, -
M_PI,
M_PI);
623 meMETPhiNeutralHadronsBarrel = ibooker.
book1D(
"METPhiNeutralHadronsBarrel",
"METPhi_PFNeutralHadronsBarrel", 50, -
M_PI,
M_PI);
624 meMETPhiNeutralHadronsEndcapPlus = ibooker.
book1D(
"METPhiNeutralHadronsEndcapPlus",
"METPhi_PFNeutralHadronsEndcapPlus", 50, -
M_PI,
M_PI);
625 meMETPhiNeutralHadronsEndcapMinus = ibooker.
book1D(
"METPhiNeutralHadronsEndcapMinus",
"METPhi_PFNeutralHadronsEndcapMinus", 50, -
M_PI,
M_PI);
626 meMETPhiPhotonsBarrel = ibooker.
book1D(
"METPhiPhotonsBarrel",
"METPhi_PFPhotonsBarrel", 50, -
M_PI,
M_PI);
627 meMETPhiPhotonsEndcapPlus = ibooker.
book1D(
"METPhiPhotonsEndcapPlus",
"METPhi_PFPhotonsEndcapPlus", 50, -
M_PI,
M_PI);
628 meMETPhiPhotonsEndcapMinus = ibooker.
book1D(
"METPhiPhotonsEndcapMinus",
"METPhi_PFPhotonsEndcapMinus", 50, -
M_PI,
M_PI);
629 meMETPhiHFHadronsPlus = ibooker.
book1D(
"METPhiHFHadronsPlus",
"METPhi_PFHFHadronsPlus", 50, -
M_PI,
M_PI);
630 meMETPhiHFHadronsMinus = ibooker.
book1D(
"METPhiHFHadronsMinus",
"METPhi_PFHFHadronsMinus", 50, -
M_PI,
M_PI);
631 meMETPhiHFEGammasPlus = ibooker.
book1D(
"METPhiHFEGammasPlus",
"METPhi_PFHFEGammasPlus", 50, -
M_PI,
M_PI);
632 meMETPhiHFEGammasMinus = ibooker.
book1D(
"METPhiHFEGammasMinus",
"METPhi_PFHFEGammasMinus", 50, -
M_PI,
M_PI);
634 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsBarrel" ,meMETPhiChargedHadronsBarrel));
635 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapPlus" ,meMETPhiChargedHadronsEndcapPlus));
636 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiChargedHadronsEndcapMinus" ,meMETPhiChargedHadronsEndcapMinus));
637 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsBarrel" ,meMETPhiNeutralHadronsBarrel));
638 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus" ,meMETPhiNeutralHadronsEndcapPlus));
639 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus" ,meMETPhiNeutralHadronsEndcapMinus));
640 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsBarrel" ,meMETPhiPhotonsBarrel));
641 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapPlus" ,meMETPhiPhotonsEndcapPlus));
642 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiPhotonsEndcapMinus" ,meMETPhiPhotonsEndcapMinus));
643 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsPlus" ,meMETPhiHFHadronsPlus));
644 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFHadronsMinus" ,meMETPhiHFHadronsMinus));
645 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasPlus" ,meMETPhiHFEGammasPlus));
646 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METPhiHFEGammasMinus" ,meMETPhiHFEGammasMinus));
648 mePhotonEt = ibooker.
book1D(
"PfPhotonEt",
"photonEt()", 100, 0, 1000);
649 meNeutralHadronEt = ibooker.
book1D(
"PfNeutralHadronEt",
"neutralHadronEt()", 100, 0, 1000);
650 meElectronEt = ibooker.
book1D(
"PfElectronEt",
"electronEt()", 100, 0, 100);
651 meChargedHadronEt = ibooker.
book1D(
"PfChargedHadronEt",
"chargedHadronEt()", 100, 0, 1000);
652 meMuonEt = ibooker.
book1D(
"PfMuonEt",
"muonEt()", 100, 0, 100);
653 meHFHadronEt = ibooker.
book1D(
"PfHFHadronEt",
"HFHadronEt()", 100, 0, 1000);
654 meHFEMEt = ibooker.
book1D(
"PfHFEMEt",
"HFEMEt()", 100, 0, 1000);
656 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEt" ,mePhotonEt));
657 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEt" ,meNeutralHadronEt));
658 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfElectronEt" ,meElectronEt));
659 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEt" ,meChargedHadronEt));
660 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfMuonEt" ,meMuonEt));
661 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEt" ,meHFHadronEt));
662 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEt" ,meHFEMEt));
664 mePhotonEt_profile = ibooker.
bookProfile(
"PfPhotonEt_profile",
"photonEt()", nbinsPV_, nPVMin_, nPVMax_, 100, 0, 1000);
665 meNeutralHadronEt_profile = ibooker.
bookProfile(
"PfNeutralHadronEt_profile",
"neutralHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 100, 0, 1000);
666 meChargedHadronEt_profile = ibooker.
bookProfile(
"PfChargedHadronEt_profile",
"chargedHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 100, 0, 1000);
667 meHFHadronEt_profile = ibooker.
bookProfile(
"PfHFHadronEt_profile",
"HFHadronEt()", nbinsPV_, nPVMin_, nPVMax_, 100, 0, 1000);
668 meHFEMEt_profile = ibooker.
bookProfile(
"PfHFEMEt_profile",
"HFEMEt()", nbinsPV_, nPVMin_, nPVMax_, 100, 0, 1000);
671 meNeutralHadronEt_profile ->setAxisTitle(
"nvtx", 1);
672 meChargedHadronEt_profile ->setAxisTitle(
"nvtx", 1);
673 meHFHadronEt_profile ->setAxisTitle(
"nvtx", 1);
674 meHFEMEt_profile ->setAxisTitle(
"nvtx", 1);
676 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEt_profile" ,mePhotonEt_profile));
677 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEt_profile" ,meNeutralHadronEt_profile));
678 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEt_profile" ,meChargedHadronEt_profile));
679 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEt_profile" ,meHFHadronEt_profile));
680 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEt_profile" ,meHFEMEt_profile));
682 if(fillPFCandPlots && fillCandidateMap_histos){
683 if(!etaMinPFCand_.empty()){
684 etaMinPFCand_.clear();
685 etaMaxPFCand_.clear();
687 nbinsPFCand_.clear();
688 countsPFCand_.clear();
691 profilePFCand_x_.clear();
692 profilePFCand_y_.clear();
693 occupancyPFCand_.clear();
695 multiplicityPFCand_.clear();
696 profilePFCand_x_name_.clear();
697 profilePFCand_y_name_.clear();
698 occupancyPFCand_name_.clear();
699 ptPFCand_name_.clear();
700 multiplicityPFCand_name_.clear();
702 for (std::vector<edm::ParameterSet>::const_iterator
v = diagnosticsParameters_.begin();
v!=diagnosticsParameters_.end();
v++) {
703 int etaNBinsPFCand =
v->getParameter<
int>(
"etaNBins");
704 double etaMinPFCand =
v->getParameter<
double>(
"etaMin");
705 double etaMaxPFCand =
v->getParameter<
double>(
"etaMax");
706 int phiNBinsPFCand =
v->getParameter<
int>(
"phiNBins");
707 double phiMinPFCand =
v->getParameter<
double>(
"phiMin");
708 double phiMaxPFCand =
v->getParameter<
double>(
"phiMax");
709 int nMinPFCand =
v->getParameter<
int>(
"nMin");
710 int nMaxPFCand =
v->getParameter<
int>(
"nMax");
711 int nbinsPFCand =
v->getParameter<
double>(
"nbins");
714 etaMinPFCand_.push_back(etaMinPFCand);
715 etaMaxPFCand_.push_back(etaMaxPFCand);
716 nbinsPFCand_.push_back(nbinsPFCand);
717 typePFCand_.push_back(
v->getParameter<
int>(
"type"));
718 countsPFCand_.push_back(0);
719 MExPFCand_.push_back(0.);
720 MEyPFCand_.push_back(0.);
724 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+profilePFCand_x_name_[profilePFCand_x_name_.size()-1], profilePFCand_x_[profilePFCand_x_.size()-1]));
727 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+profilePFCand_y_name_[profilePFCand_y_name_.size()-1], profilePFCand_y_[profilePFCand_y_.size()-1]));
729 multiplicityPFCand_name_.push_back(
std::string(
v->getParameter<
std::string>(
"name")).append(
"_multiplicity_").c_str());
730 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+ multiplicityPFCand_name_[multiplicityPFCand_name_.size()-1], multiplicityPFCand_[multiplicityPFCand_.size()-1]));
733 occupancyPFCand_name_.push_back(
std::string(
v->getParameter<
std::string>(
"name")).append(
"_occupancy_").c_str());
739 if(etaMinPFCand*etaMaxPFCand<0){
740 occupancyPFCand_.push_back(ibooker.
book2D(
std::string(
v->getParameter<
std::string>(
"name")).append(
"_occupancy_").c_str(),
std::string(
v->getParameter<
std::string>(
"name"))+
"occupancy", etaNBinsPFCand, etaMinPFCand, etaMaxPFCand, phiNBinsPFCand, phiMinPFCand, phiMaxPFCand));
743 const int nbins_eta_endcap=2*(etaNBinsPFCand+1);
744 double eta_limits_endcap[nbins_eta_endcap];
745 for(
int i=0;
i<nbins_eta_endcap;
i++){
746 if(
i<(etaNBinsPFCand+1)){
747 eta_limits_endcap[
i]=etaMinPFCand+
i*(etaMaxPFCand-etaMinPFCand)/(
double)etaNBinsPFCand;
749 eta_limits_endcap[
i]= -etaMaxPFCand +(
i- (etaNBinsPFCand+1) )*(etaMaxPFCand-etaMinPFCand)/(
double)etaNBinsPFCand;
752 TH2F* hist_temp_occup =
new TH2F((occupancyPFCand_name_[occupancyPFCand_name_.size()-1]).c_str(),
"occupancy",nbins_eta_endcap-1, eta_limits_endcap, phiNBinsPFCand, phiMinPFCand, phiMaxPFCand);
753 occupancyPFCand_.push_back(ibooker.
book2D(occupancyPFCand_name_[occupancyPFCand_name_.size()-1],hist_temp_occup));
754 TH2F* hist_temp_pt =
new TH2F((ptPFCand_name_[ptPFCand_name_.size()-1]).c_str(),
"pt",nbins_eta_endcap-1, eta_limits_endcap, phiNBinsPFCand, phiMinPFCand, phiMaxPFCand);
755 ptPFCand_.push_back(ibooker.
book2D(ptPFCand_name_[ptPFCand_name_.size()-1], hist_temp_pt));
758 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+ occupancyPFCand_name_[occupancyPFCand_name_.size()-1], occupancyPFCand_[occupancyPFCand_.size()-1]));
759 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+ ptPFCand_name_[ptPFCand_name_.size()-1], ptPFCand_[ptPFCand_.size()-1]));
762 mProfileIsoPFChHad_TrackOccupancy=ibooker.
book2D(
"IsoPfChHad_Track_profile",
"Isolated PFChHadron Tracker_occupancy", 108, -2.7, 2.7, 160, -
M_PI,
M_PI);
763 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_Track_profile" ,mProfileIsoPFChHad_TrackOccupancy));
764 mProfileIsoPFChHad_TrackPt=ibooker.
book2D(
"IsoPfChHad_TrackPt",
"Isolated PFChHadron TrackPt", 108, -2.7, 2.7, 160, -
M_PI,
M_PI);
765 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_TrackPt" ,mProfileIsoPFChHad_TrackPt));
768 mProfileIsoPFChHad_EcalOccupancyCentral = ibooker.
book2D(
"IsoPfChHad_ECAL_profile_central",
"IsolatedPFChHa ECAL occupancy (Barrel)", 180, -1.479, 1.479, 125, -
M_PI,
M_PI);
769 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_ECAL_profile_central" ,mProfileIsoPFChHad_EcalOccupancyCentral));
770 mProfileIsoPFChHad_EMPtCentral=ibooker.
book2D(
"IsoPfChHad_EMPt_central",
"Isolated PFChHadron HadPt_central", 180, -1.479, 1.479, 360, -
M_PI,
M_PI);
771 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_EMPt_central" ,mProfileIsoPFChHad_EMPtCentral));
773 mProfileIsoPFChHad_EcalOccupancyEndcap = ibooker.
book2D(
"IsoPfChHad_ECAL_profile_endcap",
"IsolatedPFChHa ECAL occupancy (Endcap)", 110, -2.75, 2.75, 125, -
M_PI,
M_PI);
774 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_ECAL_profile_endcap" ,mProfileIsoPFChHad_EcalOccupancyEndcap));
775 mProfileIsoPFChHad_EMPtEndcap=ibooker.
book2D(
"IsoPfChHad_EMPt_endcap",
"Isolated PFChHadron EMPt_endcap", 110, -2.75, 2.75, 125, -
M_PI,
M_PI);
776 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_EMPt_endcap" ,mProfileIsoPFChHad_EMPtEndcap));
778 const int nbins_eta=16;
780 double eta_limits[nbins_eta]={-2.650,-2.500,-2.322,-2.172,-2.043,-1.930,-1.830,-1.740,1.740,1.830,1.930,2.043,2.172,2.3122,2.500,2.650};
782 TH2F* hist_temp_HCAL =
new TH2F(
"IsoPfChHad_HCAL_profile_endcap",
"IsolatedPFChHa HCAL occupancy (outer endcap)",nbins_eta-1,eta_limits, 36, -
M_PI,
M_PI);
783 TH2F* hist_tempPt_HCAL=(TH2F*)hist_temp_HCAL->Clone(
"Isolated PFCHHadron HadPt (outer endcap)");
785 mProfileIsoPFChHad_HcalOccupancyCentral = ibooker.
book2D(
"IsoPfChHad_HCAL_profile_central",
"IsolatedPFChHa HCAL occupancy (Central Part)", 40, -1.740, 1.740, 72, -
M_PI,
M_PI);
786 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_HCAL_profile_central" ,mProfileIsoPFChHad_HcalOccupancyCentral));
787 mProfileIsoPFChHad_HadPtCentral=ibooker.
book2D(
"IsoPfChHad_HadPt_central",
"Isolated PFChHadron HadPt_central", 40, -1.740, 1.740, 72, -
M_PI,
M_PI);
788 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_HadPt_central" ,mProfileIsoPFChHad_HadPtCentral));
790 mProfileIsoPFChHad_HcalOccupancyEndcap = ibooker.
book2D(
"IsoPfChHad_HCAL_profile_endcap",hist_temp_HCAL);
791 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_HCAL_profile_endcap" ,mProfileIsoPFChHad_HcalOccupancyEndcap));
792 mProfileIsoPFChHad_HadPtEndcap=ibooker.
book2D(
"IsoPfChHad_HadPt_endcap",hist_tempPt_HCAL);
793 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"IsoPfChHad_HadPt_endcap" ,mProfileIsoPFChHad_HadPtEndcap));
798 if(isPFMet_ || isMiniAODMet_){
799 mePhotonEtFraction = ibooker.
book1D(
"PfPhotonEtFraction",
"photonEtFraction()", 50, 0, 1);
800 meNeutralHadronEtFraction = ibooker.
book1D(
"PfNeutralHadronEtFraction",
"neutralHadronEtFraction()", 50, 0, 1);
801 meChargedHadronEtFraction = ibooker.
book1D(
"PfChargedHadronEtFraction",
"chargedHadronEtFraction()", 50, 0, 1);
802 meHFHadronEtFraction = ibooker.
book1D(
"PfHFHadronEtFraction",
"HFHadronEtFraction()", 50, 0, 1);
803 meHFEMEtFraction = ibooker.
book1D(
"PfHFEMEtFraction",
"HFEMEtFraction()", 50, 0, 1);
805 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFraction" ,mePhotonEtFraction));
806 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFraction",meNeutralHadronEtFraction));
807 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFraction",meChargedHadronEtFraction));
808 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFraction" ,meHFHadronEtFraction));
809 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFraction" ,meHFEMEtFraction));
811 mePhotonEtFraction_profile = ibooker.
bookProfile(
"PfPhotonEtFraction_profile",
"photonEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
812 meNeutralHadronEtFraction_profile = ibooker.
bookProfile(
"PfNeutralHadronEtFraction_profile",
"neutralHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
813 meChargedHadronEtFraction_profile = ibooker.
bookProfile(
"PfChargedHadronEtFraction_profile",
"chargedHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
814 meHFHadronEtFraction_profile = ibooker.
bookProfile(
"PfHFHadronEtFraction_profile",
"HFHadronEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
815 meHFEMEtFraction_profile = ibooker.
bookProfile(
"PfHFEMEtFraction_profile",
"HFEMEtFraction()", nbinsPV_, nPVMin_, nPVMax_, 50, 0, 1);
817 meNeutralHadronEtFraction_profile->setAxisTitle(
"nvtx", 1);
818 meChargedHadronEtFraction_profile->setAxisTitle(
"nvtx", 1);
819 meHFHadronEtFraction_profile ->setAxisTitle(
"nvtx", 1);
820 meHFEMEtFraction_profile ->setAxisTitle(
"nvtx", 1);
822 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfPhotonEtFraction_profile" ,mePhotonEtFraction_profile));
823 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfNeutralHadronEtFraction_profile" ,meNeutralHadronEtFraction_profile));
824 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfChargedHadronEtFraction_profile" ,meChargedHadronEtFraction_profile));
825 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFHadronEtFraction_profile" ,meHFHadronEtFraction_profile));
826 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"PfHFEMEtFraction_profile" ,meHFEMEtFraction_profile));
830 if (fill_met_high_level_histo){
831 hMExLS = ibooker.
book2D(
"MExLS",
"MEx_LS",200,-200,200,250,0.,2500.);
833 hMExLS->setAxisTitle(
"Lumi Section",2);
834 hMExLS->getTH2F()->SetOption(
"colz");
835 hMEyLS = ibooker.
book2D(
"MEyLS",
"MEy_LS",200,-200,200,250,0.,2500.);
837 hMEyLS->setAxisTitle(
"Lumi Section",2);
838 hMEyLS->getTH2F()->SetOption(
"colz");
839 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MExLS",hMExLS));
840 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"MEyLS",hMEyLS));
844 hMETRate = ibooker.
book1D(
"METRate",
"METRate", 200, 0, 1000);
845 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(DirName+
"/"+
"METRate",hMETRate));
849 lumisecME = ibooker.
book1D(
"lumisec",
"lumisec", 2501, -1., 2500.);
850 map_of_MEs.insert(std::pair<std::string,MonitorElement*>(
"JetMET/lumisec",lumisecME));
861 if ((techTrig->second).algoName() == m_l1algoname_) {
862 m_bitAlgTechTrig_=(techTrig->second).algoBitNumber();
870 if (hltConfig_.init(iRun,iSetup,triggerResultsLabel_.process(),changed)) {
881 if (verbose_)
std::cout <<
"HLTEventAnalyzerAOD::analyze:"
882 <<
" config extraction failure with process name "
883 << triggerResultsLabel_.process() << std::endl;
886 allTriggerNames_.clear();
887 for (
unsigned int i = 0;
i<hltConfig_.size();
i++) {
888 allTriggerNames_.push_back(hltConfig_.triggerName(
i));
893 for ( std::vector<GenericTriggerEventFlag *>::const_iterator it = triggerFolderEventFlag_.begin(); it!= triggerFolderEventFlag_.end(); it++) {
894 int pos = it - triggerFolderEventFlag_.begin();
896 (*it)->initRun( iRun, iSetup );
897 if (triggerSelectedSubFolders_[pos].exists(
std::string(
"hltDBKey"))) {
898 if ((*it)->expressionsFromDB((*it)->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
899 triggerFolderExpr_[pos] = (*it)->expressionsFromDB((*it)->hltDBKey(), iSetup);
916 meLumiSec = map_dijet_MEs[
"JetMET/lumisec"];
922 tlumisec = meLumiSec->
getTH1F();
927 for (
int i=0;
i< (tlumisec->GetNbinsX());
i++){
928 if (tlumisec->GetBinContent(
i)!=0){
930 totlssecsum+=tlumisec->GetBinContent(
i);
933 int num_per_ls=(double)totlssecsum/(
double)totlsec;
934 totlsec=totlsec+tlumisec->GetBinContent(tlumisec->GetNbinsX()+1)/(
double)num_per_ls;
935 totltime = double(totlsec*90);
938 if (totltime==0.) totltime=1.;
947 for (std::vector<std::string>::const_iterator ic = folderNames_.begin(); ic != folderNames_.end(); ic++) {
949 DirName = dirName+*ic;
950 makeRatePlot(DirName,totltime);
951 for ( std::vector<GenericTriggerEventFlag *>::const_iterator it = triggerFolderEventFlag_.begin(); it!= triggerFolderEventFlag_.end(); it++) {
952 int pos = it - triggerFolderEventFlag_.begin();
954 makeRatePlot(DirName+
"/"+triggerFolderLabels_[pos],totltime);
973 if ( meMET && mMETRate){
978 tMETRate = (TH1F*) tMET->Clone(
"METRateHist");
979 for (
int i = tMETRate->GetNbinsX()-1;
i>=0;
i--){
980 mMETRate->
setBinContent(
i+1,tMETRate->GetBinContent(
i+2)+tMET->GetBinContent(
i+1));
982 for (
int i = 0;
i<tMETRate->GetNbinsX();
i++){
983 mMETRate->
setBinContent(
i+1,tMETRate->GetBinContent(
i+1)/double(totltime));
995 int myLuminosityBlock;
997 if(fill_met_high_level_histo){
998 lumisecME=map_dijet_MEs[
"JetMET/lumisec"];
if(lumisecME && lumisecME->getRootObject()) lumisecME->Fill(myLuminosityBlock);
1001 if (myLuminosityBlock<LSBegin_)
return;
1002 if (myLuminosityBlock>LSEnd_ && LSEnd_>0)
return;
1004 if (verbose_)
std::cout <<
"METAnalyzer analyze" << std::endl;
1023 std::vector<int> triggerFolderDecisions;
1024 triggerFolderDecisions_ = std::vector<int> (triggerFolderEventFlag_.size(), 0);
1029 if( triggerResults.isValid()) {
1032 int ntrigs = (*triggerResults).size();
1033 if (verbose_)
std::cout <<
"ntrigs=" << ntrigs << std::endl;
1035 for (std::vector<GenericTriggerEventFlag *>::const_iterator it = triggerFolderEventFlag_.begin(); it!=triggerFolderEventFlag_.end();it++) {
1036 unsigned int pos = it - triggerFolderEventFlag_.begin();
1037 bool fd = (*it)->accept(iEvent, iSetup);
1038 triggerFolderDecisions_[pos] = fd;
1040 allTriggerDecisions_.clear();
1041 for (
unsigned int i=0;
i<allTriggerNames_.size();++
i) {
1042 allTriggerDecisions_.push_back((*triggerResults).accept(
i));
1061 iEvent.
getByToken(caloMetToken_, calometcoll);
1062 if(!calometcoll.
isValid())
return;
1066 if(!pfmetcoll.
isValid())
return;
1070 if(!patmetcoll.
isValid())
return;
1081 met=&(pfmetcoll->front());
1082 pfmet=&(pfmetcoll->front());
1085 met=&(calometcoll->front());
1086 calomet=&(calometcoll->front());
1089 met=&(patmetcoll->front());
1090 patmet=&(patmetcoll->front());
1118 bool HBHENoiseFilterResult=
true;
1120 iEvent.
getByToken(hbheNoiseFilterResultToken_, HBHENoiseFilterResultHandle);
1121 if (!HBHENoiseFilterResultHandle.
isValid()) {
1122 LogDebug(
"") <<
"METAnalyzer: Could not find HBHENoiseFilterResult" << std::endl;
1123 if (verbose_)
std::cout <<
"METAnalyzer: Could not find HBHENoiseFilterResult" << std::endl;
1125 HBHENoiseFilterResult = *HBHENoiseFilterResultHandle;
1128 bool bJetID =
false;
1129 bool bDiJetID =
false;
1143 LogDebug(
"") <<
"METAnalyzer: Could not find calojet product" << std::endl;
1144 if (verbose_)
std::cout <<
"METAnalyzer: Could not find calojet product" << std::endl;
1146 collsize=caloJets->size();
1161 iEvent.
getByToken(jetID_ValueMapToken_,jetID_ValueMap_Handle);
1165 if (isMiniAODMet_){ iEvent.
getByToken(patJetsToken_, patJets);
1167 LogDebug(
"") <<
"METAnalyzer: Could not find patjet product" << std::endl;
1168 if (verbose_)
std::cout <<
"METAnalyzer: Could not find patjet product" << std::endl;
1170 collsize=patJets->size();
1173 if (isPFMet_){ iEvent.
getByToken(pfJetsToken_, pfJets);
1175 LogDebug(
"") <<
"METAnalyzer: Could not find pfjet product" << std::endl;
1176 if (verbose_)
std::cout <<
"METAnalyzer: Could not find pfjet product" << std::endl;
1178 collsize=pfJets->size();
1181 unsigned int ind1=-1;
1183 bool pass_jetID1=
false;
1184 unsigned int ind2=-1;
1186 bool pass_jetID2=
false;
1189 bool pass_correction_flag=
false;
1191 iEvent.
getByToken(jetCorrectorToken_, jetCorr);
1193 pass_correction_flag=
true;
1196 pass_correction_flag=
true;
1199 for (
int ijet=0; ijet<collsize; ijet++) {
1202 bool iscleaned=
false;
1203 if (pass_correction_flag) {
1205 scale = jetCorr->correction((*caloJets)[ijet]);
1211 scale = jetCorr->correction((*pfJets)[ijet]);
1215 pt_jet=scale*(*caloJets)[ijet].pt();
1216 if(pt_jet> ptThreshold_){
1220 iscleaned = jetIDFunctorLoose((*caloJets)[ijet], jetID);
1242 pt_jet=scale*(*pfJets)[ijet].pt();
1243 if(pt_jet> ptThreshold_){
1244 iscleaned = pfjetIDFunctorLoose((*pfJets)[ijet]);
1248 pt_jet=(*patJets)[ijet].pt();
1249 if(pt_jet> ptThreshold_){
1250 pat::strbitset stringbitset=pfjetIDFunctorLoose.getBitTemplate();
1251 iscleaned = pfjetIDFunctorLoose((*patJets)[ijet],stringbitset);
1260 pass_jetID2=pass_jetID1;
1263 pass_jetID1=iscleaned;
1264 }
else if (pt_jet>pt2){
1267 pass_jetID2=iscleaned;
1270 if(pass_jetID1 && pass_jetID2){
1273 dphi=fabs((*caloJets)[ind1].
phi()-(*caloJets)[ind2].
phi());
1279 dphi=fabs((*pfJets)[ind1].
phi()-(*pfJets)[ind2].
phi());
1282 dphi=fabs((*patJets)[0].
phi()-(*patJets)[1].
phi());
1285 dphi=2*acos(-1.)-dphi;
1295 bool bHBHENoiseFilter = HBHENoiseFilterResult;
1299 iEvent.
getByToken(vertexToken_, vertexHandle);
1301 if (!vertexHandle.
isValid()) {
1302 LogDebug(
"") <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1303 if (verbose_)
std::cout <<
"CaloMETAnalyzer: Could not find vertex collection" << std::endl;
1306 if ( vertexHandle.
isValid() ){
1308 numPV_ = vertexCollection.size();
1310 bool bPrimaryVertex = (bypassAllPVChecks_ || (numPV_>0));
1314 iEvent.
getByToken( gtToken_, gtReadoutRecord);
1316 bool techTriggerResultBxM2 =
false;
1317 bool techTriggerResultBxM1 =
false;
1318 bool techTriggerResultBx0 =
false;
1320 if (!gtReadoutRecord.
isValid()) {
1321 LogDebug(
"") <<
"METAnalyzer: Could not find GT readout record" << std::endl;
1322 if (verbose_)
std::cout <<
"METAnalyzer: Could not find GT readout record product" << std::endl;
1325 const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBxM2 = gtReadoutRecord->technicalTriggerWord(-2);
1326 const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBxM1 = gtReadoutRecord->technicalTriggerWord(-1);
1327 const TechnicalTriggerWord& technicalTriggerWordBeforeMaskBx0 = gtReadoutRecord->technicalTriggerWord();
1330 if (m_bitAlgTechTrig_ > -1) {
1331 techTriggerResultBx0 = technicalTriggerWordBeforeMaskBx0.at(m_bitAlgTechTrig_);
1332 if(techTriggerResultBx0!=0){
1333 techTriggerResultBxM2 = technicalTriggerWordBeforeMaskBxM2.at(m_bitAlgTechTrig_);
1334 techTriggerResultBxM1 = technicalTriggerWordBeforeMaskBxM1.at(m_bitAlgTechTrig_);
1340 if(techTriggerResultBx0 && techTriggerResultBxM2 && techTriggerResultBxM1){
1343 if(techTriggerResultBx0 && techTriggerResultBxM1){
1346 if(techTriggerResultBx0 && !techTriggerResultBxM1){
1349 if(techTriggerResultBx0 && !techTriggerResultBxM2 && !techTriggerResultBxM1){
1354 bool bDCSFilter = (bypassAllDCSChecks_ || DCSFilter_->filter(iEvent, iSetup));
1358 for (std::vector<std::string>::const_iterator ic = folderNames_.begin();
1359 ic != folderNames_.end(); ic++){
1360 bool pass_selection =
false;
1361 if ((*ic==
"Uncleaned") &&(isCaloMet_ || bPrimaryVertex)){
1362 fillMESet(iEvent, DirName_old+
"/"+*ic, *met,*patmet, *pfmet,*calomet,map_dijet_MEs,trigger_flag);
1363 pass_selection =
true;
1366 if ((*ic==
"Cleaned") &&bDCSFilter&&bHBHENoiseFilter&&bPrimaryVertex&&bJetID){
1367 fillMESet(iEvent, DirName_old+
"/"+*ic, *met,*patmet,*pfmet,*calomet,map_dijet_MEs,trigger_flag);
1368 pass_selection=
true;
1370 if ((*ic==
"DiJet" ) &&bDCSFilter&&bHBHENoiseFilter&& bPrimaryVertex&& bDiJetID){
1371 fillMESet(iEvent, DirName_old+
"/"+*ic, *met,*patmet,*pfmet,*calomet,map_dijet_MEs,trigger_flag);
1372 pass_selection=
true;
1374 if(pass_selection && isPFMet_){
1375 DirName=DirName_old+
"/"+*ic;
1385 bool bLumiSecPlot=fill_met_high_level_histo;
1386 bool fillPFCandidatePlots=
false;
1387 if (DirName.find(
"Cleaned")) {
1388 fillPFCandidatePlots=
true;
1389 fillMonitorElement(iEvent, DirName,
std::string(
""), met, patmet, pfmet, calomet, map_of_MEs,bLumiSecPlot,fillPFCandidatePlots,techTriggerCase);
1390 for (
unsigned int i = 0;
i<triggerFolderLabels_.size();
i++) {
1391 fillPFCandidatePlots=
false;
1392 if (triggerFolderDecisions_[
i]){
1393 fillMonitorElement(iEvent, DirName, triggerFolderLabels_[i], met, patmet, pfmet, calomet, map_of_MEs,bLumiSecPlot,fillPFCandidatePlots,techTriggerCase);
1396 }
else if (DirName.find(
"DiJet")) {
1397 fillMonitorElement(iEvent, DirName,
std::string(
""), met, patmet, pfmet, calomet, map_of_MEs,bLumiSecPlot,fillPFCandidatePlots,techTriggerCase);
1398 for (
unsigned int i = 0;
i<triggerFolderLabels_.size();
i++) {
1399 if (triggerFolderDecisions_[
i]) fillMonitorElement(iEvent, DirName, triggerFolderLabels_[i], met, patmet, pfmet, calomet, map_of_MEs,bLumiSecPlot,fillPFCandidatePlots,techTriggerCase);
1402 fillMonitorElement(iEvent, DirName,
std::string(
""), met, patmet, pfmet, calomet, map_of_MEs,bLumiSecPlot,fillPFCandidatePlots,techTriggerCase);
1411 const reco::MET&
met,
const pat::MET & patmet,
const reco::PFMET & pfmet,
const reco::CaloMET &calomet, std::map<std::string,MonitorElement*>& map_of_MEs,
bool bLumiSecPlot,
bool fillPFCandidatePlots,
int techTriggerCase)
1414 double SumET = met.
sumEt();
1415 double METSig = met.
mEtSig();
1417 double MET = met.
pt();
1418 double MEx = met.
px();
1419 double MEy = met.
py();
1420 double METPhi = met.
phi();
1422 int myLuminosityBlock;
1426 if (subFolderName!=
""){
1427 DirName = DirName +
"/"+subFolderName;
1430 hTrigger = map_of_MEs[DirName+
"/triggerResults"];
1431 if (hTrigger && hTrigger->getRootObject()) {
1432 for (
unsigned int i = 0;
i<allTriggerDecisions_.size();
i++){
1433 if(
i<(
unsigned int)hTrigger->getNbinsX()){
1434 hTrigger->Fill(
i + .5, allTriggerDecisions_[
i]);
1440 hMEx = map_of_MEs[DirName+
"/"+
"MEx"];
if (hMEx && hMEx->getRootObject()) hMEx ->
Fill(MEx);
1441 hMEy = map_of_MEs[DirName+
"/"+
"MEy"];
if (hMEy && hMEy->getRootObject()) hMEy ->
Fill(MEy);
1442 hMET = map_of_MEs[DirName+
"/"+
"MET"];
if (hMET && hMET->getRootObject()) hMET ->
Fill(MET);
1443 hMETPhi = map_of_MEs[DirName+
"/"+
"METPhi"];
if (hMETPhi && hMETPhi->getRootObject()) hMETPhi ->
Fill(METPhi);
1444 hSumET = map_of_MEs[DirName+
"/"+
"SumET"];
if (hSumET && hSumET->getRootObject()) hSumET ->
Fill(SumET);
1445 hMETSig = map_of_MEs[DirName+
"/"+
"METSig"];
if (hMETSig && hMETSig->getRootObject()) hMETSig ->
Fill(METSig);
1446 hMET_logx = map_of_MEs[DirName+
"/"+
"MET_logx"];
if (hMET_logx && hMET_logx->getRootObject()) hMET_logx->Fill(log10(MET));
1447 hSumET_logx = map_of_MEs[DirName+
"/"+
"SumET_logx"];
if (hSumET_logx && hSumET_logx->getRootObject()) hSumET_logx->Fill(log10(SumET));
1451 meMEx_profile = map_of_MEs[DirName +
"/MEx_profile"];
1452 meMEy_profile = map_of_MEs[DirName +
"/MEy_profile"];
1453 meMET_profile = map_of_MEs[DirName +
"/MET_profile"];
1454 meSumET_profile = map_of_MEs[DirName +
"/SumET_profile"];
1456 if (meMEx_profile && meMEx_profile ->getRootObject()) meMEx_profile ->Fill(numPV_, MEx);
1457 if (meMEy_profile && meMEy_profile ->getRootObject()) meMEy_profile ->Fill(numPV_, MEy);
1458 if (meMET_profile && meMET_profile ->getRootObject()) meMET_profile ->Fill(numPV_, MET);
1459 if (meSumET_profile && meSumET_profile->getRootObject()) meSumET_profile->Fill(numPV_, SumET);
1469 double caloHadEtInHB = calomet.
hadEtInHB();
1470 double caloHadEtInHO = calomet.
hadEtInHO();
1471 double caloHadEtInHE = calomet.
hadEtInHE();
1472 double caloHadEtInHF = calomet.
hadEtInHF();
1473 double caloEmEtInEB = calomet.
emEtInEB();
1474 double caloEmEtInEE = calomet.
emEtInEE();
1475 double caloEmEtInHF = calomet.
emEtInHF();
1477 hCaloHadEtInHB = map_of_MEs[DirName+
"/"+
"CaloHadEtInHB"];
if (hCaloHadEtInHB && hCaloHadEtInHB->getRootObject()) hCaloHadEtInHB->Fill(caloHadEtInHB);
1478 hCaloHadEtInHO = map_of_MEs[DirName+
"/"+
"CaloHadEtInHO"];
if (hCaloHadEtInHO && hCaloHadEtInHO->getRootObject()) hCaloHadEtInHO->Fill(caloHadEtInHO);
1479 hCaloHadEtInHE = map_of_MEs[DirName+
"/"+
"CaloHadEtInHE"];
if (hCaloHadEtInHE && hCaloHadEtInHE->getRootObject()) hCaloHadEtInHE->Fill(caloHadEtInHE);
1480 hCaloHadEtInHF = map_of_MEs[DirName+
"/"+
"CaloHadEtInHF"];
if (hCaloHadEtInHF && hCaloHadEtInHF->getRootObject()) hCaloHadEtInHF->Fill(caloHadEtInHF);
1481 hCaloEmEtInEB = map_of_MEs[DirName+
"/"+
"CaloEmEtInEB"];
if (hCaloEmEtInEB && hCaloEmEtInEB->getRootObject()) hCaloEmEtInEB->Fill(caloEmEtInEB);
1482 hCaloEmEtInEE = map_of_MEs[DirName+
"/"+
"CaloEmEtInEE"];
if (hCaloEmEtInEE && hCaloEmEtInEE->getRootObject()) hCaloEmEtInEE->Fill(caloEmEtInEE);
1483 hCaloEmEtInHF = map_of_MEs[DirName+
"/"+
"CaloEmEtInHF"];
if (hCaloEmEtInHF && hCaloEmEtInHF->getRootObject()) hCaloEmEtInHF->Fill(caloEmEtInHF);
1485 hCaloMETPhi020 = map_of_MEs[DirName+
"/"+
"CaloMETPhi020"];
if (MET> 20. && hCaloMETPhi020 && hCaloMETPhi020->getRootObject()) { hCaloMETPhi020->Fill(METPhi);}
1488 hCaloEtFractionHadronic = map_of_MEs[DirName+
"/"+
"CaloEtFractionHadronic"];
if (hCaloEtFractionHadronic && hCaloEtFractionHadronic->getRootObject()) hCaloEtFractionHadronic->Fill(caloEtFractionHadronic);
1489 hCaloEmEtFraction = map_of_MEs[DirName+
"/"+
"CaloEmEtFraction"];
if (hCaloEmEtFraction && hCaloEmEtFraction->getRootObject()) hCaloEmEtFraction->Fill(caloEmEtFraction);
1490 hCaloEmEtFraction020 = map_of_MEs[DirName+
"/"+
"CaloEmEtFraction020"];
if (MET> 20. && hCaloEmEtFraction020 && hCaloEmEtFraction020->getRootObject()) hCaloEmEtFraction020->Fill(caloEmEtFraction);
1517 if(fillPFCandidatePlots && fillCandidateMap_histos){
1518 for (
unsigned int i=0;
i<countsPFCand_.size();
i++) {
1526 iEvent.
getByToken(pflowToken_, particleFlow);
1528 float pt_sum_CHF_Barrel=0;
1529 float pt_sum_CHF_Endcap_plus=0;
1530 float pt_sum_CHF_Endcap_minus=0;
1531 float pt_sum_NHF_Barrel=0;
1532 float pt_sum_NHF_Endcap_plus=0;
1533 float pt_sum_NHF_Endcap_minus=0;
1534 float pt_sum_PhF_Barrel=0;
1535 float pt_sum_PhF_Endcap_plus=0;
1536 float pt_sum_PhF_Endcap_minus=0;
1537 float pt_sum_HFH_plus=0;
1538 float pt_sum_HFH_minus=0;
1539 float pt_sum_HFE_plus=0;
1540 float pt_sum_HFE_minus=0;
1543 float px_chargedHadronsBarrel=0;
1544 float py_chargedHadronsBarrel=0;
1545 float px_chargedHadronsEndcapPlus=0;
1546 float py_chargedHadronsEndcapPlus=0;
1547 float px_chargedHadronsEndcapMinus=0;
1548 float py_chargedHadronsEndcapMinus=0;
1549 float px_neutralHadronsBarrel=0;
1550 float py_neutralHadronsBarrel=0;
1551 float px_neutralHadronsEndcapPlus=0;
1552 float py_neutralHadronsEndcapPlus=0;
1553 float px_neutralHadronsEndcapMinus=0;
1554 float py_neutralHadronsEndcapMinus=0;
1555 float px_PhotonsBarrel=0;
1556 float py_PhotonsBarrel=0;
1557 float px_PhotonsEndcapPlus=0;
1558 float py_PhotonsEndcapPlus=0;
1559 float px_PhotonsEndcapMinus=0;
1560 float py_PhotonsEndcapMinus=0;
1561 float px_HFHadronsPlus=0;
1562 float py_HFHadronsPlus=0;
1563 float px_HFHadronsMinus=0;
1564 float py_HFHadronsMinus=0;
1565 float px_HFEGammasPlus=0;
1566 float py_HFEGammasPlus=0;
1567 float px_HFEGammasMinus=0;
1568 float py_HFEGammasMinus=0;
1569 for (
unsigned int i = 0;
i < particleFlow->size();
i++) {
1573 if(c.
eta()>(-3.0)&& c.
eta()<(-1.392)){
1574 px_chargedHadronsEndcapMinus-=c.
px();
1575 py_chargedHadronsEndcapMinus-=c.
py();
1576 pt_sum_CHF_Endcap_minus+=c.
et();
1577 }
else if(c.
eta()>=(-1.392)&& c.
eta()<=1.392){
1578 px_chargedHadronsBarrel-=c.
px();
1579 py_chargedHadronsBarrel-=c.
py();
1580 pt_sum_CHF_Barrel+=c.
et();
1581 }
else if(c.
eta()>1.392 && c.
eta()<3.0){
1582 px_chargedHadronsEndcapPlus-=c.
px();
1583 py_chargedHadronsEndcapPlus-=c.
py();
1584 pt_sum_CHF_Endcap_plus+=c.
et();
1589 if(c.
eta()>(-3.0)&& c.
eta()<(-1.392)){
1590 px_neutralHadronsEndcapMinus-=c.
px();
1591 py_neutralHadronsEndcapMinus-=c.
py();
1592 pt_sum_NHF_Endcap_minus+=c.
et();
1593 }
else if(c.
eta()>=(-1.392)&& c.
eta()<=1.392){
1594 px_neutralHadronsBarrel-=c.
px();
1595 py_neutralHadronsBarrel-=c.
py();
1596 pt_sum_NHF_Barrel+=c.
et();
1597 }
else if(c.
eta()>1.392 && c.
eta()<3.0){
1598 px_neutralHadronsEndcapPlus-=c.
px();
1599 py_neutralHadronsEndcapPlus-=c.
py();
1600 pt_sum_NHF_Endcap_plus+=c.
et();
1605 if(c.
eta()>(-3.0)&& c.
eta()<(-1.479)){
1606 px_PhotonsEndcapMinus-=c.
px();
1607 py_PhotonsEndcapMinus-=c.
py();
1608 pt_sum_PhF_Endcap_plus+=c.
et();
1609 }
else if(c.
eta()>=(-1.479)&& c.
eta()<=1.479){
1610 px_PhotonsBarrel-=c.
px();
1611 py_PhotonsBarrel-=c.
py();
1612 pt_sum_PhF_Barrel+=c.
et();
1613 }
else if(c.
eta()>1.479 && c.
eta()<3.0){
1614 px_PhotonsEndcapPlus-=c.
px();
1615 py_PhotonsEndcapPlus-=c.
py();
1616 pt_sum_PhF_Endcap_minus+=c.
et();
1621 if(c.
eta()>(-5.20)&& c.
eta()<-2.901376){
1622 pt_sum_HFH_minus+=c.
et();
1623 px_HFHadronsMinus-=c.
px();
1624 py_HFHadronsMinus-=c.
py();
1625 }
else if(c.
eta()>2.901376 && c.
eta()<5.20){
1626 px_HFHadronsPlus-=c.
px();
1627 py_HFHadronsPlus-=c.
py();
1628 pt_sum_HFH_plus+=c.
et();
1633 if(c.
eta()>(-5.20)&& c.
eta()<-2.901376){
1634 pt_sum_HFE_minus+=c.
et();
1635 px_HFEGammasMinus-=c.
px();
1636 py_HFEGammasMinus-=c.
py();
1637 }
else if(c.
eta()>2.901376 && c.
eta()<5.20){
1638 px_HFEGammasPlus-=c.
px();
1639 py_HFEGammasPlus-=c.
py();
1640 pt_sum_HFE_plus+=c.
et();
1643 for (
unsigned int j=0;
j<typePFCand_.size();
j++) {
1646 if ( ((c.
eta()>etaMinPFCand_[
j]) && (c.
eta()<etaMaxPFCand_[
j])) || ((c.
eta()> (-etaMaxPFCand_[
j])) && (c.
eta()< (-etaMinPFCand_[
j]))) ){
1647 countsPFCand_[
j]+=1;
1648 MExPFCand_[
j]-=c.
px();
1649 MEyPFCand_[
j]-=c.
py();
1650 ptPFCand_[
j] = map_of_MEs[DirName +
"/"+ptPFCand_name_[
j]];
1651 if ( ptPFCand_[
j] && ptPFCand_[
j]->getRootObject()) ptPFCand_[
j]->Fill(c.
eta(), c.
phi(), c.
pt());
1652 occupancyPFCand_[
j] = map_of_MEs[DirName +
"/"+occupancyPFCand_name_[
j]];
1653 if ( occupancyPFCand_[
j] && occupancyPFCand_[
j]->getRootObject()) occupancyPFCand_[
j]->
Fill(c.
eta(), c.
phi());
1663 if ( (ecalRaw + hcalRaw) > hcalMin_ ){
1665 if( theElements.empty() )
continue;
1666 unsigned int iTrack=-999;
1667 std::vector<unsigned int> iECAL;
1668 std::vector<unsigned int> iHCAL;
1672 unsigned int nTracks = 0;
1673 for(
unsigned int iEle=0; iEle<elements.
size(); iEle++) {
1677 case PFBlockElement::TRACK:
1682 iECAL.push_back( iEle );
1685 iHCAL.push_back( iEle );
1691 if ( nTracks == 1 ){
1694 mProfileIsoPFChHad_TrackOccupancy=map_of_MEs[DirName+
"/"+
"IsoPfChHad_Track_profile"];
1695 if (mProfileIsoPFChHad_TrackOccupancy && mProfileIsoPFChHad_TrackOccupancy->getRootObject()) mProfileIsoPFChHad_TrackOccupancy->Fill(et.
trackRef()->eta(),et.
trackRef()->phi());
1696 mProfileIsoPFChHad_TrackPt=map_of_MEs[DirName+
"/"+
"IsoPfChHad_TrackPt"];
1697 if (mProfileIsoPFChHad_TrackPt && mProfileIsoPFChHad_TrackPt->getRootObject()) mProfileIsoPFChHad_TrackPt->Fill(et.
trackRef()->eta(),et.
trackRef()->phi(),et.
trackRef()->pt());
1699 for(
unsigned int ii=0;
ii<iECAL.size();
ii++) {
1702 mProfileIsoPFChHad_EcalOccupancyCentral=map_of_MEs[DirName+
"/"+
"IsoPfChHad_ECAL_profile_central"];
1703 if (mProfileIsoPFChHad_EcalOccupancyCentral && mProfileIsoPFChHad_EcalOccupancyCentral->getRootObject()) mProfileIsoPFChHad_EcalOccupancyCentral->Fill(eecal.
clusterRef()->eta(),eecal.
clusterRef()->phi());
1704 mProfileIsoPFChHad_EMPtCentral=map_of_MEs[DirName+
"/"+
"IsoPfChHad_EMPt_central"];
1705 if (mProfileIsoPFChHad_EMPtCentral && mProfileIsoPFChHad_EMPtCentral->getRootObject()) mProfileIsoPFChHad_EMPtCentral->Fill(eecal.
clusterRef()->eta(),eecal.
clusterRef()->phi(),eecal.
clusterRef()->pt());
1707 mProfileIsoPFChHad_EcalOccupancyEndcap=map_of_MEs[DirName+
"/"+
"IsoPfChHad_ECAL_profile_endcap"];
1708 if (mProfileIsoPFChHad_EcalOccupancyEndcap && mProfileIsoPFChHad_EcalOccupancyEndcap->getRootObject()) mProfileIsoPFChHad_EcalOccupancyEndcap->Fill(eecal.
clusterRef()->eta(),eecal.
clusterRef()->phi());
1709 mProfileIsoPFChHad_EMPtEndcap=map_of_MEs[DirName+
"/"+
"IsoPfChHad_EMPt_endcap"];
1710 if (mProfileIsoPFChHad_EMPtEndcap && mProfileIsoPFChHad_EMPtEndcap->getRootObject()) mProfileIsoPFChHad_EMPtEndcap->Fill(eecal.
clusterRef()->eta(),eecal.
clusterRef()->phi(),eecal.
clusterRef()->pt());
1715 for(
unsigned int ii=0;
ii<iHCAL.size();
ii++) {
1718 mProfileIsoPFChHad_HcalOccupancyCentral=map_of_MEs[DirName+
"/"+
"IsoPfChHad_HCAL_profile_central"];
1719 if (mProfileIsoPFChHad_HcalOccupancyCentral && mProfileIsoPFChHad_HcalOccupancyCentral->getRootObject()) mProfileIsoPFChHad_HcalOccupancyCentral->Fill(ehcal.
clusterRef()->eta(),ehcal.
clusterRef()->phi());
1720 mProfileIsoPFChHad_HadPtCentral=map_of_MEs[DirName+
"/"+
"IsoPfChHad_HadPt_central"];
1721 if (mProfileIsoPFChHad_HadPtCentral && mProfileIsoPFChHad_HadPtCentral->getRootObject()) mProfileIsoPFChHad_HadPtCentral->Fill(ehcal.
clusterRef()->eta(),ehcal.
clusterRef()->phi(),ehcal.
clusterRef()->pt());
1723 mProfileIsoPFChHad_HcalOccupancyEndcap=map_of_MEs[DirName+
"/"+
"IsoPfChHad_HCAL_profile_endcap"];
1724 if (mProfileIsoPFChHad_HcalOccupancyEndcap && mProfileIsoPFChHad_HcalOccupancyEndcap->getRootObject()) mProfileIsoPFChHad_HcalOccupancyEndcap->Fill(ehcal.
clusterRef()->eta(),ehcal.
clusterRef()->phi());
1725 mProfileIsoPFChHad_HadPtEndcap=map_of_MEs[DirName+
"/"+
"IsoPfChHad_HadPt_endcap"];
1726 if (mProfileIsoPFChHad_HadPtEndcap && mProfileIsoPFChHad_HadPtEndcap->getRootObject()) mProfileIsoPFChHad_HadPtEndcap->Fill(ehcal.
clusterRef()->eta(),ehcal.
clusterRef()->phi(),ehcal.
clusterRef()->pt());
1734 for (
unsigned int j=0;
j<countsPFCand_.size();
j++) {
1735 profilePFCand_x_[
j] = map_of_MEs[DirName +
"/"+profilePFCand_x_name_[
j]];
1736 if(profilePFCand_x_[
j] && profilePFCand_x_[
j]->getRootObject()) profilePFCand_x_[
j]->
Fill(countsPFCand_[
j], MExPFCand_[j]);
1737 profilePFCand_y_[
j] = map_of_MEs[DirName +
"/"+profilePFCand_y_name_[
j]];
1738 if(profilePFCand_y_[j] && profilePFCand_y_[j]->getRootObject()) profilePFCand_y_[j]->
Fill(countsPFCand_[j], MEyPFCand_[j]);
1739 multiplicityPFCand_[
j] = map_of_MEs[DirName +
"/"+multiplicityPFCand_name_[
j]];
1740 if(multiplicityPFCand_[j] && multiplicityPFCand_[j]->getRootObject()) multiplicityPFCand_[j]->
Fill(countsPFCand_[j]);
1742 meCHF_Barrel=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionBarrel"];
if(meCHF_Barrel && meCHF_Barrel->getRootObject()) meCHF_Barrel->Fill(pt_sum_CHF_Barrel/pfmet.
sumEt());
1743 meCHF_EndcapPlus=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus"];
if(meCHF_EndcapPlus && meCHF_EndcapPlus->getRootObject()) meCHF_EndcapPlus->Fill(pt_sum_CHF_Endcap_plus/pfmet.
sumEt());
1744 meCHF_EndcapMinus=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus"];
if(meCHF_EndcapMinus && meCHF_EndcapMinus->getRootObject()) meCHF_EndcapMinus->Fill(pt_sum_CHF_Endcap_minus/pfmet.
sumEt());
1745 meNHF_Barrel=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionBarrel"];
if(meNHF_Barrel && meNHF_Barrel->getRootObject()) meNHF_Barrel->Fill(pt_sum_NHF_Barrel/pfmet.
sumEt());
1746 meNHF_EndcapPlus=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus"];
if(meNHF_EndcapPlus && meNHF_EndcapPlus->getRootObject()) meNHF_EndcapPlus->Fill(pt_sum_NHF_Endcap_plus/pfmet.
sumEt());
1747 meNHF_EndcapMinus=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus"];
if(meNHF_EndcapMinus && meNHF_EndcapMinus->getRootObject()) meNHF_EndcapMinus->Fill(pt_sum_NHF_Endcap_minus/pfmet.
sumEt());
1748 mePhF_Barrel=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionBarrel"];
if(mePhF_Barrel && mePhF_Barrel->getRootObject()) mePhF_Barrel->Fill(pt_sum_PhF_Barrel/pfmet.
sumEt());
1749 mePhF_EndcapPlus=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapPlus"];
if(mePhF_EndcapPlus && mePhF_EndcapPlus->getRootObject()) mePhF_EndcapPlus->Fill(pt_sum_PhF_Endcap_plus/pfmet.
sumEt());
1750 mePhF_EndcapMinus=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapMinus"];
if(mePhF_EndcapMinus && mePhF_EndcapMinus->getRootObject()) mePhF_EndcapMinus->Fill(pt_sum_PhF_Endcap_minus/pfmet.
sumEt());
1751 meHFHadF_Plus=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionPlus"];
if(meHFHadF_Plus && meHFHadF_Plus->getRootObject()) meHFHadF_Plus->Fill(pt_sum_HFH_plus/pfmet.
sumEt());
1752 meHFHadF_Minus=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionMinus"];
if(meHFHadF_Minus && meHFHadF_Minus->getRootObject()) meHFHadF_Minus->Fill(pt_sum_HFH_minus/pfmet.
sumEt());
1753 meHFEMF_Plus=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionPlus"];
if(meHFEMF_Plus && meHFEMF_Plus->getRootObject()) meHFEMF_Plus->Fill(pt_sum_HFE_plus/pfmet.
sumEt());
1754 meHFEMF_Minus=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionMinus"];
if(meHFEMF_Minus && meHFEMF_Minus->getRootObject()) meHFEMF_Minus->Fill(pt_sum_HFE_minus/pfmet.
sumEt());
1755 mePhotonEtFraction_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"PfPhotonEtFraction_BXm2BXm1Filled"];
if ( mePhotonEtFraction_BXm1Bxm2Filled && mePhotonEtFraction_BXm1Bxm2Filled ->getRootObject()) mePhotonEtFraction_BXm1Bxm2Filled ->
Fill(pfmet.
photonEtFraction());
1756 meNeutralHadronEtFraction_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFraction_BXm2BXm1Filled"];
if ( meNeutralHadronEtFraction_BXm1Bxm2Filled && meNeutralHadronEtFraction_BXm1Bxm2Filled ->getRootObject()) meNeutralHadronEtFraction_BXm1Bxm2Filled ->
Fill(pfmet.
neutralHadronEtFraction());
1757 meChargedHadronEtFraction_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFraction_BXm2BXm1Filled"];
if ( meChargedHadronEtFraction_BXm1Bxm2Filled && meChargedHadronEtFraction_BXm1Bxm2Filled ->getRootObject()) meChargedHadronEtFraction_BXm1Bxm2Filled ->
Fill(pfmet.
chargedHadronEtFraction());
1758 meMET_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"MET_BXm2BXm1Filled"];
if ( meMET_BXm1Bxm2Filled && meMET_BXm1Bxm2Filled ->getRootObject()) meMET_BXm1Bxm2Filled ->
Fill(pfmet.
pt());
1759 meSumET_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"SumET_BXm2BXm1Filled"];
if ( meSumET_BXm1Bxm2Filled && meSumET_BXm1Bxm2Filled ->getRootObject()) meSumET_BXm1Bxm2Filled ->
Fill(pfmet.
sumEt());
1760 meMETPhiChargedHadronsBarrel = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsBarrel"];
if(meMETPhiChargedHadronsBarrel && meMETPhiChargedHadronsBarrel ->getRootObject())meMETPhiChargedHadronsBarrel->Fill(atan2(py_chargedHadronsBarrel,px_chargedHadronsBarrel));
1761 meMETPhiChargedHadronsEndcapPlus = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapPlus"];
if(meMETPhiChargedHadronsEndcapPlus && meMETPhiChargedHadronsEndcapPlus ->getRootObject())meMETPhiChargedHadronsEndcapPlus->Fill(atan2(py_chargedHadronsEndcapPlus,px_chargedHadronsEndcapPlus));
1762 meMETPhiChargedHadronsEndcapMinus = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapMinus"];
if(meMETPhiChargedHadronsEndcapMinus && meMETPhiChargedHadronsEndcapMinus ->getRootObject())meMETPhiChargedHadronsEndcapMinus->Fill(atan2(py_chargedHadronsEndcapMinus,px_chargedHadronsEndcapMinus));
1763 meMETPhiNeutralHadronsBarrel = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsBarrel"];
if(meMETPhiNeutralHadronsBarrel && meMETPhiNeutralHadronsBarrel ->getRootObject())meMETPhiNeutralHadronsBarrel->Fill(atan2(py_neutralHadronsBarrel,px_neutralHadronsBarrel));
1764 meMETPhiNeutralHadronsEndcapPlus = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus"];
if(meMETPhiNeutralHadronsEndcapPlus && meMETPhiNeutralHadronsEndcapPlus ->getRootObject())meMETPhiNeutralHadronsEndcapPlus->Fill(atan2(py_neutralHadronsEndcapPlus,px_neutralHadronsEndcapPlus));
1765 meMETPhiNeutralHadronsEndcapMinus = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus"];
if(meMETPhiNeutralHadronsEndcapMinus && meMETPhiNeutralHadronsEndcapMinus ->getRootObject())meMETPhiNeutralHadronsEndcapMinus->Fill(atan2(py_neutralHadronsEndcapMinus,px_neutralHadronsEndcapMinus));
1766 meMETPhiPhotonsBarrel = map_of_MEs[DirName+
"/"+
"METPhiPhotonsBarrel"];
if(meMETPhiPhotonsBarrel && meMETPhiPhotonsBarrel ->getRootObject())meMETPhiPhotonsBarrel->Fill(atan2(py_PhotonsBarrel,px_PhotonsBarrel));
1767 meMETPhiPhotonsEndcapPlus = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapPlus"];
if(meMETPhiPhotonsEndcapPlus && meMETPhiPhotonsEndcapPlus ->getRootObject())meMETPhiPhotonsEndcapPlus->Fill(atan2(py_PhotonsEndcapPlus,px_PhotonsEndcapPlus));
1768 meMETPhiPhotonsEndcapMinus = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapMinus"];
if(meMETPhiPhotonsEndcapMinus && meMETPhiPhotonsEndcapMinus ->getRootObject())meMETPhiPhotonsEndcapMinus->Fill(atan2(py_PhotonsEndcapMinus,px_PhotonsEndcapMinus));
1769 meMETPhiHFHadronsPlus = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsPlus"];
if(meMETPhiHFHadronsPlus && meMETPhiHFHadronsPlus ->getRootObject())meMETPhiHFHadronsPlus->Fill(atan2(py_HFHadronsPlus,px_HFHadronsPlus));
1770 meMETPhiHFHadronsMinus = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsMinus"];
if(meMETPhiHFHadronsMinus && meMETPhiHFHadronsMinus ->getRootObject())meMETPhiHFHadronsMinus->Fill(atan2(py_HFHadronsMinus,px_HFHadronsMinus));
1771 meMETPhiHFEGammasPlus = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasPlus"];
if(meMETPhiHFEGammasPlus && meMETPhiHFEGammasPlus ->getRootObject())meMETPhiHFEGammasPlus->Fill(atan2(py_HFEGammasPlus,px_HFEGammasPlus));
1772 meMETPhiHFEGammasMinus = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasMinus"];
if(meMETPhiHFEGammasMinus && meMETPhiHFEGammasMinus ->getRootObject())meMETPhiHFEGammasMinus->Fill(atan2(py_HFEGammasMinus,px_HFEGammasMinus));
1775 if(techTriggerCase==2){
1776 meCHF_Barrel_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionBarrel_BXm1BXm2Filled"];
if(meCHF_Barrel_BXm1BXm2Filled && meCHF_Barrel_BXm1BXm2Filled->getRootObject()) meCHF_Barrel_BXm1BXm2Filled->Fill(pt_sum_CHF_Barrel/pfmet.
sumEt());
1777 meCHF_EndcapPlus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus_BXm1BXm2Filled"];
if(meCHF_EndcapPlus_BXm1BXm2Filled && meCHF_EndcapPlus_BXm1BXm2Filled->getRootObject()) meCHF_EndcapPlus_BXm1BXm2Filled->Fill(pt_sum_CHF_Endcap_plus/pfmet.
sumEt());
1778 meCHF_EndcapMinus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus_BXm1BXm2Filled"];
if(meCHF_EndcapMinus_BXm1BXm2Filled && meCHF_EndcapMinus_BXm1BXm2Filled->getRootObject()) meCHF_EndcapMinus_BXm1BXm2Filled->Fill(pt_sum_CHF_Endcap_minus/pfmet.
sumEt());
1779 meNHF_Barrel_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionBarrel_BXm1BXm2Filled"];
if(meNHF_Barrel_BXm1BXm2Filled && meNHF_Barrel_BXm1BXm2Filled->getRootObject()) meNHF_Barrel_BXm1BXm2Filled->Fill(pt_sum_NHF_Barrel/pfmet.
sumEt());
1780 meNHF_EndcapPlus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus_BXm1BXm2Filled"];
if(meNHF_EndcapPlus_BXm1BXm2Filled && meNHF_EndcapPlus_BXm1BXm2Filled->getRootObject()) meNHF_EndcapPlus_BXm1BXm2Filled->Fill(pt_sum_NHF_Endcap_plus/pfmet.
sumEt());
1781 meNHF_EndcapMinus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus_BXm1BXm2Filled"];
if(meNHF_EndcapMinus_BXm1BXm2Filled && meNHF_EndcapMinus_BXm1BXm2Filled->getRootObject()) meNHF_EndcapMinus_BXm1BXm2Filled->Fill(pt_sum_NHF_Endcap_minus/pfmet.
sumEt());
1782 mePhF_Barrel_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionBarrel_BXm1BXm2Filled"];
if(mePhF_Barrel_BXm1BXm2Filled && mePhF_Barrel_BXm1BXm2Filled->getRootObject()) mePhF_Barrel_BXm1BXm2Filled->Fill(pt_sum_PhF_Barrel/pfmet.
sumEt());
1783 mePhF_EndcapPlus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapPlus_BXm1BXm2Filled"];
if(mePhF_EndcapPlus_BXm1BXm2Filled && mePhF_EndcapPlus_BXm1BXm2Filled->getRootObject()) mePhF_EndcapPlus_BXm1BXm2Filled->Fill(pt_sum_PhF_Endcap_plus/pfmet.
sumEt());
1784 mePhF_EndcapMinus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapMinus_BXm1BXm2Filled"];
if(mePhF_EndcapMinus_BXm1BXm2Filled && mePhF_EndcapMinus_BXm1BXm2Filled->getRootObject()) mePhF_EndcapMinus_BXm1BXm2Filled->Fill(pt_sum_PhF_Endcap_minus/pfmet.
sumEt());
1785 meHFHadF_Plus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionPlus_BXm1BXm2Filled"];
if(meHFHadF_Plus_BXm1BXm2Filled && meHFHadF_Plus_BXm1BXm2Filled->getRootObject()) meHFHadF_Plus_BXm1BXm2Filled->Fill(pt_sum_HFH_plus/pfmet.
sumEt());
1786 meHFHadF_Minus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionMinus_BXm1BXm2Filled"];
if(meHFHadF_Minus_BXm1BXm2Filled && meHFHadF_Minus_BXm1BXm2Filled->getRootObject()) meHFHadF_Minus_BXm1BXm2Filled->Fill(pt_sum_HFH_minus/pfmet.
sumEt());
1787 meHFEMF_Plus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionPlus_BXm1BXm2Filled"];
if(meHFEMF_Plus_BXm1BXm2Filled && meHFEMF_Plus_BXm1BXm2Filled->getRootObject()) meHFEMF_Plus_BXm1BXm2Filled->Fill(pt_sum_HFE_plus/pfmet.
sumEt());
1788 meHFEMF_Minus_BXm1BXm2Filled=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionMinus_BXm1BXm2Filled"];
if(meHFEMF_Minus_BXm1BXm2Filled && meHFEMF_Minus_BXm1BXm2Filled->getRootObject()) meHFEMF_Minus_BXm1BXm2Filled->Fill(pt_sum_HFE_minus/pfmet.
sumEt());
1789 mePhotonEtFraction_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"PfPhotonEtFraction_BXm2BXm1Filled"];
if ( mePhotonEtFraction_BXm1Bxm2Filled && mePhotonEtFraction_BXm1Bxm2Filled ->getRootObject()) mePhotonEtFraction_BXm1Bxm2Filled ->
Fill(pfmet.
photonEtFraction());
1790 meNeutralHadronEtFraction_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFraction_BXm2BXm1Filled"];
if ( meNeutralHadronEtFraction_BXm1Bxm2Filled && meNeutralHadronEtFraction_BXm1Bxm2Filled ->getRootObject()) meNeutralHadronEtFraction_BXm1Bxm2Filled ->
Fill(pfmet.
neutralHadronEtFraction());
1791 meChargedHadronEtFraction_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFraction_BXm2BXm1Filled"];
if ( meChargedHadronEtFraction_BXm1Bxm2Filled && meChargedHadronEtFraction_BXm1Bxm2Filled ->getRootObject()) meChargedHadronEtFraction_BXm1Bxm2Filled ->
Fill(pfmet.
chargedHadronEtFraction());
1792 meMET_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"MET_BXm2BXm1Filled"];
if ( meMET_BXm1Bxm2Filled && meMET_BXm1Bxm2Filled ->getRootObject()) meMET_BXm1Bxm2Filled ->
Fill(pfmet.
pt());
1793 meSumET_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"SumET_BXm2BXm1Filled"];
if ( meSumET_BXm1Bxm2Filled && meSumET_BXm1Bxm2Filled ->getRootObject()) meSumET_BXm1Bxm2Filled ->
Fill(pfmet.
sumEt());
1794 meMETPhiChargedHadronsBarrel_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsBarrel_BXm2BXm1Filled"];
if(meMETPhiChargedHadronsBarrel_BXm1Bxm2Filled && meMETPhiChargedHadronsBarrel_BXm1Bxm2Filled ->getRootObject())meMETPhiChargedHadronsBarrel_BXm1Bxm2Filled->Fill(atan2(py_chargedHadronsBarrel,px_chargedHadronsBarrel));
1795 meMETPhiChargedHadronsEndcapPlus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapPlus_BXm2BXm1Filled"];
if(meMETPhiChargedHadronsEndcapPlus_BXm1Bxm2Filled && meMETPhiChargedHadronsEndcapPlus_BXm1Bxm2Filled ->getRootObject())meMETPhiChargedHadronsEndcapPlus_BXm1Bxm2Filled->Fill(atan2(py_chargedHadronsEndcapPlus,px_chargedHadronsEndcapPlus));
1796 meMETPhiChargedHadronsEndcapMinus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapMinus_BXm2BXm1Filled"];
if(meMETPhiChargedHadronsEndcapMinus_BXm1Bxm2Filled && meMETPhiChargedHadronsEndcapMinus_BXm1Bxm2Filled ->getRootObject())meMETPhiChargedHadronsEndcapMinus_BXm1Bxm2Filled->Fill(atan2(py_chargedHadronsEndcapMinus,px_chargedHadronsEndcapMinus));
1797 meMETPhiNeutralHadronsBarrel_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsBarrel_BXm2BXm1Filled"];
if(meMETPhiNeutralHadronsBarrel_BXm1Bxm2Filled && meMETPhiNeutralHadronsBarrel_BXm1Bxm2Filled ->getRootObject())meMETPhiNeutralHadronsBarrel_BXm1Bxm2Filled->Fill(atan2(py_neutralHadronsBarrel,px_neutralHadronsBarrel));
1798 meMETPhiNeutralHadronsEndcapPlus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus_BXm2BXm1Filled"];
if(meMETPhiNeutralHadronsEndcapPlus_BXm1Bxm2Filled && meMETPhiNeutralHadronsEndcapPlus_BXm1Bxm2Filled ->getRootObject())meMETPhiNeutralHadronsEndcapPlus_BXm1Bxm2Filled->Fill(atan2(py_neutralHadronsEndcapPlus,px_neutralHadronsEndcapPlus));
1799 meMETPhiNeutralHadronsEndcapMinus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus_BXm2BXm1Filled"];
if(meMETPhiNeutralHadronsEndcapMinus_BXm1Bxm2Filled && meMETPhiNeutralHadronsEndcapMinus_BXm1Bxm2Filled ->getRootObject())meMETPhiNeutralHadronsEndcapMinus_BXm1Bxm2Filled->Fill(atan2(py_neutralHadronsEndcapMinus,px_neutralHadronsEndcapMinus));
1800 meMETPhiPhotonsBarrel_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiPhotonsBarrel_BXm2BXm1Filled"];
if(meMETPhiPhotonsBarrel_BXm1Bxm2Filled && meMETPhiPhotonsBarrel_BXm1Bxm2Filled ->getRootObject())meMETPhiPhotonsBarrel_BXm1Bxm2Filled->Fill(atan2(py_PhotonsBarrel,px_PhotonsBarrel));
1801 meMETPhiPhotonsEndcapPlus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapPlus_BXm2BXm1Filled"];
if(meMETPhiPhotonsEndcapPlus_BXm1Bxm2Filled && meMETPhiPhotonsEndcapPlus_BXm1Bxm2Filled ->getRootObject())meMETPhiPhotonsEndcapPlus_BXm1Bxm2Filled->Fill(atan2(py_PhotonsEndcapPlus,px_PhotonsEndcapPlus));
1802 meMETPhiPhotonsEndcapMinus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapMinus_BXm2BXm1Filled"];
if(meMETPhiPhotonsEndcapMinus_BXm1Bxm2Filled && meMETPhiPhotonsEndcapMinus_BXm1Bxm2Filled ->getRootObject())meMETPhiPhotonsEndcapMinus_BXm1Bxm2Filled->Fill(atan2(py_PhotonsEndcapMinus,px_PhotonsEndcapMinus));
1803 meMETPhiHFHadronsPlus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsPlus_BXm2BXm1Filled"];
if(meMETPhiHFHadronsPlus_BXm1Bxm2Filled && meMETPhiHFHadronsPlus_BXm1Bxm2Filled ->getRootObject())meMETPhiHFHadronsPlus_BXm1Bxm2Filled->Fill(atan2(py_HFHadronsPlus,px_HFHadronsPlus));
1804 meMETPhiHFHadronsMinus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsMinus_BXm2BXm1Filled"];
if(meMETPhiHFHadronsMinus_BXm1Bxm2Filled && meMETPhiHFHadronsMinus_BXm1Bxm2Filled ->getRootObject())meMETPhiHFHadronsMinus_BXm1Bxm2Filled->Fill(atan2(py_HFHadronsMinus,px_HFHadronsMinus));
1805 meMETPhiHFEGammasPlus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasPlus_BXm2BXm1Filled"];
if(meMETPhiHFEGammasPlus_BXm1Bxm2Filled && meMETPhiHFEGammasPlus_BXm1Bxm2Filled ->getRootObject())meMETPhiHFEGammasPlus_BXm1Bxm2Filled->Fill(atan2(py_HFEGammasPlus,px_HFEGammasPlus));
1806 meMETPhiHFEGammasMinus_BXm1Bxm2Filled = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasMinus_BXm2BXm1Filled"];
if(meMETPhiHFEGammasMinus_BXm1Bxm2Filled && meMETPhiHFEGammasMinus_BXm1Bxm2Filled ->getRootObject())meMETPhiHFEGammasMinus_BXm1Bxm2Filled->Fill(atan2(py_HFEGammasMinus,px_HFEGammasMinus));
1808 if(techTriggerCase==1){
1809 meCHF_Barrel_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionBarrel_BXm1Filled"];
if(meCHF_Barrel_BXm1Filled && meCHF_Barrel_BXm1Filled->getRootObject()) meCHF_Barrel_BXm1Filled->Fill(pt_sum_CHF_Barrel/pfmet.
sumEt());
1810 meCHF_EndcapPlus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus_BXm1Filled"];
if(meCHF_EndcapPlus_BXm1Filled && meCHF_EndcapPlus_BXm1Filled->getRootObject()) meCHF_EndcapPlus_BXm1Filled->Fill(pt_sum_CHF_Endcap_plus/pfmet.
sumEt());
1811 meCHF_EndcapMinus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus_BXm1Filled"];
if(meCHF_EndcapMinus_BXm1Filled && meCHF_EndcapMinus_BXm1Filled->getRootObject()) meCHF_EndcapMinus_BXm1Filled->Fill(pt_sum_CHF_Endcap_minus/pfmet.
sumEt());
1812 meNHF_Barrel_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionBarrel_BXm1Filled"];
if(meNHF_Barrel_BXm1Filled && meNHF_Barrel_BXm1Filled->getRootObject()) meNHF_Barrel_BXm1Filled->Fill(pt_sum_NHF_Barrel/pfmet.
sumEt());
1813 meNHF_EndcapPlus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus_BXm1Filled"];
if(meNHF_EndcapPlus_BXm1Filled && meNHF_EndcapPlus_BXm1Filled->getRootObject()) meNHF_EndcapPlus_BXm1Filled->Fill(pt_sum_NHF_Endcap_plus/pfmet.
sumEt());
1814 meNHF_EndcapMinus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus_BXm1Filled"];
if(meNHF_EndcapMinus_BXm1Filled && meNHF_EndcapMinus_BXm1Filled->getRootObject()) meNHF_EndcapMinus_BXm1Filled->Fill(pt_sum_NHF_Endcap_minus/pfmet.
sumEt());
1815 mePhF_Barrel_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionBarrel_BXm1Filled"];
if(mePhF_Barrel_BXm1Filled && mePhF_Barrel_BXm1Filled->getRootObject()) mePhF_Barrel_BXm1Filled->Fill(pt_sum_PhF_Barrel/pfmet.
sumEt());
1816 mePhF_EndcapPlus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapPlus_BXm1Filled"];
if(mePhF_EndcapPlus_BXm1Filled && mePhF_EndcapPlus_BXm1Filled->getRootObject()) mePhF_EndcapPlus_BXm1Filled->Fill(pt_sum_PhF_Endcap_plus/pfmet.
sumEt());
1817 mePhF_EndcapMinus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapMinus_BXm1Filled"];
if(mePhF_EndcapMinus_BXm1Filled && mePhF_EndcapMinus_BXm1Filled->getRootObject()) mePhF_EndcapMinus_BXm1Filled->Fill(pt_sum_PhF_Endcap_minus/pfmet.
sumEt());
1818 meHFHadF_Plus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionPlus_BXm1Filled"];
if(meHFHadF_Plus_BXm1Filled && meHFHadF_Plus_BXm1Filled->getRootObject()) meHFHadF_Plus_BXm1Filled->Fill(pt_sum_HFH_plus/pfmet.
sumEt());
1819 meHFHadF_Minus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionMinus_BXm1Filled"];
if(meHFHadF_Minus_BXm1Filled && meHFHadF_Minus_BXm1Filled->getRootObject()) meHFHadF_Minus_BXm1Filled->Fill(pt_sum_HFH_minus/pfmet.
sumEt());
1820 meHFEMF_Plus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionPlus_BXm1Filled"];
if(meHFEMF_Plus_BXm1Filled && meHFEMF_Plus_BXm1Filled->getRootObject()) meHFEMF_Plus_BXm1Filled->Fill(pt_sum_HFE_plus/pfmet.
sumEt());
1821 meHFEMF_Minus_BXm1Filled=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionMinus_BXm1Filled"];
if(meHFEMF_Minus_BXm1Filled && meHFEMF_Minus_BXm1Filled->getRootObject()) meHFEMF_Minus_BXm1Filled->Fill(pt_sum_HFE_minus/pfmet.
sumEt());
1822 mePhotonEtFraction_BXm1Filled = map_of_MEs[DirName+
"/"+
"PfPhotonEtFraction_BXm1Filled_BXm1Filled"];
if ( mePhotonEtFraction_BXm1Filled && mePhotonEtFraction_BXm1Filled ->getRootObject()) mePhotonEtFraction_BXm1Filled ->
Fill(pfmet.
photonEtFraction());
1823 meNeutralHadronEtFraction_BXm1Filled = map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFraction_BXm1Filled"];
if ( meNeutralHadronEtFraction_BXm1Filled && meNeutralHadronEtFraction_BXm1Filled ->getRootObject()) meNeutralHadronEtFraction_BXm1Filled ->
Fill(pfmet.
neutralHadronEtFraction());
1824 meChargedHadronEtFraction_BXm1Filled = map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFraction_BXm1Filled"];
if ( meChargedHadronEtFraction_BXm1Filled && meChargedHadronEtFraction_BXm1Filled ->getRootObject()) meChargedHadronEtFraction_BXm1Filled ->
Fill(pfmet.
chargedHadronEtFraction());
1825 meMET_BXm1Filled = map_of_MEs[DirName+
"/"+
"MET_BXm1Filled"];
if ( meMET_BXm1Filled && meMET_BXm1Filled ->getRootObject()) meMET_BXm1Filled ->
Fill(pfmet.
pt());
1826 meSumET_BXm1Filled = map_of_MEs[DirName+
"/"+
"SumET_BXm1Filled"];
if ( meSumET_BXm1Filled && meSumET_BXm1Filled ->getRootObject()) meSumET_BXm1Filled ->
Fill(pfmet.
sumEt());
1827 meMETPhiChargedHadronsBarrel_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsBarrel_BXm1Filled"];
if(meMETPhiChargedHadronsBarrel_BXm1Filled && meMETPhiChargedHadronsBarrel_BXm1Filled ->getRootObject())meMETPhiChargedHadronsBarrel_BXm1Filled->Fill(atan2(py_chargedHadronsBarrel,px_chargedHadronsBarrel));
1828 meMETPhiChargedHadronsEndcapPlus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapPlus_BXm1Filled"];
if(meMETPhiChargedHadronsEndcapPlus_BXm1Filled && meMETPhiChargedHadronsEndcapPlus_BXm1Filled ->getRootObject())meMETPhiChargedHadronsEndcapPlus_BXm1Filled->Fill(atan2(py_chargedHadronsEndcapPlus,px_chargedHadronsEndcapPlus));
1829 meMETPhiChargedHadronsEndcapMinus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapMinus_BXm1Filled"];
if(meMETPhiChargedHadronsEndcapMinus_BXm1Filled && meMETPhiChargedHadronsEndcapMinus_BXm1Filled ->getRootObject())meMETPhiChargedHadronsEndcapMinus_BXm1Filled->Fill(atan2(py_chargedHadronsEndcapMinus,px_chargedHadronsEndcapMinus));
1830 meMETPhiNeutralHadronsBarrel_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsBarrel_BXm1Filled"];
if(meMETPhiNeutralHadronsBarrel_BXm1Filled && meMETPhiNeutralHadronsBarrel_BXm1Filled ->getRootObject())meMETPhiNeutralHadronsBarrel_BXm1Filled->Fill(atan2(py_neutralHadronsBarrel,px_neutralHadronsBarrel));
1831 meMETPhiNeutralHadronsEndcapPlus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus_BXm1Filled"];
if(meMETPhiNeutralHadronsEndcapPlus_BXm1Filled && meMETPhiNeutralHadronsEndcapPlus_BXm1Filled ->getRootObject())meMETPhiNeutralHadronsEndcapPlus_BXm1Filled->Fill(atan2(py_neutralHadronsEndcapPlus,px_neutralHadronsEndcapPlus));
1832 meMETPhiNeutralHadronsEndcapMinus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus_BXm1Filled"];
if(meMETPhiNeutralHadronsEndcapMinus_BXm1Filled && meMETPhiNeutralHadronsEndcapMinus_BXm1Filled ->getRootObject())meMETPhiNeutralHadronsEndcapMinus_BXm1Filled->Fill(atan2(py_neutralHadronsEndcapMinus,px_neutralHadronsEndcapMinus));
1833 meMETPhiPhotonsBarrel_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiPhotonsBarrel_BXm1Filled"];
if(meMETPhiPhotonsBarrel_BXm1Filled && meMETPhiPhotonsBarrel_BXm1Filled ->getRootObject())meMETPhiPhotonsBarrel_BXm1Filled->Fill(atan2(py_PhotonsBarrel,px_PhotonsBarrel));
1834 meMETPhiPhotonsEndcapPlus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapPlus_BXm1Filled"];
if(meMETPhiPhotonsEndcapPlus_BXm1Filled && meMETPhiPhotonsEndcapPlus_BXm1Filled ->getRootObject())meMETPhiPhotonsEndcapPlus_BXm1Filled->Fill(atan2(py_PhotonsEndcapPlus,px_PhotonsEndcapPlus));
1835 meMETPhiPhotonsEndcapMinus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapMinus_BXm1Filled"];
if(meMETPhiPhotonsEndcapMinus_BXm1Filled && meMETPhiPhotonsEndcapMinus_BXm1Filled ->getRootObject())meMETPhiPhotonsEndcapMinus_BXm1Filled->Fill(atan2(py_PhotonsEndcapMinus,px_PhotonsEndcapMinus));
1836 meMETPhiHFHadronsPlus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsPlus_BXm1Filled"];
if(meMETPhiHFHadronsPlus_BXm1Filled && meMETPhiHFHadronsPlus_BXm1Filled ->getRootObject())meMETPhiHFHadronsPlus_BXm1Filled->Fill(atan2(py_HFHadronsPlus,px_HFHadronsPlus));
1837 meMETPhiHFHadronsMinus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsMinus_BXm1Filled"];
if(meMETPhiHFHadronsMinus_BXm1Filled && meMETPhiHFHadronsMinus_BXm1Filled ->getRootObject())meMETPhiHFHadronsMinus_BXm1Filled->Fill(atan2(py_HFHadronsMinus,px_HFHadronsMinus));
1838 meMETPhiHFEGammasPlus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasPlus_BXm1Filled"];
if(meMETPhiHFEGammasPlus_BXm1Filled && meMETPhiHFEGammasPlus_BXm1Filled ->getRootObject())meMETPhiHFEGammasPlus_BXm1Filled->Fill(atan2(py_HFEGammasPlus,px_HFEGammasPlus));
1839 meMETPhiHFEGammasMinus_BXm1Filled = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasMinus_BXm1Filled"];
if(meMETPhiHFEGammasMinus_BXm1Filled && meMETPhiHFEGammasMinus_BXm1Filled ->getRootObject())meMETPhiHFEGammasMinus_BXm1Filled->Fill(atan2(py_HFEGammasMinus,px_HFEGammasMinus));
1841 if(techTriggerCase==(-2)){
1842 meCHF_Barrel_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionBarrel_BXm1BXm2Empty"];
if(meCHF_Barrel_BXm1BXm2Empty && meCHF_Barrel_BXm1BXm2Empty->getRootObject()) meCHF_Barrel_BXm1BXm2Empty->Fill(pt_sum_CHF_Barrel/pfmet.
sumEt());
1843 meCHF_EndcapPlus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus_BXm1BXm2Empty"];
if(meCHF_EndcapPlus_BXm1BXm2Empty && meCHF_EndcapPlus_BXm1BXm2Empty->getRootObject()) meCHF_EndcapPlus_BXm1BXm2Empty->Fill(pt_sum_CHF_Endcap_plus/pfmet.
sumEt());
1844 meCHF_EndcapMinus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus_BXm1BXm2Empty"];
if(meCHF_EndcapMinus_BXm1BXm2Empty && meCHF_EndcapMinus_BXm1BXm2Empty->getRootObject()) meCHF_EndcapMinus_BXm1BXm2Empty->Fill(pt_sum_CHF_Endcap_minus/pfmet.
sumEt());
1845 meNHF_Barrel_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionBarrel_BXm1BXm2Empty"];
if(meNHF_Barrel_BXm1BXm2Empty && meNHF_Barrel_BXm1BXm2Empty->getRootObject()) meNHF_Barrel_BXm1BXm2Empty->Fill(pt_sum_NHF_Barrel/pfmet.
sumEt());
1846 meNHF_EndcapPlus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus_BXm1BXm2Empty"];
if(meNHF_EndcapPlus_BXm1BXm2Empty && meNHF_EndcapPlus_BXm1BXm2Empty->getRootObject()) meNHF_EndcapPlus_BXm1BXm2Empty->Fill(pt_sum_NHF_Endcap_plus/pfmet.
sumEt());
1847 meNHF_EndcapMinus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus_BXm1BXm2Empty"];
if(meNHF_EndcapMinus_BXm1BXm2Empty && meNHF_EndcapMinus_BXm1BXm2Empty->getRootObject()) meNHF_EndcapMinus_BXm1BXm2Empty->Fill(pt_sum_NHF_Endcap_minus/pfmet.
sumEt());
1848 mePhF_Barrel_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionBarrel_BXm1BXm2Empty"];
if(mePhF_Barrel_BXm1BXm2Empty && mePhF_Barrel_BXm1BXm2Empty->getRootObject()) mePhF_Barrel_BXm1BXm2Empty->Fill(pt_sum_PhF_Barrel/pfmet.
sumEt());
1849 mePhF_EndcapPlus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapPlus_BXm1BXm2Empty"];
if(mePhF_EndcapPlus_BXm1BXm2Empty && mePhF_EndcapPlus_BXm1BXm2Empty->getRootObject()) mePhF_EndcapPlus_BXm1BXm2Empty->Fill(pt_sum_PhF_Endcap_plus/pfmet.
sumEt());
1850 mePhF_EndcapMinus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapMinus_BXm1BXm2Empty"];
if(mePhF_EndcapMinus_BXm1BXm2Empty && mePhF_EndcapMinus_BXm1BXm2Empty->getRootObject()) mePhF_EndcapMinus_BXm1BXm2Empty->Fill(pt_sum_PhF_Endcap_minus/pfmet.
sumEt());
1851 meHFHadF_Plus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionPlus_BXm1BXm2Empty"];
if(meHFHadF_Plus_BXm1BXm2Empty && meHFHadF_Plus_BXm1BXm2Empty->getRootObject()) meHFHadF_Plus_BXm1BXm2Empty->Fill(pt_sum_HFH_plus/pfmet.
sumEt());
1852 meHFHadF_Minus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionMinus_BXm1BXm2Empty"];
if(meHFHadF_Minus_BXm1BXm2Empty && meHFHadF_Minus_BXm1BXm2Empty->getRootObject()) meHFHadF_Minus_BXm1BXm2Empty->Fill(pt_sum_HFH_minus/pfmet.
sumEt());
1853 meHFEMF_Plus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionPlus_BXm1BXm2Empty"];
if(meHFEMF_Plus_BXm1BXm2Empty && meHFEMF_Plus_BXm1BXm2Empty->getRootObject()) meHFEMF_Plus_BXm1BXm2Empty->Fill(pt_sum_HFE_plus/pfmet.
sumEt());
1854 meHFEMF_Minus_BXm1BXm2Empty=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionMinus_BXm1BXm2Empty"];
if(meHFEMF_Minus_BXm1BXm2Empty && meHFEMF_Minus_BXm1BXm2Empty->getRootObject()) meHFEMF_Minus_BXm1BXm2Empty->Fill(pt_sum_HFE_minus/pfmet.
sumEt());
1855 mePhotonEtFraction_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"PfPhotonEtFraction_BXm2BXm1Empty"];
if ( mePhotonEtFraction_BXm2BXm1Empty && mePhotonEtFraction_BXm2BXm1Empty ->getRootObject()) mePhotonEtFraction_BXm2BXm1Empty ->
Fill(pfmet.
photonEtFraction());
1856 meNeutralHadronEtFraction_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFraction_BXm2BXm1Empty"];
if ( meNeutralHadronEtFraction_BXm2BXm1Empty && meNeutralHadronEtFraction_BXm2BXm1Empty ->getRootObject()) meNeutralHadronEtFraction_BXm2BXm1Empty ->
Fill(pfmet.
neutralHadronEtFraction());
1857 meChargedHadronEtFraction_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFraction_BXm2BXm1Empty"];
if ( meChargedHadronEtFraction_BXm2BXm1Empty && meChargedHadronEtFraction_BXm2BXm1Empty ->getRootObject()) meChargedHadronEtFraction_BXm2BXm1Empty ->
Fill(pfmet.
chargedHadronEtFraction());
1858 meMET_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"MET_BXm2BXm1Empty"];
if ( meMET_BXm2BXm1Empty && meMET_BXm2BXm1Empty ->getRootObject()) meMET_BXm2BXm1Empty ->
Fill(pfmet.
pt());
1859 meSumET_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"SumET_BXm2BXm1Empty"];
if ( meSumET_BXm2BXm1Empty && meSumET_BXm2BXm1Empty ->getRootObject()) meSumET_BXm2BXm1Empty ->
Fill(pfmet.
sumEt());
1860 meMETPhiChargedHadronsBarrel_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsBarrel_BXm2BXm1Empty"];
if(meMETPhiChargedHadronsBarrel_BXm2BXm1Empty && meMETPhiChargedHadronsBarrel_BXm2BXm1Empty ->getRootObject())meMETPhiChargedHadronsBarrel_BXm2BXm1Empty->Fill(atan2(py_chargedHadronsBarrel,px_chargedHadronsBarrel));
1861 meMETPhiChargedHadronsEndcapPlus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapPlus_BXm2BXm1Empty"];
if(meMETPhiChargedHadronsEndcapPlus_BXm2BXm1Empty && meMETPhiChargedHadronsEndcapPlus_BXm2BXm1Empty ->getRootObject())meMETPhiChargedHadronsEndcapPlus_BXm2BXm1Empty->Fill(atan2(py_chargedHadronsEndcapPlus,px_chargedHadronsEndcapPlus));
1862 meMETPhiChargedHadronsEndcapMinus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapMinus_BXm2BXm1Empty"];
if(meMETPhiChargedHadronsEndcapMinus_BXm2BXm1Empty && meMETPhiChargedHadronsEndcapMinus_BXm2BXm1Empty ->getRootObject())meMETPhiChargedHadronsEndcapMinus_BXm2BXm1Empty->Fill(atan2(py_chargedHadronsEndcapMinus,px_chargedHadronsEndcapMinus));
1863 meMETPhiNeutralHadronsBarrel_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsBarrel_BXm2BXm1Empty"];
if(meMETPhiNeutralHadronsBarrel_BXm2BXm1Empty && meMETPhiNeutralHadronsBarrel_BXm2BXm1Empty ->getRootObject())meMETPhiNeutralHadronsBarrel_BXm2BXm1Empty->Fill(atan2(py_neutralHadronsBarrel,px_neutralHadronsBarrel));
1864 meMETPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty"];
if(meMETPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty && meMETPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty ->getRootObject())meMETPhiNeutralHadronsEndcapPlus_BXm2BXm1Empty->Fill(atan2(py_neutralHadronsEndcapPlus,px_neutralHadronsEndcapPlus));
1865 meMETPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty"];
if(meMETPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty && meMETPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty ->getRootObject())meMETPhiNeutralHadronsEndcapMinus_BXm2BXm1Empty->Fill(atan2(py_neutralHadronsEndcapMinus,px_neutralHadronsEndcapMinus));
1866 meMETPhiPhotonsBarrel_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiPhotonsBarrel_BXm2BXm1Empty"];
if(meMETPhiPhotonsBarrel_BXm2BXm1Empty && meMETPhiPhotonsBarrel_BXm2BXm1Empty ->getRootObject())meMETPhiPhotonsBarrel_BXm2BXm1Empty->Fill(atan2(py_PhotonsBarrel,px_PhotonsBarrel));
1867 meMETPhiPhotonsEndcapPlus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapPlus_BXm2BXm1Empty"];
if(meMETPhiPhotonsEndcapPlus_BXm2BXm1Empty && meMETPhiPhotonsEndcapPlus_BXm2BXm1Empty ->getRootObject())meMETPhiPhotonsEndcapPlus_BXm2BXm1Empty->Fill(atan2(py_PhotonsEndcapPlus,px_PhotonsEndcapPlus));
1868 meMETPhiPhotonsEndcapMinus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapMinus_BXm2BXm1Empty"];
if(meMETPhiPhotonsEndcapMinus_BXm2BXm1Empty && meMETPhiPhotonsEndcapMinus_BXm2BXm1Empty ->getRootObject())meMETPhiPhotonsEndcapMinus_BXm2BXm1Empty->Fill(atan2(py_PhotonsEndcapMinus,px_PhotonsEndcapMinus));
1869 meMETPhiHFHadronsPlus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsPlus_BXm2BXm1Empty"];
if(meMETPhiHFHadronsPlus_BXm2BXm1Empty && meMETPhiHFHadronsPlus_BXm2BXm1Empty ->getRootObject())meMETPhiHFHadronsPlus_BXm2BXm1Empty->Fill(atan2(py_HFHadronsPlus,px_HFHadronsPlus));
1870 meMETPhiHFHadronsMinus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsMinus_BXm2BXm1Empty"];
if(meMETPhiHFHadronsMinus_BXm2BXm1Empty && meMETPhiHFHadronsMinus_BXm2BXm1Empty ->getRootObject())meMETPhiHFHadronsMinus_BXm2BXm1Empty->Fill(atan2(py_HFHadronsMinus,px_HFHadronsMinus));
1871 meMETPhiHFEGammasPlus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasPlus_BXm2BXm1Empty"];
if(meMETPhiHFEGammasPlus_BXm2BXm1Empty && meMETPhiHFEGammasPlus_BXm2BXm1Empty ->getRootObject())meMETPhiHFEGammasPlus_BXm2BXm1Empty->Fill(atan2(py_HFEGammasPlus,px_HFEGammasPlus));
1872 meMETPhiHFEGammasMinus_BXm2BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasMinus_BXm2BXm1Empty"];
if(meMETPhiHFEGammasMinus_BXm2BXm1Empty && meMETPhiHFEGammasMinus_BXm2BXm1Empty ->getRootObject())meMETPhiHFEGammasMinus_BXm2BXm1Empty->Fill(atan2(py_HFEGammasMinus,px_HFEGammasMinus));
1874 if(techTriggerCase==(-1)){
1875 meCHF_Barrel_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionBarrel_BXm1Empty"];
if(meCHF_Barrel_BXm1Empty && meCHF_Barrel_BXm1Empty->getRootObject()) meCHF_Barrel_BXm1Empty->Fill(pt_sum_CHF_Barrel/pfmet.
sumEt());
1876 meCHF_EndcapPlus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapPlus_BXm1Empty"];
if(meCHF_EndcapPlus_BXm1Empty && meCHF_EndcapPlus_BXm1Empty->getRootObject()) meCHF_EndcapPlus_BXm1Empty->Fill(pt_sum_CHF_Endcap_plus/pfmet.
sumEt());
1877 meCHF_EndcapMinus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFractionEndcapMinus_BXm1Empty"];
if(meCHF_EndcapMinus_BXm1Empty && meCHF_EndcapMinus_BXm1Empty->getRootObject()) meCHF_EndcapMinus_BXm1Empty->Fill(pt_sum_CHF_Endcap_minus/pfmet.
sumEt());
1878 meNHF_Barrel_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionBarrel_BXm1Empty"];
if(meNHF_Barrel_BXm1Empty && meNHF_Barrel_BXm1Empty->getRootObject()) meNHF_Barrel_BXm1Empty->Fill(pt_sum_NHF_Barrel/pfmet.
sumEt());
1879 meNHF_EndcapPlus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapPlus_BXm1Empty"];
if(meNHF_EndcapPlus_BXm1Empty && meNHF_EndcapPlus_BXm1Empty->getRootObject()) meNHF_EndcapPlus_BXm1Empty->Fill(pt_sum_NHF_Endcap_plus/pfmet.
sumEt());
1880 meNHF_EndcapMinus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFractionEndcapMinus_BXm1Empty"];
if(meNHF_EndcapMinus_BXm1Empty && meNHF_EndcapMinus_BXm1Empty->getRootObject()) meNHF_EndcapMinus_BXm1Empty->Fill(pt_sum_NHF_Endcap_minus/pfmet.
sumEt());
1881 mePhF_Barrel_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionBarrel_BXm1Empty"];
if(mePhF_Barrel_BXm1Empty && mePhF_Barrel_BXm1Empty->getRootObject()) mePhF_Barrel_BXm1Empty->Fill(pt_sum_PhF_Barrel/pfmet.
sumEt());
1882 mePhF_EndcapPlus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapPlus_BXm1Empty"];
if(mePhF_EndcapPlus_BXm1Empty && mePhF_EndcapPlus_BXm1Empty->getRootObject()) mePhF_EndcapPlus_BXm1Empty->Fill(pt_sum_PhF_Endcap_plus/pfmet.
sumEt());
1883 mePhF_EndcapMinus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfPhotonEtFractionEndcapMinus_BXm1Empty"];
if(mePhF_EndcapMinus_BXm1Empty && mePhF_EndcapMinus_BXm1Empty->getRootObject()) mePhF_EndcapMinus_BXm1Empty->Fill(pt_sum_PhF_Endcap_minus/pfmet.
sumEt());
1884 meHFHadF_Plus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionPlus_BXm1Empty"];
if(meHFHadF_Plus_BXm1Empty && meHFHadF_Plus_BXm1Empty->getRootObject()) meHFHadF_Plus_BXm1Empty->Fill(pt_sum_HFH_plus/pfmet.
sumEt());
1885 meHFHadF_Minus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfHFHadronEtFractionMinus_BXm1Empty"];
if(meHFHadF_Minus_BXm1Empty && meHFHadF_Minus_BXm1Empty->getRootObject()) meHFHadF_Minus_BXm1Empty->Fill(pt_sum_HFH_minus/pfmet.
sumEt());
1886 meHFEMF_Plus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionPlus_BXm1Empty"];
if(meHFEMF_Plus_BXm1Empty && meHFEMF_Plus_BXm1Empty->getRootObject()) meHFEMF_Plus_BXm1Empty->Fill(pt_sum_HFE_plus/pfmet.
sumEt());
1887 meHFEMF_Minus_BXm1Empty=map_of_MEs[DirName+
"/"+
"PfHFEMEtFractionMinus_BXm1Empty"];
if(meHFEMF_Minus_BXm1Empty && meHFEMF_Minus_BXm1Empty->getRootObject()) meHFEMF_Minus_BXm1Empty->Fill(pt_sum_HFE_minus/pfmet.
sumEt());
1888 mePhotonEtFraction_BXm1Empty = map_of_MEs[DirName+
"/"+
"PfPhotonEtFraction_BXm1Empty"];
if ( mePhotonEtFraction_BXm1Empty && mePhotonEtFraction_BXm1Empty ->getRootObject()) mePhotonEtFraction_BXm1Empty ->
Fill(pfmet.
photonEtFraction());
1889 meNeutralHadronEtFraction_BXm1Empty = map_of_MEs[DirName+
"/"+
"PfNeutralHadronEtFraction_BXm1Empty"];
if ( meNeutralHadronEtFraction_BXm1Empty && meNeutralHadronEtFraction_BXm1Empty ->getRootObject()) meNeutralHadronEtFraction_BXm1Empty ->
Fill(pfmet.
neutralHadronEtFraction());
1890 meChargedHadronEtFraction_BXm1Empty = map_of_MEs[DirName+
"/"+
"PfChargedHadronEtFraction_BXm1Empty"];
if ( meChargedHadronEtFraction_BXm1Empty && meChargedHadronEtFraction_BXm1Empty ->getRootObject()) meChargedHadronEtFraction_BXm1Empty ->
Fill(pfmet.
chargedHadronEtFraction());
1891 meMET_BXm1Empty = map_of_MEs[DirName+
"/"+
"MET_BXm1Empty"];
if ( meMET_BXm1Empty && meMET_BXm1Empty ->getRootObject()) meMET_BXm1Empty ->
Fill(pfmet.
pt());
1892 meSumET_BXm1Empty = map_of_MEs[DirName+
"/"+
"SumET_BXm1Empty"];
if ( meSumET_BXm1Empty && meSumET_BXm1Empty ->getRootObject()) meSumET_BXm1Empty ->
Fill(pfmet.
sumEt());
1893 meMETPhiChargedHadronsBarrel_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsBarrel_BXm1Empty"];
if(meMETPhiChargedHadronsBarrel_BXm1Empty && meMETPhiChargedHadronsBarrel_BXm1Empty ->getRootObject())meMETPhiChargedHadronsBarrel_BXm1Empty->Fill(atan2(py_chargedHadronsBarrel,px_chargedHadronsBarrel));
1894 meMETPhiChargedHadronsEndcapPlus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapPlus_BXm1Empty"];
if(meMETPhiChargedHadronsEndcapPlus_BXm1Empty && meMETPhiChargedHadronsEndcapPlus_BXm1Empty ->getRootObject())meMETPhiChargedHadronsEndcapPlus_BXm1Empty->Fill(atan2(py_chargedHadronsEndcapPlus,px_chargedHadronsEndcapPlus));
1895 meMETPhiChargedHadronsEndcapMinus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiChargedHadronsEndcapMinus_BXm1Empty"];
if(meMETPhiChargedHadronsEndcapMinus_BXm1Empty && meMETPhiChargedHadronsEndcapMinus_BXm1Empty ->getRootObject())meMETPhiChargedHadronsEndcapMinus_BXm1Empty->Fill(atan2(py_chargedHadronsEndcapMinus,px_chargedHadronsEndcapMinus));
1896 meMETPhiNeutralHadronsBarrel_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsBarrel_BXm1Empty"];
if(meMETPhiNeutralHadronsBarrel_BXm1Empty && meMETPhiNeutralHadronsBarrel_BXm1Empty ->getRootObject())meMETPhiNeutralHadronsBarrel_BXm1Empty->Fill(atan2(py_neutralHadronsBarrel,px_neutralHadronsBarrel));
1897 meMETPhiNeutralHadronsEndcapPlus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapPlus_BXm1Empty"];
if(meMETPhiNeutralHadronsEndcapPlus_BXm1Empty && meMETPhiNeutralHadronsEndcapPlus_BXm1Empty ->getRootObject())meMETPhiNeutralHadronsEndcapPlus_BXm1Empty->Fill(atan2(py_neutralHadronsEndcapPlus,px_neutralHadronsEndcapPlus));
1898 meMETPhiNeutralHadronsEndcapMinus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiNeutralHadronsEndcapMinus_BXm1Empty"];
if(meMETPhiNeutralHadronsEndcapMinus_BXm1Empty && meMETPhiNeutralHadronsEndcapMinus_BXm1Empty ->getRootObject())meMETPhiNeutralHadronsEndcapMinus_BXm1Empty->Fill(atan2(py_neutralHadronsEndcapMinus,px_neutralHadronsEndcapMinus));
1899 meMETPhiPhotonsBarrel_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiPhotonsBarrel_BXm1Empty"];
if(meMETPhiPhotonsBarrel_BXm1Empty && meMETPhiPhotonsBarrel_BXm1Empty ->getRootObject())meMETPhiPhotonsBarrel_BXm1Empty->Fill(atan2(py_PhotonsBarrel,px_PhotonsBarrel));
1900 meMETPhiPhotonsEndcapPlus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapPlus_BXm1Empty"];
if(meMETPhiPhotonsEndcapPlus_BXm1Empty && meMETPhiPhotonsEndcapPlus_BXm1Empty ->getRootObject())meMETPhiPhotonsEndcapPlus_BXm1Empty->Fill(atan2(py_PhotonsEndcapPlus,px_PhotonsEndcapPlus));
1901 meMETPhiPhotonsEndcapMinus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiPhotonsEndcapMinus_BXm1Empty"];
if(meMETPhiPhotonsEndcapMinus_BXm1Empty && meMETPhiPhotonsEndcapMinus_BXm1Empty ->getRootObject())meMETPhiPhotonsEndcapMinus_BXm1Empty->Fill(atan2(py_PhotonsEndcapMinus,px_PhotonsEndcapMinus));
1902 meMETPhiHFHadronsPlus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsPlus_BXm1Empty"];
if(meMETPhiHFHadronsPlus_BXm1Empty && meMETPhiHFHadronsPlus_BXm1Empty ->getRootObject())meMETPhiHFHadronsPlus_BXm1Empty->Fill(atan2(py_HFHadronsPlus,px_HFHadronsPlus));
1903 meMETPhiHFHadronsMinus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiHFHadronsMinus_BXm1Empty"];
if(meMETPhiHFHadronsMinus_BXm1Empty && meMETPhiHFHadronsMinus_BXm1Empty ->getRootObject())meMETPhiHFHadronsMinus_BXm1Empty->Fill(atan2(py_HFHadronsMinus,px_HFHadronsMinus));
1904 meMETPhiHFEGammasPlus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasPlus_BXm1Empty"];
if(meMETPhiHFEGammasPlus_BXm1Empty && meMETPhiHFEGammasPlus_BXm1Empty ->getRootObject())meMETPhiHFEGammasPlus_BXm1Empty->Fill(atan2(py_HFEGammasPlus,px_HFEGammasPlus));
1905 meMETPhiHFEGammasMinus_BXm1Empty = map_of_MEs[DirName+
"/"+
"METPhiHFEGammasMinus_BXm1Empty"];
if(meMETPhiHFEGammasMinus_BXm1Empty && meMETPhiHFEGammasMinus_BXm1Empty ->getRootObject())meMETPhiHFEGammasMinus_BXm1Empty->Fill(atan2(py_HFEGammasMinus,px_HFEGammasMinus));
1915 double pfPhotonEt = pfmet.
photonEt();
1921 double pfMuonEt = pfmet.
muonEt();
1925 double pfHFEMEt = pfmet.
HFEMEt();
1926 mePhotonEtFraction = map_of_MEs[DirName +
"/PfPhotonEtFraction"];
1927 mePhotonEt = map_of_MEs[DirName +
"/PfPhotonEt"];
1928 meNeutralHadronEtFraction = map_of_MEs[DirName +
"/PfNeutralHadronEtFraction"];
1929 meNeutralHadronEt = map_of_MEs[DirName +
"/PfNeutralHadronEt"];
1930 meElectronEt = map_of_MEs[DirName +
"/PfElectronEt"];
1931 meChargedHadronEtFraction = map_of_MEs[DirName +
"/PfChargedHadronEtFraction"];
1932 meChargedHadronEt = map_of_MEs[DirName +
"/PfChargedHadronEt"];
1933 meMuonEt = map_of_MEs[DirName +
"/PfMuonEt"];
1934 meHFHadronEtFraction = map_of_MEs[DirName +
"/PfHFHadronEtFraction"];
1935 meHFHadronEt = map_of_MEs[DirName +
"/PfHFHadronEt"];
1936 meHFEMEtFraction = map_of_MEs[DirName +
"/PfHFEMEtFraction"];
1937 meHFEMEt = map_of_MEs[DirName +
"/PfHFEMEt"];
1939 if (mePhotonEtFraction && mePhotonEtFraction ->getRootObject()) mePhotonEtFraction ->Fill(pfPhotonEtFraction);
1940 if (mePhotonEt && mePhotonEt ->getRootObject()) mePhotonEt ->Fill(pfPhotonEt);
1941 if (meNeutralHadronEtFraction && meNeutralHadronEtFraction->getRootObject()) meNeutralHadronEtFraction->Fill(pfNeutralHadronEtFraction);
1942 if (meNeutralHadronEt && meNeutralHadronEt ->getRootObject()) meNeutralHadronEt ->Fill(pfNeutralHadronEt);
1943 if (meElectronEt && meElectronEt ->getRootObject()) meElectronEt ->Fill(pfElectronEt);
1944 if (meChargedHadronEtFraction && meChargedHadronEtFraction->getRootObject()) meChargedHadronEtFraction->Fill(pfChargedHadronEtFraction);
1945 if (meChargedHadronEt && meChargedHadronEt ->getRootObject()) meChargedHadronEt ->Fill(pfChargedHadronEt);
1946 if (meMuonEt && meMuonEt ->getRootObject()) meMuonEt ->Fill(pfMuonEt);
1947 if (meHFHadronEtFraction && meHFHadronEtFraction ->getRootObject()) meHFHadronEtFraction ->Fill(pfHFHadronEtFraction);
1948 if (meHFHadronEt && meHFHadronEt ->getRootObject()) meHFHadronEt ->Fill(pfHFHadronEt);
1949 if (meHFEMEtFraction && meHFEMEtFraction ->getRootObject()) meHFEMEtFraction ->Fill(pfHFEMEtFraction);
1950 if (meHFEMEt && meHFEMEt ->getRootObject()) meHFEMEt ->Fill(pfHFEMEt);
1954 mePhotonEtFraction_profile = map_of_MEs[DirName +
"/PfPhotonEtFraction_profile"];
1955 mePhotonEt_profile = map_of_MEs[DirName +
"/PfPhotonEt_profile"];
1956 meNeutralHadronEtFraction_profile = map_of_MEs[DirName +
"/PfNeutralHadronEtFraction_profile"];
1957 meNeutralHadronEt_profile = map_of_MEs[DirName +
"/PfNeutralHadronEt_profile"];
1958 meChargedHadronEtFraction_profile = map_of_MEs[DirName +
"/PfChargedHadronEtFraction_profile"];
1959 meChargedHadronEt_profile = map_of_MEs[DirName +
"/PfChargedHadronEt_profile"];
1960 meHFHadronEtFraction_profile = map_of_MEs[DirName +
"/PfHFHadronEtFraction_profile"];
1961 meHFHadronEt_profile = map_of_MEs[DirName +
"/PfHFHadronEt_profile"];
1962 meHFEMEtFraction_profile = map_of_MEs[DirName +
"/PfHFEMEtFraction_profile"];
1963 meHFEMEt_profile = map_of_MEs[DirName +
"/PfHFEMEt_profile"];
1965 if (mePhotonEtFraction_profile && mePhotonEtFraction_profile ->getRootObject()) mePhotonEtFraction_profile ->Fill(numPV_, pfPhotonEtFraction);
1966 if (mePhotonEt_profile && mePhotonEt_profile ->getRootObject()) mePhotonEt_profile ->Fill(numPV_, pfPhotonEt);
1967 if (meNeutralHadronEtFraction_profile && meNeutralHadronEtFraction_profile->getRootObject()) meNeutralHadronEtFraction_profile->Fill(numPV_, pfNeutralHadronEtFraction);
1968 if (meNeutralHadronEt_profile && meNeutralHadronEt_profile ->getRootObject()) meNeutralHadronEt_profile ->Fill(numPV_, pfNeutralHadronEt);
1969 if (meChargedHadronEtFraction_profile && meChargedHadronEtFraction_profile->getRootObject()) meChargedHadronEtFraction_profile->Fill(numPV_, pfChargedHadronEtFraction);
1970 if (meChargedHadronEt_profile && meChargedHadronEt_profile ->getRootObject()) meChargedHadronEt_profile ->Fill(numPV_, pfChargedHadronEt);
1971 if (meHFHadronEtFraction_profile && meHFHadronEtFraction_profile ->getRootObject()) meHFHadronEtFraction_profile ->Fill(numPV_, pfHFHadronEtFraction);
1972 if (meHFHadronEt_profile && meHFHadronEt_profile ->getRootObject()) meHFHadronEt_profile ->Fill(numPV_, pfHFHadronEt);
1973 if (meHFEMEtFraction_profile && meHFEMEtFraction_profile ->getRootObject()) meHFEMEtFraction_profile ->Fill(numPV_, pfHFEMEtFraction);
1974 if (meHFEMEt_profile && meHFEMEt_profile ->getRootObject()) meHFEMEt_profile ->Fill(numPV_, pfHFEMEt);
1978 mePhotonEtFraction = map_of_MEs[DirName +
"/PfPhotonEtFraction"];
1979 meNeutralHadronEtFraction = map_of_MEs[DirName +
"/PfNeutralHadronEtFraction"];
1980 meChargedHadronEtFraction = map_of_MEs[DirName +
"/PfChargedHadronEtFraction"];
1981 meHFHadronEtFraction = map_of_MEs[DirName +
"/PfHFHadronEtFraction"];
1982 meHFEMEtFraction = map_of_MEs[DirName +
"/PfHFEMEtFraction"];
1984 if (mePhotonEtFraction && mePhotonEtFraction ->getRootObject()) mePhotonEtFraction ->Fill(patmet.
NeutralEMFraction());
1985 if (meNeutralHadronEtFraction && meNeutralHadronEtFraction->getRootObject()) meNeutralHadronEtFraction->Fill(patmet.
NeutralHadEtFraction());
1986 if (meChargedHadronEtFraction && meChargedHadronEtFraction->getRootObject()) meChargedHadronEtFraction->Fill(patmet.
ChargedHadEtFraction());
1987 if (meHFHadronEtFraction && meHFHadronEtFraction ->getRootObject()) meHFHadronEtFraction ->
Fill(patmet.
Type6EtFraction());
1988 if (meHFEMEtFraction && meHFEMEtFraction ->getRootObject()) meHFEMEtFraction ->
Fill(patmet.
Type7EtFraction());
1991 mePhotonEtFraction_profile = map_of_MEs[DirName +
"/PfPhotonEtFraction_profile"];
1992 meNeutralHadronEtFraction_profile = map_of_MEs[DirName +
"/PfNeutralHadronEtFraction_profile"];
1993 meChargedHadronEtFraction_profile = map_of_MEs[DirName +
"/PfChargedHadronEtFraction_profile"];
1994 meHFHadronEtFraction_profile = map_of_MEs[DirName +
"/PfHFHadronEtFraction_profile"];
1995 meHFEMEtFraction_profile = map_of_MEs[DirName +
"/PfHFEMEtFraction_profile"];
1997 if (mePhotonEtFraction_profile && mePhotonEtFraction_profile ->getRootObject()) mePhotonEtFraction_profile ->
Fill(numPV_, patmet.
NeutralEMFraction());
1998 if (meNeutralHadronEtFraction_profile && meNeutralHadronEtFraction_profile->getRootObject()) meNeutralHadronEtFraction_profile->Fill(numPV_, patmet.
NeutralHadEtFraction());
1999 if (meChargedHadronEtFraction_profile && meChargedHadronEtFraction_profile->getRootObject()) meChargedHadronEtFraction_profile->Fill(numPV_, patmet.
ChargedHadEtFraction());
2000 if (meHFHadronEtFraction_profile && meHFHadronEtFraction_profile ->getRootObject()) meHFHadronEtFraction_profile ->
Fill(numPV_, patmet.
Type6EtFraction());
2001 if (meHFEMEtFraction_profile && meHFEMEtFraction_profile ->getRootObject()) meHFEMEtFraction_profile ->
Fill(numPV_, patmet.
Type7EtFraction());
2006 if (fill_met_high_level_histo){
2007 hMExLS = map_of_MEs[DirName+
"/"+
"MExLS"];
if (hMExLS && hMExLS->getRootObject()) hMExLS->Fill(MEx,myLuminosityBlock);
2008 hMEyLS = map_of_MEs[DirName+
"/"+
"MEyLS"];
if (hMEyLS && hMEyLS->getRootObject()) hMEyLS->Fill(MEy,myLuminosityBlock);
Analysis-level MET class.
T getParameter(std::string const &) const
const reco::TrackRef & trackRef() const
void setBinContent(int binx, double content)
set content of bin (1-D)
double HFEMEtFraction() const
double rawEcalEnergy() const
return corrected Ecal energy
double ChargedHadEtFraction() const
virtual double et() const
transverse energy
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::string metname
std::vector< ParameterSet > VParameterSet
double neutralHadronEtFraction() const
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)
edm::LuminosityBlockNumber_t luminosityBlock() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
const PFClusterRef & clusterRef() const
double NeutralEMFraction() const
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
double Type6EtFraction() const
double Type7EtFraction() const
double NeutralHadEtFraction() const
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
std::vector< ElementInBlock > ElementsInBlocks
triggerResultsToken_(consumes< edm::TriggerResults >(edm::InputTag("TriggerResults")))
double HFHadronEtFraction() const
double HFHadronEt() const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
double photonEtFraction() const
MonitorElement * book1D(Args &&...args)
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
PF Jet selector for pat::Jets.
double electronEt() const
Jet selector for pat::Jets and for CaloJets.
TObject * getRootObject(void) const
void setCurrentFolder(const std::string &fullpath)
double etFractionHadronic() const
T const * product() const
virtual double px() const
x coordinate of momentum vector
MonitorElement * book2D(Args &&...args)
static std::string const triggerResults("TriggerResults")
T const * product() const
TH1F * getTH1F(void) const
double chargedHadronEtFraction() const
Particle reconstructed by the particle flow algorithm.
double neutralHadronEt() const
virtual ParticleType particleId() const
const ElementsInBlocks & elementsInBlocks() const
virtual double phi() const
momentum azimuthal angle
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
virtual double py() const
y coordinate of momentum vector
double emEtFraction() const
double chargedHadronEt() const
double rawHcalEnergy() const
return raw Hcal energy