Definition at line 39 of file PFCandIsolatorFromDeposit.h.
◆ SingleDeposit()
Definition at line 38 of file PFCandIsolatorFromDeposit.cc.
49 else if (
mode ==
"sumRelative")
51 else if (
mode ==
"sum2")
53 else if (
mode ==
"sum2Relative")
55 else if (
mode ==
"max")
57 else if (
mode ==
"maxRelative")
59 else if (
mode ==
"nearestDR")
61 else if (
mode ==
"count")
65 <<
"Supported modes are 'sum', 'sumRelative', 'count'." <<
67 "New methods can be easily implemented if requested.";
68 typedef std::vector<std::string>
vstring;
71 static const std::regex ecalSwitch(
"^Ecal(Barrel|Endcaps):(.*)");
73 for (vstring::const_iterator it =
vetos.begin(), ed =
vetos.end(); it != ed; ++it) {
77 if (regex_match(it->c_str(),
match, ecalSwitch)) {
78 if (
match[1] ==
"Barrel") {
83 if (
match[1] ==
"Endcaps") {
References barrelVetos_, PFCandIsolatorFromDeposits::Count, endcapVetos_, evdepVetos_, Exception, edm::ParameterSet::getParameter(), isNumber(), IsoDepositVetoFactory::make(), match(), PFCandIsolatorFromDeposits::Max, PFCandIsolatorFromDeposits::MaxRelative, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, mode_, PFCandIsolatorFromDeposits::NearestDR, AlCaHLTBitMon_QueryRunRegistry::string, PFCandIsolatorFromDeposits::Sum, PFCandIsolatorFromDeposits::Sum2, PFCandIsolatorFromDeposits::Sum2Relative, PFCandIsolatorFromDeposits::SumRelative, toNumber(), usePivotForBarrelEndcaps_, usesFunction_, boostedElectronIsolation_cff::vetos, and weight_.
◆ cleanup()
void PFCandIsolatorFromDeposits::SingleDeposit::cleanup |
( |
| ) |
|
◆ compute()
Definition at line 129 of file PFCandIsolatorFromDeposit.cc.
150 for (AbsVetos::iterator it =
vetos->begin(), ed =
vetos->end(); it != ed; ++it) {
151 (*it)->centerOn(
eta,
phi);
172 throw cms::Exception(
"Logic error") <<
"Should not happen at " << __FILE__ <<
", line "
References Reference_intrackfit_cff::barrel, reco::IsoDeposit::candEnergy(), PFCandIsolatorFromDeposits::Count, reco::IsoDeposit::countWithin(), PVValHelper::eta, reco::IsoDeposit::eta(), Exception, PFCandIsolatorFromDeposits::Max, PFCandIsolatorFromDeposits::MaxRelative, reco::IsoDeposit::maxWithin(), PFCandIsolatorFromDeposits::NearestDR, reco::IsoDeposit::nearestDR(), phi, reco::IsoDeposit::phi(), reco::PFCandidate::positionAtECALEntrance(), PFCandIsolatorFromDeposits::Sum, PFCandIsolatorFromDeposits::Sum2, PFCandIsolatorFromDeposits::Sum2Relative, reco::IsoDeposit::sum2Within(), PFCandIsolatorFromDeposits::SumRelative, reco::IsoDeposit::sumWithin(), reco::RecoCandidate::superCluster(), and boostedElectronIsolation_cff::vetos.
◆ isNumber()
bool PFCandIsolatorFromDeposits::SingleDeposit::isNumber |
( |
const std::string & |
str | ) |
const |
|
private |
◆ map()
◆ open()
◆ toNumber()
double PFCandIsolatorFromDeposits::SingleDeposit::toNumber |
( |
const std::string & |
str | ) |
const |
|
private |
◆ barrelVetos_
◆ deltaR_
double PFCandIsolatorFromDeposits::SingleDeposit::deltaR_ |
|
private |
◆ endcapVetos_
◆ evdepVetos_
◆ hDeps_
◆ mode_
Mode PFCandIsolatorFromDeposits::SingleDeposit::mode_ |
|
private |
◆ skipDefaultVeto_
bool PFCandIsolatorFromDeposits::SingleDeposit::skipDefaultVeto_ |
|
private |
◆ srcToken_
◆ usePivotForBarrelEndcaps_
bool PFCandIsolatorFromDeposits::SingleDeposit::usePivotForBarrelEndcaps_ |
|
private |
◆ usesFunction_
bool PFCandIsolatorFromDeposits::SingleDeposit::usesFunction_ |
|
private |
◆ weight_
double PFCandIsolatorFromDeposits::SingleDeposit::weight_ |
|
private |
◆ weightExpr_
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.