5 using namespace muonisolation;
8 : theConeSizeFunction(0), theConeSize(conesize), theWeights(weights)
14 : theConeSizeFunction(conesize), theConeSize(0.), theWeights(weights)
20 : theConeSizeFunction(0), theConeSize(conesize), theWeights(weights),
21 theDepThresholds(dThresh)
25 const vector<double>&
weights,
const vector<double>& dThresh)
26 : theConeSizeFunction(conesize), theConeSize(0.), theWeights(weights),
27 theDepThresholds(dThresh)
39 float eta = deposits.front().dep->eta();
40 float pt = deposits.front().dep->candEnergy();
57 vector<double>::const_iterator
w =
theWeights.begin();
60 typedef DepositContainer::const_iterator DI;
61 for (DI dep = deposits.begin(), depEnd = deposits.end(); dep != depEnd; ++dep) {
63 sumDep += dep->dep->depositAndCountWithin(dRcone, *dep->vetos, (*dThresh)).first * (*w);
65 sumDep += dep->dep->depositAndCountWithin(dRcone,
Vetos(), (*dThresh)).first * (*w);
std::vector< double > theDepThresholds
double weightedSum(const DepositContainer &deposits, float dRcone) const
virtual float coneSize(float eta, float pT) const
Get the cone size.
reco::IsoDeposit::Vetos Vetos
IsolatorByDeposit(float conesize, const std::vector< double > &weights)
construct with no addtnl thresholds on deposits
MuIsoBaseIsolator::DepositContainer DepositContainer
virtual Result result(const DepositContainer &deposits, const edm::Event *=0) const
Compute the deposit within the cone and return the isolation result.
virtual ResultType resultType() const
std::vector< double > theWeights
reco::IsoDeposit IsoDeposit