Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:51

0001 #include "L3NominalEfficiencyConfigurator.h"
0002 #include "RecoMuon/MuonIsolation/interface/IsolatorByNominalEfficiency.h"
0003 
0004 using namespace muonisolation;
0005 
0006 L3NominalEfficiencyConfigurator::L3NominalEfficiencyConfigurator(const edm::ParameterSet& pset)
0007     : theConfig(pset), theWeights(std::vector<double>(1, 1.)) {
0008   std::string name = theConfig.getParameter<std::string>("ComponentName");
0009   std::string lumi = theConfig.getParameter<std::string>("LumiOption");
0010 
0011   std::string dir = "RecoMuon/L3MuonIsolationProducer/data/";
0012   if (name == "L3NominalEfficiencyCuts_PXLS") {
0013     if (lumi == "2E33") {
0014       theFileName = dir + "L3Pixel_PTDR_2x1033.dat";
0015       theBestCones = std::vector<std::string>(1, "8:0.97");
0016     }
0017   } else if (name == "L3NominalEfficiencyCuts_TRKS") {
0018   } else {
0019   }
0020 }
0021 
0022 Cuts L3NominalEfficiencyConfigurator::cuts() const
0023 
0024 {
0025   IsolatorByNominalEfficiency nomEff(theFileName, theBestCones, theWeights);
0026   double threshold = theConfig.getParameter<double>("NominalEfficiency");
0027   return nomEff.cuts(threshold);
0028 }