Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-11-18 03:09:40

0001 #include <string>
0002 
0003 #include "FWCore/Framework/interface/MakerMacros.h"
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "FWCore/ServiceRegistry/interface/Service.h"
0006 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0007 
0008 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0009 #include "DQMServices/Core/interface/DQMStore.h"
0010 
0011 #include "DataFormats/ForwardDetId/interface/ETLDetId.h"
0012 
0013 class MtdEleIsoHarvester : public DQMEDHarvester {
0014 public:
0015   explicit MtdEleIsoHarvester(const edm::ParameterSet& iConfig);
0016   ~MtdEleIsoHarvester() override;
0017 
0018   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0019 
0020 protected:
0021   void dqmEndJob(DQMStore::IBooker&, DQMStore::IGetter&) override;
0022 
0023 private:
0024   void computeEfficiency1D(MonitorElement* num, MonitorElement* den, MonitorElement* result);
0025 
0026   const std::string folder_;
0027   const bool optionalPlots_;
0028 
0029   // --- Histograms
0030   MonitorElement* mePtEffnoMTD_Sig_EB_;
0031   MonitorElement* meEtaEffnoMTD_Sig_EB_;
0032   MonitorElement* mePhiEffnoMTD_Sig_EB_;
0033   MonitorElement* mePtEffMTD_1_Sig_EB_;
0034   MonitorElement* meEtaEffMTD_1_Sig_EB_;
0035   MonitorElement* mePhiEffMTD_1_Sig_EB_;
0036 
0037   MonitorElement* mePtEffMTD_2_Sig_EB_;
0038   MonitorElement* meEtaEffMTD_2_Sig_EB_;
0039   MonitorElement* mePhiEffMTD_2_Sig_EB_;
0040 
0041   MonitorElement* mePtEffMTD_3_Sig_EB_;
0042   MonitorElement* meEtaEffMTD_3_Sig_EB_;
0043   MonitorElement* mePhiEffMTD_3_Sig_EB_;
0044 
0045   MonitorElement* mePtEffMTD_4_Sig_EB_;
0046   MonitorElement* meEtaEffMTD_4_Sig_EB_;
0047   MonitorElement* mePhiEffMTD_4_Sig_EB_;
0048 
0049   MonitorElement* mePtEffMTD_5_Sig_EB_;
0050   MonitorElement* meEtaEffMTD_5_Sig_EB_;
0051   MonitorElement* mePhiEffMTD_5_Sig_EB_;
0052 
0053   MonitorElement* mePtEffMTD_6_Sig_EB_;
0054   MonitorElement* meEtaEffMTD_6_Sig_EB_;
0055   MonitorElement* mePhiEffMTD_6_Sig_EB_;
0056 
0057   MonitorElement* mePtEffMTD_7_Sig_EB_;
0058   MonitorElement* meEtaEffMTD_7_Sig_EB_;
0059   MonitorElement* mePhiEffMTD_7_Sig_EB_;
0060 
0061   MonitorElement* mePtEffMTD_sim_1_Sig_EB_;
0062   MonitorElement* mePtEffMTD_sim_2_Sig_EB_;
0063   MonitorElement* mePtEffMTD_sim_3_Sig_EB_;
0064   MonitorElement* mePtEffMTD_sim_4_Sig_EB_;
0065   MonitorElement* mePtEffMTD_sim_5_Sig_EB_;
0066   MonitorElement* mePtEffMTD_sim_6_Sig_EB_;
0067   MonitorElement* mePtEffMTD_sim_7_Sig_EB_;
0068 
0069   MonitorElement* mePtEffgen_Sig_EB_;
0070 
0071   MonitorElement* mePtEffMTD_sim_4sigma_Sig_EB_;
0072   MonitorElement* mePtEffMTD_sim_3sigma_Sig_EB_;
0073   MonitorElement* mePtEffMTD_sim_2sigma_Sig_EB_;
0074 
0075   MonitorElement* mePtEffMTD_4sigma_Sig_EB_;
0076   MonitorElement* meEtaEffMTD_4sigma_Sig_EB_;
0077   MonitorElement* mePhiEffMTD_4sigma_Sig_EB_;
0078 
0079   MonitorElement* mePtEffMTD_3sigma_Sig_EB_;
0080   MonitorElement* meEtaEffMTD_3sigma_Sig_EB_;
0081   MonitorElement* mePhiEffMTD_3sigma_Sig_EB_;
0082 
0083   MonitorElement* mePtEffMTD_2sigma_Sig_EB_;
0084   MonitorElement* meEtaEffMTD_2sigma_Sig_EB_;
0085   MonitorElement* mePhiEffMTD_2sigma_Sig_EB_;
0086 
0087   MonitorElement* mePtEffnoMTD_Sig_EE_;
0088   MonitorElement* meEtaEffnoMTD_Sig_EE_;
0089   MonitorElement* mePhiEffnoMTD_Sig_EE_;
0090 
0091   MonitorElement* mePtEffMTD_1_Sig_EE_;
0092   MonitorElement* meEtaEffMTD_1_Sig_EE_;
0093   MonitorElement* mePhiEffMTD_1_Sig_EE_;
0094 
0095   MonitorElement* mePtEffMTD_2_Sig_EE_;
0096   MonitorElement* meEtaEffMTD_2_Sig_EE_;
0097   MonitorElement* mePhiEffMTD_2_Sig_EE_;
0098 
0099   MonitorElement* mePtEffMTD_3_Sig_EE_;
0100   MonitorElement* meEtaEffMTD_3_Sig_EE_;
0101   MonitorElement* mePhiEffMTD_3_Sig_EE_;
0102 
0103   MonitorElement* mePtEffMTD_4_Sig_EE_;
0104   MonitorElement* meEtaEffMTD_4_Sig_EE_;
0105   MonitorElement* mePhiEffMTD_4_Sig_EE_;
0106 
0107   MonitorElement* mePtEffMTD_5_Sig_EE_;
0108   MonitorElement* meEtaEffMTD_5_Sig_EE_;
0109   MonitorElement* mePhiEffMTD_5_Sig_EE_;
0110 
0111   MonitorElement* mePtEffMTD_6_Sig_EE_;
0112   MonitorElement* meEtaEffMTD_6_Sig_EE_;
0113   MonitorElement* mePhiEffMTD_6_Sig_EE_;
0114 
0115   MonitorElement* mePtEffMTD_7_Sig_EE_;
0116   MonitorElement* meEtaEffMTD_7_Sig_EE_;
0117   MonitorElement* mePhiEffMTD_7_Sig_EE_;
0118 
0119   MonitorElement* mePtEffMTD_sim_1_Sig_EE_;
0120   MonitorElement* mePtEffMTD_sim_2_Sig_EE_;
0121   MonitorElement* mePtEffMTD_sim_3_Sig_EE_;
0122   MonitorElement* mePtEffMTD_sim_4_Sig_EE_;
0123   MonitorElement* mePtEffMTD_sim_5_Sig_EE_;
0124   MonitorElement* mePtEffMTD_sim_6_Sig_EE_;
0125   MonitorElement* mePtEffMTD_sim_7_Sig_EE_;
0126 
0127   MonitorElement* mePtEffgen_Sig_EE_;
0128 
0129   MonitorElement* mePtEffMTD_sim_4sigma_Sig_EE_;
0130   MonitorElement* mePtEffMTD_sim_3sigma_Sig_EE_;
0131   MonitorElement* mePtEffMTD_sim_2sigma_Sig_EE_;
0132 
0133   MonitorElement* mePtEffMTD_4sigma_Sig_EE_;
0134   MonitorElement* meEtaEffMTD_4sigma_Sig_EE_;
0135   MonitorElement* mePhiEffMTD_4sigma_Sig_EE_;
0136 
0137   MonitorElement* mePtEffMTD_3sigma_Sig_EE_;
0138   MonitorElement* meEtaEffMTD_3sigma_Sig_EE_;
0139   MonitorElement* mePhiEffMTD_3sigma_Sig_EE_;
0140 
0141   MonitorElement* mePtEffMTD_2sigma_Sig_EE_;
0142   MonitorElement* meEtaEffMTD_2sigma_Sig_EE_;
0143   MonitorElement* mePhiEffMTD_2sigma_Sig_EE_;
0144 
0145   MonitorElement* mePtEffnoMTD_Bkg_EB_;
0146   MonitorElement* meEtaEffnoMTD_Bkg_EB_;
0147   MonitorElement* mePhiEffnoMTD_Bkg_EB_;
0148   MonitorElement* mePtEffMTD_1_Bkg_EB_;
0149   MonitorElement* meEtaEffMTD_1_Bkg_EB_;
0150   MonitorElement* mePhiEffMTD_1_Bkg_EB_;
0151 
0152   MonitorElement* mePtEffMTD_2_Bkg_EB_;
0153   MonitorElement* meEtaEffMTD_2_Bkg_EB_;
0154   MonitorElement* mePhiEffMTD_2_Bkg_EB_;
0155 
0156   MonitorElement* mePtEffMTD_3_Bkg_EB_;
0157   MonitorElement* meEtaEffMTD_3_Bkg_EB_;
0158   MonitorElement* mePhiEffMTD_3_Bkg_EB_;
0159 
0160   MonitorElement* mePtEffMTD_4_Bkg_EB_;
0161   MonitorElement* meEtaEffMTD_4_Bkg_EB_;
0162   MonitorElement* mePhiEffMTD_4_Bkg_EB_;
0163 
0164   MonitorElement* mePtEffMTD_5_Bkg_EB_;
0165   MonitorElement* meEtaEffMTD_5_Bkg_EB_;
0166   MonitorElement* mePhiEffMTD_5_Bkg_EB_;
0167 
0168   MonitorElement* mePtEffMTD_6_Bkg_EB_;
0169   MonitorElement* meEtaEffMTD_6_Bkg_EB_;
0170   MonitorElement* mePhiEffMTD_6_Bkg_EB_;
0171 
0172   MonitorElement* mePtEffMTD_7_Bkg_EB_;
0173   MonitorElement* meEtaEffMTD_7_Bkg_EB_;
0174   MonitorElement* mePhiEffMTD_7_Bkg_EB_;
0175 
0176   MonitorElement* mePtEffMTD_sim_1_Bkg_EB_;
0177   MonitorElement* mePtEffMTD_sim_2_Bkg_EB_;
0178   MonitorElement* mePtEffMTD_sim_3_Bkg_EB_;
0179   MonitorElement* mePtEffMTD_sim_4_Bkg_EB_;
0180   MonitorElement* mePtEffMTD_sim_5_Bkg_EB_;
0181   MonitorElement* mePtEffMTD_sim_6_Bkg_EB_;
0182   MonitorElement* mePtEffMTD_sim_7_Bkg_EB_;
0183 
0184   MonitorElement* mePtEffgen_Bkg_EB_;
0185 
0186   MonitorElement* mePtEffMTD_sim_4sigma_Bkg_EB_;
0187   MonitorElement* mePtEffMTD_sim_3sigma_Bkg_EB_;
0188   MonitorElement* mePtEffMTD_sim_2sigma_Bkg_EB_;
0189 
0190   MonitorElement* mePtEffMTD_4sigma_Bkg_EB_;
0191   MonitorElement* meEtaEffMTD_4sigma_Bkg_EB_;
0192   MonitorElement* mePhiEffMTD_4sigma_Bkg_EB_;
0193 
0194   MonitorElement* mePtEffMTD_3sigma_Bkg_EB_;
0195   MonitorElement* meEtaEffMTD_3sigma_Bkg_EB_;
0196   MonitorElement* mePhiEffMTD_3sigma_Bkg_EB_;
0197 
0198   MonitorElement* mePtEffMTD_2sigma_Bkg_EB_;
0199   MonitorElement* meEtaEffMTD_2sigma_Bkg_EB_;
0200   MonitorElement* mePhiEffMTD_2sigma_Bkg_EB_;
0201 
0202   MonitorElement* mePtEffnoMTD_Bkg_EE_;
0203   MonitorElement* meEtaEffnoMTD_Bkg_EE_;
0204   MonitorElement* mePhiEffnoMTD_Bkg_EE_;
0205   MonitorElement* mePtEffMTD_1_Bkg_EE_;
0206   MonitorElement* meEtaEffMTD_1_Bkg_EE_;
0207   MonitorElement* mePhiEffMTD_1_Bkg_EE_;
0208 
0209   MonitorElement* mePtEffMTD_2_Bkg_EE_;
0210   MonitorElement* meEtaEffMTD_2_Bkg_EE_;
0211   MonitorElement* mePhiEffMTD_2_Bkg_EE_;
0212 
0213   MonitorElement* mePtEffMTD_3_Bkg_EE_;
0214   MonitorElement* meEtaEffMTD_3_Bkg_EE_;
0215   MonitorElement* mePhiEffMTD_3_Bkg_EE_;
0216 
0217   MonitorElement* mePtEffMTD_4_Bkg_EE_;
0218   MonitorElement* meEtaEffMTD_4_Bkg_EE_;
0219   MonitorElement* mePhiEffMTD_4_Bkg_EE_;
0220 
0221   MonitorElement* mePtEffMTD_5_Bkg_EE_;
0222   MonitorElement* meEtaEffMTD_5_Bkg_EE_;
0223   MonitorElement* mePhiEffMTD_5_Bkg_EE_;
0224 
0225   MonitorElement* mePtEffMTD_6_Bkg_EE_;
0226   MonitorElement* meEtaEffMTD_6_Bkg_EE_;
0227   MonitorElement* mePhiEffMTD_6_Bkg_EE_;
0228 
0229   MonitorElement* mePtEffMTD_7_Bkg_EE_;
0230   MonitorElement* meEtaEffMTD_7_Bkg_EE_;
0231   MonitorElement* mePhiEffMTD_7_Bkg_EE_;
0232 
0233   MonitorElement* mePtEffMTD_sim_1_Bkg_EE_;
0234   MonitorElement* mePtEffMTD_sim_2_Bkg_EE_;
0235   MonitorElement* mePtEffMTD_sim_3_Bkg_EE_;
0236   MonitorElement* mePtEffMTD_sim_4_Bkg_EE_;
0237   MonitorElement* mePtEffMTD_sim_5_Bkg_EE_;
0238   MonitorElement* mePtEffMTD_sim_6_Bkg_EE_;
0239   MonitorElement* mePtEffMTD_sim_7_Bkg_EE_;
0240 
0241   MonitorElement* mePtEffgen_Bkg_EE_;
0242 
0243   MonitorElement* mePtEffMTD_sim_4sigma_Bkg_EE_;
0244   MonitorElement* mePtEffMTD_sim_3sigma_Bkg_EE_;
0245   MonitorElement* mePtEffMTD_sim_2sigma_Bkg_EE_;
0246 
0247   MonitorElement* mePtEffMTD_4sigma_Bkg_EE_;
0248   MonitorElement* meEtaEffMTD_4sigma_Bkg_EE_;
0249   MonitorElement* mePhiEffMTD_4sigma_Bkg_EE_;
0250 
0251   MonitorElement* mePtEffMTD_3sigma_Bkg_EE_;
0252   MonitorElement* meEtaEffMTD_3sigma_Bkg_EE_;
0253   MonitorElement* mePhiEffMTD_3sigma_Bkg_EE_;
0254 
0255   MonitorElement* mePtEffMTD_2sigma_Bkg_EE_;
0256   MonitorElement* meEtaEffMTD_2sigma_Bkg_EE_;
0257   MonitorElement* mePhiEffMTD_2sigma_Bkg_EE_;
0258 };
0259 
0260 // ------------ constructor and destructor --------------
0261 MtdEleIsoHarvester::MtdEleIsoHarvester(const edm::ParameterSet& iConfig)
0262     : folder_(iConfig.getParameter<std::string>("folder")),
0263       optionalPlots_(iConfig.getParameter<bool>("option_plots")) {}
0264 
0265 MtdEleIsoHarvester::~MtdEleIsoHarvester() {}
0266 
0267 // auxiliary method to compute efficiency from the ratio of two 1D MonitorElement
0268 void MtdEleIsoHarvester::computeEfficiency1D(MonitorElement* num, MonitorElement* den, MonitorElement* result) {
0269   for (int ibin = 1; ibin <= den->getNbinsX(); ibin++) {
0270     double eff = num->getBinContent(ibin) / den->getBinContent(ibin);
0271     double bin_err = sqrt((num->getBinContent(ibin) * (den->getBinContent(ibin) - num->getBinContent(ibin))) /
0272                           pow(den->getBinContent(ibin), 3));
0273     if (den->getBinContent(ibin) == 0) {
0274       eff = 0;
0275       bin_err = 0;
0276     }
0277     result->setBinContent(ibin, eff);
0278     result->setBinError(ibin, bin_err);
0279   }
0280 }
0281 
0282 // ------------ endjob tasks ----------------------------
0283 void MtdEleIsoHarvester::dqmEndJob(DQMStore::IBooker& ibook, DQMStore::IGetter& igetter) {
0284   // --- Get the monitoring histograms
0285   // For promt (signal)
0286   MonitorElement* meEle_pt_tot_Sig_EB_ = igetter.get(folder_ + "Ele_pT_tot_Sig_EB");
0287   MonitorElement* meEle_pt_sim_tot_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_tot_Sig_EB");
0288   MonitorElement* meEle_pt_noMTD_Sig_EB_ = igetter.get(folder_ + "Ele_pT_noMTD_Sig_EB");
0289   MonitorElement* meEle_pt_gen_Sig_EB_ = igetter.get(folder_ + "Ele_pT_gen_Sig_EB");
0290 
0291   MonitorElement* meEle_eta_tot_Sig_EB_ = igetter.get(folder_ + "Ele_eta_tot_Sig_EB");
0292   MonitorElement* meEle_eta_noMTD_Sig_EB_ = igetter.get(folder_ + "Ele_eta_noMTD_Sig_EB");
0293 
0294   MonitorElement* meEle_phi_tot_Sig_EB_ = igetter.get(folder_ + "Ele_phi_tot_Sig_EB");
0295   MonitorElement* meEle_phi_noMTD_Sig_EB_ = igetter.get(folder_ + "Ele_phi_noMTD_Sig_EB");
0296   MonitorElement* meEle_pt_MTD_1_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_1_Sig_EB");
0297   MonitorElement* meEle_eta_MTD_1_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_1_Sig_EB");
0298   MonitorElement* meEle_phi_MTD_1_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_1_Sig_EB");
0299 
0300   MonitorElement* meEle_pt_MTD_2_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_2_Sig_EB");
0301   MonitorElement* meEle_eta_MTD_2_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_2_Sig_EB");
0302   MonitorElement* meEle_phi_MTD_2_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_2_Sig_EB");
0303 
0304   MonitorElement* meEle_pt_MTD_3_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_3_Sig_EB");
0305   MonitorElement* meEle_eta_MTD_3_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_3_Sig_EB");
0306   MonitorElement* meEle_phi_MTD_3_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_3_Sig_EB");
0307 
0308   MonitorElement* meEle_pt_MTD_4_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_4_Sig_EB");
0309   MonitorElement* meEle_eta_MTD_4_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_4_Sig_EB");
0310   MonitorElement* meEle_phi_MTD_4_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_4_Sig_EB");
0311 
0312   MonitorElement* meEle_pt_MTD_5_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_5_Sig_EB");
0313   MonitorElement* meEle_eta_MTD_5_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_5_Sig_EB");
0314   MonitorElement* meEle_phi_MTD_5_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_5_Sig_EB");
0315 
0316   MonitorElement* meEle_pt_MTD_6_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_6_Sig_EB");
0317   MonitorElement* meEle_eta_MTD_6_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_6_Sig_EB");
0318   MonitorElement* meEle_phi_MTD_6_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_6_Sig_EB");
0319 
0320   MonitorElement* meEle_pt_MTD_7_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_7_Sig_EB");
0321   MonitorElement* meEle_eta_MTD_7_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_7_Sig_EB");
0322   MonitorElement* meEle_phi_MTD_7_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_7_Sig_EB");
0323 
0324   MonitorElement* meEle_pt_sim_MTD_1_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_1_Sig_EB");
0325   MonitorElement* meEle_pt_sim_MTD_2_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_2_Sig_EB");
0326   MonitorElement* meEle_pt_sim_MTD_3_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_3_Sig_EB");
0327   MonitorElement* meEle_pt_sim_MTD_4_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_4_Sig_EB");
0328   MonitorElement* meEle_pt_sim_MTD_5_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_5_Sig_EB");
0329   MonitorElement* meEle_pt_sim_MTD_6_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_6_Sig_EB");
0330   MonitorElement* meEle_pt_sim_MTD_7_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_7_Sig_EB");
0331 
0332   MonitorElement* meEle_pt_sim_MTD_2sigma_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_2sigma_Sig_EB");
0333   MonitorElement* meEle_pt_sim_MTD_3sigma_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_3sigma_Sig_EB");
0334   MonitorElement* meEle_pt_sim_MTD_4sigma_Sig_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_4sigma_Sig_EB");
0335 
0336   MonitorElement* meEle_pt_MTD_2sigma_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_2sigma_Sig_EB");
0337   MonitorElement* meEle_eta_MTD_2sigma_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_2sigma_Sig_EB");
0338   MonitorElement* meEle_phi_MTD_2sigma_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_2sigma_Sig_EB");
0339 
0340   MonitorElement* meEle_pt_MTD_3sigma_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_3sigma_Sig_EB");
0341   MonitorElement* meEle_eta_MTD_3sigma_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_3sigma_Sig_EB");
0342   MonitorElement* meEle_phi_MTD_3sigma_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_3sigma_Sig_EB");
0343 
0344   MonitorElement* meEle_pt_MTD_4sigma_Sig_EB_ = igetter.get(folder_ + "Ele_pT_MTD_4sigma_Sig_EB");
0345   MonitorElement* meEle_eta_MTD_4sigma_Sig_EB_ = igetter.get(folder_ + "Ele_eta_MTD_4sigma_Sig_EB");
0346   MonitorElement* meEle_phi_MTD_4sigma_Sig_EB_ = igetter.get(folder_ + "Ele_phi_MTD_4sigma_Sig_EB");
0347 
0348   MonitorElement* meEle_pt_tot_Sig_EE_ = igetter.get(folder_ + "Ele_pT_tot_Sig_EE");
0349   MonitorElement* meEle_pt_sim_tot_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_tot_Sig_EE");
0350   MonitorElement* meEle_pt_noMTD_Sig_EE_ = igetter.get(folder_ + "Ele_pT_noMTD_Sig_EE");
0351   MonitorElement* meEle_pt_gen_Sig_EE_ = igetter.get(folder_ + "Ele_pT_gen_Sig_EE");
0352 
0353   MonitorElement* meEle_eta_tot_Sig_EE_ = igetter.get(folder_ + "Ele_eta_tot_Sig_EE");
0354   MonitorElement* meEle_eta_noMTD_Sig_EE_ = igetter.get(folder_ + "Ele_eta_noMTD_Sig_EE");
0355 
0356   MonitorElement* meEle_phi_tot_Sig_EE_ = igetter.get(folder_ + "Ele_phi_tot_Sig_EE");
0357   MonitorElement* meEle_phi_noMTD_Sig_EE_ = igetter.get(folder_ + "Ele_phi_noMTD_Sig_EE");
0358   MonitorElement* meEle_pt_MTD_1_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_1_Sig_EE");
0359   MonitorElement* meEle_eta_MTD_1_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_1_Sig_EE");
0360   MonitorElement* meEle_phi_MTD_1_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_1_Sig_EE");
0361 
0362   MonitorElement* meEle_pt_MTD_2_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_2_Sig_EE");
0363   MonitorElement* meEle_eta_MTD_2_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_2_Sig_EE");
0364   MonitorElement* meEle_phi_MTD_2_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_2_Sig_EE");
0365 
0366   MonitorElement* meEle_pt_MTD_3_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_3_Sig_EE");
0367   MonitorElement* meEle_eta_MTD_3_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_3_Sig_EE");
0368   MonitorElement* meEle_phi_MTD_3_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_3_Sig_EE");
0369 
0370   MonitorElement* meEle_pt_MTD_4_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_4_Sig_EE");
0371   MonitorElement* meEle_eta_MTD_4_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_4_Sig_EE");
0372   MonitorElement* meEle_phi_MTD_4_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_4_Sig_EE");
0373 
0374   MonitorElement* meEle_pt_MTD_5_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_5_Sig_EE");
0375   MonitorElement* meEle_eta_MTD_5_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_5_Sig_EE");
0376   MonitorElement* meEle_phi_MTD_5_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_5_Sig_EE");
0377 
0378   MonitorElement* meEle_pt_MTD_6_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_6_Sig_EE");
0379   MonitorElement* meEle_eta_MTD_6_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_6_Sig_EE");
0380   MonitorElement* meEle_phi_MTD_6_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_6_Sig_EE");
0381 
0382   MonitorElement* meEle_pt_MTD_7_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_7_Sig_EE");
0383   MonitorElement* meEle_eta_MTD_7_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_7_Sig_EE");
0384   MonitorElement* meEle_phi_MTD_7_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_7_Sig_EE");
0385 
0386   MonitorElement* meEle_pt_sim_MTD_1_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_1_Sig_EE");
0387   MonitorElement* meEle_pt_sim_MTD_2_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_2_Sig_EE");
0388   MonitorElement* meEle_pt_sim_MTD_3_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_3_Sig_EE");
0389   MonitorElement* meEle_pt_sim_MTD_4_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_4_Sig_EE");
0390   MonitorElement* meEle_pt_sim_MTD_5_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_5_Sig_EE");
0391   MonitorElement* meEle_pt_sim_MTD_6_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_6_Sig_EE");
0392   MonitorElement* meEle_pt_sim_MTD_7_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_7_Sig_EE");
0393 
0394   MonitorElement* meEle_pt_sim_MTD_2sigma_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_2sigma_Sig_EE");
0395   MonitorElement* meEle_pt_sim_MTD_3sigma_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_3sigma_Sig_EE");
0396   MonitorElement* meEle_pt_sim_MTD_4sigma_Sig_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_4sigma_Sig_EE");
0397 
0398   MonitorElement* meEle_pt_MTD_2sigma_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_2sigma_Sig_EE");
0399   MonitorElement* meEle_eta_MTD_2sigma_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_2sigma_Sig_EE");
0400   MonitorElement* meEle_phi_MTD_2sigma_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_2sigma_Sig_EE");
0401 
0402   MonitorElement* meEle_pt_MTD_3sigma_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_3sigma_Sig_EE");
0403   MonitorElement* meEle_eta_MTD_3sigma_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_3sigma_Sig_EE");
0404   MonitorElement* meEle_phi_MTD_3sigma_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_3sigma_Sig_EE");
0405 
0406   MonitorElement* meEle_pt_MTD_4sigma_Sig_EE_ = igetter.get(folder_ + "Ele_pT_MTD_4sigma_Sig_EE");
0407   MonitorElement* meEle_eta_MTD_4sigma_Sig_EE_ = igetter.get(folder_ + "Ele_eta_MTD_4sigma_Sig_EE");
0408   MonitorElement* meEle_phi_MTD_4sigma_Sig_EE_ = igetter.get(folder_ + "Ele_phi_MTD_4sigma_Sig_EE");
0409 
0410   // for non-promt (background)
0411   MonitorElement* meEle_pt_tot_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_tot_Bkg_EB");
0412   MonitorElement* meEle_pt_sim_tot_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_tot_Bkg_EB");
0413   MonitorElement* meEle_pt_noMTD_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_noMTD_Bkg_EB");
0414   MonitorElement* meEle_pt_gen_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_gen_Bkg_EB");
0415 
0416   MonitorElement* meEle_eta_tot_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_tot_Bkg_EB");
0417   MonitorElement* meEle_eta_noMTD_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_noMTD_Bkg_EB");
0418 
0419   MonitorElement* meEle_phi_tot_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_tot_Bkg_EB");
0420   MonitorElement* meEle_phi_noMTD_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_noMTD_Bkg_EB");
0421   MonitorElement* meEle_pt_MTD_1_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_1_Bkg_EB");
0422   MonitorElement* meEle_eta_MTD_1_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_1_Bkg_EB");
0423   MonitorElement* meEle_phi_MTD_1_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_1_Bkg_EB");
0424 
0425   MonitorElement* meEle_pt_MTD_2_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_2_Bkg_EB");
0426   MonitorElement* meEle_eta_MTD_2_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_2_Bkg_EB");
0427   MonitorElement* meEle_phi_MTD_2_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_2_Bkg_EB");
0428 
0429   MonitorElement* meEle_pt_MTD_3_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_3_Bkg_EB");
0430   MonitorElement* meEle_eta_MTD_3_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_3_Bkg_EB");
0431   MonitorElement* meEle_phi_MTD_3_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_3_Bkg_EB");
0432 
0433   MonitorElement* meEle_pt_MTD_4_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_4_Bkg_EB");
0434   MonitorElement* meEle_eta_MTD_4_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_4_Bkg_EB");
0435   MonitorElement* meEle_phi_MTD_4_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_4_Bkg_EB");
0436 
0437   MonitorElement* meEle_pt_MTD_5_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_5_Bkg_EB");
0438   MonitorElement* meEle_eta_MTD_5_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_5_Bkg_EB");
0439   MonitorElement* meEle_phi_MTD_5_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_5_Bkg_EB");
0440 
0441   MonitorElement* meEle_pt_MTD_6_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_6_Bkg_EB");
0442   MonitorElement* meEle_eta_MTD_6_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_6_Bkg_EB");
0443   MonitorElement* meEle_phi_MTD_6_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_6_Bkg_EB");
0444 
0445   MonitorElement* meEle_pt_MTD_7_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_7_Bkg_EB");
0446   MonitorElement* meEle_eta_MTD_7_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_7_Bkg_EB");
0447   MonitorElement* meEle_phi_MTD_7_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_7_Bkg_EB");
0448 
0449   MonitorElement* meEle_pt_sim_MTD_1_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_1_Bkg_EB");
0450   MonitorElement* meEle_pt_sim_MTD_2_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_2_Bkg_EB");
0451   MonitorElement* meEle_pt_sim_MTD_3_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_3_Bkg_EB");
0452   MonitorElement* meEle_pt_sim_MTD_4_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_4_Bkg_EB");
0453   MonitorElement* meEle_pt_sim_MTD_5_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_5_Bkg_EB");
0454   MonitorElement* meEle_pt_sim_MTD_6_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_6_Bkg_EB");
0455   MonitorElement* meEle_pt_sim_MTD_7_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_7_Bkg_EB");
0456 
0457   MonitorElement* meEle_pt_sim_MTD_2sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_2sigma_Bkg_EB");
0458   MonitorElement* meEle_pt_sim_MTD_3sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_3sigma_Bkg_EB");
0459   MonitorElement* meEle_pt_sim_MTD_4sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_sim_MTD_4sigma_Bkg_EB");
0460 
0461   MonitorElement* meEle_pt_MTD_2sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_2sigma_Bkg_EB");
0462   MonitorElement* meEle_eta_MTD_2sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_2sigma_Bkg_EB");
0463   MonitorElement* meEle_phi_MTD_2sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_2sigma_Bkg_EB");
0464 
0465   MonitorElement* meEle_pt_MTD_3sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_3sigma_Bkg_EB");
0466   MonitorElement* meEle_eta_MTD_3sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_3sigma_Bkg_EB");
0467   MonitorElement* meEle_phi_MTD_3sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_3sigma_Bkg_EB");
0468 
0469   MonitorElement* meEle_pt_MTD_4sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_pT_MTD_4sigma_Bkg_EB");
0470   MonitorElement* meEle_eta_MTD_4sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_eta_MTD_4sigma_Bkg_EB");
0471   MonitorElement* meEle_phi_MTD_4sigma_Bkg_EB_ = igetter.get(folder_ + "Ele_phi_MTD_4sigma_Bkg_EB");
0472 
0473   MonitorElement* meEle_pt_tot_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_tot_Bkg_EE");
0474   MonitorElement* meEle_pt_sim_tot_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_tot_Bkg_EE");
0475   MonitorElement* meEle_pt_noMTD_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_noMTD_Bkg_EE");
0476   MonitorElement* meEle_pt_gen_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_gen_Bkg_EE");
0477 
0478   MonitorElement* meEle_eta_tot_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_tot_Bkg_EE");
0479   MonitorElement* meEle_eta_noMTD_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_noMTD_Bkg_EE");
0480 
0481   MonitorElement* meEle_phi_tot_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_tot_Bkg_EE");
0482   MonitorElement* meEle_phi_noMTD_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_noMTD_Bkg_EE");
0483   MonitorElement* meEle_pt_MTD_1_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_1_Bkg_EE");
0484   MonitorElement* meEle_eta_MTD_1_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_1_Bkg_EE");
0485   MonitorElement* meEle_phi_MTD_1_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_1_Bkg_EE");
0486 
0487   MonitorElement* meEle_pt_MTD_2_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_2_Bkg_EE");
0488   MonitorElement* meEle_eta_MTD_2_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_2_Bkg_EE");
0489   MonitorElement* meEle_phi_MTD_2_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_2_Bkg_EE");
0490 
0491   MonitorElement* meEle_pt_MTD_3_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_3_Bkg_EE");
0492   MonitorElement* meEle_eta_MTD_3_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_3_Bkg_EE");
0493   MonitorElement* meEle_phi_MTD_3_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_3_Bkg_EE");
0494 
0495   MonitorElement* meEle_pt_MTD_4_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_4_Bkg_EE");
0496   MonitorElement* meEle_eta_MTD_4_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_4_Bkg_EE");
0497   MonitorElement* meEle_phi_MTD_4_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_4_Bkg_EE");
0498 
0499   MonitorElement* meEle_pt_MTD_5_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_5_Bkg_EE");
0500   MonitorElement* meEle_eta_MTD_5_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_5_Bkg_EE");
0501   MonitorElement* meEle_phi_MTD_5_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_5_Bkg_EE");
0502 
0503   MonitorElement* meEle_pt_MTD_6_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_6_Bkg_EE");
0504   MonitorElement* meEle_eta_MTD_6_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_6_Bkg_EE");
0505   MonitorElement* meEle_phi_MTD_6_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_6_Bkg_EE");
0506 
0507   MonitorElement* meEle_pt_MTD_7_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_7_Bkg_EE");
0508   MonitorElement* meEle_eta_MTD_7_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_7_Bkg_EE");
0509   MonitorElement* meEle_phi_MTD_7_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_7_Bkg_EE");
0510 
0511   MonitorElement* meEle_pt_sim_MTD_1_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_1_Bkg_EE");
0512   MonitorElement* meEle_pt_sim_MTD_2_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_2_Bkg_EE");
0513   MonitorElement* meEle_pt_sim_MTD_3_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_3_Bkg_EE");
0514   MonitorElement* meEle_pt_sim_MTD_4_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_4_Bkg_EE");
0515   MonitorElement* meEle_pt_sim_MTD_5_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_5_Bkg_EE");
0516   MonitorElement* meEle_pt_sim_MTD_6_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_6_Bkg_EE");
0517   MonitorElement* meEle_pt_sim_MTD_7_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_7_Bkg_EE");
0518 
0519   MonitorElement* meEle_pt_sim_MTD_2sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_2sigma_Bkg_EE");
0520   MonitorElement* meEle_pt_sim_MTD_3sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_3sigma_Bkg_EE");
0521   MonitorElement* meEle_pt_sim_MTD_4sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_sim_MTD_4sigma_Bkg_EE");
0522 
0523   MonitorElement* meEle_pt_MTD_2sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_2sigma_Bkg_EE");
0524   MonitorElement* meEle_eta_MTD_2sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_2sigma_Bkg_EE");
0525   MonitorElement* meEle_phi_MTD_2sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_2sigma_Bkg_EE");
0526 
0527   MonitorElement* meEle_pt_MTD_3sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_3sigma_Bkg_EE");
0528   MonitorElement* meEle_eta_MTD_3sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_3sigma_Bkg_EE");
0529   MonitorElement* meEle_phi_MTD_3sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_3sigma_Bkg_EE");
0530 
0531   MonitorElement* meEle_pt_MTD_4sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_pT_MTD_4sigma_Bkg_EE");
0532   MonitorElement* meEle_eta_MTD_4sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_eta_MTD_4sigma_Bkg_EE");
0533   MonitorElement* meEle_phi_MTD_4sigma_Bkg_EE_ = igetter.get(folder_ + "Ele_phi_MTD_4sigma_Bkg_EE");
0534   if (optionalPlots_) {
0535     if (!meEle_pt_tot_Sig_EB_ || !meEle_pt_MTD_1_Sig_EB_ || !meEle_pt_MTD_2_Sig_EB_ || !meEle_pt_MTD_3_Sig_EB_ ||
0536         !meEle_pt_MTD_4_Sig_EB_ || !meEle_pt_MTD_5_Sig_EB_ || !meEle_pt_MTD_6_Sig_EB_ || !meEle_pt_MTD_7_Sig_EB_ ||
0537         !meEle_pt_noMTD_Sig_EB_ || !meEle_eta_tot_Sig_EB_ || !meEle_eta_MTD_1_Sig_EB_ || !meEle_eta_MTD_2_Sig_EB_ ||
0538         !meEle_eta_MTD_3_Sig_EB_ || !meEle_eta_MTD_4_Sig_EB_ || !meEle_eta_MTD_5_Sig_EB_ || !meEle_eta_MTD_6_Sig_EB_ ||
0539         !meEle_eta_MTD_7_Sig_EB_ || !meEle_eta_noMTD_Sig_EB_ || !meEle_phi_tot_Sig_EB_ || !meEle_phi_MTD_1_Sig_EB_ ||
0540         !meEle_phi_MTD_2_Sig_EB_ || !meEle_phi_MTD_3_Sig_EB_ || !meEle_phi_MTD_4_Sig_EB_ || !meEle_phi_MTD_5_Sig_EB_ ||
0541         !meEle_phi_MTD_6_Sig_EB_ || !meEle_phi_MTD_7_Sig_EB_ || !meEle_phi_noMTD_Sig_EB_ || !meEle_pt_tot_Sig_EE_ ||
0542         !meEle_pt_MTD_1_Sig_EE_ || !meEle_pt_MTD_2_Sig_EE_ || !meEle_pt_MTD_3_Sig_EE_ || !meEle_pt_MTD_4_Sig_EE_ ||
0543         !meEle_pt_MTD_5_Sig_EE_ || !meEle_pt_MTD_6_Sig_EE_ || !meEle_pt_MTD_7_Sig_EE_ || !meEle_pt_noMTD_Sig_EE_ ||
0544         !meEle_eta_tot_Sig_EE_ || !meEle_eta_MTD_1_Sig_EE_ || !meEle_eta_MTD_2_Sig_EE_ || !meEle_eta_MTD_3_Sig_EE_ ||
0545         !meEle_eta_MTD_4_Sig_EE_ || !meEle_eta_MTD_5_Sig_EE_ || !meEle_eta_MTD_6_Sig_EE_ || !meEle_eta_MTD_7_Sig_EE_ ||
0546         !meEle_eta_noMTD_Sig_EE_ || !meEle_phi_tot_Sig_EE_ || !meEle_phi_MTD_1_Sig_EE_ || !meEle_phi_MTD_2_Sig_EE_ ||
0547         !meEle_phi_MTD_3_Sig_EE_ || !meEle_phi_MTD_4_Sig_EE_ || !meEle_phi_MTD_5_Sig_EE_ || !meEle_phi_MTD_6_Sig_EE_ ||
0548         !meEle_phi_MTD_7_Sig_EE_ || !meEle_phi_noMTD_Sig_EE_ || !meEle_pt_tot_Bkg_EB_ || !meEle_pt_MTD_1_Bkg_EB_ ||
0549         !meEle_pt_MTD_2_Bkg_EB_ || !meEle_pt_MTD_3_Bkg_EB_ || !meEle_pt_MTD_4_Bkg_EB_ || !meEle_pt_MTD_5_Bkg_EB_ ||
0550         !meEle_pt_MTD_6_Bkg_EB_ || !meEle_pt_MTD_7_Bkg_EB_ || !meEle_pt_noMTD_Bkg_EB_ || !meEle_eta_tot_Bkg_EB_ ||
0551         !meEle_eta_MTD_1_Bkg_EB_ || !meEle_eta_MTD_2_Bkg_EB_ || !meEle_eta_MTD_3_Bkg_EB_ || !meEle_eta_MTD_4_Bkg_EB_ ||
0552         !meEle_eta_MTD_5_Bkg_EB_ || !meEle_eta_MTD_6_Bkg_EB_ || !meEle_eta_MTD_7_Bkg_EB_ || !meEle_eta_noMTD_Bkg_EB_ ||
0553         !meEle_phi_tot_Bkg_EB_ || !meEle_phi_MTD_1_Bkg_EB_ || !meEle_phi_MTD_2_Bkg_EB_ || !meEle_phi_MTD_3_Bkg_EB_ ||
0554         !meEle_phi_MTD_4_Bkg_EB_ || !meEle_phi_MTD_5_Bkg_EB_ || !meEle_phi_MTD_6_Bkg_EB_ || !meEle_phi_MTD_7_Bkg_EB_ ||
0555         !meEle_phi_noMTD_Bkg_EB_ || !meEle_pt_tot_Bkg_EE_ || !meEle_pt_MTD_1_Bkg_EE_ || !meEle_pt_MTD_2_Bkg_EE_ ||
0556         !meEle_pt_MTD_3_Bkg_EE_ || !meEle_pt_MTD_4_Bkg_EE_ || !meEle_pt_MTD_5_Bkg_EE_ || !meEle_pt_MTD_6_Bkg_EE_ ||
0557         !meEle_pt_MTD_7_Bkg_EE_ || !meEle_pt_noMTD_Bkg_EE_ || !meEle_eta_tot_Bkg_EE_ || !meEle_eta_MTD_1_Bkg_EE_ ||
0558         !meEle_eta_MTD_2_Bkg_EE_ || !meEle_eta_MTD_3_Bkg_EE_ || !meEle_eta_MTD_4_Bkg_EE_ || !meEle_eta_MTD_5_Bkg_EE_ ||
0559         !meEle_eta_MTD_6_Bkg_EE_ || !meEle_eta_MTD_7_Bkg_EE_ || !meEle_eta_noMTD_Bkg_EE_ || !meEle_phi_tot_Bkg_EE_ ||
0560         !meEle_phi_MTD_1_Bkg_EE_ || !meEle_phi_MTD_2_Bkg_EE_ || !meEle_phi_MTD_3_Bkg_EE_ || !meEle_phi_MTD_4_Bkg_EE_ ||
0561         !meEle_phi_MTD_5_Bkg_EE_ || !meEle_phi_MTD_6_Bkg_EE_ || !meEle_phi_MTD_7_Bkg_EE_ || !meEle_phi_noMTD_Bkg_EE_ ||
0562         !meEle_pt_sim_MTD_1_Sig_EB_ || !meEle_pt_sim_MTD_2_Sig_EB_ || !meEle_pt_sim_MTD_3_Sig_EB_ ||
0563         !meEle_pt_sim_MTD_4_Sig_EB_ || !meEle_pt_sim_MTD_5_Sig_EB_ || !meEle_pt_sim_MTD_6_Sig_EB_ ||
0564         !meEle_pt_sim_MTD_7_Sig_EB_ || !meEle_pt_sim_MTD_1_Sig_EE_ || !meEle_pt_sim_MTD_2_Sig_EE_ ||
0565         !meEle_pt_sim_MTD_3_Sig_EE_ || !meEle_pt_sim_MTD_4_Sig_EE_ || !meEle_pt_sim_MTD_5_Sig_EE_ ||
0566         !meEle_pt_sim_MTD_6_Sig_EE_ || !meEle_pt_sim_MTD_7_Sig_EE_ || !meEle_pt_sim_MTD_1_Bkg_EB_ ||
0567         !meEle_pt_sim_MTD_2_Bkg_EB_ || !meEle_pt_sim_MTD_3_Bkg_EB_ || !meEle_pt_sim_MTD_4_Bkg_EB_ ||
0568         !meEle_pt_sim_MTD_5_Bkg_EB_ || !meEle_pt_sim_MTD_6_Bkg_EB_ || !meEle_pt_sim_MTD_7_Bkg_EB_ ||
0569         !meEle_pt_sim_MTD_1_Bkg_EE_ || !meEle_pt_sim_MTD_2_Bkg_EE_ || !meEle_pt_sim_MTD_3_Bkg_EE_ ||
0570         !meEle_pt_sim_MTD_4_Bkg_EE_ || !meEle_pt_sim_MTD_5_Bkg_EE_ || !meEle_pt_sim_MTD_6_Bkg_EE_ ||
0571         !meEle_pt_sim_MTD_7_Bkg_EE_ || !meEle_pt_MTD_4sigma_Sig_EB_ || !meEle_pt_MTD_3sigma_Sig_EB_ ||
0572         !meEle_pt_MTD_2sigma_Sig_EB_ || !meEle_pt_MTD_4sigma_Sig_EE_ || !meEle_pt_MTD_3sigma_Sig_EE_ ||
0573         !meEle_pt_MTD_2sigma_Sig_EE_ || !meEle_pt_MTD_4sigma_Bkg_EB_ || !meEle_pt_MTD_3sigma_Bkg_EB_ ||
0574         !meEle_pt_MTD_2sigma_Bkg_EB_ || !meEle_pt_MTD_4sigma_Bkg_EE_ || !meEle_pt_MTD_3sigma_Bkg_EE_ ||
0575         !meEle_pt_MTD_2sigma_Bkg_EE_ || !meEle_pt_sim_MTD_4sigma_Sig_EB_ || !meEle_pt_sim_MTD_3sigma_Sig_EB_ ||
0576         !meEle_pt_sim_MTD_2sigma_Sig_EB_ || !meEle_pt_sim_MTD_4sigma_Sig_EE_ || !meEle_pt_sim_MTD_3sigma_Sig_EE_ ||
0577         !meEle_pt_sim_MTD_2sigma_Sig_EE_ || !meEle_pt_sim_MTD_4sigma_Bkg_EB_ || !meEle_pt_sim_MTD_3sigma_Bkg_EB_ ||
0578         !meEle_pt_sim_MTD_2sigma_Bkg_EB_ || !meEle_pt_sim_MTD_4sigma_Bkg_EE_ || !meEle_pt_sim_MTD_3sigma_Bkg_EE_ ||
0579         !meEle_pt_sim_MTD_2sigma_Bkg_EE_ || !meEle_pt_gen_Sig_EB_ || !meEle_pt_gen_Sig_EE_ || !meEle_pt_gen_Bkg_EB_ ||
0580         !meEle_pt_gen_Bkg_EE_ || !meEle_eta_MTD_4sigma_Sig_EB_ || !meEle_eta_MTD_3sigma_Sig_EB_ ||
0581         !meEle_eta_MTD_2sigma_Sig_EB_ || !meEle_phi_MTD_4sigma_Sig_EB_ || !meEle_phi_MTD_3sigma_Sig_EB_ ||
0582         !meEle_phi_MTD_2sigma_Sig_EB_ || !meEle_eta_MTD_4sigma_Sig_EE_ || !meEle_eta_MTD_3sigma_Sig_EE_ ||
0583         !meEle_eta_MTD_2sigma_Sig_EE_ || !meEle_phi_MTD_4sigma_Sig_EE_ || !meEle_phi_MTD_3sigma_Sig_EE_ ||
0584         !meEle_phi_MTD_2sigma_Sig_EE_ || !meEle_eta_MTD_4sigma_Bkg_EB_ || !meEle_eta_MTD_3sigma_Bkg_EB_ ||
0585         !meEle_eta_MTD_2sigma_Bkg_EB_ || !meEle_phi_MTD_4sigma_Bkg_EB_ || !meEle_phi_MTD_3sigma_Bkg_EB_ ||
0586         !meEle_phi_MTD_2sigma_Bkg_EB_ || !meEle_eta_MTD_4sigma_Bkg_EE_ || !meEle_eta_MTD_3sigma_Bkg_EE_ ||
0587         !meEle_eta_MTD_2sigma_Bkg_EE_ || !meEle_phi_MTD_4sigma_Bkg_EE_ || !meEle_phi_MTD_3sigma_Bkg_EE_ ||
0588         !meEle_phi_MTD_2sigma_Bkg_EE_) {
0589       edm::LogError("MtdEleIsoHarvester") << "Monitoring histograms not found!" << std::endl;
0590       return;
0591     }
0592   } else {
0593     if (!meEle_pt_tot_Sig_EB_ || !meEle_pt_noMTD_Sig_EB_ || !meEle_eta_tot_Sig_EB_ || !meEle_eta_noMTD_Sig_EB_ ||
0594         !meEle_phi_tot_Sig_EB_ || !meEle_phi_noMTD_Sig_EB_ || !meEle_pt_tot_Sig_EE_ || !meEle_pt_noMTD_Sig_EE_ ||
0595         !meEle_eta_tot_Sig_EE_ || !meEle_eta_noMTD_Sig_EE_ || !meEle_phi_tot_Sig_EE_ || !meEle_phi_noMTD_Sig_EE_ ||
0596         !meEle_pt_tot_Bkg_EB_ || !meEle_pt_noMTD_Bkg_EB_ || !meEle_eta_tot_Bkg_EB_ || !meEle_eta_noMTD_Bkg_EB_ ||
0597         !meEle_phi_tot_Bkg_EB_ || !meEle_phi_noMTD_Bkg_EB_ || !meEle_pt_tot_Bkg_EE_ || !meEle_pt_noMTD_Bkg_EE_ ||
0598         !meEle_eta_tot_Bkg_EE_ || !meEle_eta_noMTD_Bkg_EE_ || !meEle_phi_tot_Bkg_EE_ || !meEle_phi_noMTD_Bkg_EE_ ||
0599         !meEle_pt_MTD_4sigma_Sig_EB_ || !meEle_pt_MTD_3sigma_Sig_EB_ || !meEle_pt_MTD_2sigma_Sig_EB_ ||
0600         !meEle_pt_MTD_4sigma_Sig_EE_ || !meEle_pt_MTD_3sigma_Sig_EE_ || !meEle_pt_MTD_2sigma_Sig_EE_ ||
0601         !meEle_pt_MTD_4sigma_Bkg_EB_ || !meEle_pt_MTD_3sigma_Bkg_EB_ || !meEle_pt_MTD_2sigma_Bkg_EB_ ||
0602         !meEle_pt_MTD_4sigma_Bkg_EE_ || !meEle_pt_MTD_3sigma_Bkg_EE_ || !meEle_pt_MTD_2sigma_Bkg_EE_ ||
0603         !meEle_eta_MTD_4sigma_Sig_EB_ || !meEle_eta_MTD_3sigma_Sig_EB_ || !meEle_eta_MTD_2sigma_Sig_EB_ ||
0604         !meEle_phi_MTD_4sigma_Sig_EB_ || !meEle_phi_MTD_3sigma_Sig_EB_ || !meEle_phi_MTD_2sigma_Sig_EB_ ||
0605         !meEle_eta_MTD_4sigma_Sig_EE_ || !meEle_eta_MTD_3sigma_Sig_EE_ || !meEle_eta_MTD_2sigma_Sig_EE_ ||
0606         !meEle_phi_MTD_4sigma_Sig_EE_ || !meEle_phi_MTD_3sigma_Sig_EE_ || !meEle_phi_MTD_2sigma_Sig_EE_ ||
0607         !meEle_eta_MTD_4sigma_Bkg_EB_ || !meEle_eta_MTD_3sigma_Bkg_EB_ || !meEle_eta_MTD_2sigma_Bkg_EB_ ||
0608         !meEle_phi_MTD_4sigma_Bkg_EB_ || !meEle_phi_MTD_3sigma_Bkg_EB_ || !meEle_phi_MTD_2sigma_Bkg_EB_ ||
0609         !meEle_eta_MTD_4sigma_Bkg_EE_ || !meEle_eta_MTD_3sigma_Bkg_EE_ || !meEle_eta_MTD_2sigma_Bkg_EE_ ||
0610         !meEle_phi_MTD_4sigma_Bkg_EE_ || !meEle_phi_MTD_3sigma_Bkg_EE_ || !meEle_phi_MTD_2sigma_Bkg_EE_) {
0611       edm::LogError("MtdEleIsoHarvester") << "Monitoring histograms not found!" << std::endl;
0612       return;
0613     }
0614   }
0615   // --- Book  histograms
0616   ibook.cd(folder_);
0617   // ele iso addition starts; MTD vs noMTD case
0618   /////////////////////////////////////////////////////// For promt (signal)
0619   if (optionalPlots_) {
0620     mePtEffMTD_1_Sig_EB_ = ibook.book1D("pTeffMTD_1_Sig_EB",
0621                                         " MTD isolation Efficiency 1 Signal Barrel VS pT;p_{T};Efficiency",
0622                                         meEle_pt_tot_Sig_EB_->getNbinsX(),
0623                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0624                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0625     mePtEffMTD_1_Sig_EB_->getTH1()->SetMinimum(0.);
0626     computeEfficiency1D(meEle_pt_MTD_1_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_1_Sig_EB_);
0627 
0628     mePtEffMTD_2_Sig_EB_ = ibook.book1D("pTeffMTD_2_Sig_EB",
0629                                         " MTD isolation Efficiency 2 Signal Barrel VS pT;p_{T};Efficiency",
0630                                         meEle_pt_tot_Sig_EB_->getNbinsX(),
0631                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0632                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0633     mePtEffMTD_2_Sig_EB_->getTH1()->SetMinimum(0.);
0634     computeEfficiency1D(meEle_pt_MTD_2_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_2_Sig_EB_);
0635 
0636     mePtEffMTD_3_Sig_EB_ = ibook.book1D("pTeffMTD_3_Sig_EB",
0637                                         " MTD isolation Efficiency 3 Signal Barrel VS pT;p_{T};Efficiency",
0638                                         meEle_pt_tot_Sig_EB_->getNbinsX(),
0639                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0640                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0641     mePtEffMTD_3_Sig_EB_->getTH1()->SetMinimum(0.);
0642     computeEfficiency1D(meEle_pt_MTD_3_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_3_Sig_EB_);
0643 
0644     mePtEffMTD_4_Sig_EB_ = ibook.book1D("pTeffMTD_4_Sig_EB",
0645                                         " MTD isolation Efficiency 4 Signal Barrel VS pT;p_{T};Efficiency",
0646                                         meEle_pt_tot_Sig_EB_->getNbinsX(),
0647                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0648                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0649     mePtEffMTD_4_Sig_EB_->getTH1()->SetMinimum(0.);
0650     computeEfficiency1D(meEle_pt_MTD_4_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_4_Sig_EB_);
0651 
0652     mePtEffMTD_5_Sig_EB_ = ibook.book1D("pTeffMTD_5_Sig_EB",
0653                                         " MTD isolation Efficiency 5 Signal Barrel VS pT;p_{T};Efficiency",
0654                                         meEle_pt_tot_Sig_EB_->getNbinsX(),
0655                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0656                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0657     mePtEffMTD_5_Sig_EB_->getTH1()->SetMinimum(0.);
0658     computeEfficiency1D(meEle_pt_MTD_5_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_5_Sig_EB_);
0659 
0660     mePtEffMTD_6_Sig_EB_ = ibook.book1D("pTeffMTD_6_Sig_EB",
0661                                         " MTD isolation Efficiency 6 Signal Barrel VS pT;p_{T};Efficiency",
0662                                         meEle_pt_tot_Sig_EB_->getNbinsX(),
0663                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0664                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0665     mePtEffMTD_6_Sig_EB_->getTH1()->SetMinimum(0.);
0666     computeEfficiency1D(meEle_pt_MTD_6_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_6_Sig_EB_);
0667 
0668     mePtEffMTD_7_Sig_EB_ = ibook.book1D("pTeffMTD_7_Sig_EB",
0669                                         " MTD isolation Efficiency 7 Signal Barrel VS pT;p_{T};Efficiency",
0670                                         meEle_pt_tot_Sig_EB_->getNbinsX(),
0671                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0672                                         meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0673     mePtEffMTD_7_Sig_EB_->getTH1()->SetMinimum(0.);
0674     computeEfficiency1D(meEle_pt_MTD_7_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_7_Sig_EB_);
0675 
0676     mePtEffMTD_sim_1_Sig_EB_ = ibook.book1D("mePtEffMTD_sim_1_Sig_EB",
0677                                             " MTD isolation Efficiency 1 SIM Signal barrel VS pT;p_{T};Efficiency",
0678                                             meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0679                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0680                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0681     mePtEffMTD_sim_1_Sig_EB_->getTH1()->SetMinimum(0.);
0682     computeEfficiency1D(meEle_pt_sim_MTD_1_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_1_Sig_EB_);
0683 
0684     mePtEffMTD_sim_2_Sig_EB_ = ibook.book1D("mePtEffMTD_sim_2_Sig_EB",
0685                                             " MTD isolation Efficiency 2 SIM Signal barrel VS pT;p_{T};Efficiency",
0686                                             meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0687                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0688                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0689     mePtEffMTD_sim_2_Sig_EB_->getTH1()->SetMinimum(0.);
0690     computeEfficiency1D(meEle_pt_sim_MTD_2_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_2_Sig_EB_);
0691 
0692     mePtEffMTD_sim_3_Sig_EB_ = ibook.book1D("mePtEffMTD_sim_3_Sig_EB",
0693                                             " MTD isolation Efficiency 3 SIM Signal barrel VS pT;p_{T};Efficiency",
0694                                             meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0695                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0696                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0697     mePtEffMTD_sim_3_Sig_EB_->getTH1()->SetMinimum(0.);
0698     computeEfficiency1D(meEle_pt_sim_MTD_3_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_3_Sig_EB_);
0699 
0700     mePtEffMTD_sim_4_Sig_EB_ = ibook.book1D("mePtEffMTD_sim_4_Sig_EB",
0701                                             " MTD isolation Efficiency 4 SIM Signal barrel VS pT;p_{T};Efficiency",
0702                                             meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0703                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0704                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0705     mePtEffMTD_sim_4_Sig_EB_->getTH1()->SetMinimum(0.);
0706     computeEfficiency1D(meEle_pt_sim_MTD_4_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_4_Sig_EB_);
0707 
0708     mePtEffMTD_sim_5_Sig_EB_ = ibook.book1D("mePtEffMTD_sim_5_Sig_EB",
0709                                             " MTD isolation Efficiency 5 SIM Signal barrel VS pT;p_{T};Efficiency",
0710                                             meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0711                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0712                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0713     mePtEffMTD_sim_5_Sig_EB_->getTH1()->SetMinimum(0.);
0714     computeEfficiency1D(meEle_pt_sim_MTD_5_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_5_Sig_EB_);
0715 
0716     mePtEffMTD_sim_6_Sig_EB_ = ibook.book1D("mePtEffMTD_sim_6_Sig_EB",
0717                                             " MTD isolation Efficiency 6 SIM Signal barrel VS pT;p_{T};Efficiency",
0718                                             meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0719                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0720                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0721     mePtEffMTD_sim_6_Sig_EB_->getTH1()->SetMinimum(0.);
0722     computeEfficiency1D(meEle_pt_sim_MTD_6_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_6_Sig_EB_);
0723 
0724     mePtEffMTD_sim_7_Sig_EB_ = ibook.book1D("mePtEffMTD_sim_7_Sig_EB",
0725                                             " MTD isolation Efficiency 7 SIM Signal barrel VS pT;p_{T};Efficiency",
0726                                             meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0727                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0728                                             meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0729     mePtEffMTD_sim_7_Sig_EB_->getTH1()->SetMinimum(0.);
0730     computeEfficiency1D(meEle_pt_sim_MTD_7_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_7_Sig_EB_);
0731 
0732     mePtEffMTD_sim_4sigma_Sig_EB_ =
0733         ibook.book1D("pTeffMTD_sim_4sigma_Sig_EB",
0734                      " MTD isolation Efficiency SIM - 4 sigma compatibility - Signal Barrel VS pT;p_{T};Efficiency",
0735                      meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0736                      meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0737                      meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0738     mePtEffMTD_sim_4sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0739     computeEfficiency1D(meEle_pt_sim_MTD_4sigma_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_4sigma_Sig_EB_);
0740 
0741     mePtEffMTD_sim_3sigma_Sig_EB_ =
0742         ibook.book1D("pTeffMTD_sim_3sigma_Sig_EB",
0743                      " MTD isolation Efficiency SIM - 3 sigma compatibility - Signal Barrel VS pT;p_{T};Efficiency",
0744                      meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0745                      meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0746                      meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0747     mePtEffMTD_sim_3sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0748     computeEfficiency1D(meEle_pt_sim_MTD_3sigma_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_3sigma_Sig_EB_);
0749 
0750     mePtEffMTD_sim_2sigma_Sig_EB_ =
0751         ibook.book1D("pTeffMTD_sim_2sigma_Sig_EB",
0752                      " MTD isolation Efficiency SIM - 2 sigma compatibility - Signal Barrel VS pT;p_{T};Efficiency",
0753                      meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0754                      meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0755                      meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0756     mePtEffMTD_sim_2sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0757     computeEfficiency1D(meEle_pt_sim_MTD_2sigma_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_sim_2sigma_Sig_EB_);
0758 
0759     meEtaEffMTD_1_Sig_EB_ = ibook.book1D("EtaEffMTD_1_Sig_EB",
0760                                          " MTD isolation Efficiency 1 Signal Barrel VS Eta;#eta;Efficiency",
0761                                          meEle_eta_tot_Sig_EB_->getNbinsX(),
0762                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0763                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0764     meEtaEffMTD_1_Sig_EB_->getTH1()->SetMinimum(0.);
0765     computeEfficiency1D(meEle_eta_MTD_1_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_1_Sig_EB_);
0766 
0767     meEtaEffMTD_2_Sig_EB_ = ibook.book1D("EtaEffMTD_2_Sig_EB",
0768                                          " MTD isolation Efficiency 2 Signal Barrel VS Eta;#eta;Efficiency",
0769                                          meEle_eta_tot_Sig_EB_->getNbinsX(),
0770                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0771                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0772     meEtaEffMTD_2_Sig_EB_->getTH1()->SetMinimum(0.);
0773     computeEfficiency1D(meEle_eta_MTD_2_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_2_Sig_EB_);
0774 
0775     meEtaEffMTD_3_Sig_EB_ = ibook.book1D("EtaEffMTD_3_Sig_EB",
0776                                          " MTD isolation Efficiency 3 Signal Barrel VS Eta;#eta;Efficiency",
0777                                          meEle_eta_tot_Sig_EB_->getNbinsX(),
0778                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0779                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0780     meEtaEffMTD_3_Sig_EB_->getTH1()->SetMinimum(0.);
0781     computeEfficiency1D(meEle_eta_MTD_3_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_3_Sig_EB_);
0782 
0783     meEtaEffMTD_4_Sig_EB_ = ibook.book1D("EtaEffMTD_4_Sig_EB",
0784                                          " MTD isolation Efficiency 4 Signal Barrel VS Eta;#eta;Efficiency",
0785                                          meEle_eta_tot_Sig_EB_->getNbinsX(),
0786                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0787                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0788     meEtaEffMTD_4_Sig_EB_->getTH1()->SetMinimum(0.);
0789     computeEfficiency1D(meEle_eta_MTD_4_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_4_Sig_EB_);
0790 
0791     meEtaEffMTD_5_Sig_EB_ = ibook.book1D("EtaEffMTD_5_Sig_EB",
0792                                          " MTD isolation Efficiency 5 Signal Barrel VS Eta;#eta;Efficiency",
0793                                          meEle_eta_tot_Sig_EB_->getNbinsX(),
0794                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0795                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0796     meEtaEffMTD_5_Sig_EB_->getTH1()->SetMinimum(0.);
0797     computeEfficiency1D(meEle_eta_MTD_5_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_5_Sig_EB_);
0798 
0799     meEtaEffMTD_6_Sig_EB_ = ibook.book1D("EtaEffMTD_6_Sig_EB",
0800                                          " MTD isolation Efficiency 6 Signal Barrel VS Eta;#eta;Efficiency",
0801                                          meEle_eta_tot_Sig_EB_->getNbinsX(),
0802                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0803                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0804     meEtaEffMTD_6_Sig_EB_->getTH1()->SetMinimum(0.);
0805     computeEfficiency1D(meEle_eta_MTD_6_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_6_Sig_EB_);
0806 
0807     meEtaEffMTD_7_Sig_EB_ = ibook.book1D("EtaEffMTD_7_Sig_EB",
0808                                          " MTD isolation Efficiency 7 Signal Barrel VS Eta;#eta;Efficiency",
0809                                          meEle_eta_tot_Sig_EB_->getNbinsX(),
0810                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0811                                          meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0812     meEtaEffMTD_7_Sig_EB_->getTH1()->SetMinimum(0.);
0813     computeEfficiency1D(meEle_eta_MTD_7_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_7_Sig_EB_);
0814 
0815     mePhiEffMTD_1_Sig_EB_ = ibook.book1D("PhiEffMTD_1_Sig_EB",
0816                                          " MTD isolation Efficiency 1 Signal Barrel VS Phi;#phi;Efficiency",
0817                                          meEle_phi_tot_Sig_EB_->getNbinsX(),
0818                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0819                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0820     mePhiEffMTD_1_Sig_EB_->getTH1()->SetMinimum(0.);
0821     computeEfficiency1D(meEle_phi_MTD_1_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_1_Sig_EB_);
0822 
0823     mePhiEffMTD_2_Sig_EB_ = ibook.book1D("PhiEffMTD_2_Sig_EB",
0824                                          " MTD isolation Efficiency 2 Signal Barrel VS Phi;#phi;Efficiency",
0825                                          meEle_phi_tot_Sig_EB_->getNbinsX(),
0826                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0827                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0828     mePhiEffMTD_2_Sig_EB_->getTH1()->SetMinimum(0.);
0829     computeEfficiency1D(meEle_phi_MTD_2_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_2_Sig_EB_);
0830 
0831     mePhiEffMTD_3_Sig_EB_ = ibook.book1D("PhiEffMTD_3_Sig_EB",
0832                                          " MTD isolation Efficiency 3 Signal Barrel VS Phi;#phi;Efficiency",
0833                                          meEle_phi_tot_Sig_EB_->getNbinsX(),
0834                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0835                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0836     mePhiEffMTD_3_Sig_EB_->getTH1()->SetMinimum(0.);
0837     computeEfficiency1D(meEle_phi_MTD_3_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_3_Sig_EB_);
0838 
0839     mePhiEffMTD_4_Sig_EB_ = ibook.book1D("PhiEffMTD_4_Sig_EB",
0840                                          " MTD isolation Efficiency 4 Signal Barrel VS Phi;#phi;Efficiency",
0841                                          meEle_phi_tot_Sig_EB_->getNbinsX(),
0842                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0843                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0844     mePhiEffMTD_4_Sig_EB_->getTH1()->SetMinimum(0.);
0845     computeEfficiency1D(meEle_phi_MTD_4_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_4_Sig_EB_);
0846 
0847     mePhiEffMTD_5_Sig_EB_ = ibook.book1D("PhiEffMTD_5_Sig_EB",
0848                                          " MTD isolation Efficiency 5 Signal Barrel VS Phi;#phi;Efficiency",
0849                                          meEle_phi_tot_Sig_EB_->getNbinsX(),
0850                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0851                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0852     mePhiEffMTD_5_Sig_EB_->getTH1()->SetMinimum(0.);
0853     computeEfficiency1D(meEle_phi_MTD_5_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_5_Sig_EB_);
0854 
0855     mePhiEffMTD_6_Sig_EB_ = ibook.book1D("PhiEffMTD_6_Sig_EB",
0856                                          " MTD isolation Efficiency 6 Signal Barrel VS Phi;#phi;Efficiency",
0857                                          meEle_phi_tot_Sig_EB_->getNbinsX(),
0858                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0859                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0860     mePhiEffMTD_6_Sig_EB_->getTH1()->SetMinimum(0.);
0861     computeEfficiency1D(meEle_phi_MTD_6_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_6_Sig_EB_);
0862 
0863     mePhiEffMTD_7_Sig_EB_ = ibook.book1D("PhiEffMTD_7_Sig_EB",
0864                                          " MTD isolation Efficiency 7 Signal Barrel VS Phi;#phi;Efficiency",
0865                                          meEle_phi_tot_Sig_EB_->getNbinsX(),
0866                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0867                                          meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0868     mePhiEffMTD_7_Sig_EB_->getTH1()->SetMinimum(0.);
0869     computeEfficiency1D(meEle_phi_MTD_7_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_7_Sig_EB_);
0870   }
0871 
0872   mePtEffMTD_4sigma_Sig_EB_ =
0873       ibook.book1D("pTeffMTD_4sigma_Sig_EB",
0874                    "MTD isolation Efficiency - 4 sigma compatibility - Signal Barrel VS pT;p_{T};Efficiency",
0875                    meEle_pt_tot_Sig_EB_->getNbinsX(),
0876                    meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0877                    meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0878   mePtEffMTD_4sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0879   computeEfficiency1D(meEle_pt_MTD_4sigma_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_4sigma_Sig_EB_);
0880 
0881   mePtEffMTD_3sigma_Sig_EB_ =
0882       ibook.book1D("pTeffMTD_3sigma_Sig_EB",
0883                    " MTD isolation Efficiency - 3 sigma compatibility - Signal Barrel VS pT;p_{T};Efficiency",
0884                    meEle_pt_tot_Sig_EB_->getNbinsX(),
0885                    meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0886                    meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0887   mePtEffMTD_3sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0888   computeEfficiency1D(meEle_pt_MTD_3sigma_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_3sigma_Sig_EB_);
0889 
0890   mePtEffMTD_2sigma_Sig_EB_ =
0891       ibook.book1D("pTeffMTD_2sigma_Sig_EB",
0892                    " MTD isolation Efficiency - 2 sigma compatibility - Signal Barrel VS pT;p_{T};Efficiency",
0893                    meEle_pt_tot_Sig_EB_->getNbinsX(),
0894                    meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0895                    meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0896   mePtEffMTD_2sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0897   computeEfficiency1D(meEle_pt_MTD_2sigma_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffMTD_2sigma_Sig_EB_);
0898 
0899   meEtaEffMTD_4sigma_Sig_EB_ =
0900       ibook.book1D("EtaEffMTD_4sigma_Sig_EB",
0901                    " MTD isolation Efficiency - 4 sigma compatibility - Signal Barrel VS Eta;#eta;Efficiency",
0902                    meEle_eta_tot_Sig_EB_->getNbinsX(),
0903                    meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0904                    meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0905   meEtaEffMTD_4sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0906   computeEfficiency1D(meEle_eta_MTD_4sigma_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_4sigma_Sig_EB_);
0907 
0908   meEtaEffMTD_3sigma_Sig_EB_ =
0909       ibook.book1D("EtaEffMTD_3sigma_Sig_EB",
0910                    " MTD isolation Efficiency - 3 sigma compatibility - Signal Barrel VS Eta;#eta;Efficiency",
0911                    meEle_eta_tot_Sig_EB_->getNbinsX(),
0912                    meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0913                    meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0914   meEtaEffMTD_3sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0915   computeEfficiency1D(meEle_eta_MTD_3sigma_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_3sigma_Sig_EB_);
0916 
0917   meEtaEffMTD_2sigma_Sig_EB_ =
0918       ibook.book1D("EtaEffMTD_2sigma_Sig_EB",
0919                    " MTD isolation Efficiency - 2 sigma compatibility - Signal Barrel VS Eta;#eta;Efficiency",
0920                    meEle_eta_tot_Sig_EB_->getNbinsX(),
0921                    meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0922                    meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0923   meEtaEffMTD_2sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0924   computeEfficiency1D(meEle_eta_MTD_2sigma_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffMTD_2sigma_Sig_EB_);
0925   mePhiEffMTD_4sigma_Sig_EB_ =
0926       ibook.book1D("PhiEffMTD_4sigma_Sig_EB",
0927                    " MTD isolation Efficiency - 4 sigma compatibility - Signal Barrel VS Phi;#phi;Efficiency",
0928                    meEle_phi_tot_Sig_EB_->getNbinsX(),
0929                    meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0930                    meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0931   mePhiEffMTD_4sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0932   computeEfficiency1D(meEle_phi_MTD_4sigma_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_4sigma_Sig_EB_);
0933 
0934   mePhiEffMTD_3sigma_Sig_EB_ =
0935       ibook.book1D("PhiEffMTD_3sigma_Sig_EB",
0936                    " MTD isolation Efficiency - 3  sigma compatibility - Signal Barrel VS Phi;#phi;Efficiency",
0937                    meEle_phi_tot_Sig_EB_->getNbinsX(),
0938                    meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0939                    meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0940   mePhiEffMTD_3sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0941   computeEfficiency1D(meEle_phi_MTD_3sigma_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_3sigma_Sig_EB_);
0942 
0943   mePhiEffMTD_2sigma_Sig_EB_ =
0944       ibook.book1D("PhiEffMTD_2sigma_Sig_EB",
0945                    " MTD isolation Efficiency - 2 sigma compatibility - Signal Barrel VS Phi;#phi;Efficiency",
0946                    meEle_phi_tot_Sig_EB_->getNbinsX(),
0947                    meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0948                    meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0949   mePhiEffMTD_2sigma_Sig_EB_->getTH1()->SetMinimum(0.);
0950   computeEfficiency1D(meEle_phi_MTD_2sigma_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffMTD_2sigma_Sig_EB_);
0951 
0952   mePtEffnoMTD_Sig_EB_ = ibook.book1D("pTeffnoMTD_Sig_EB",
0953                                       " noMTD isolation Efficiency - Signal Barrel VS pT;p_{T};Efficiency",
0954                                       meEle_pt_tot_Sig_EB_->getNbinsX(),
0955                                       meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0956                                       meEle_pt_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0957   mePtEffnoMTD_Sig_EB_->getTH1()->SetMinimum(0.);
0958   computeEfficiency1D(meEle_pt_noMTD_Sig_EB_, meEle_pt_tot_Sig_EB_, mePtEffnoMTD_Sig_EB_);
0959 
0960   meEtaEffnoMTD_Sig_EB_ = ibook.book1D("EtaEffnoMTD_Sig_EB",
0961                                        " noMTD isolation Efficiency - Signal Barrel VS Eta;#eta;Efficiency",
0962                                        meEle_eta_tot_Sig_EB_->getNbinsX(),
0963                                        meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0964                                        meEle_eta_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0965   meEtaEffnoMTD_Sig_EB_->getTH1()->SetMinimum(0.);
0966   computeEfficiency1D(meEle_eta_noMTD_Sig_EB_, meEle_eta_tot_Sig_EB_, meEtaEffnoMTD_Sig_EB_);
0967 
0968   mePhiEffnoMTD_Sig_EB_ = ibook.book1D("PhiEffnoMTD_Sig_EB",
0969                                        " noMTD isolation Efficiency - Signal Barrel VS Phi;#phi;Efficiency",
0970                                        meEle_phi_tot_Sig_EB_->getNbinsX(),
0971                                        meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0972                                        meEle_phi_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0973   mePhiEffnoMTD_Sig_EB_->getTH1()->SetMinimum(0.);
0974   computeEfficiency1D(meEle_phi_noMTD_Sig_EB_, meEle_phi_tot_Sig_EB_, mePhiEffnoMTD_Sig_EB_);
0975 
0976   if (optionalPlots_) {
0977     mePtEffgen_Sig_EB_ = ibook.book1D("pTeffMTD_gen_Sig_EB",
0978                                       " MTD isolation Efficiency - genInfo - Signal Barrel VS pT;p_{T};Efficiency",
0979                                       meEle_pt_sim_tot_Sig_EB_->getNbinsX(),
0980                                       meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmin(),
0981                                       meEle_pt_sim_tot_Sig_EB_->getTH1()->GetXaxis()->GetXmax());
0982     mePtEffgen_Sig_EB_->getTH1()->SetMinimum(0.);
0983     computeEfficiency1D(meEle_pt_gen_Sig_EB_, meEle_pt_sim_tot_Sig_EB_, mePtEffgen_Sig_EB_);
0984 
0985     // Ele iso addition ends
0986     // For endcap now
0987     mePtEffMTD_1_Sig_EE_ = ibook.book1D("pTeffMTD_1_Sig_EE",
0988                                         " MTD isolation Efficiency - 1 Signal Endcap VS pT;p_{T};Efficiency",
0989                                         meEle_pt_tot_Sig_EE_->getNbinsX(),
0990                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
0991                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
0992     mePtEffMTD_1_Sig_EE_->getTH1()->SetMinimum(0.);
0993     computeEfficiency1D(meEle_pt_MTD_1_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_1_Sig_EE_);
0994 
0995     mePtEffMTD_2_Sig_EE_ = ibook.book1D("pTeffMTD_2_Sig_EE",
0996                                         " MTD isolation Efficiency - 2 Signal Endcap VS pT;p_{T};Efficiency",
0997                                         meEle_pt_tot_Sig_EE_->getNbinsX(),
0998                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
0999                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1000     mePtEffMTD_2_Sig_EE_->getTH1()->SetMinimum(0.);
1001     computeEfficiency1D(meEle_pt_MTD_2_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_2_Sig_EE_);
1002 
1003     mePtEffMTD_3_Sig_EE_ = ibook.book1D("pTeffMTD_3_Sig_EE",
1004                                         " MTD isolation Efficiency - 3 Signal Endcap VS pT;p_{T};Efficiency",
1005                                         meEle_pt_tot_Sig_EE_->getNbinsX(),
1006                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1007                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1008     mePtEffMTD_3_Sig_EE_->getTH1()->SetMinimum(0.);
1009     computeEfficiency1D(meEle_pt_MTD_3_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_3_Sig_EE_);
1010 
1011     mePtEffMTD_4_Sig_EE_ = ibook.book1D("pTeffMTD_4_Sig_EE",
1012                                         " MTD isolation Efficiency - 4 Signal Endcap VS pT;p_{T};Efficiency",
1013                                         meEle_pt_tot_Sig_EE_->getNbinsX(),
1014                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1015                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1016     mePtEffMTD_4_Sig_EE_->getTH1()->SetMinimum(0.);
1017     computeEfficiency1D(meEle_pt_MTD_4_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_4_Sig_EE_);
1018 
1019     mePtEffMTD_5_Sig_EE_ = ibook.book1D("pTeffMTD_5_Sig_EE",
1020                                         " MTD isolation Efficiency - 5 Signal Endcap VS pT;p_{T};Efficiency",
1021                                         meEle_pt_tot_Sig_EE_->getNbinsX(),
1022                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1023                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1024     mePtEffMTD_5_Sig_EE_->getTH1()->SetMinimum(0.);
1025     computeEfficiency1D(meEle_pt_MTD_5_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_5_Sig_EE_);
1026 
1027     mePtEffMTD_6_Sig_EE_ = ibook.book1D("pTeffMTD_6_Sig_EE",
1028                                         " MTD isolation Efficiency - 6 Signal Endcap VS pT;p_{T};Efficiency",
1029                                         meEle_pt_tot_Sig_EE_->getNbinsX(),
1030                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1031                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1032     mePtEffMTD_6_Sig_EE_->getTH1()->SetMinimum(0.);
1033     computeEfficiency1D(meEle_pt_MTD_6_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_6_Sig_EE_);
1034 
1035     mePtEffMTD_7_Sig_EE_ = ibook.book1D("pTeffMTD_7_Sig_EE",
1036                                         " MTD isolation Efficiency - 7 Signal Endcap VS pT;p_{T};Efficiency",
1037                                         meEle_pt_tot_Sig_EE_->getNbinsX(),
1038                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1039                                         meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1040     mePtEffMTD_7_Sig_EE_->getTH1()->SetMinimum(0.);
1041     computeEfficiency1D(meEle_pt_MTD_7_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_7_Sig_EE_);
1042 
1043     mePtEffMTD_sim_1_Sig_EE_ = ibook.book1D("mePtEffMTD_sim_1_Sig_EE_",
1044                                             " MTD isolation Efficiency - 1 SIM Signal Endcap VS pT;p_{T};Efficiency",
1045                                             meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1046                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1047                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1048     mePtEffMTD_sim_1_Sig_EE_->getTH1()->SetMinimum(0.);
1049     computeEfficiency1D(meEle_pt_sim_MTD_1_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_1_Sig_EE_);
1050 
1051     mePtEffMTD_sim_2_Sig_EE_ = ibook.book1D("mePtEffMTD_sim_2_Sig_EE_",
1052                                             " MTD isolation Efficiency - 2 SIM Signal Endcap VS pT;p_{T};Efficiency",
1053                                             meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1054                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1055                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1056     mePtEffMTD_sim_2_Sig_EE_->getTH1()->SetMinimum(0.);
1057     computeEfficiency1D(meEle_pt_sim_MTD_2_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_2_Sig_EE_);
1058 
1059     mePtEffMTD_sim_3_Sig_EE_ = ibook.book1D("mePtEffMTD_sim_3_Sig_EE_",
1060                                             " MTD isolation Efficiency - 3 SIM Signal Endcap VS pT;p_{T};Efficiency",
1061                                             meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1062                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1063                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1064     mePtEffMTD_sim_3_Sig_EE_->getTH1()->SetMinimum(0.);
1065     computeEfficiency1D(meEle_pt_sim_MTD_3_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_3_Sig_EE_);
1066 
1067     mePtEffMTD_sim_4_Sig_EE_ = ibook.book1D("mePtEffMTD_sim_4_Sig_EE_",
1068                                             " MTD isolation Efficiency - 4 SIM Signal Endcap VS pT;p_{T};Efficiency",
1069                                             meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1070                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1071                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1072     mePtEffMTD_sim_4_Sig_EE_->getTH1()->SetMinimum(0.);
1073     computeEfficiency1D(meEle_pt_sim_MTD_4_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_4_Sig_EE_);
1074 
1075     mePtEffMTD_sim_5_Sig_EE_ = ibook.book1D("mePtEffMTD_sim_5_Sig_EE_",
1076                                             " MTD isolation Efficiency - 5 SIM Signal Endcap VS pT;p_{T};Efficiency",
1077                                             meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1078                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1079                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1080     mePtEffMTD_sim_5_Sig_EE_->getTH1()->SetMinimum(0.);
1081     computeEfficiency1D(meEle_pt_sim_MTD_5_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_5_Sig_EE_);
1082 
1083     mePtEffMTD_sim_6_Sig_EE_ = ibook.book1D("mePtEffMTD_sim_6_Sig_EE_",
1084                                             " MTD isolation Efficiency - 6 SIM Signal Endcap VS pT;p_{T};Efficiency",
1085                                             meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1086                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1087                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1088     mePtEffMTD_sim_6_Sig_EE_->getTH1()->SetMinimum(0.);
1089     computeEfficiency1D(meEle_pt_sim_MTD_6_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_6_Sig_EE_);
1090 
1091     mePtEffMTD_sim_7_Sig_EE_ = ibook.book1D("mePtEffMTD_sim_7_Sig_EE_",
1092                                             " MTD isolation Efficiency - 7 SIM Signal Endcap VS pT;p_{T};Efficiency",
1093                                             meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1094                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1095                                             meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1096     mePtEffMTD_sim_7_Sig_EE_->getTH1()->SetMinimum(0.);
1097     computeEfficiency1D(meEle_pt_sim_MTD_7_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_7_Sig_EE_);
1098 
1099     mePtEffMTD_sim_4sigma_Sig_EE_ =
1100         ibook.book1D("pTeffMTD_sim_4sigma_Sig_EE",
1101                      " MTD isolation Efficiency SIM - 4 sigma compatibility - Signal Endcap VS pT;p_{T};Efficiency",
1102                      meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1103                      meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1104                      meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1105     mePtEffMTD_sim_4sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1106     computeEfficiency1D(meEle_pt_sim_MTD_4sigma_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_4sigma_Sig_EE_);
1107 
1108     mePtEffMTD_sim_3sigma_Sig_EE_ =
1109         ibook.book1D("pTeffMTD_sim_3sigma_Sig_EE",
1110                      " MTD isolation Efficiency SIM - 3 sigma compatibility - Signal Endcap VS pT;p_{T};Efficiency",
1111                      meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1112                      meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1113                      meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1114     mePtEffMTD_sim_3sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1115     computeEfficiency1D(meEle_pt_sim_MTD_3sigma_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_3sigma_Sig_EE_);
1116 
1117     mePtEffMTD_sim_2sigma_Sig_EE_ =
1118         ibook.book1D("pTeffMTD_sim_2sigma_Sig_EE",
1119                      " MTD isolation Efficiency SIM - 2 sigma compatibility - Signal Endcap VS pT;p_{T};Efficiency",
1120                      meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1121                      meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1122                      meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1123     mePtEffMTD_sim_2sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1124     computeEfficiency1D(meEle_pt_sim_MTD_2sigma_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_sim_2sigma_Sig_EE_);
1125 
1126     meEtaEffMTD_1_Sig_EE_ = ibook.book1D("EtaEffMTD_1_Sig_EE",
1127                                          " MTD isolation Efficiency 1 Signal Endcap VS Eta;#eta;Efficiency",
1128                                          meEle_eta_tot_Sig_EE_->getNbinsX(),
1129                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1130                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1131     meEtaEffMTD_1_Sig_EE_->getTH1()->SetMinimum(0.);
1132     computeEfficiency1D(meEle_eta_MTD_1_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_1_Sig_EE_);
1133 
1134     meEtaEffMTD_2_Sig_EE_ = ibook.book1D("EtaEffMTD_2_Sig_EE",
1135                                          " MTD isolation Efficiency 2 Signal Endcap VS Eta;#eta;Efficiency",
1136                                          meEle_eta_tot_Sig_EE_->getNbinsX(),
1137                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1138                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1139     meEtaEffMTD_2_Sig_EE_->getTH1()->SetMinimum(0.);
1140     computeEfficiency1D(meEle_eta_MTD_2_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_2_Sig_EE_);
1141 
1142     meEtaEffMTD_3_Sig_EE_ = ibook.book1D("EtaEffMTD_3_Sig_EE",
1143                                          " MTD isolation Efficiency 3 Signal Endcap VS Eta;#eta;Efficiency",
1144                                          meEle_eta_tot_Sig_EE_->getNbinsX(),
1145                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1146                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1147     meEtaEffMTD_3_Sig_EE_->getTH1()->SetMinimum(0.);
1148     computeEfficiency1D(meEle_eta_MTD_3_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_3_Sig_EE_);
1149 
1150     meEtaEffMTD_4_Sig_EE_ = ibook.book1D("EtaEffMTD_4_Sig_EE",
1151                                          " MTD isolation Efficiency 4 Signal Endcap VS Eta;#eta;Efficiency",
1152                                          meEle_eta_tot_Sig_EE_->getNbinsX(),
1153                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1154                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1155     meEtaEffMTD_4_Sig_EE_->getTH1()->SetMinimum(0.);
1156     computeEfficiency1D(meEle_eta_MTD_4_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_4_Sig_EE_);
1157 
1158     meEtaEffMTD_5_Sig_EE_ = ibook.book1D("EtaEffMTD_5_Sig_EE",
1159                                          " MTD isolation Efficiency 5 Signal Endcap VS Eta;#eta;Efficiency",
1160                                          meEle_eta_tot_Sig_EE_->getNbinsX(),
1161                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1162                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1163     meEtaEffMTD_5_Sig_EE_->getTH1()->SetMinimum(0.);
1164     computeEfficiency1D(meEle_eta_MTD_5_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_5_Sig_EE_);
1165 
1166     meEtaEffMTD_6_Sig_EE_ = ibook.book1D("EtaEffMTD_6_Sig_EE",
1167                                          " MTD isolation Efficiency 6 Signal Endcap VS Eta;#eta;Efficiency",
1168                                          meEle_eta_tot_Sig_EE_->getNbinsX(),
1169                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1170                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1171     meEtaEffMTD_6_Sig_EE_->getTH1()->SetMinimum(0.);
1172     computeEfficiency1D(meEle_eta_MTD_6_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_6_Sig_EE_);
1173 
1174     meEtaEffMTD_7_Sig_EE_ = ibook.book1D("EtaEffMTD_7_Sig_EE",
1175                                          " MTD isolation Efficiency 7 Signal Endcap VS Eta;#eta;Efficiency",
1176                                          meEle_eta_tot_Sig_EE_->getNbinsX(),
1177                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1178                                          meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1179     meEtaEffMTD_7_Sig_EE_->getTH1()->SetMinimum(0.);
1180     computeEfficiency1D(meEle_eta_MTD_7_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_7_Sig_EE_);
1181 
1182     mePhiEffMTD_1_Sig_EE_ = ibook.book1D("PhiEffMTD_1_Sig_EE",
1183                                          " MTD isolation Efficiency - 1 Signal Endcap VS Phi;#phi;Efficiency",
1184                                          meEle_phi_tot_Sig_EE_->getNbinsX(),
1185                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1186                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1187     mePhiEffMTD_1_Sig_EE_->getTH1()->SetMinimum(0.);
1188     computeEfficiency1D(meEle_phi_MTD_1_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_1_Sig_EE_);
1189 
1190     mePhiEffMTD_2_Sig_EE_ = ibook.book1D("PhiEffMTD_2_Sig_EE",
1191                                          " MTD isolation Efficiency - 2 Signal Endcap VS Phi;#phi;Efficiency",
1192                                          meEle_phi_tot_Sig_EE_->getNbinsX(),
1193                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1194                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1195     mePhiEffMTD_2_Sig_EE_->getTH1()->SetMinimum(0.);
1196     computeEfficiency1D(meEle_phi_MTD_2_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_2_Sig_EE_);
1197 
1198     mePhiEffMTD_3_Sig_EE_ = ibook.book1D("PhiEffMTD_3_Sig_EE",
1199                                          " MTD isolation Efficiency - 3 Signal Endcap VS Phi;#phi;Efficiency",
1200                                          meEle_phi_tot_Sig_EE_->getNbinsX(),
1201                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1202                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1203     mePhiEffMTD_3_Sig_EE_->getTH1()->SetMinimum(0.);
1204     computeEfficiency1D(meEle_phi_MTD_3_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_3_Sig_EE_);
1205 
1206     mePhiEffMTD_4_Sig_EE_ = ibook.book1D("PhiEffMTD_4_Sig_EE",
1207                                          " MTD isolation Efficiency - 4 Signal Endcap VS Phi;#phi;Efficiency",
1208                                          meEle_phi_tot_Sig_EE_->getNbinsX(),
1209                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1210                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1211     mePhiEffMTD_4_Sig_EE_->getTH1()->SetMinimum(0.);
1212     computeEfficiency1D(meEle_phi_MTD_4_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_4_Sig_EE_);
1213 
1214     mePhiEffMTD_5_Sig_EE_ = ibook.book1D("PhiEffMTD_5_Sig_EE",
1215                                          " MTD isolation Efficiency - 5 Signal Endcap VS Phi;#phi;Efficiency",
1216                                          meEle_phi_tot_Sig_EE_->getNbinsX(),
1217                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1218                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1219     mePhiEffMTD_5_Sig_EE_->getTH1()->SetMinimum(0.);
1220     computeEfficiency1D(meEle_phi_MTD_5_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_5_Sig_EE_);
1221 
1222     mePhiEffMTD_6_Sig_EE_ = ibook.book1D("PhiEffMTD_6_Sig_EE",
1223                                          " MTD isolation Efficiency - 6 Signal Endcap VS Phi;#phi;Efficiency",
1224                                          meEle_phi_tot_Sig_EE_->getNbinsX(),
1225                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1226                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1227     mePhiEffMTD_6_Sig_EE_->getTH1()->SetMinimum(0.);
1228     computeEfficiency1D(meEle_phi_MTD_6_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_6_Sig_EE_);
1229 
1230     mePhiEffMTD_7_Sig_EE_ = ibook.book1D("PhiEffMTD_7_Sig_EE",
1231                                          " MTD isolation Efficiency - 7 Signal Endcap VS Phi;#phi;Efficiency",
1232                                          meEle_phi_tot_Sig_EE_->getNbinsX(),
1233                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1234                                          meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1235     mePhiEffMTD_7_Sig_EE_->getTH1()->SetMinimum(0.);
1236     computeEfficiency1D(meEle_phi_MTD_7_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_7_Sig_EE_);
1237 
1238     mePtEffgen_Sig_EE_ = ibook.book1D("pTeffMTD_gen_Sig_EE",
1239                                       " MTD isolation Efficiency - genInfo - Signal Endcap VS pT;p_{T};Efficiency",
1240                                       meEle_pt_sim_tot_Sig_EE_->getNbinsX(),
1241                                       meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1242                                       meEle_pt_sim_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1243     mePtEffgen_Sig_EE_->getTH1()->SetMinimum(0.);
1244     computeEfficiency1D(meEle_pt_gen_Sig_EE_, meEle_pt_sim_tot_Sig_EE_, mePtEffgen_Sig_EE_);
1245   }
1246 
1247   mePtEffMTD_4sigma_Sig_EE_ =
1248       ibook.book1D("pTeffMTD_4sigma_Sig_EE",
1249                    " MTD isolation Efficiency - 4 sigma compatibility - Signal Endcap VS pT;p_{T};Efficiency",
1250                    meEle_pt_tot_Sig_EE_->getNbinsX(),
1251                    meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1252                    meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1253   mePtEffMTD_4sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1254   computeEfficiency1D(meEle_pt_MTD_4sigma_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_4sigma_Sig_EE_);
1255 
1256   mePtEffMTD_3sigma_Sig_EE_ =
1257       ibook.book1D("pTeffMTD_3sigma_Sig_EE",
1258                    " MTD isolation Efficiency - 3 sigma compatibility - Signal Endcap VS pT;p_{T};Efficiency",
1259                    meEle_pt_tot_Sig_EE_->getNbinsX(),
1260                    meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1261                    meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1262   mePtEffMTD_3sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1263   computeEfficiency1D(meEle_pt_MTD_3sigma_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_3sigma_Sig_EE_);
1264 
1265   mePtEffMTD_2sigma_Sig_EE_ =
1266       ibook.book1D("pTeffMTD_2sigma_Sig_EE",
1267                    " MTD isolation Efficiency - 2 sigma compatibility - Signal Endcap VS pT;p_{T};Efficiency",
1268                    meEle_pt_tot_Sig_EE_->getNbinsX(),
1269                    meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1270                    meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1271   mePtEffMTD_2sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1272   computeEfficiency1D(meEle_pt_MTD_2sigma_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffMTD_2sigma_Sig_EE_);
1273 
1274   meEtaEffMTD_4sigma_Sig_EE_ =
1275       ibook.book1D("EtaEffMTD_4sigma_Sig_EE",
1276                    " MTD isolation Efficiency - 4 sigma compatibility - Signal Endcap VS Eta;#eta;Efficiency",
1277                    meEle_eta_tot_Sig_EE_->getNbinsX(),
1278                    meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1279                    meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1280   meEtaEffMTD_4sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1281   computeEfficiency1D(meEle_eta_MTD_4sigma_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_4sigma_Sig_EE_);
1282 
1283   meEtaEffMTD_3sigma_Sig_EE_ =
1284       ibook.book1D("EtaEffMTD_3sigma_Sig_EE",
1285                    " MTD isolation Efficiency - 3 sigma compatibility - Signal Endcap VS Eta;#eta;Efficiency",
1286                    meEle_eta_tot_Sig_EE_->getNbinsX(),
1287                    meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1288                    meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1289   meEtaEffMTD_3sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1290   computeEfficiency1D(meEle_eta_MTD_3sigma_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_3sigma_Sig_EE_);
1291 
1292   meEtaEffMTD_2sigma_Sig_EE_ =
1293       ibook.book1D("EtaEffMTD_2sigma_Sig_EE",
1294                    " MTD isolation Efficiency - 2 sigma compatibility - Signal Endcap VS Eta;#eta;Efficiency",
1295                    meEle_eta_tot_Sig_EE_->getNbinsX(),
1296                    meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1297                    meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1298   meEtaEffMTD_2sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1299   computeEfficiency1D(meEle_eta_MTD_2sigma_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffMTD_2sigma_Sig_EE_);
1300 
1301   mePhiEffMTD_4sigma_Sig_EE_ =
1302       ibook.book1D("PhiEffMTD_4sigma_Sig_EE",
1303                    " MTD isolation Efficiency - 4 sigma compatibility - Signal Endcap VS Phi;#phi;Efficiency",
1304                    meEle_phi_tot_Sig_EE_->getNbinsX(),
1305                    meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1306                    meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1307   mePhiEffMTD_4sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1308   computeEfficiency1D(meEle_phi_MTD_4sigma_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_4sigma_Sig_EE_);
1309 
1310   mePhiEffMTD_3sigma_Sig_EE_ =
1311       ibook.book1D("PhiEffMTD_3sigma_Sig_EE",
1312                    " MTD isolation Efficiency - 3 sigma compatibility - Signal Endcap VS Phi;#phi;Efficiency",
1313                    meEle_phi_tot_Sig_EE_->getNbinsX(),
1314                    meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1315                    meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1316   mePhiEffMTD_3sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1317   computeEfficiency1D(meEle_phi_MTD_3sigma_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_3sigma_Sig_EE_);
1318 
1319   mePhiEffMTD_2sigma_Sig_EE_ =
1320       ibook.book1D("PhiEffMTD_2sigma_Sig_EE",
1321                    " MTD isolation Efficiency - 2 sigma compatibility - Signal Endcap VS Phi;#phi;Efficiency",
1322                    meEle_phi_tot_Sig_EE_->getNbinsX(),
1323                    meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1324                    meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1325   mePhiEffMTD_2sigma_Sig_EE_->getTH1()->SetMinimum(0.);
1326   computeEfficiency1D(meEle_phi_MTD_2sigma_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffMTD_2sigma_Sig_EE_);
1327 
1328   mePtEffnoMTD_Sig_EE_ = ibook.book1D("pTeffnoMTD_Sig_EE",
1329                                       " noMTD isolation Efficiency - Signal Endcap VS pT;p_{T};Efficiency",
1330                                       meEle_pt_tot_Sig_EE_->getNbinsX(),
1331                                       meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1332                                       meEle_pt_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1333   mePtEffnoMTD_Sig_EE_->getTH1()->SetMinimum(0.);
1334   computeEfficiency1D(meEle_pt_noMTD_Sig_EE_, meEle_pt_tot_Sig_EE_, mePtEffnoMTD_Sig_EE_);
1335 
1336   meEtaEffnoMTD_Sig_EE_ = ibook.book1D("EtaEffnoMTD_Sig_EE",
1337                                        " noMTD isolation Efficiency - Signal Endcap VS Eta;#eta;Efficiency",
1338                                        meEle_eta_tot_Sig_EE_->getNbinsX(),
1339                                        meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1340                                        meEle_eta_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1341   meEtaEffnoMTD_Sig_EE_->getTH1()->SetMinimum(0.);
1342   computeEfficiency1D(meEle_eta_noMTD_Sig_EE_, meEle_eta_tot_Sig_EE_, meEtaEffnoMTD_Sig_EE_);
1343 
1344   mePhiEffnoMTD_Sig_EE_ = ibook.book1D("PhiEffnoMTD_Sig_EE",
1345                                        " noMTD isolation Efficiency - Signal Endcap VS Phi;#phi;Efficiency",
1346                                        meEle_phi_tot_Sig_EE_->getNbinsX(),
1347                                        meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmin(),
1348                                        meEle_phi_tot_Sig_EE_->getTH1()->GetXaxis()->GetXmax());
1349   mePhiEffnoMTD_Sig_EE_->getTH1()->SetMinimum(0.);
1350   computeEfficiency1D(meEle_phi_noMTD_Sig_EE_, meEle_phi_tot_Sig_EE_, mePhiEffnoMTD_Sig_EE_);
1351 
1352   /////////////////////////////////////////////////////// For non-promt (background)
1353   if (optionalPlots_) {
1354     mePtEffMTD_1_Bkg_EB_ = ibook.book1D("pTeffMTD_1_Bkg_EB",
1355                                         " MTD isolation Efficiency - 1 Bkg Barrel VS pT;p_{T};Efficiency",
1356                                         meEle_pt_tot_Bkg_EB_->getNbinsX(),
1357                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1358                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1359     mePtEffMTD_1_Bkg_EB_->getTH1()->SetMinimum(0.);
1360     computeEfficiency1D(meEle_pt_MTD_1_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_1_Bkg_EB_);
1361 
1362     mePtEffMTD_2_Bkg_EB_ = ibook.book1D("pTeffMTD_2_Bkg_EB",
1363                                         " MTD isolation Efficiency - 2 Bkg Barrel VS pT;p_{T};Efficiency",
1364                                         meEle_pt_tot_Bkg_EB_->getNbinsX(),
1365                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1366                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1367     mePtEffMTD_2_Bkg_EB_->getTH1()->SetMinimum(0.);
1368     computeEfficiency1D(meEle_pt_MTD_2_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_2_Bkg_EB_);
1369 
1370     mePtEffMTD_3_Bkg_EB_ = ibook.book1D("pTeffMTD_3_Bkg_EB",
1371                                         " MTD isolation Efficiency - 3 Bkg Barrel VS pT;p_{T};Efficiency",
1372                                         meEle_pt_tot_Bkg_EB_->getNbinsX(),
1373                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1374                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1375     mePtEffMTD_3_Bkg_EB_->getTH1()->SetMinimum(0.);
1376     computeEfficiency1D(meEle_pt_MTD_3_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_3_Bkg_EB_);
1377 
1378     mePtEffMTD_4_Bkg_EB_ = ibook.book1D("pTeffMTD_4_Bkg_EB",
1379                                         " MTD isolation Efficiency - 4 Bkg Barrel VS pT;p_{T};Efficiency",
1380                                         meEle_pt_tot_Bkg_EB_->getNbinsX(),
1381                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1382                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1383     mePtEffMTD_4_Bkg_EB_->getTH1()->SetMinimum(0.);
1384     computeEfficiency1D(meEle_pt_MTD_4_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_4_Bkg_EB_);
1385 
1386     mePtEffMTD_5_Bkg_EB_ = ibook.book1D("pTeffMTD_5_Bkg_EB",
1387                                         " MTD isolation Efficiency - 5 Bkg Barrel VS pT;p_{T};Efficiency",
1388                                         meEle_pt_tot_Bkg_EB_->getNbinsX(),
1389                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1390                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1391     mePtEffMTD_5_Bkg_EB_->getTH1()->SetMinimum(0.);
1392     computeEfficiency1D(meEle_pt_MTD_5_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_5_Bkg_EB_);
1393 
1394     mePtEffMTD_6_Bkg_EB_ = ibook.book1D("pTeffMTD_6_Bkg_EB",
1395                                         " MTD isolation Efficiency - 6 Bkg Barrel VS pT;p_{T};Efficiency",
1396                                         meEle_pt_tot_Bkg_EB_->getNbinsX(),
1397                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1398                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1399     mePtEffMTD_6_Bkg_EB_->getTH1()->SetMinimum(0.);
1400     computeEfficiency1D(meEle_pt_MTD_6_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_6_Bkg_EB_);
1401 
1402     mePtEffMTD_7_Bkg_EB_ = ibook.book1D("pTeffMTD_7_Bkg_EB",
1403                                         " MTD isolation Efficiency - 7 Bkg Barrel VS pT;p_{T};Efficiency",
1404                                         meEle_pt_tot_Bkg_EB_->getNbinsX(),
1405                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1406                                         meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1407     mePtEffMTD_7_Bkg_EB_->getTH1()->SetMinimum(0.);
1408     computeEfficiency1D(meEle_pt_MTD_7_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_7_Bkg_EB_);
1409 
1410     mePtEffMTD_sim_1_Bkg_EB_ = ibook.book1D("mePtEffMTD_sim_1_Bkg_EB_",
1411                                             " MTD isolation Efficiency SIM - 1 Bkg Barrel VS pT;p_{T};Efficiency",
1412                                             meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1413                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1414                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1415     mePtEffMTD_sim_1_Bkg_EB_->getTH1()->SetMinimum(0.);
1416     computeEfficiency1D(meEle_pt_sim_MTD_1_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_1_Bkg_EB_);
1417 
1418     mePtEffMTD_sim_2_Bkg_EB_ = ibook.book1D("mePtEffMTD_sim_2_Bkg_EB_",
1419                                             " MTD isolation Efficiency SIM - 2 Bkg Barrel VS pT;p_{T};Efficiency",
1420                                             meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1421                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1422                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1423     mePtEffMTD_sim_2_Bkg_EB_->getTH1()->SetMinimum(0.);
1424     computeEfficiency1D(meEle_pt_sim_MTD_2_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_2_Bkg_EB_);
1425 
1426     mePtEffMTD_sim_3_Bkg_EB_ = ibook.book1D("mePtEffMTD_sim_3_Bkg_EB_",
1427                                             " MTD isolation Efficiency SIM - 3 Bkg Barrel VS pT;p_{T};Efficiency",
1428                                             meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1429                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1430                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1431     mePtEffMTD_sim_3_Bkg_EB_->getTH1()->SetMinimum(0.);
1432     computeEfficiency1D(meEle_pt_sim_MTD_3_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_3_Bkg_EB_);
1433 
1434     mePtEffMTD_sim_4_Bkg_EB_ = ibook.book1D("mePtEffMTD_sim_4_Bkg_EB_",
1435                                             " MTD isolation Efficiency SIM - 4 Bkg Barrel VS pT;p_{T};Efficiency",
1436                                             meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1437                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1438                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1439     mePtEffMTD_sim_4_Bkg_EB_->getTH1()->SetMinimum(0.);
1440     computeEfficiency1D(meEle_pt_sim_MTD_4_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_4_Bkg_EB_);
1441 
1442     mePtEffMTD_sim_5_Bkg_EB_ = ibook.book1D("mePtEffMTD_sim_5_Bkg_EB_",
1443                                             " MTD isolation Efficiency SIM - 5 Bkg Barrel VS pT;p_{T};Efficiency",
1444                                             meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1445                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1446                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1447     mePtEffMTD_sim_5_Bkg_EB_->getTH1()->SetMinimum(0.);
1448     computeEfficiency1D(meEle_pt_sim_MTD_5_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_5_Bkg_EB_);
1449 
1450     mePtEffMTD_sim_6_Bkg_EB_ = ibook.book1D("mePtEffMTD_sim_6_Bkg_EB_",
1451                                             " MTD isolation Efficiency SIM - 6 Bkg Barrel VS pT;p_{T};Efficiency",
1452                                             meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1453                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1454                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1455     mePtEffMTD_sim_6_Bkg_EB_->getTH1()->SetMinimum(0.);
1456     computeEfficiency1D(meEle_pt_sim_MTD_6_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_6_Bkg_EB_);
1457 
1458     mePtEffMTD_sim_7_Bkg_EB_ = ibook.book1D("mePtEffMTD_sim_7_Bkg_EB_",
1459                                             " MTD isolation Efficiency SIM - 7 Bkg Barrel VS pT;p_{T};Efficiency",
1460                                             meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1461                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1462                                             meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1463     mePtEffMTD_sim_7_Bkg_EB_->getTH1()->SetMinimum(0.);
1464     computeEfficiency1D(meEle_pt_sim_MTD_7_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_7_Bkg_EB_);
1465 
1466     mePtEffMTD_sim_4sigma_Bkg_EB_ =
1467         ibook.book1D("pTeffMTD_sim_4sigma_Bkg_EB",
1468                      " MTD isolation Efficiency SIM - 4 sigma compatibility - Bkg Barrel VS pT;p_{T};Efficiency",
1469                      meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1470                      meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1471                      meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1472     mePtEffMTD_sim_4sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1473     computeEfficiency1D(meEle_pt_sim_MTD_4sigma_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_4sigma_Bkg_EB_);
1474 
1475     mePtEffMTD_sim_3sigma_Bkg_EB_ =
1476         ibook.book1D("pTeffMTD_sim_3sigma_Bkg_EB",
1477                      " MTD isolation Efficiency SIM - 3 sigma compatibility - Bkg Barrel VS pT;p_{T};Efficiency",
1478                      meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1479                      meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1480                      meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1481     mePtEffMTD_sim_3sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1482     computeEfficiency1D(meEle_pt_sim_MTD_3sigma_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_3sigma_Bkg_EB_);
1483 
1484     mePtEffMTD_sim_2sigma_Bkg_EB_ =
1485         ibook.book1D("pTeffMTD_sim_2sigma_Bkg_EB",
1486                      " MTD isolation Efficiency SIM - 2 sigma compatibility - Bkg Barrel VS pT;p_{T};Efficiency",
1487                      meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1488                      meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1489                      meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1490     mePtEffMTD_sim_2sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1491     computeEfficiency1D(meEle_pt_sim_MTD_2sigma_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_sim_2sigma_Bkg_EB_);
1492 
1493     meEtaEffMTD_1_Bkg_EB_ = ibook.book1D("EtaEffMTD_1_Bkg_EB",
1494                                          " MTD isolation Efficiency - 1 Bkg Barrel VS Eta;#eta;Efficiency",
1495                                          meEle_eta_tot_Bkg_EB_->getNbinsX(),
1496                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1497                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1498     meEtaEffMTD_1_Bkg_EB_->getTH1()->SetMinimum(0.);
1499     computeEfficiency1D(meEle_eta_MTD_1_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_1_Bkg_EB_);
1500 
1501     meEtaEffMTD_2_Bkg_EB_ = ibook.book1D("EtaEffMTD_2_Bkg_EB",
1502                                          " MTD isolation Efficiency - 2 Bkg Barrel VS Eta;#eta;Efficiency",
1503                                          meEle_eta_tot_Bkg_EB_->getNbinsX(),
1504                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1505                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1506     meEtaEffMTD_2_Bkg_EB_->getTH1()->SetMinimum(0.);
1507     computeEfficiency1D(meEle_eta_MTD_2_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_2_Bkg_EB_);
1508 
1509     meEtaEffMTD_3_Bkg_EB_ = ibook.book1D("EtaEffMTD_3_Bkg_EB",
1510                                          " MTD isolation Efficiency - 3 Bkg Barrel VS Eta;#eta;Efficiency",
1511                                          meEle_eta_tot_Bkg_EB_->getNbinsX(),
1512                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1513                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1514     meEtaEffMTD_3_Bkg_EB_->getTH1()->SetMinimum(0.);
1515     computeEfficiency1D(meEle_eta_MTD_3_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_3_Bkg_EB_);
1516 
1517     meEtaEffMTD_4_Bkg_EB_ = ibook.book1D("EtaEffMTD_4_Bkg_EB",
1518                                          " MTD isolation Efficiency - 4 Bkg Barrel VS Eta;#eta;Efficiency",
1519                                          meEle_eta_tot_Bkg_EB_->getNbinsX(),
1520                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1521                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1522     meEtaEffMTD_4_Bkg_EB_->getTH1()->SetMinimum(0.);
1523     computeEfficiency1D(meEle_eta_MTD_4_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_4_Bkg_EB_);
1524 
1525     meEtaEffMTD_5_Bkg_EB_ = ibook.book1D("EtaEffMTD_5_Bkg_EB",
1526                                          " MTD isolation Efficiency - 5 Bkg Barrel VS Eta;#eta;Efficiency",
1527                                          meEle_eta_tot_Bkg_EB_->getNbinsX(),
1528                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1529                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1530     meEtaEffMTD_5_Bkg_EB_->getTH1()->SetMinimum(0.);
1531     computeEfficiency1D(meEle_eta_MTD_5_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_5_Bkg_EB_);
1532 
1533     meEtaEffMTD_6_Bkg_EB_ = ibook.book1D("EtaEffMTD_6_Bkg_EB",
1534                                          " MTD isolation Efficiency - 6 Bkg Barrel VS Eta;#eta;Efficiency",
1535                                          meEle_eta_tot_Bkg_EB_->getNbinsX(),
1536                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1537                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1538     meEtaEffMTD_6_Bkg_EB_->getTH1()->SetMinimum(0.);
1539     computeEfficiency1D(meEle_eta_MTD_6_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_6_Bkg_EB_);
1540 
1541     meEtaEffMTD_7_Bkg_EB_ = ibook.book1D("EtaEffMTD_7_Bkg_EB",
1542                                          " MTD isolation Efficiency - 7 Bkg Barrel VS Eta;#eta;Efficiency",
1543                                          meEle_eta_tot_Bkg_EB_->getNbinsX(),
1544                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1545                                          meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1546     meEtaEffMTD_7_Bkg_EB_->getTH1()->SetMinimum(0.);
1547     computeEfficiency1D(meEle_eta_MTD_7_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_7_Bkg_EB_);
1548 
1549     mePhiEffMTD_1_Bkg_EB_ = ibook.book1D("PhiEffMTD_1_Bkg_EB",
1550                                          " MTD isolation Efficiency - 1 Bkg Barrel VS Phi;#phi;Efficiency",
1551                                          meEle_phi_tot_Bkg_EB_->getNbinsX(),
1552                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1553                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1554     mePhiEffMTD_1_Bkg_EB_->getTH1()->SetMinimum(0.);
1555     computeEfficiency1D(meEle_phi_MTD_1_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_1_Bkg_EB_);
1556 
1557     mePhiEffMTD_2_Bkg_EB_ = ibook.book1D("PhiEffMTD_2_Bkg_EB",
1558                                          " MTD isolation Efficiency - 2 Bkg Barrel VS Phi;#phi;Efficiency",
1559                                          meEle_phi_tot_Bkg_EB_->getNbinsX(),
1560                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1561                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1562     mePhiEffMTD_2_Bkg_EB_->getTH1()->SetMinimum(0.);
1563     computeEfficiency1D(meEle_phi_MTD_2_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_2_Bkg_EB_);
1564 
1565     mePhiEffMTD_3_Bkg_EB_ = ibook.book1D("PhiEffMTD_3_Bkg_EB",
1566                                          " MTD isolation Efficiency - 3 Bkg Barrel VS Phi;#phi;Efficiency",
1567                                          meEle_phi_tot_Bkg_EB_->getNbinsX(),
1568                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1569                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1570     mePhiEffMTD_3_Bkg_EB_->getTH1()->SetMinimum(0.);
1571     computeEfficiency1D(meEle_phi_MTD_3_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_3_Bkg_EB_);
1572 
1573     mePhiEffMTD_4_Bkg_EB_ = ibook.book1D("PhiEffMTD_4_Bkg_EB",
1574                                          " MTD isolation Efficiency - 4 Bkg Barrel VS Phi;#phi;Efficiency",
1575                                          meEle_phi_tot_Bkg_EB_->getNbinsX(),
1576                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1577                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1578     mePhiEffMTD_4_Bkg_EB_->getTH1()->SetMinimum(0.);
1579     computeEfficiency1D(meEle_phi_MTD_4_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_4_Bkg_EB_);
1580 
1581     mePhiEffMTD_5_Bkg_EB_ = ibook.book1D("PhiEffMTD_5_Bkg_EB",
1582                                          " MTD isolation Efficiency - 5 Bkg Barrel VS Phi;#phi;Efficiency",
1583                                          meEle_phi_tot_Bkg_EB_->getNbinsX(),
1584                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1585                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1586     mePhiEffMTD_5_Bkg_EB_->getTH1()->SetMinimum(0.);
1587     computeEfficiency1D(meEle_phi_MTD_5_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_5_Bkg_EB_);
1588 
1589     mePhiEffMTD_6_Bkg_EB_ = ibook.book1D("PhiEffMTD_6_Bkg_EB",
1590                                          " MTD isolation Efficiency - 6 Bkg Barrel VS Phi;#phi;Efficiency",
1591                                          meEle_phi_tot_Bkg_EB_->getNbinsX(),
1592                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1593                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1594     mePhiEffMTD_6_Bkg_EB_->getTH1()->SetMinimum(0.);
1595     computeEfficiency1D(meEle_phi_MTD_6_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_6_Bkg_EB_);
1596 
1597     mePhiEffMTD_7_Bkg_EB_ = ibook.book1D("PhiEffMTD_7_Bkg_EB",
1598                                          " MTD isolation Efficiency - 7 Bkg Barrel VS Phi;#phi;Efficiency",
1599                                          meEle_phi_tot_Bkg_EB_->getNbinsX(),
1600                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1601                                          meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1602     mePhiEffMTD_7_Bkg_EB_->getTH1()->SetMinimum(0.);
1603     computeEfficiency1D(meEle_phi_MTD_7_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_7_Bkg_EB_);
1604   }
1605   meEtaEffMTD_4sigma_Bkg_EB_ =
1606       ibook.book1D("EtaEffMTD_4sigma_Bkg_EB",
1607                    " MTD isolation Efficiency - 4 sigma compatibility - Bkg Endcap VS Eta;#eta;Efficiency",
1608                    meEle_eta_tot_Bkg_EB_->getNbinsX(),
1609                    meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1610                    meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1611   meEtaEffMTD_4sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1612   computeEfficiency1D(meEle_eta_MTD_4sigma_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_4sigma_Bkg_EB_);
1613 
1614   meEtaEffMTD_3sigma_Bkg_EB_ =
1615       ibook.book1D("EtaEffMTD_3sigma_Bkg_EB",
1616                    " MTD isolation Efficiency - 3 sigma compatibility - Bkg Endcap VS Eta;#eta;Efficiency",
1617                    meEle_eta_tot_Bkg_EB_->getNbinsX(),
1618                    meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1619                    meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1620   meEtaEffMTD_3sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1621   computeEfficiency1D(meEle_eta_MTD_3sigma_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_3sigma_Bkg_EB_);
1622 
1623   meEtaEffMTD_2sigma_Bkg_EB_ =
1624       ibook.book1D("EtaEffMTD_2sigma_Bkg_EB",
1625                    " MTD isolation Efficiency - 2 sigma compatibility - Bkg Endcap VS Eta;#eta;Efficiency",
1626                    meEle_eta_tot_Bkg_EB_->getNbinsX(),
1627                    meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1628                    meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1629   meEtaEffMTD_2sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1630   computeEfficiency1D(meEle_eta_MTD_2sigma_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffMTD_2sigma_Bkg_EB_);
1631 
1632   mePhiEffMTD_4sigma_Bkg_EB_ =
1633       ibook.book1D("PhiEffMTD_4sigma_Bkg_EB",
1634                    " MTD isolation Efficiency - 4 sigma compatibility - Bkg Endcap VS Phi;#phi;Efficiency",
1635                    meEle_phi_tot_Bkg_EB_->getNbinsX(),
1636                    meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1637                    meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1638   mePhiEffMTD_4sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1639   computeEfficiency1D(meEle_phi_MTD_4sigma_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_4sigma_Bkg_EB_);
1640 
1641   mePhiEffMTD_3sigma_Bkg_EB_ =
1642       ibook.book1D("PhiEffMTD_3sigma_Bkg_EB",
1643                    " MTD isolation Efficiency - 3 sigma compatibility - Bkg Endcap VS Phi;#phi;Efficiency",
1644                    meEle_phi_tot_Bkg_EB_->getNbinsX(),
1645                    meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1646                    meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1647   mePhiEffMTD_3sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1648   computeEfficiency1D(meEle_phi_MTD_3sigma_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_3sigma_Bkg_EB_);
1649 
1650   mePhiEffMTD_2sigma_Bkg_EB_ =
1651       ibook.book1D("PhiEffMTD_2sigma_Bkg_EB",
1652                    " MTD isolation Efficiency - 2 sigma compatibility - Bkg Endcap VS Phi;#phi;Efficiency",
1653                    meEle_phi_tot_Bkg_EB_->getNbinsX(),
1654                    meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1655                    meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1656   mePhiEffMTD_2sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1657   computeEfficiency1D(meEle_phi_MTD_2sigma_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffMTD_2sigma_Bkg_EB_);
1658 
1659   mePtEffMTD_4sigma_Bkg_EB_ =
1660       ibook.book1D("pTeffMTD_4sigma_Bkg_EB",
1661                    " MTD isolation Efficiency - 4 sigma compatibility - Bkg Barrel VS pT;p_{T};Efficiency",
1662                    meEle_pt_tot_Bkg_EB_->getNbinsX(),
1663                    meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1664                    meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1665   mePtEffMTD_4sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1666   computeEfficiency1D(meEle_pt_MTD_4sigma_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_4sigma_Bkg_EB_);
1667 
1668   mePtEffMTD_3sigma_Bkg_EB_ =
1669       ibook.book1D("pTeffMTD_3sigma_Bkg_EB",
1670                    " MTD isolation Efficiency - 3 sigma compatibility - Bkg Barrel VS pT;p_{T};Efficiency",
1671                    meEle_pt_tot_Bkg_EB_->getNbinsX(),
1672                    meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1673                    meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1674   mePtEffMTD_3sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1675   computeEfficiency1D(meEle_pt_MTD_3sigma_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_3sigma_Bkg_EB_);
1676 
1677   mePtEffMTD_2sigma_Bkg_EB_ =
1678       ibook.book1D("pTeffMTD_2sigma_Bkg_EB",
1679                    " MTD isolation Efficiency - 2 sigma compatibility - Bkg Barrel VS pT;p_{T};Efficiency",
1680                    meEle_pt_tot_Bkg_EB_->getNbinsX(),
1681                    meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1682                    meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1683   mePtEffMTD_2sigma_Bkg_EB_->getTH1()->SetMinimum(0.);
1684   computeEfficiency1D(meEle_pt_MTD_2sigma_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffMTD_2sigma_Bkg_EB_);
1685   mePtEffnoMTD_Bkg_EB_ = ibook.book1D("pTeffnoMTD_Bkg_EB",
1686                                       " noMTD isolation Efficiency - Bkg Barrel VS pT;p_{T};Efficiency",
1687                                       meEle_pt_tot_Bkg_EB_->getNbinsX(),
1688                                       meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1689                                       meEle_pt_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1690   mePtEffnoMTD_Bkg_EB_->getTH1()->SetMinimum(0.);
1691   computeEfficiency1D(meEle_pt_noMTD_Bkg_EB_, meEle_pt_tot_Bkg_EB_, mePtEffnoMTD_Bkg_EB_);
1692 
1693   meEtaEffnoMTD_Bkg_EB_ = ibook.book1D("EtaEffnoMTD_Bkg_EB",
1694                                        " noMTD isolation Efficiency - Bkg Barrel VS pT;p_{T};Efficiency",
1695                                        meEle_eta_tot_Bkg_EB_->getNbinsX(),
1696                                        meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1697                                        meEle_eta_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1698   meEtaEffnoMTD_Bkg_EB_->getTH1()->SetMinimum(0.);
1699   computeEfficiency1D(meEle_eta_noMTD_Bkg_EB_, meEle_eta_tot_Bkg_EB_, meEtaEffnoMTD_Bkg_EB_);
1700 
1701   mePhiEffnoMTD_Bkg_EB_ = ibook.book1D("PhiEffnoMTD_Bkg_EB",
1702                                        " noMTD isolation Efficiency - Bkg Barrel VS pT;p_{T};Efficiency",
1703                                        meEle_phi_tot_Bkg_EB_->getNbinsX(),
1704                                        meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1705                                        meEle_phi_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1706   mePhiEffnoMTD_Bkg_EB_->getTH1()->SetMinimum(0.);
1707   computeEfficiency1D(meEle_phi_noMTD_Bkg_EB_, meEle_phi_tot_Bkg_EB_, mePhiEffnoMTD_Bkg_EB_);
1708 
1709   if (optionalPlots_) {
1710     mePtEffgen_Bkg_EB_ = ibook.book1D("pTeffMTD_gen_Bkg_EB",
1711                                       " MTD isolation Efficiency - genInfo - Bkg Barrel VS pT;p_{T};Efficiency",
1712                                       meEle_pt_sim_tot_Bkg_EB_->getNbinsX(),
1713                                       meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmin(),
1714                                       meEle_pt_sim_tot_Bkg_EB_->getTH1()->GetXaxis()->GetXmax());
1715     mePtEffgen_Bkg_EB_->getTH1()->SetMinimum(0.);
1716     computeEfficiency1D(meEle_pt_gen_Bkg_EB_, meEle_pt_sim_tot_Bkg_EB_, mePtEffgen_Bkg_EB_);
1717 
1718     // Ele iso addition ends
1719     // For endcap now
1720     mePtEffMTD_1_Bkg_EE_ = ibook.book1D("pTeffMTD_1_Bkg_EE",
1721                                         " MTD isolation Efficiency - 1 BkgL Endcap VS pT;p_{T};Efficiency",
1722                                         meEle_pt_tot_Bkg_EE_->getNbinsX(),
1723                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1724                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1725     mePtEffMTD_1_Bkg_EE_->getTH1()->SetMinimum(0.);
1726     computeEfficiency1D(meEle_pt_MTD_1_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_1_Bkg_EE_);
1727 
1728     mePtEffMTD_2_Bkg_EE_ = ibook.book1D("pTeffMTD_2_Bkg_EE",
1729                                         " MTD isolation Efficiency - 2 Bkg Endcap VS pT;p_{T};Efficiency",
1730                                         meEle_pt_tot_Bkg_EE_->getNbinsX(),
1731                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1732                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1733     mePtEffMTD_2_Bkg_EE_->getTH1()->SetMinimum(0.);
1734     computeEfficiency1D(meEle_pt_MTD_2_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_2_Bkg_EE_);
1735 
1736     mePtEffMTD_3_Bkg_EE_ = ibook.book1D("pTeffMTD_3_Bkg_EE",
1737                                         " MTD isolation Efficiency - 3 Bkg Endcap VS pT;p_{T};Efficiency",
1738                                         meEle_pt_tot_Bkg_EE_->getNbinsX(),
1739                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1740                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1741     mePtEffMTD_3_Bkg_EE_->getTH1()->SetMinimum(0.);
1742     computeEfficiency1D(meEle_pt_MTD_3_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_3_Bkg_EE_);
1743 
1744     mePtEffMTD_4_Bkg_EE_ = ibook.book1D("pTeffMTD_4_Bkg_EE",
1745                                         " MTD isolation Efficiency - 4 Bkg Endcap VS pT;p_{T};Efficiency",
1746                                         meEle_pt_tot_Bkg_EE_->getNbinsX(),
1747                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1748                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1749     mePtEffMTD_4_Bkg_EE_->getTH1()->SetMinimum(0.);
1750     computeEfficiency1D(meEle_pt_MTD_4_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_4_Bkg_EE_);
1751 
1752     mePtEffMTD_5_Bkg_EE_ = ibook.book1D("pTeffMTD_5_Bkg_EE",
1753                                         " MTD isolation Efficiency - 5 Bkg Endcap VS pT;p_{T};Efficiency",
1754                                         meEle_pt_tot_Bkg_EE_->getNbinsX(),
1755                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1756                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1757     mePtEffMTD_5_Bkg_EE_->getTH1()->SetMinimum(0.);
1758     computeEfficiency1D(meEle_pt_MTD_5_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_5_Bkg_EE_);
1759 
1760     mePtEffMTD_6_Bkg_EE_ = ibook.book1D("pTeffMTD_6_Bkg_EE",
1761                                         " MTD isolation Efficiency - 6 Bkg Endcap VS pT;p_{T};Efficiency",
1762                                         meEle_pt_tot_Bkg_EE_->getNbinsX(),
1763                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1764                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1765     mePtEffMTD_6_Bkg_EE_->getTH1()->SetMinimum(0.);
1766     computeEfficiency1D(meEle_pt_MTD_6_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_6_Bkg_EE_);
1767 
1768     mePtEffMTD_7_Bkg_EE_ = ibook.book1D("pTeffMTD_7_Bkg_EE",
1769                                         " MTD isolation Efficiency - 7 Bkg Endcap VS pT;p_{T};Efficiency",
1770                                         meEle_pt_tot_Bkg_EE_->getNbinsX(),
1771                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1772                                         meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1773     mePtEffMTD_7_Bkg_EE_->getTH1()->SetMinimum(0.);
1774     computeEfficiency1D(meEle_pt_MTD_7_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_7_Bkg_EE_);
1775 
1776     mePtEffMTD_sim_1_Bkg_EE_ = ibook.book1D("mePtEffMTD_sim_1_Bkg_EE_",
1777                                             " MTD isolation Efficiency SIM - 1 Bkg Endcap VS pT;p_{T};Efficiency",
1778                                             meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1779                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1780                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1781     mePtEffMTD_sim_1_Bkg_EE_->getTH1()->SetMinimum(0.);
1782     computeEfficiency1D(meEle_pt_sim_MTD_1_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_1_Bkg_EE_);
1783 
1784     mePtEffMTD_sim_2_Bkg_EE_ = ibook.book1D("mePtEffMTD_sim_2_Bkg_EE_",
1785                                             " MTD isolation Efficiency SIM - 2 Bkg Endcap VS pT;p_{T};Efficiency",
1786                                             meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1787                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1788                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1789     mePtEffMTD_sim_2_Bkg_EE_->getTH1()->SetMinimum(0.);
1790     computeEfficiency1D(meEle_pt_sim_MTD_2_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_2_Bkg_EE_);
1791 
1792     mePtEffMTD_sim_3_Bkg_EE_ = ibook.book1D("mePtEffMTD_sim_3_Bkg_EE_",
1793                                             " MTD isolation Efficiency SIM - 3 Bkg Endcap VS pT;p_{T};Efficiency",
1794                                             meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1795                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1796                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1797     mePtEffMTD_sim_3_Bkg_EE_->getTH1()->SetMinimum(0.);
1798     computeEfficiency1D(meEle_pt_sim_MTD_3_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_3_Bkg_EE_);
1799 
1800     mePtEffMTD_sim_4_Bkg_EE_ = ibook.book1D("mePtEffMTD_sim_4_Bkg_EE_",
1801                                             " MTD isolation Efficiency SIM - 4 Bkg Endcap VS pT;p_{T};Efficiency",
1802                                             meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1803                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1804                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1805     mePtEffMTD_sim_4_Bkg_EE_->getTH1()->SetMinimum(0.);
1806     computeEfficiency1D(meEle_pt_sim_MTD_4_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_4_Bkg_EE_);
1807 
1808     mePtEffMTD_sim_5_Bkg_EE_ = ibook.book1D("mePtEffMTD_sim_5_Bkg_EE_",
1809                                             " MTD isolation Efficiency SIM - 5 Bkg Endcap VS pT;p_{T};Efficiency",
1810                                             meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1811                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1812                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1813     mePtEffMTD_sim_5_Bkg_EE_->getTH1()->SetMinimum(0.);
1814     computeEfficiency1D(meEle_pt_sim_MTD_5_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_5_Bkg_EE_);
1815 
1816     mePtEffMTD_sim_6_Bkg_EE_ = ibook.book1D("mePtEffMTD_sim_6_Bkg_EE_",
1817                                             " MTD isolation Efficiency SIM - 6 Bkg Endcap VS pT;p_{T};Efficiency",
1818                                             meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1819                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1820                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1821     mePtEffMTD_sim_6_Bkg_EE_->getTH1()->SetMinimum(0.);
1822     computeEfficiency1D(meEle_pt_sim_MTD_6_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_6_Bkg_EE_);
1823 
1824     mePtEffMTD_sim_7_Bkg_EE_ = ibook.book1D("mePtEffMTD_sim_7_Bkg_EE_",
1825                                             " MTD isolation Efficiency SIM - 7 Bkg Endcap VS pT;p_{T};Efficiency",
1826                                             meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1827                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1828                                             meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1829     mePtEffMTD_sim_7_Bkg_EE_->getTH1()->SetMinimum(0.);
1830     computeEfficiency1D(meEle_pt_sim_MTD_7_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_7_Bkg_EE_);
1831   }
1832   mePtEffMTD_4sigma_Bkg_EE_ =
1833       ibook.book1D("pTeffMTD_4sigma_Bkg_EE",
1834                    " MTD isolation Efficiency - 4 sigma compatibility - Bkg Endcap VS pT;p_{T};Efficiency",
1835                    meEle_pt_tot_Bkg_EE_->getNbinsX(),
1836                    meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1837                    meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1838   mePtEffMTD_4sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
1839   computeEfficiency1D(meEle_pt_MTD_4sigma_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_4sigma_Bkg_EE_);
1840 
1841   mePtEffMTD_3sigma_Bkg_EE_ =
1842       ibook.book1D("pTeffMTD_3sigma_Bkg_EE",
1843                    " MTD isolation Efficiency - 3 sigma compatibility - Bkg Endcap VS pT;p_{T};Efficiency",
1844                    meEle_pt_tot_Bkg_EE_->getNbinsX(),
1845                    meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1846                    meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1847   mePtEffMTD_3sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
1848   computeEfficiency1D(meEle_pt_MTD_3sigma_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_3sigma_Bkg_EE_);
1849 
1850   mePtEffMTD_2sigma_Bkg_EE_ =
1851       ibook.book1D("pTeffMTD_2sigma_Bkg_EE",
1852                    " MTD isolation Efficiency - 2 sigma compatibility - Bkg Endcap VS pT;p_{T};Efficiency",
1853                    meEle_pt_tot_Bkg_EE_->getNbinsX(),
1854                    meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1855                    meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1856   mePtEffMTD_2sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
1857   computeEfficiency1D(meEle_pt_MTD_2sigma_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_2sigma_Bkg_EE_);
1858 
1859   if (optionalPlots_) {
1860     mePtEffMTD_sim_4sigma_Bkg_EE_ =
1861         ibook.book1D("pTeffMTD_sim_4sigma_Bkg_EE",
1862                      " MTD isolation Efficiency SIM - 4 sigma compatibility - Bkg Endcap VS pT;p_{T};Efficiency",
1863                      meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1864                      meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1865                      meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1866     mePtEffMTD_sim_4sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
1867     computeEfficiency1D(meEle_pt_sim_MTD_4sigma_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_4sigma_Bkg_EE_);
1868 
1869     mePtEffMTD_sim_3sigma_Bkg_EE_ =
1870         ibook.book1D("pTeffMTD_sim_3sigma_Bkg_EE",
1871                      " MTD isolation Efficiency SIM - 3 sigma compatibility - Bkg Endcap VS pT;p_{T};Efficiency",
1872                      meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1873                      meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1874                      meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1875     mePtEffMTD_sim_3sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
1876     computeEfficiency1D(meEle_pt_sim_MTD_3sigma_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_3sigma_Bkg_EE_);
1877 
1878     mePtEffMTD_sim_2sigma_Bkg_EE_ =
1879         ibook.book1D("pTeffMTD_sim_2sigma_Bkg_EE",
1880                      " MTD isolation Efficiency SIM - 2 sigma compatibility - Bkg Endcap VS pT;p_{T};Efficiency",
1881                      meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
1882                      meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1883                      meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1884     mePtEffMTD_sim_2sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
1885     computeEfficiency1D(meEle_pt_sim_MTD_2sigma_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffMTD_sim_2sigma_Bkg_EE_);
1886 
1887     meEtaEffMTD_1_Bkg_EE_ = ibook.book1D("EtaEffMTD_1_Bkg_EE",
1888                                          " MTD isolation Efficiency - 1 Bkg Endcap VS Eta;#eta;Efficiency",
1889                                          meEle_eta_tot_Bkg_EE_->getNbinsX(),
1890                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1891                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1892     meEtaEffMTD_1_Bkg_EE_->getTH1()->SetMinimum(0.);
1893     computeEfficiency1D(meEle_eta_MTD_1_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_1_Bkg_EE_);
1894 
1895     meEtaEffMTD_2_Bkg_EE_ = ibook.book1D("EtaEffMTD_2_Bkg_EE",
1896                                          " MTD isolation Efficiency - 2 Bkg Endcap VS Eta;#eta;Efficiency",
1897                                          meEle_eta_tot_Bkg_EE_->getNbinsX(),
1898                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1899                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1900     meEtaEffMTD_2_Bkg_EE_->getTH1()->SetMinimum(0.);
1901     computeEfficiency1D(meEle_eta_MTD_2_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_2_Bkg_EE_);
1902 
1903     meEtaEffMTD_3_Bkg_EE_ = ibook.book1D("EtaEffMTD_3_Bkg_EE",
1904                                          " MTD isolation Efficiency - 3 Bkg Endcap VS Eta;#eta;Efficiency",
1905                                          meEle_eta_tot_Bkg_EE_->getNbinsX(),
1906                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1907                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1908     meEtaEffMTD_3_Bkg_EE_->getTH1()->SetMinimum(0.);
1909     computeEfficiency1D(meEle_eta_MTD_3_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_3_Bkg_EE_);
1910 
1911     meEtaEffMTD_4_Bkg_EE_ = ibook.book1D("EtaEffMTD_4_Bkg_EE",
1912                                          " MTD isolation Efficiency - 4 Bkg Endcap VS Eta;#eta;Efficiency",
1913                                          meEle_eta_tot_Bkg_EE_->getNbinsX(),
1914                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1915                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1916     meEtaEffMTD_4_Bkg_EE_->getTH1()->SetMinimum(0.);
1917     computeEfficiency1D(meEle_eta_MTD_4_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_4_Bkg_EE_);
1918 
1919     meEtaEffMTD_5_Bkg_EE_ = ibook.book1D("EtaEffMTD_5_Bkg_EE",
1920                                          " MTD isolation Efficiency - 5 Bkg Endcap VS Eta;#eta;Efficiency",
1921                                          meEle_eta_tot_Bkg_EE_->getNbinsX(),
1922                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1923                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1924     meEtaEffMTD_5_Bkg_EE_->getTH1()->SetMinimum(0.);
1925     computeEfficiency1D(meEle_eta_MTD_5_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_5_Bkg_EE_);
1926 
1927     meEtaEffMTD_6_Bkg_EE_ = ibook.book1D("EtaEffMTD_6_Bkg_EE",
1928                                          " MTD isolation Efficiency - 6 Bkg Endcap VS Eta;#eta;Efficiency",
1929                                          meEle_eta_tot_Bkg_EE_->getNbinsX(),
1930                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1931                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1932     meEtaEffMTD_6_Bkg_EE_->getTH1()->SetMinimum(0.);
1933     computeEfficiency1D(meEle_eta_MTD_6_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_6_Bkg_EE_);
1934 
1935     meEtaEffMTD_7_Bkg_EE_ = ibook.book1D("EtaEffMTD_7_Bkg_EE",
1936                                          " MTD isolation Efficiency - 7 Bkg Endcap VS Eta;#eta;Efficiency",
1937                                          meEle_eta_tot_Bkg_EE_->getNbinsX(),
1938                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1939                                          meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1940     meEtaEffMTD_7_Bkg_EE_->getTH1()->SetMinimum(0.);
1941     computeEfficiency1D(meEle_eta_MTD_7_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_7_Bkg_EE_);
1942 
1943     mePhiEffMTD_1_Bkg_EE_ = ibook.book1D("PhiEffMTD_1_Bkg_EE",
1944                                          " MTD isolation Efficiency - 1 Bkg Endcap VS Phi;#phi;Efficiency",
1945                                          meEle_phi_tot_Bkg_EE_->getNbinsX(),
1946                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1947                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1948     mePhiEffMTD_1_Bkg_EE_->getTH1()->SetMinimum(0.);
1949     computeEfficiency1D(meEle_phi_MTD_1_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_1_Bkg_EE_);
1950 
1951     mePhiEffMTD_2_Bkg_EE_ = ibook.book1D("PhiEffMTD_2_Bkg_EE",
1952                                          " MTD isolation Efficiency - 2 Bkg Endcap VS Phi;#phi;Efficiency",
1953                                          meEle_phi_tot_Bkg_EE_->getNbinsX(),
1954                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1955                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1956     mePhiEffMTD_2_Bkg_EE_->getTH1()->SetMinimum(0.);
1957     computeEfficiency1D(meEle_phi_MTD_2_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_2_Bkg_EE_);
1958 
1959     mePhiEffMTD_3_Bkg_EE_ = ibook.book1D("PhiEffMTD_3_Bkg_EE",
1960                                          " MTD isolation Efficiency - 3 Bkg Endcap VS Phi;#phi;Efficiency",
1961                                          meEle_phi_tot_Bkg_EE_->getNbinsX(),
1962                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1963                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1964     mePhiEffMTD_3_Bkg_EE_->getTH1()->SetMinimum(0.);
1965     computeEfficiency1D(meEle_phi_MTD_3_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_3_Bkg_EE_);
1966 
1967     mePhiEffMTD_4_Bkg_EE_ = ibook.book1D("PhiEffMTD_4_Bkg_EE",
1968                                          " MTD isolation Efficiency - 4 Bkg Endcap VS Phi;#phi;Efficiency",
1969                                          meEle_phi_tot_Bkg_EE_->getNbinsX(),
1970                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1971                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1972     mePhiEffMTD_4_Bkg_EE_->getTH1()->SetMinimum(0.);
1973     computeEfficiency1D(meEle_phi_MTD_4_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_4_Bkg_EE_);
1974 
1975     mePhiEffMTD_5_Bkg_EE_ = ibook.book1D("PhiEffMTD_5_Bkg_EE",
1976                                          " MTD isolation Efficiency - 5 Bkg Endcap VS Phi;#phi;Efficiency",
1977                                          meEle_phi_tot_Bkg_EE_->getNbinsX(),
1978                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1979                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1980     mePhiEffMTD_5_Bkg_EE_->getTH1()->SetMinimum(0.);
1981     computeEfficiency1D(meEle_phi_MTD_5_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_5_Bkg_EE_);
1982 
1983     mePhiEffMTD_6_Bkg_EE_ = ibook.book1D("PhiEffMTD_6_Bkg_EE",
1984                                          " MTD isolation Efficiency - 6 Bkg Endcap VS Phi;#phi;Efficiency",
1985                                          meEle_phi_tot_Bkg_EE_->getNbinsX(),
1986                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1987                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1988     mePhiEffMTD_6_Bkg_EE_->getTH1()->SetMinimum(0.);
1989     computeEfficiency1D(meEle_phi_MTD_6_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_6_Bkg_EE_);
1990 
1991     mePhiEffMTD_7_Bkg_EE_ = ibook.book1D("PhiEffMTD_7_Bkg_EE",
1992                                          " MTD isolation Efficiency - 7 Bkg Endcap VS Phi;#phi;Efficiency",
1993                                          meEle_phi_tot_Bkg_EE_->getNbinsX(),
1994                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
1995                                          meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
1996     mePhiEffMTD_7_Bkg_EE_->getTH1()->SetMinimum(0.);
1997     computeEfficiency1D(meEle_phi_MTD_7_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_7_Bkg_EE_);
1998   }
1999 
2000   meEtaEffMTD_4sigma_Bkg_EE_ =
2001       ibook.book1D("EtaEffMTD_4sigma_Bkg_EE",
2002                    " MTD isolation Efficiency - 4 sigma compatibiliy - Bkg Endcap VS Eta;#eta;Efficiency",
2003                    meEle_eta_tot_Bkg_EE_->getNbinsX(),
2004                    meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2005                    meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2006   meEtaEffMTD_4sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
2007   computeEfficiency1D(meEle_eta_MTD_4sigma_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_4sigma_Bkg_EE_);
2008 
2009   meEtaEffMTD_3sigma_Bkg_EE_ =
2010       ibook.book1D("EtaEffMTD_3sigma_Bkg_EE",
2011                    " MTD isolation Efficiency - 3 sigma compatibiliy - Bkg Endcap VS Eta;#eta;Efficiency",
2012                    meEle_eta_tot_Bkg_EE_->getNbinsX(),
2013                    meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2014                    meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2015   meEtaEffMTD_3sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
2016   computeEfficiency1D(meEle_eta_MTD_3sigma_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_3sigma_Bkg_EE_);
2017 
2018   meEtaEffMTD_2sigma_Bkg_EE_ =
2019       ibook.book1D("EtaEffMTD_2sigma_Bkg_EE",
2020                    " MTD isolation Efficiency - 2 sigma compatibiliy - Bkg Endcap VS Eta;#eta;Efficiency",
2021                    meEle_eta_tot_Bkg_EE_->getNbinsX(),
2022                    meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2023                    meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2024   meEtaEffMTD_2sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
2025   computeEfficiency1D(meEle_eta_MTD_2sigma_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffMTD_2sigma_Bkg_EE_);
2026 
2027   mePhiEffMTD_4sigma_Bkg_EE_ =
2028       ibook.book1D("PhiEffMTD_4sigma_Bkg_EE",
2029                    " MTD isolation Efficiency - 4 sigma compatibiliy - Bkg Endcap VS Phi;#phi;Efficiency",
2030                    meEle_phi_tot_Bkg_EE_->getNbinsX(),
2031                    meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2032                    meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2033   mePhiEffMTD_4sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
2034   computeEfficiency1D(meEle_phi_MTD_4sigma_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_4sigma_Bkg_EE_);
2035 
2036   mePhiEffMTD_3sigma_Bkg_EE_ =
2037       ibook.book1D("PhiEffMTD_3sigma_Bkg_EE",
2038                    " MTD isolation Efficiency - 3 sigma compatibiliy - Bkg Endcap VS Phi;#phi;Efficiency",
2039                    meEle_phi_tot_Bkg_EE_->getNbinsX(),
2040                    meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2041                    meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2042   mePhiEffMTD_3sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
2043   computeEfficiency1D(meEle_phi_MTD_3sigma_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_3sigma_Bkg_EE_);
2044 
2045   mePhiEffMTD_2sigma_Bkg_EE_ =
2046       ibook.book1D("PhiEffMTD_2sigma_Bkg_EE",
2047                    " MTD isolation Efficiency - 2 sigma compatibiliy - Bkg Endcap VS Phi;#phi;Efficiency",
2048                    meEle_phi_tot_Bkg_EE_->getNbinsX(),
2049                    meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2050                    meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2051   mePhiEffMTD_2sigma_Bkg_EE_->getTH1()->SetMinimum(0.);
2052   computeEfficiency1D(meEle_phi_MTD_2sigma_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffMTD_2sigma_Bkg_EE_);
2053 
2054   mePtEffnoMTD_Bkg_EE_ = ibook.book1D("pTeffnoMTD_Bkg_EE",
2055                                       " noMTD isolation Efficiency - Bkg Endcap VS pT;p_{T};Efficiency",
2056                                       meEle_pt_tot_Bkg_EE_->getNbinsX(),
2057                                       meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2058                                       meEle_pt_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2059   mePtEffnoMTD_Bkg_EE_->getTH1()->SetMinimum(0.);
2060   computeEfficiency1D(meEle_pt_noMTD_Bkg_EE_, meEle_pt_tot_Bkg_EE_, mePtEffnoMTD_Bkg_EE_);
2061 
2062   meEtaEffnoMTD_Bkg_EE_ = ibook.book1D("EtaEffnoMTD_Bkg_EE",
2063                                        " noMTD isolation Efficiency - Bkg Endcap VS Eta;#eta;Efficiency",
2064                                        meEle_eta_tot_Bkg_EE_->getNbinsX(),
2065                                        meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2066                                        meEle_eta_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2067   meEtaEffnoMTD_Bkg_EE_->getTH1()->SetMinimum(0.);
2068   computeEfficiency1D(meEle_eta_noMTD_Bkg_EE_, meEle_eta_tot_Bkg_EE_, meEtaEffnoMTD_Bkg_EE_);
2069 
2070   mePhiEffnoMTD_Bkg_EE_ = ibook.book1D("PhiEffnoMTD_Bkg_EE",
2071                                        " noMTD isolation Efficiency - Bkg Endcap VS Phi;#phi;Efficiency",
2072                                        meEle_phi_tot_Bkg_EE_->getNbinsX(),
2073                                        meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2074                                        meEle_phi_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2075   mePhiEffnoMTD_Bkg_EE_->getTH1()->SetMinimum(0.);
2076   computeEfficiency1D(meEle_phi_noMTD_Bkg_EE_, meEle_phi_tot_Bkg_EE_, mePhiEffnoMTD_Bkg_EE_);
2077 
2078   if (optionalPlots_) {
2079     mePtEffgen_Bkg_EE_ = ibook.book1D("pTeffMTD_gen_Bkg_EE",
2080                                       " MTD isolation Efficiency - genInfo - Bkg Endcap VS pT;p_{T};Efficiency",
2081                                       meEle_pt_sim_tot_Bkg_EE_->getNbinsX(),
2082                                       meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmin(),
2083                                       meEle_pt_sim_tot_Bkg_EE_->getTH1()->GetXaxis()->GetXmax());
2084     mePtEffgen_Bkg_EE_->getTH1()->SetMinimum(0.);
2085     computeEfficiency1D(meEle_pt_gen_Bkg_EE_, meEle_pt_sim_tot_Bkg_EE_, mePtEffgen_Bkg_EE_);
2086   }
2087 }
2088 
2089 // ------------ method fills 'descriptions' with the allowed parameters for the module  ----------
2090 void MtdEleIsoHarvester::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
2091   edm::ParameterSetDescription desc;
2092 
2093   desc.add<std::string>("folder", "MTD/ElectronIso/");
2094   desc.add<bool>("option_plots", false);
2095 
2096   descriptions.add("MtdEleIsoPostProcessor", desc);
2097 }
2098 
2099 DEFINE_FWK_MODULE(MtdEleIsoHarvester);