#include <IsolatorByDeposit.h>
Classes | |
struct | ConeSizeFunction |
Public Types | |
typedef MuIsoBaseIsolator::DepositContainer | DepositContainer |
Public Types inherited from muonisolation::MuIsoBaseIsolator | |
typedef std::vector < DepositAndVetos > | DepositContainer |
enum | ResultType { ISOL_INT_TYPE = 0, ISOL_FLOAT_TYPE, ISOL_BOOL_TYPE, ISOL_INVALID_TYPE } |
typedef reco::IsoDeposit::Veto | Veto |
typedef reco::IsoDeposit::Vetos | Vetos |
Public Member Functions | |
virtual float | coneSize (float eta, float pT) const |
Get the cone size. More... | |
IsolatorByDeposit (float conesize, const std::vector< double > &weights) | |
construct with no addtnl thresholds on deposits More... | |
IsolatorByDeposit (const ConeSizeFunction *conesize, const std::vector< double > &weights) | |
IsolatorByDeposit (float conesize, const std::vector< double > &weights, const std::vector< double > &thresh) | |
construct with non-default thresholds per deposit More... | |
IsolatorByDeposit (const ConeSizeFunction *conesize, 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 ResultType | resultType () const |
void | setConeSize (float conesize) |
Compute the count of deposit within the cone and return the isolation result. More... | |
void | setConeSize (ConeSizeFunction *conesize) |
virtual void | setWeights (const std::vector< double > &weights) |
Set the weights for summing deposits of different types. More... | |
virtual | ~IsolatorByDeposit () |
Public Member Functions inherited from muonisolation::MuIsoBaseIsolator | |
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 () |
Private Member Functions | |
double | weightedSum (const DepositContainer &deposits, float dRcone) const |
Private Attributes | |
float | theConeSize |
const ConeSizeFunction * | theConeSizeFunction |
std::vector< double > | theDepThresholds |
std::vector< double > | theWeights |
Definition at line 19 of file IsolatorByDeposit.h.
Definition at line 21 of file IsolatorByDeposit.h.
IsolatorByDeposit::IsolatorByDeposit | ( | float | conesize, |
const std::vector< double > & | weights | ||
) |
construct with no addtnl thresholds on deposits
Definition at line 7 of file IsolatorByDeposit.cc.
References theDepThresholds.
IsolatorByDeposit::IsolatorByDeposit | ( | const ConeSizeFunction * | conesize, |
const std::vector< double > & | weights | ||
) |
Definition at line 13 of file IsolatorByDeposit.cc.
References theDepThresholds.
IsolatorByDeposit::IsolatorByDeposit | ( | float | conesize, |
const std::vector< double > & | weights, | ||
const std::vector< double > & | thresh | ||
) |
construct with non-default thresholds per deposit
Definition at line 19 of file IsolatorByDeposit.cc.
IsolatorByDeposit::IsolatorByDeposit | ( | const ConeSizeFunction * | conesize, |
const std::vector< double > & | weights, | ||
const std::vector< double > & | thresh | ||
) |
Definition at line 24 of file IsolatorByDeposit.cc.
|
inlinevirtual |
Definition at line 37 of file IsolatorByDeposit.h.
|
inlinevirtual |
Get the cone size.
Definition at line 56 of file IsolatorByDeposit.h.
References muonisolation::IsolatorByDeposit::ConeSizeFunction::coneSize(), theConeSize, and theConeSizeFunction.
Referenced by result().
|
virtual |
Compute the deposit within the cone and return the isolation result.
Implements muonisolation::MuIsoBaseIsolator.
Definition at line 30 of file IsolatorByDeposit.cc.
References coneSize(), eta(), resultType(), muonisolation::MuIsoBaseIsolator::Result::valFloat, and weightedSum().
Referenced by MuIsoByTrackPt::isolation().
|
inlinevirtual |
Implements muonisolation::MuIsoBaseIsolator.
Definition at line 60 of file IsolatorByDeposit.h.
References muonisolation::MuIsoBaseIsolator::ISOL_FLOAT_TYPE.
Referenced by result().
|
inline |
Compute the count of deposit within the cone and return the isolation result.
Definition at line 50 of file IsolatorByDeposit.h.
References theConeSize, and theConeSizeFunction.
Referenced by MuIsoByTrackPt::setConeSize().
|
inline |
Definition at line 52 of file IsolatorByDeposit.h.
References theConeSizeFunction.
|
inlinevirtual |
Set the weights for summing deposits of different types.
Definition at line 40 of file IsolatorByDeposit.h.
References theWeights, and create_public_pileup_plots::weights.
|
private |
Definition at line 51 of file IsolatorByDeposit.cc.
References theDepThresholds, theWeights, and w().
Referenced by result().
|
private |
Definition at line 69 of file IsolatorByDeposit.h.
Referenced by coneSize(), and setConeSize().
|
private |
Definition at line 68 of file IsolatorByDeposit.h.
Referenced by coneSize(), and setConeSize().
|
private |
Definition at line 71 of file IsolatorByDeposit.h.
Referenced by IsolatorByDeposit(), and weightedSum().
|
private |
Definition at line 70 of file IsolatorByDeposit.h.
Referenced by setWeights(), and weightedSum().