#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) |
|
Result | result (const DepositContainer &deposits, const edm::Event *=nullptr) const override |
| Compute the deposit within the cone and return the isolation result. More...
|
|
| ~IsolatorByNominalEfficiency () override |
|
virtual Result | result (const DepositContainer &deposits, const reco::Candidate &muon, const edm::Event *=nullptr) 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 *=nullptr) const |
| Compute and return the isolation variable, with vetoes and the muon. More...
|
|
virtual | ~MuIsoBaseIsolator () |
|
◆ DepositContainer
◆ mapNomEff_Cone
◆ IsolatorByNominalEfficiency() [1/2]
muonisolation::IsolatorByNominalEfficiency::IsolatorByNominalEfficiency |
( |
const std::string & |
thrFile, |
|
|
const std::vector< std::string > & |
ceff, |
|
|
const std::vector< double > & |
weights |
|
) |
| |
◆ IsolatorByNominalEfficiency() [2/2]
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::~IsolatorByNominalEfficiency |
( |
| ) |
|
|
override |
◆ bestConeForEfficiencyIndex()
int IsolatorByNominalEfficiency::bestConeForEfficiencyIndex |
( |
float |
eff_thr | ) |
const |
|
private |
◆ cones()
Definition at line 46 of file IsolatorByNominalEfficiency.cc.
48 for (vector<string>::const_iterator is = usrVec.begin(); is != usrVec.end(); is++) {
50 int cone = strtol((*is).c_str(), &evp, 10);
51 float effic = strtod(evp + 1, &evp);
52 result.insert(make_pair(effic, cone));
References result().
◆ cuts()
Cuts IsolatorByNominalEfficiency::cuts |
( |
float |
nominalEfficiency | ) |
const |
Definition at line 144 of file IsolatorByNominalEfficiency.cc.
146 vector<double> coneSizes;
147 vector<double> cutvalues;
148 for (vector<double>::const_iterator it = etaBounds.begin(), itEnd = etaBounds.end(); it < itEnd; ++it) {
155 return Cuts(etaBounds, coneSizes, cutvalues);
References bestConeForEfficiencyIndex(), muonisolation::NominalEfficiencyThresholds::bins(), PVValHelper::eta, f, EcalCondDBWriter_cfi::location, muonisolation::IsolatorByNominalEfficiency::ConeSizes::size(), theConesInfo, thresholds, and muonisolation::NominalEfficiencyThresholds::thresholdValueForEfficiency().
Referenced by L3NominalEfficiencyConfigurator::cuts().
◆ findPath()
string IsolatorByNominalEfficiency::findPath |
( |
const std::string & |
fileName | ) |
|
|
private |
◆ result()
Compute the deposit within the cone and return the isolation result.
Implements muonisolation::MuIsoBaseIsolator.
Definition at line 63 of file IsolatorByNominalEfficiency.cc.
66 cout <<
"IsolatorByNominalEfficiency: no deposit" << endl;
76 float theEta =
deposits.back().dep->eta();
81 float nominalEfficiency = 1.;
82 const float deltaeff = 0.005;
83 const float mineff = deltaeff;
84 for (
float eff = .995; eff > mineff; eff -= deltaeff) {
100 nominalEfficiency = eff;
103 res.valFloat = nominalEfficiency;
References bestConeForEfficiencyIndex(), HLT_FULL_cff::coneSize, gather_cfg::cout, CandIsolatorFromDeposits_cfi::deposits, EcalCondDBWriter_cfi::location, resultType(), muonisolation::IsolatorByNominalEfficiency::ConeSizes::size(), theConesInfo, thresholds, muonisolation::NominalEfficiencyThresholds::thresholdValueForEfficiency(), and weightedSum().
Referenced by cones().
◆ resultType()
ResultType muonisolation::IsolatorByNominalEfficiency::resultType |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ weightedSum()
double IsolatorByNominalEfficiency::weightedSum |
( |
const DepositContainer & |
deposits, |
|
|
float |
dRcone |
|
) |
| const |
|
privatevirtual |
◆ coneForEfficiency
mapNomEff_Cone muonisolation::IsolatorByNominalEfficiency::coneForEfficiency |
|
private |
◆ theConesInfo
ConeSizes muonisolation::IsolatorByNominalEfficiency::theConesInfo |
|
private |
◆ theDepThresholds
std::vector<double> muonisolation::IsolatorByNominalEfficiency::theDepThresholds |
|
private |
◆ theWeights
std::vector<double> muonisolation::IsolatorByNominalEfficiency::theWeights |
|
private |
◆ thresholds