#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) | |
Result | result (const DepositContainer &deposits, const edm::Event *=nullptr) const override |
Compute the deposit within the cone and return the isolation result. More... | |
ResultType | resultType () const override |
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... | |
~IsolatorByDeposit () override | |
Public Member Functions inherited from muonisolation::MuIsoBaseIsolator | |
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 () |
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 16 of file IsolatorByDeposit.h.
Definition at line 18 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, and HLT_2022v12_cff::weights.
IsolatorByDeposit::IsolatorByDeposit | ( | const ConeSizeFunction * | conesize, |
const std::vector< double > & | weights | ||
) |
Definition at line 12 of file IsolatorByDeposit.cc.
References theDepThresholds, and HLT_2022v12_cff::weights.
IsolatorByDeposit::IsolatorByDeposit | ( | float | conesize, |
const std::vector< double > & | weights, | ||
const std::vector< double > & | thresh | ||
) |
construct with non-default thresholds per deposit
Definition at line 17 of file IsolatorByDeposit.cc.
IsolatorByDeposit::IsolatorByDeposit | ( | const ConeSizeFunction * | conesize, |
const std::vector< double > & | weights, | ||
const std::vector< double > & | thresh | ||
) |
Definition at line 20 of file IsolatorByDeposit.cc.
|
inlineoverride |
Definition at line 35 of file IsolatorByDeposit.h.
|
inlinevirtual |
Get the cone size.
Definition at line 54 of file IsolatorByDeposit.h.
References muonisolation::IsolatorByDeposit::ConeSizeFunction::coneSize(), PVValHelper::eta, PVValHelper::pT, theConeSize, and theConeSizeFunction.
Referenced by result().
|
overridevirtual |
Compute the deposit within the cone and return the isolation result.
Implements muonisolation::MuIsoBaseIsolator.
Definition at line 25 of file IsolatorByDeposit.cc.
References coneSize(), CandIsolatorFromDeposits_cfi::deposits, flavorHistoryFilter_cfi::dr, PVValHelper::eta, DiDispStaMuonMonitor_cfi::pt, resultType(), and weightedSum().
|
inlineoverridevirtual |
Implements muonisolation::MuIsoBaseIsolator.
Definition at line 58 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 46 of file IsolatorByDeposit.h.
References l1NNTauProducerPuppi_cfi::conesize, theConeSize, and theConeSizeFunction.
|
inline |
Definition at line 51 of file IsolatorByDeposit.h.
References l1NNTauProducerPuppi_cfi::conesize, and theConeSizeFunction.
|
inlinevirtual |
Set the weights for summing deposits of different types.
Definition at line 38 of file IsolatorByDeposit.h.
References theWeights, and HLT_2022v12_cff::weights.
|
private |
Definition at line 45 of file IsolatorByDeposit.cc.
References cms::cuda::assert(), CandIsolatorFromDeposits_cfi::deposits, JetPlusTrackCorrections_cff::dRcone, theDepThresholds, theWeights, and w().
Referenced by result().
|
private |
Definition at line 66 of file IsolatorByDeposit.h.
Referenced by coneSize(), and setConeSize().
|
private |
Definition at line 65 of file IsolatorByDeposit.h.
Referenced by coneSize(), and setConeSize().
|
private |
Definition at line 68 of file IsolatorByDeposit.h.
Referenced by IsolatorByDeposit(), and weightedSum().
|
private |
Definition at line 67 of file IsolatorByDeposit.h.
Referenced by setWeights(), and weightedSum().