#include <IsoDeposit.h>
Classes | |
class | const_iterator |
class | CountAlgo |
class | MaxAlgo |
class | Sum2Algo |
class | SumAlgo |
struct | Veto |
Public Types | |
typedef isodeposit::AbsVeto | AbsVeto |
typedef isodeposit::AbsVetos | AbsVetos |
typedef isodeposit::Direction | Direction |
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 Types | |
typedef std::multimap < Distance, float > | DepositsMultimap |
typedef Direction::Distance | Distance |
the deposits identifed by relative position to center of cone and deposit value More... | |
Private Attributes | |
float | theCandTag |
float tagging cand, ment to be transverse energy or pT attached to cand, More... | |
DepositsMultimap | theDeposits |
Direction | theDirection |
direcion of deposit (center of isolation cone) More... | |
Veto | theVeto |
area to be excluded in computaion of depositWithin More... | |
Definition at line 45 of file IsoDeposit.h.
Definition at line 49 of file IsoDeposit.h.
Definition at line 50 of file IsoDeposit.h.
|
private |
Definition at line 253 of file IsoDeposit.h.
Definition at line 48 of file IsoDeposit.h.
|
private |
the deposits identifed by relative position to center of cone and deposit value
Definition at line 252 of file IsoDeposit.h.
typedef std::vector<Veto> reco::IsoDeposit::Vetos |
Definition at line 58 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 134 of file IsoDeposit.h.
References theCandTag.
Referenced by muonisolation::PixelTrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::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 theDeposits.
Referenced by egammaisolation::EgammaRecHitExtractor::collect(), muonisolation::PixelTrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::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 261 of file IsoDeposit.h.
References algo, reco::isodeposit::Direction::deltaR(), reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), reco::isodeposit::Direction::phi(), theDeposits, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
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 287 of file IsoDeposit.h.
References algo, reco::isodeposit::Direction::Distance::deltaR, reco::isodeposit::Direction::deltaR(), dir, reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), reco::isodeposit::Direction::phi(), theDeposits, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
|
inline |
Definition at line 158 of file IsoDeposit.h.
References theDeposits.
Referenced by ZMuMuIsolationAnalyzer::Deposits().
|
inline |
Get energy or pT attached to cand trajectory.
Definition at line 131 of file IsoDeposit.h.
References theCandTag.
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.
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 prof2calltree::count, reco::isodeposit::Direction::deltaR(), query::result, theDeposits, theDirection, and theVeto.
Referenced by depositWithin(), MuonIdProducer::fillMuonIsolation(), L3MuonCombinedRelativeIsolationProducer::produce(), L3MuonIsolationProducer::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 prof2calltree::count, reco::isodeposit::Direction::Distance::deltaR, reco::isodeposit::Direction::deltaR(), dir, query::result, theDeposits, theDirection, and theVeto.
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 prof2calltree::count, reco::isodeposit::Direction::deltaR(), reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), reco::isodeposit::Direction::phi(), query::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 alignCSCRings::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 alignCSCRings::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 68 of file IsoDeposit.h.
References theDirection.
Referenced by reco::IsoDeposit::const_iterator::doDir().
|
inline |
Definition at line 159 of file IsoDeposit.h.
References theDeposits.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and ZMuMuIsolationAnalyzer::Deposits().
|
inline |
Definition at line 69 of file IsoDeposit.h.
References reco::isodeposit::Direction::eta(), and theDirection.
Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), CandIsolatorFromDeposits::SingleDeposit::compute(), and pat::helper::IsoDepositIsolator::getValue().
double IsoDeposit::maxWithin | ( | double | coneSize, |
const AbsVetos & | vetos = AbsVetos() , |
||
bool | skipDepositVeto = false |
||
) | const |
Definition at line 150 of file IsoDeposit.cc.
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 reco::isodeposit::Direction::deltaR(), reco::IsoDeposit::Veto::dR, reco::isodeposit::Direction::eta(), reco::isodeposit::Direction::phi(), query::result, theDeposits, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), and CandIsolatorFromDeposits::SingleDeposit::compute().
|
inline |
Definition at line 70 of file IsoDeposit.h.
References reco::isodeposit::Direction::phi(), and theDirection.
Referenced by PFCandIsolatorFromDeposits::SingleDeposit::compute(), CandIsolatorFromDeposits::SingleDeposit::compute(), and pat::helper::IsoDepositIsolator::getValue().
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(), theDeposits, theDirection, theVeto, and reco::IsoDeposit::Veto::vetoDir.
Referenced by HLTMuonIsoFilter::hltFilter(), L3MuonIsolationProducer::produce(), and L3MuonCombinedRelativeIsolationProducer::produce().
|
inline |
Set veto.
Definition at line 75 of file IsoDeposit.h.
References theVeto.
Referenced by muonisolation::PixelTrackExtractor::deposit(), egammaisolation::EgammaTrackExtractor::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.
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.
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 |
|
inline |
Get veto area.
Definition at line 73 of file IsoDeposit.h.
References theVeto.
Referenced by muonisolation::CaloExtractorByAssociator::deposits(), L3MuonCombinedRelativeIsolationProducer::produce(), and L3MuonIsolationProducer::produce().
|
private |
float tagging cand, ment to be transverse energy or pT attached to cand,
Definition at line 249 of file IsoDeposit.h.
Referenced by addCandEnergy(), and candEnergy().
|
private |
Definition at line 255 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 243 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 246 of file IsoDeposit.h.
Referenced by algoWithin(), depositAndCountWithin(), IsoDeposit(), nearestDR(), print(), setVeto(), and veto().