#include <EventHypothesisLooper.h>
Classes | |
struct | null_deleter |
Public Member Functions | |
const reco::Candidate & | cand () const |
C++ reference to pointed particle. | |
const T * | get () const |
Accessor as if it was a smart pointer to const T *. | |
size_t | globalIndex () |
Index of this item in the full EventHypothesis. | |
size_t | index () const |
Index of this item among those in the loop. | |
bool | isTypeOk () const |
test if the type is correct | |
Looper (const EventHypothesis &eh, const ParticleFilter *filter) | |
Looper (const EventHypothesis &eh, const ParticleFilter &filter) | |
Looper (const EventHypothesis &eh, const ParticleFilterPtr &filter) | |
operator bool () const | |
template<typename T2 > | |
bool | operator!= (const Looper< T2 > &other) const |
const T & | operator* () const |
Accessor as if it was a const_iterator on a list of T. | |
Looper & | operator++ () |
iteration | |
Looper & | operator-- () |
iteration | |
const T * | operator-> () const |
Accessor as if it was a const_iterator on a list of T. | |
template<typename T2 > | |
bool | operator< (const Looper< T2 > &other) const |
template<typename T2 > | |
bool | operator<= (const Looper< T2 > &other) const |
template<typename T2 > | |
bool | operator== (const Looper< T2 > &other) const |
returns true if loopers point to the same record | |
template<typename T2 > | |
bool | operator> (const Looper< T2 > &other) const |
template<typename T2 > | |
bool | operator>= (const Looper< T2 > &other) const |
const CandRefType & | ref () const |
EDM Ref to pointed particle. | |
Looper & | reset (int item=0) |
const std::string & | role () const |
Role of pointed item. | |
size_t | size () const |
Number of particles in the loop. | |
Looper & | skip (int delta) |
skip (might be slow) | |
~Looper () | |
Private Types | |
typedef EventHypothesis::const_iterator | const_iterator |
Private Member Functions | |
bool | assertOk () const |
void | first () |
void | realSize () const |
Private Attributes | |
const EventHypothesis & | eh_ |
const ParticleFilterPtr | filter_ |
const_iterator | iter_ |
int | num_ |
DynCastCandPtr< T > | ptr_ |
int | total_ |
Definition at line 43 of file EventHypothesisLooper.h.
typedef EventHypothesis::const_iterator pat::eventhypothesis::Looper< T >::const_iterator [private] |
Definition at line 105 of file EventHypothesisLooper.h.
pat::eventhypothesis::Looper< T >::Looper | ( | const EventHypothesis & | eh, |
const ParticleFilter & | filter | ||
) |
Looper from EventHypothesis and an external, not owned, ParticleFilter. That is: MyFilter flt; Looper(eh, flt);
Definition at line 121 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::first().
pat::eventhypothesis::Looper< T >::Looper | ( | const EventHypothesis & | eh, |
const ParticleFilter * | filter | ||
) |
Looper from EventHypothesis and an internal, owned, ParticleFilter That is: Looper(eh, new MyFilter());
Definition at line 128 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::first().
pat::eventhypothesis::Looper< T >::Looper | ( | const EventHypothesis & | eh, |
const ParticleFilterPtr & | filter | ||
) |
Looper from EventHypothesis and a shared ParticleFilter That is: Looper(eh, ParticleFilterPtr(new MyFilter()));
Definition at line 135 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::first().
pat::eventhypothesis::Looper< T >::~Looper | ( | ) | [inline] |
Definition at line 55 of file EventHypothesisLooper.h.
{}
bool pat::eventhypothesis::Looper< T >::assertOk | ( | ) | const [private] |
const reco::Candidate& pat::eventhypothesis::Looper< T >::cand | ( | ) | const [inline] |
C++ reference to pointed particle.
Definition at line 72 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return *iter_->second; }
void pat::eventhypothesis::Looper< T >::first | ( | ) | [private] |
const T* pat::eventhypothesis::Looper< T >::get | ( | void | ) | const [inline] |
Accessor as if it was a smart pointer to const T *.
Definition at line 62 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_, and pat::eventhypothesis::Looper< T >::ptr_.
size_t pat::eventhypothesis::Looper< T >::globalIndex | ( | ) | [inline] |
Index of this item in the full EventHypothesis.
Definition at line 75 of file EventHypothesisLooper.h.
References pat::EventHypothesis::begin(), pat::eventhypothesis::Looper< T >::eh_, and pat::eventhypothesis::Looper< T >::iter_.
size_t pat::eventhypothesis::Looper< T >::index | ( | ) | const [inline] |
Index of this item among those in the loop.
Definition at line 77 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::num_.
{ return num_; }
bool pat::eventhypothesis::Looper< T >::isTypeOk | ( | ) | const [inline] |
test if the type is correct
Definition at line 65 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_, and pat::eventhypothesis::Looper< T >::ptr_.
pat::eventhypothesis::Looper< T >::operator bool | ( | ) | const |
bool pat::eventhypothesis::Looper< T >::operator!= | ( | const Looper< T2 > & | other | ) | const [inline] |
Definition at line 97 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return iter_ != other.iter_; }
const T& pat::eventhypothesis::Looper< T >::operator* | ( | void | ) | const [inline] |
Accessor as if it was a const_iterator on a list of T.
Definition at line 58 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_, and pat::eventhypothesis::Looper< T >::ptr_.
Looper< T > & pat::eventhypothesis::Looper< T >::operator++ | ( | void | ) |
Looper< T > & pat::eventhypothesis::Looper< T >::operator-- | ( | ) |
const T* pat::eventhypothesis::Looper< T >::operator-> | ( | ) | const [inline] |
Accessor as if it was a const_iterator on a list of T.
Definition at line 60 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_, and pat::eventhypothesis::Looper< T >::ptr_.
bool pat::eventhypothesis::Looper< T >::operator< | ( | const Looper< T2 > & | other | ) | const [inline] |
Definition at line 100 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return iter_ < other.iter_; }
bool pat::eventhypothesis::Looper< T >::operator<= | ( | const Looper< T2 > & | other | ) | const [inline] |
Definition at line 98 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return iter_ <= other.iter_; }
bool pat::eventhypothesis::Looper< T >::operator== | ( | const Looper< T2 > & | other | ) | const [inline] |
returns true if loopers point to the same record
Definition at line 96 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return iter_ == other.iter_; }
bool pat::eventhypothesis::Looper< T >::operator> | ( | const Looper< T2 > & | other | ) | const [inline] |
Definition at line 101 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return iter_ > other.iter_; }
bool pat::eventhypothesis::Looper< T >::operator>= | ( | const Looper< T2 > & | other | ) | const [inline] |
Definition at line 99 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return iter_ >= other.iter_; }
void pat::eventhypothesis::Looper< T >::realSize | ( | ) | const [private] |
Definition at line 222 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::size().
const CandRefType& pat::eventhypothesis::Looper< T >::ref | ( | ) | const [inline] |
EDM Ref to pointed particle.
Definition at line 70 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return iter_->second; }
Looper< T > & pat::eventhypothesis::Looper< T >::reset | ( | int | item = 0 | ) |
Reset to the start or to any other specific item; negatives count from the end. might be slow, especially with negative items
Definition at line 192 of file EventHypothesisLooper.h.
References first.
const std::string& pat::eventhypothesis::Looper< T >::role | ( | ) | const [inline] |
Role of pointed item.
Definition at line 68 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
{ return iter_->first; }
size_t pat::eventhypothesis::Looper< T >::size | ( | void | ) | const [inline] |
Number of particles in the loop.
Definition at line 79 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::realSize(), and pat::eventhypothesis::Looper< T >::total_.
Looper< T > & pat::eventhypothesis::Looper< T >::skip | ( | int | delta | ) |
skip (might be slow)
Definition at line 184 of file EventHypothesisLooper.h.
const EventHypothesis& pat::eventhypothesis::Looper< T >::eh_ [private] |
Definition at line 111 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::globalIndex().
const ParticleFilterPtr pat::eventhypothesis::Looper< T >::filter_ [private] |
Definition at line 112 of file EventHypothesisLooper.h.
const_iterator pat::eventhypothesis::Looper< T >::iter_ [private] |
Definition at line 113 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::cand(), pat::eventhypothesis::Looper< T >::get(), pat::eventhypothesis::Looper< T >::globalIndex(), pat::eventhypothesis::Looper< T >::isTypeOk(), pat::eventhypothesis::Looper< T >::operator!=(), pat::eventhypothesis::Looper< T >::operator*(), pat::eventhypothesis::Looper< T >::operator->(), pat::eventhypothesis::Looper< T >::operator<(), pat::eventhypothesis::Looper< T >::operator<=(), pat::eventhypothesis::Looper< T >::operator==(), pat::eventhypothesis::Looper< T >::operator>(), pat::eventhypothesis::Looper< T >::operator>=(), pat::eventhypothesis::Looper< T >::ref(), and pat::eventhypothesis::Looper< T >::role().
int pat::eventhypothesis::Looper< T >::num_ [private] |
Definition at line 114 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::index().
DynCastCandPtr<T> pat::eventhypothesis::Looper< T >::ptr_ [mutable, private] |
Definition at line 116 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::get(), pat::eventhypothesis::Looper< T >::isTypeOk(), pat::eventhypothesis::Looper< T >::operator*(), and pat::eventhypothesis::Looper< T >::operator->().
int pat::eventhypothesis::Looper< T >::total_ [mutable, private] |
Definition at line 115 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::size().