#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 46 of file IsoDeposit.h.
Definition at line 50 of file IsoDeposit.h.
Definition at line 51 of file IsoDeposit.h.
typedef DepositsMultimap::const_iterator reco::IsoDeposit::DepIterator |
Definition at line 54 of file IsoDeposit.h.
typedef std::multimap<Distance, float> reco::IsoDeposit::DepositsMultimap |
Definition at line 53 of file IsoDeposit.h.
Definition at line 49 of file IsoDeposit.h.
Definition at line 52 of file IsoDeposit.h.
typedef std::vector<Veto> reco::IsoDeposit::Vetos |
Definition at line 63 of file IsoDeposit.h.
IsoDeposit::IsoDeposit | ( | double | eta = 0 , |
double | phi = 0 |
||
) |
Constructor.
Definition at line 16 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 139 of file IsoDeposit.h.
References stringResolutionProvider_cfi::et, edm::print(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by muonisolation::PixelTrackExtractor::deposit(), and muonisolation::CaloExtractorByAssociator::deposits().
void IsoDeposit::addDeposit | ( | double | dr, |
double | deposit | ||
) |
Add deposit (ie. transverse energy or pT)
Definition at line 23 of file IsoDeposit.cc.
References objects.autophobj::float, and theDeposits.
Referenced by egammaisolation::EgammaRecHitExtractor::collect(), muonisolation::PixelTrackExtractor::deposit(), and muonisolation::CaloExtractorByAssociator::deposits().
void IsoDeposit::addDeposit | ( | const Direction & | depDir, |
double | deposit | ||
) |
Definition at line 28 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 288 of file IsoDeposit.h.
References patPFMETCorrections_cff::algo, reco::isodeposit::Direction::deltaR(), reco::isodeposit::Direction::eta(), objects.autophobj::float, particleFlowClusterHGC_cfi::maxDistance, and reco::isodeposit::Direction::phi().
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 314 of file IsoDeposit.h.
References patPFMETCorrections_cff::algo, reco::isodeposit::Direction::Distance::deltaR, reco::isodeposit::Direction::deltaR(), dir, reco::isodeposit::Direction::eta(), and reco::isodeposit::Direction::phi().
|
inline |
Definition at line 163 of file IsoDeposit.h.
Referenced by ZMuMuIsolationAnalyzer::Deposits().
|
inline |
Get energy or pT attached to cand trajectory.
Definition at line 136 of file IsoDeposit.h.
Referenced by ZMuMuIsolationAnalyzer::analyze(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), CandIsolatorFromDeposits::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 highPtTrackIsolations_cff::coneSize, and boostedElectronIsolation_cff::vetos.
Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), CandIsolatorFromDeposits::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 44 of file IsoDeposit.cc.
References KineDebug3::count(), reco::isodeposit::Direction::deltaR(), objects.autophobj::float, particleFlowClusterHGC_cfi::maxDistance, mps_fire::result, theDeposits, theDirection, theVeto, 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 72 of file IsoDeposit.cc.
References KineDebug3::count(), reco::isodeposit::Direction::Distance::deltaR, reco::isodeposit::Direction::deltaR(), dir, mps_fire::result, theDeposits, theDirection, theVeto, and boostedElectronIsolation_cff::vetos.
std::pair< double, int > IsoDeposit::depositAndCountWithin | ( | double | coneSize, |
const AbsVetos & | vetos, | ||
bool | skipDepositVeto = false |
||
) | const |
Get deposit.
Definition at line 100 of file IsoDeposit.cc.
References KineDebug3::count(), reco::isodeposit::Direction::deltaR(), reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), objects.autophobj::float, particleFlowClusterHGC_cfi::maxDistance, reco::isodeposit::Direction::phi(), mps_fire::result, theDeposits, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
double IsoDeposit::depositWithin | ( | double | coneSize, |
const Vetos & | vetos = Vetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Get deposit.
Definition at line 34 of file IsoDeposit.cc.
References depositAndCountWithin(), and MillePedeFileConverter_cfg::e.
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 39 of file IsoDeposit.cc.
References depositAndCountWithin(), and MillePedeFileConverter_cfg::e.
double IsoDeposit::depositWithin | ( | double | coneSize, |
const AbsVetos & | vetos, | ||
bool | skipDepositVeto = false |
||
) | const |
Get deposit with new style vetos.
Definition at line 129 of file IsoDeposit.cc.
References depositAndCountWithin().
|
inline |
Get direction of isolation cone.
Definition at line 73 of file IsoDeposit.h.
|
inline |
Definition at line 164 of file IsoDeposit.h.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and ZMuMuIsolationAnalyzer::Deposits().
|
inline |
Definition at line 74 of file IsoDeposit.h.
Referenced by Particle.Particle::__str__(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), CandIsolatorFromDeposits::SingleDeposit::compute(), pat::helper::IsoDepositIsolator::getValue(), Jet.Jet::jetID(), and Jet.Jet::puJetId().
double IsoDeposit::maxWithin | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 150 of file IsoDeposit.cc.
References highPtTrackIsolations_cff::coneSize, and boostedElectronIsolation_cff::vetos.
Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), CandIsolatorFromDeposits::SingleDeposit::compute(), and pat::helper::IsoDepositIsolator::getValue().
double IsoDeposit::nearestDR | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 155 of file IsoDeposit.cc.
References highPtTrackIsolations_cff::coneSize, reco::isodeposit::Direction::deltaR(), reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), objects.autophobj::float, particleFlowClusterHGC_cfi::maxDistance, reco::isodeposit::Direction::phi(), mps_fire::result, theDeposits, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), and CandIsolatorFromDeposits::SingleDeposit::compute().
|
inline |
Definition at line 75 of file IsoDeposit.h.
Referenced by Particle.Particle::__str__(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), CandIsolatorFromDeposits::SingleDeposit::compute(), pat::helper::IsoDepositIsolator::getValue(), and ntupleDataFormat.Track::phiPull().
std::string IsoDeposit::print | ( | void | ) | const |
Definition at line 181 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 80 of file IsoDeposit.h.
References highPtTrackIsolations_cff::coneSize, dir, runTauDisplay::dr, MillePedeFileConverter_cfg::e, electronIdCutBased_cfi::threshold, and boostedElectronIsolation_cff::vetos.
Referenced by muonisolation::PixelTrackExtractor::deposit(), and muonisolation::CaloExtractorByAssociator::deposits().
double IsoDeposit::sum2Within | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 146 of file IsoDeposit.cc.
References highPtTrackIsolations_cff::coneSize, and boostedElectronIsolation_cff::vetos.
Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), CandIsolatorFromDeposits::SingleDeposit::compute(), and pat::helper::IsoDepositIsolator::getValue().
double IsoDeposit::sumWithin | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 138 of file IsoDeposit.cc.
References highPtTrackIsolations_cff::coneSize, and boostedElectronIsolation_cff::vetos.
Referenced by ZMuMuIsolationAnalyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), CandIsolatorFromDeposits::SingleDeposit::compute(), PFCandIsolatorFromDeposits::SingleDeposit::compute(), pat::helper::IsoDepositIsolator::getValue(), ZGlobalVsSAIsolationAnalyzer::isolated(), ZMuMuTrackUserData::isolation(), ZMuMuMuonUserData::isolation(), ZToMuMuIsoDepositSelector< Isolator >::isolation(), and isolation().
double IsoDeposit::sumWithin | ( | const Direction & | dir, |
double | coneSize, | ||
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 142 of file IsoDeposit.cc.
References highPtTrackIsolations_cff::coneSize, dir, and boostedElectronIsolation_cff::vetos.
|
inline |
Get veto area.
Definition at line 78 of file IsoDeposit.h.
Referenced by muonisolation::CaloExtractorByAssociator::deposits().
|
private |
float tagging cand, ment to be transverse energy or pT attached to cand,
Definition at line 278 of file IsoDeposit.h.
|
private |
the deposits identifed by relative position to center of cone and deposit value
Definition at line 282 of file IsoDeposit.h.
Referenced by addDeposit(), depositAndCountWithin(), nearestDR(), and print().
|
private |
direcion of deposit (center of isolation cone)
Definition at line 272 of file IsoDeposit.h.
Referenced by addDeposit(), depositAndCountWithin(), IsoDeposit(), nearestDR(), and print().
|
private |
area to be excluded in computaion of depositWithin
Definition at line 275 of file IsoDeposit.h.
Referenced by depositAndCountWithin(), IsoDeposit(), nearestDR(), and print().