#include <IsoDeposit.h>
Classes | |
class | const_iterator |
class | CountAlgo |
class | MaxAlgo |
class | MeanDRAlgo |
class | Sum2Algo |
class | SumAlgo |
class | SumDRAlgo |
struct | Veto |
Public Types | |
typedef isodeposit::AbsVeto | AbsVeto |
typedef isodeposit::AbsVetos | AbsVetos |
typedef DepositsMultimap::const_iterator | DepIterator |
typedef std::multimap< Distance, float > | DepositsMultimap |
typedef isodeposit::Direction | Direction |
typedef Direction::Distance | Distance |
typedef std::vector< Veto > | Vetos |
Public Member Functions | |
void | addCandEnergy (double et) |
Set energy or pT attached to cand trajectory. More... | |
void | addDeposit (double dr, double deposit) |
Add deposit (ie. transverse energy or pT) More... | |
void | addDeposit (const Direction &depDir, double deposit) |
template<typename Algo > | |
double | algoWithin (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const |
Get some info about the deposit (e.g. sum, max, sum2, count) More... | |
template<typename Algo > | |
double | algoWithin (const Direction &, double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const |
Get some info about the deposit (e.g. sum, max, sum2, count) w.r.t. other direction. More... | |
const_iterator | begin () const |
double | candEnergy () const |
Get energy or pT attached to cand trajectory. More... | |
double | countWithin (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const |
std::pair< double, int > | depositAndCountWithin (double coneSize, const Vetos &vetos=Vetos(), double threshold=-1e+36, bool skipDepositVeto=false) const |
Get deposit. More... | |
std::pair< double, int > | depositAndCountWithin (Direction dir, double coneSize, const Vetos &vetos=Vetos(), double threshold=-1e+36, bool skipDepositVeto=false) const |
Get deposit wrt other direction. More... | |
std::pair< double, int > | depositAndCountWithin (double coneSize, const AbsVetos &vetos, bool skipDepositVeto=false) const |
Get deposit. More... | |
double | depositWithin (double coneSize, const Vetos &vetos=Vetos(), bool skipDepositVeto=false) const |
Get deposit. More... | |
double | depositWithin (Direction dir, double coneSize, const Vetos &vetos=Vetos(), bool skipDepositVeto=false) const |
Get deposit wrt other direction. More... | |
double | depositWithin (double coneSize, const AbsVetos &vetos, bool skipDepositVeto=false) const |
Get deposit with new style vetos. More... | |
const Direction & | direction () const |
Get direction of isolation cone. More... | |
const_iterator | end () const |
double | eta () const |
IsoDeposit (double eta=0, double phi=0) | |
Constructor. More... | |
IsoDeposit (const Direction &candDirection) | |
double | maxWithin (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const |
double | nearestDR (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const |
double | phi () const |
std::string | print () const |
void | setVeto (const Veto &aVeto) |
Set veto. More... | |
double | sum2Within (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const |
double | sumWithin (double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const |
double | sumWithin (const Direction &dir, double coneSize, const AbsVetos &vetos=AbsVetos(), bool skipDepositVeto=false) const |
const Veto & | veto () const |
Get veto area. More... | |
virtual | ~IsoDeposit () |
Destructor. More... | |
Private Attributes | |
float | theCandTag |
float tagging cand, ment to be transverse energy or pT attached to cand, More... | |
DepositsMultimap | theDeposits |
the deposits identifed by relative position to center of cone and deposit value More... | |
Direction | theDirection |
direcion of deposit (center of isolation cone) More... | |
Veto | theVeto |
area to be excluded in computaion of depositWithin More... | |
Definition at line 49 of file IsoDeposit.h.
Definition at line 52 of file IsoDeposit.h.
Definition at line 53 of file IsoDeposit.h.
typedef DepositsMultimap::const_iterator reco::IsoDeposit::DepIterator |
Definition at line 56 of file IsoDeposit.h.
typedef std::multimap<Distance, float> reco::IsoDeposit::DepositsMultimap |
Definition at line 55 of file IsoDeposit.h.
Definition at line 51 of file IsoDeposit.h.
Definition at line 54 of file IsoDeposit.h.
typedef std::vector<Veto> reco::IsoDeposit::Vetos |
Definition at line 65 of file IsoDeposit.h.
IsoDeposit::IsoDeposit | ( | double | eta = 0 , |
double | phi = 0 |
||
) |
Constructor.
Definition at line 14 of file IsoDeposit.cc.
References reco::IsoDeposit::Veto::dR, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
IsoDeposit::IsoDeposit | ( | const Direction & | candDirection | ) |
Definition at line 9 of file IsoDeposit.cc.
References reco::IsoDeposit::Veto::dR, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
|
inlinevirtual |
|
inline |
Set energy or pT attached to cand trajectory.
Definition at line 132 of file IsoDeposit.h.
References EgHLTOffHistBins_cfi::et, and theCandTag.
Referenced by muonisolation::TrackExtractor::deposit(), muonisolation::PixelTrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::deposit(), egammaisolation::EgammaHcalExtractor::deposit(), egammaisolation::EgammaRecHitExtractor::deposit(), PFCandWithSuperClusterExtractor::depositFromObject(), and muonisolation::CaloExtractorByAssociator::deposits().
void IsoDeposit::addDeposit | ( | double | dr, |
double | deposit | ||
) |
Add deposit (ie. transverse energy or pT)
Definition at line 19 of file IsoDeposit.cc.
References nano_mu_digi_cff::float, and theDeposits.
Referenced by egammaisolation::EgammaRecHitExtractor::collect(), muonisolation::TrackExtractor::deposit(), muonisolation::PixelTrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::deposit(), egammaisolation::EgammaHcalExtractor::deposit(), egammaisolation::EgammaRecHitExtractor::deposit(), PFCandWithSuperClusterExtractor::depositFromObject(), and muonisolation::CaloExtractorByAssociator::deposits().
void IsoDeposit::addDeposit | ( | const Direction & | depDir, |
double | deposit | ||
) |
Definition at line 24 of file IsoDeposit.cc.
References theDeposits, and theDirection.
double IsoDeposit::algoWithin | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Get some info about the deposit (e.g. sum, max, sum2, count)
Definition at line 309 of file IsoDeposit.h.
References HLT_2024v14_cff::coneSize, reco::isodeposit::Direction::deltaR(), reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), nano_mu_digi_cff::float, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, particleFlowClusterHGC_cfi::maxDistance, reco::isodeposit::Direction::phi(), theDeposits, theDirection, theVeto, reco::IsoDeposit::Veto::vetoDir, and boostedElectronIsolation_cff::vetos.
Referenced by CandIsolatorFromDeposits::SingleDeposit::compute().
double IsoDeposit::algoWithin | ( | const Direction & | dir, |
double | coneSize, | ||
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Get some info about the deposit (e.g. sum, max, sum2, count) w.r.t. other direction.
Definition at line 337 of file IsoDeposit.h.
References HLT_2024v14_cff::coneSize, reco::isodeposit::Direction::Distance::deltaR, reco::isodeposit::Direction::deltaR(), DeadROC_duringRun::dir, reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, reco::isodeposit::Direction::phi(), theDeposits, theDirection, theVeto, reco::IsoDeposit::Veto::vetoDir, and boostedElectronIsolation_cff::vetos.
|
inline |
Definition at line 173 of file IsoDeposit.h.
References theDeposits.
|
inline |
Get energy or pT attached to cand trajectory.
Definition at line 129 of file IsoDeposit.h.
References theCandTag.
Referenced by CandIsolatorFromDeposits::SingleDeposit::compute(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), MuonIdProducer::fillMuonIsolation(), and pat::helper::IsoDepositIsolator::getValue().
double IsoDeposit::countWithin | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 134 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, and boostedElectronIsolation_cff::vetos.
Referenced by CandIsolatorFromDeposits::SingleDeposit::compute(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), and pat::helper::IsoDepositIsolator::getValue().
std::pair< double, int > IsoDeposit::depositAndCountWithin | ( | double | coneSize, |
const Vetos & | vetos = Vetos() , |
||
double | threshold = -1e+36 , |
||
bool | skipDepositVeto = false |
||
) | const |
Get deposit.
Definition at line 37 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, submitPVResolutionJobs::count, reco::isodeposit::Direction::deltaR(), nano_mu_digi_cff::float, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, particleFlowClusterHGC_cfi::maxDistance, mps_fire::result, theDeposits, theDirection, theVeto, DiMuonV_cfg::threshold, and boostedElectronIsolation_cff::vetos.
Referenced by depositWithin(), MuonIdProducer::fillMuonIsolation(), L3MuonIsolationProducer::produce(), L3MuonCombinedRelativeIsolationProducer::produce(), and muonisolation::IsolatorByDepositCount::result().
std::pair< double, int > IsoDeposit::depositAndCountWithin | ( | Direction | dir, |
double | coneSize, | ||
const Vetos & | vetos = Vetos() , |
||
double | threshold = -1e+36 , |
||
bool | skipDepositVeto = false |
||
) | const |
Get deposit wrt other direction.
Definition at line 68 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, submitPVResolutionJobs::count, reco::isodeposit::Direction::Distance::deltaR, reco::isodeposit::Direction::deltaR(), DeadROC_duringRun::dir, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, mps_fire::result, theDeposits, theDirection, theVeto, DiMuonV_cfg::threshold, and boostedElectronIsolation_cff::vetos.
std::pair< double, int > IsoDeposit::depositAndCountWithin | ( | double | coneSize, |
const AbsVetos & | vetos, | ||
bool | skipDepositVeto = false |
||
) | const |
Get deposit.
Definition at line 98 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, submitPVResolutionJobs::count, reco::isodeposit::Direction::deltaR(), reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), nano_mu_digi_cff::float, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, particleFlowClusterHGC_cfi::maxDistance, reco::isodeposit::Direction::phi(), mps_fire::result, theDeposits, theDirection, theVeto, reco::IsoDeposit::Veto::vetoDir, and boostedElectronIsolation_cff::vetos.
double IsoDeposit::depositWithin | ( | double | coneSize, |
const Vetos & | vetos = Vetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Get deposit.
Definition at line 29 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, depositAndCountWithin(), MillePedeFileConverter_cfg::e, and boostedElectronIsolation_cff::vetos.
Referenced by MuonIdProducer::fillMuonIsolation(), IsolationProducerForTracks::produce(), and L3MuonCombinedRelativeIsolationProducer::produce().
double IsoDeposit::depositWithin | ( | Direction | dir, |
double | coneSize, | ||
const Vetos & | vetos = Vetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Get deposit wrt other direction.
Definition at line 33 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, depositAndCountWithin(), DeadROC_duringRun::dir, MillePedeFileConverter_cfg::e, and boostedElectronIsolation_cff::vetos.
double IsoDeposit::depositWithin | ( | double | coneSize, |
const AbsVetos & | vetos, | ||
bool | skipDepositVeto = false |
||
) | const |
Get deposit with new style vetos.
Definition at line 130 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, depositAndCountWithin(), and boostedElectronIsolation_cff::vetos.
|
inline |
Get direction of isolation cone.
Definition at line 75 of file IsoDeposit.h.
References theDirection.
Referenced by reco::IsoDeposit::const_iterator::doDir().
|
inline |
Definition at line 174 of file IsoDeposit.h.
References theDeposits.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
inline |
Definition at line 76 of file IsoDeposit.h.
References reco::isodeposit::Direction::eta(), and theDirection.
Referenced by Particle.Particle::__str__(), CandIsolatorFromDeposits::SingleDeposit::compute(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), datamodel.Object::DeltaR(), pat::helper::IsoDepositIsolator::getValue(), Jet.Jet::jetID(), datamodel.Object::p4(), and Jet.Jet::puJetId().
double IsoDeposit::maxWithin | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 146 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, and boostedElectronIsolation_cff::vetos.
Referenced by CandIsolatorFromDeposits::SingleDeposit::compute(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), and pat::helper::IsoDepositIsolator::getValue().
double IsoDeposit::nearestDR | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 150 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, reco::isodeposit::Direction::deltaR(), reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), nano_mu_digi_cff::float, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, particleFlowClusterHGC_cfi::maxDistance, reco::isodeposit::Direction::phi(), mps_fire::result, theDeposits, theDirection, theVeto, reco::IsoDeposit::Veto::vetoDir, and boostedElectronIsolation_cff::vetos.
Referenced by CandIsolatorFromDeposits::SingleDeposit::compute(), and PFCandIsolatorFromDeposits::SingleDeposit::compute().
|
inline |
Definition at line 77 of file IsoDeposit.h.
References reco::isodeposit::Direction::phi(), and theDirection.
Referenced by Particle.Particle::__str__(), CandIsolatorFromDeposits::SingleDeposit::compute(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), datamodel.Object::DeltaR(), pat::helper::IsoDepositIsolator::getValue(), datamodel.Object::p4(), and ntupleDataFormat.Track::phiPull().
std::string IsoDeposit::print | ( | void | ) | const |
Definition at line 178 of file IsoDeposit.cc.
References reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), reco::isodeposit::Direction::phi(), reco::isodeposit::Direction::print(), str, theDeposits, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
Referenced by HLTMuonIsoFilter::hltFilter(), L3MuonIsolationProducer::produce(), and L3MuonCombinedRelativeIsolationProducer::produce().
|
inline |
Set veto.
Definition at line 82 of file IsoDeposit.h.
References theVeto.
Referenced by muonisolation::TrackExtractor::deposit(), muonisolation::PixelTrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::deposit(), egammaisolation::EgammaHcalExtractor::deposit(), egammaisolation::EgammaRecHitExtractor::deposit(), PFCandWithSuperClusterExtractor::depositFromObject(), and muonisolation::CaloExtractorByAssociator::deposits().
double IsoDeposit::sum2Within | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 143 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, and boostedElectronIsolation_cff::vetos.
Referenced by CandIsolatorFromDeposits::SingleDeposit::compute(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), and pat::helper::IsoDepositIsolator::getValue().
double IsoDeposit::sumWithin | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 137 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, and boostedElectronIsolation_cff::vetos.
Referenced by CandIsolatorFromDeposits::SingleDeposit::compute(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), and pat::helper::IsoDepositIsolator::getValue().
double IsoDeposit::sumWithin | ( | const Direction & | dir, |
double | coneSize, | ||
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 140 of file IsoDeposit.cc.
References HLT_2024v14_cff::coneSize, DeadROC_duringRun::dir, and boostedElectronIsolation_cff::vetos.
|
inline |
Get veto area.
Definition at line 80 of file IsoDeposit.h.
References theVeto.
Referenced by muonisolation::CaloExtractorByAssociator::deposits().
|
private |
float tagging cand, ment to be transverse energy or pT attached to cand,
Definition at line 299 of file IsoDeposit.h.
Referenced by addCandEnergy(), and candEnergy().
|
private |
the deposits identifed by relative position to center of cone and deposit value
Definition at line 303 of file IsoDeposit.h.
Referenced by addDeposit(), algoWithin(), begin(), depositAndCountWithin(), end(), nearestDR(), and print().
|
private |
direcion of deposit (center of isolation cone)
Definition at line 293 of file IsoDeposit.h.
Referenced by addDeposit(), algoWithin(), depositAndCountWithin(), direction(), eta(), IsoDeposit(), nearestDR(), phi(), and print().
|
private |
area to be excluded in computaion of depositWithin
Definition at line 296 of file IsoDeposit.h.
Referenced by algoWithin(), depositAndCountWithin(), IsoDeposit(), nearestDR(), print(), setVeto(), and veto().