#include <IsolatorByNominalEfficiency.h>
|
Cuts | cuts (float nominalEfficiency) const |
|
| IsolatorByNominalEfficiency (const std::string &thrFile, const std::vector< std::string > &ceff, const std::vector< double > &weights) |
| Constructor. More...
|
|
| IsolatorByNominalEfficiency (const std::string &thrFile, const std::vector< std::string > &ceff, const std::vector< double > &weights, const std::vector< double > &thresh) |
|
virtual Result | result (const DepositContainer &deposits, const edm::Event *=0) const |
| Compute the deposit within the cone and return the isolation result. More...
|
|
virtual | ~IsolatorByNominalEfficiency () |
|
virtual Result | result (const DepositContainer &deposits, const reco::Candidate &muon, const edm::Event *=0) const |
| Compute and return the isolation variable, with vetoes and the muon. More...
|
|
virtual Result | result (const DepositContainer &deposits, const reco::Track &muon, const edm::Event *=0) const |
| Compute and return the isolation variable, with vetoes and the muon. More...
|
|
virtual | ~MuIsoBaseIsolator () |
|
muonisolation::IsolatorByNominalEfficiency::IsolatorByNominalEfficiency |
( |
const std::string & |
thrFile, |
|
|
const std::vector< std::string > & |
ceff, |
|
|
const std::vector< double > & |
weights |
|
) |
| |
muonisolation::IsolatorByNominalEfficiency::IsolatorByNominalEfficiency |
( |
const std::string & |
thrFile, |
|
|
const std::vector< std::string > & |
ceff, |
|
|
const std::vector< double > & |
weights, |
|
|
const std::vector< double > & |
thresh |
|
) |
| |
IsolatorByNominalEfficiency::~IsolatorByNominalEfficiency |
( |
| ) |
|
|
virtual |
int IsolatorByNominalEfficiency::bestConeForEfficiencyIndex |
( |
float |
eff_thr | ) |
const |
|
private |
Definition at line 42 of file IsolatorByNominalEfficiency.cc.
References mps_fire::result.
44 for (vector<string>::const_iterator is = usrVec.begin();
45 is != usrVec.end(); is++) {
47 int cone = strtol( (*is).c_str(), &evp, 10);
48 float effic = strtod(evp+1, &evp);
49 result.insert(make_pair(effic,cone));
std::multimap< float, int > mapNomEff_Cone
virtual Result result(const DepositContainer &deposits, const edm::Event *=0) const
Compute the deposit within the cone and return the isolation result.
Cuts IsolatorByNominalEfficiency::cuts |
( |
float |
nominalEfficiency | ) |
const |
Definition at line 145 of file IsolatorByNominalEfficiency.cc.
References stringResolutionProvider_cfi::eta, and f.
Referenced by L3NominalEfficiencyConfigurator::cuts().
148 vector<double> coneSizes;
149 vector<double> cutvalues;
150 for (vector<double>::const_iterator it=etaBounds.begin(),itEnd=etaBounds.end();it < itEnd;++it){
157 return Cuts(etaBounds,coneSizes,cutvalues);
std::vector< double > bins() const
NominalEfficiencyThresholds * thresholds
int bestConeForEfficiencyIndex(float eff_thr) const
float thresholdValueForEfficiency(ThresholdLocation location, float eff_thr) const
string IsolatorByNominalEfficiency::findPath |
( |
const std::string & |
fileName | ) |
|
|
private |
Compute the deposit within the cone and return the isolation result.
Implements muonisolation::MuIsoBaseIsolator.
Definition at line 62 of file IsolatorByNominalEfficiency.cc.
References highPtTrackIsolations_cff::coneSize, gather_cfg::cout, and muonisolation::MuIsoBaseIsolator::Result::valFloat.
65 cout <<
"IsolatorByNominalEfficiency: no deposit" << endl;
75 float theEta =
deposits.back().dep->eta();
80 float nominalEfficiency = 1.;
81 const float deltaeff=0.005;
82 const float mineff=deltaeff;
83 for (
float eff=.995; eff>mineff; eff-=deltaeff) {
97 if (sumDep > thres)
break;
98 nominalEfficiency = eff;
101 res.valFloat = nominalEfficiency;
virtual ResultType resultType() const
virtual double weightedSum(const DepositContainer &deposits, float dRcone) const
NominalEfficiencyThresholds * thresholds
int bestConeForEfficiencyIndex(float eff_thr) const
float thresholdValueForEfficiency(ThresholdLocation location, float eff_thr) const
virtual ResultType muonisolation::IsolatorByNominalEfficiency::resultType |
( |
| ) |
const |
|
inlineprivatevirtual |
double IsolatorByNominalEfficiency::weightedSum |
( |
const DepositContainer & |
deposits, |
|
|
float |
dRcone |
|
) |
| const |
|
privatevirtual |
mapNomEff_Cone muonisolation::IsolatorByNominalEfficiency::coneForEfficiency |
|
private |
ConeSizes muonisolation::IsolatorByNominalEfficiency::theConesInfo |
|
private |
std::vector<double> muonisolation::IsolatorByNominalEfficiency::theDepThresholds |
|
private |
std::vector<double> muonisolation::IsolatorByNominalEfficiency::theWeights |
|
private |