#include <L3NominalEfficiencyConfigurator.h>
Public Member Functions | |
muonisolation::Cuts | cuts () const |
L3NominalEfficiencyConfigurator (const edm::ParameterSet &pset) | |
Private Attributes | |
std::vector< std::string > | theBestCones |
edm::ParameterSet | theConfig |
std::string | theFileName |
std::vector< double > | theWeights |
Definition at line 9 of file L3NominalEfficiencyConfigurator.h.
L3NominalEfficiencyConfigurator::L3NominalEfficiencyConfigurator | ( | const edm::ParameterSet & | pset | ) |
Definition at line 6 of file L3NominalEfficiencyConfigurator.cc.
References dir, edm::ParameterSet::getParameter(), fjr2json::lumi, AlCaRecoCosmics_cfg::name, theBestCones, theConfig, and theFileName.
: theConfig(pset), theWeights(std::vector<double>(1,1.)) { std::string name = theConfig.getParameter<std::string>("ComponentName"); std::string lumi = theConfig.getParameter<std::string>("LumiOption"); std::string dir="RecoMuon/L3MuonIsolationProducer/data/"; if (name=="L3NominalEfficiencyCuts_PXLS") { if (lumi=="2E33") { theFileName = dir+"L3Pixel_PTDR_2x1033.dat"; theBestCones = std::vector<std::string>(1,"8:0.97"); } } else if ( name=="L3NominalEfficiencyCuts_TRKS") { } else { } }
Cuts L3NominalEfficiencyConfigurator::cuts | ( | ) | const |
Definition at line 26 of file L3NominalEfficiencyConfigurator.cc.
References muonisolation::IsolatorByNominalEfficiency::cuts(), edm::ParameterSet::getParameter(), theBestCones, theConfig, theFileName, theWeights, and crabWrap::threshold.
Referenced by L3MuonIsolationProducer::beginJob().
{ IsolatorByNominalEfficiency nomEff(theFileName, theBestCones, theWeights); double threshold = theConfig.getParameter<double>("NominalEfficiency"); return nomEff.cuts(threshold); }
std::vector<std::string> L3NominalEfficiencyConfigurator::theBestCones [private] |
Definition at line 15 of file L3NominalEfficiencyConfigurator.h.
Referenced by cuts(), and L3NominalEfficiencyConfigurator().
Definition at line 14 of file L3NominalEfficiencyConfigurator.h.
Referenced by cuts(), and L3NominalEfficiencyConfigurator().
std::string L3NominalEfficiencyConfigurator::theFileName [private] |
Definition at line 17 of file L3NominalEfficiencyConfigurator.h.
Referenced by cuts(), and L3NominalEfficiencyConfigurator().
std::vector<double> L3NominalEfficiencyConfigurator::theWeights [private] |
Definition at line 16 of file L3NominalEfficiencyConfigurator.h.
Referenced by cuts().