![]() |
![]() |
#include <IsoDeposit.h>
Public Member Functions | |
float | dR () const |
float | eta () const |
bool | operator!= (const const_iterator &it2) |
const const_iterator & | operator++ () |
const const_iterator * | operator-> () const |
float | phi () const |
float | value () const |
Private Types | |
typedef Direction::Distance | Distance |
Private Member Functions | |
const_iterator (const IsoDeposit *parent, std::multimap< Distance, float >::const_iterator it) | |
void | doDir () const |
Private Attributes | |
Direction | cache_ |
bool | cacheReady_ |
std::multimap< Distance, float > ::const_iterator | it_ |
const reco::IsoDeposit * | parent_ |
Friends | |
class | IsoDeposit |
Definition at line 138 of file IsoDeposit.h.
typedef Direction::Distance reco::IsoDeposit::const_iterator::Distance [private] |
Definition at line 149 of file IsoDeposit.h.
reco::IsoDeposit::const_iterator::const_iterator | ( | const IsoDeposit * | parent, |
std::multimap< Distance, float >::const_iterator | it | ||
) | [inline, private] |
Definition at line 151 of file IsoDeposit.h.
: parent_(parent), it_(it), cache_(), cacheReady_(false) { }
void reco::IsoDeposit::const_iterator::doDir | ( | ) | const [inline, private] |
Definition at line 150 of file IsoDeposit.h.
References cache_, cacheReady_, reco::IsoDeposit::direction(), it_, and parent_.
Referenced by eta(), and phi().
{ cache_ = parent_->direction() + it_->first; cacheReady_ = true; }
float reco::IsoDeposit::const_iterator::dR | ( | ) | const [inline] |
float reco::IsoDeposit::const_iterator::eta | ( | ) | const [inline] |
Definition at line 143 of file IsoDeposit.h.
References cache_, cacheReady_, doDir(), and reco::isodeposit::Direction::eta().
{ if (!cacheReady_) doDir(); return cache_.eta(); }
bool reco::IsoDeposit::const_iterator::operator!= | ( | const const_iterator & | it2 | ) | [inline] |
const const_iterator& reco::IsoDeposit::const_iterator::operator++ | ( | void | ) | [inline] |
Definition at line 140 of file IsoDeposit.h.
References cacheReady_, and it_.
{ ++it_; cacheReady_ = false; return *this; }
const const_iterator* reco::IsoDeposit::const_iterator::operator-> | ( | ) | const [inline] |
Definition at line 141 of file IsoDeposit.h.
{ return this; }
float reco::IsoDeposit::const_iterator::phi | ( | ) | const [inline] |
Definition at line 144 of file IsoDeposit.h.
References cache_, cacheReady_, doDir(), and reco::isodeposit::Direction::phi().
{ if (!cacheReady_) doDir(); return cache_.phi(); }
float reco::IsoDeposit::const_iterator::value | ( | ) | const [inline] |
friend class IsoDeposit [friend] |
Definition at line 147 of file IsoDeposit.h.
Direction reco::IsoDeposit::const_iterator::cache_ [mutable, private] |
Definition at line 155 of file IsoDeposit.h.
bool reco::IsoDeposit::const_iterator::cacheReady_ [mutable, private] |
Definition at line 156 of file IsoDeposit.h.
Referenced by doDir(), eta(), operator++(), and phi().
std::multimap<Distance, float>::const_iterator reco::IsoDeposit::const_iterator::it_ [mutable, private] |
Definition at line 154 of file IsoDeposit.h.
Referenced by doDir(), dR(), operator!=(), operator++(), and value().
const reco::IsoDeposit* reco::IsoDeposit::const_iterator::parent_ [private] |
Definition at line 153 of file IsoDeposit.h.
Referenced by doDir().