CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/RecoMuon/L3MuonIsolationProducer/src/L3NominalEfficiencyConfigurator.cc

Go to the documentation of this file.
00001 #include "L3NominalEfficiencyConfigurator.h"
00002 #include "RecoMuon/MuonIsolation/interface/IsolatorByNominalEfficiency.h"
00003 
00004 using namespace muonisolation;
00005 
00006 L3NominalEfficiencyConfigurator::L3NominalEfficiencyConfigurator(const edm::ParameterSet & pset)
00007   : theConfig(pset), theWeights(std::vector<double>(1,1.))
00008 {
00009   std::string name = theConfig.getParameter<std::string>("ComponentName");
00010   std::string lumi = theConfig.getParameter<std::string>("LumiOption"); 
00011 
00012   std::string dir="RecoMuon/L3MuonIsolationProducer/data/";
00013   if (name=="L3NominalEfficiencyCuts_PXLS") {
00014     if (lumi=="2E33") {
00015       theFileName = dir+"L3Pixel_PTDR_2x1033.dat";
00016       theBestCones = std::vector<std::string>(1,"8:0.97");
00017     }
00018   } 
00019   else if ( name=="L3NominalEfficiencyCuts_TRKS") {
00020   }
00021   else {
00022     
00023   }
00024 }
00025 
00026 Cuts L3NominalEfficiencyConfigurator::cuts() const
00027 
00028 {
00029 
00030   IsolatorByNominalEfficiency nomEff(theFileName, theBestCones, theWeights);
00031   double threshold = theConfig.getParameter<double>("NominalEfficiency"); 
00032   return nomEff.cuts(threshold);
00033 
00034 }
00035