#include <EventHypothesis.h>
Classes | |
struct | null_deleter |
Public Member Functions | |
const reco::Candidate & | cand () const |
C++ reference to pointed particle. More... | |
const T * | get () const |
Accessor as if it was a smart pointer to const T *. More... | |
size_t | globalIndex () |
Index of this item in the full EventHypothesis. More... | |
size_t | index () const |
Index of this item among those in the loop. More... | |
bool | isTypeOk () const |
test if the type is correct More... | |
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. More... | |
Looper & | operator++ () |
iteration More... | |
Looper & | operator-- () |
iteration More... | |
const T * | operator-> () const |
Accessor as if it was a const_iterator on a list of T. More... | |
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 More... | |
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. More... | |
Looper & | reset (int item=0) |
const std::string & | role () const |
Role of pointed item. More... | |
size_t | size () const |
Number of particles in the loop. More... | |
Looper & | skip (int delta) |
skip (might be slow) More... | |
~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 15 of file EventHypothesis.h.
|
private |
Definition at line 106 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 122 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 129 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 136 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::first().
|
inline |
Definition at line 56 of file EventHypothesisLooper.h.
|
private |
Definition at line 144 of file EventHypothesisLooper.h.
References pat::EventHypothesis::begin(), pat::eventhypothesis::Looper< T >::eh_, pat::EventHypothesis::end(), pat::eventhypothesis::Looper< T >::filter_, and pat::eventhypothesis::Looper< T >::iter_.
Referenced by pat::eventhypothesis::Looper< T >::first(), pat::eventhypothesis::Looper< T >::operator++(), pat::eventhypothesis::Looper< T >::operator--(), pat::eventhypothesis::Looper< T >::reset(), and pat::eventhypothesis::Looper< T >::skip().
|
inline |
|
private |
Definition at line 207 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::assertOk(), pat::EventHypothesis::begin(), pat::eventhypothesis::Looper< T >::eh_, pat::EventHypothesis::end(), pat::eventhypothesis::Looper< T >::filter_, pat::eventhypothesis::Looper< T >::iter_, pat::eventhypothesis::Looper< T >::num_, and pat::eventhypothesis::Looper< T >::ptr_.
Referenced by pat::eventhypothesis::Looper< T >::Looper(), and pat::eventhypothesis::Looper< T >::reset().
|
inline |
Accessor as if it was a smart pointer to const T *.
Definition at line 63 of file EventHypothesisLooper.h.
References ptr_.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().
|
inline |
Index of this item in the full EventHypothesis.
Definition at line 76 of file EventHypothesisLooper.h.
|
inline |
Index of this item among those in the loop.
Definition at line 78 of file EventHypothesisLooper.h.
Referenced by BeautifulSoup.PageElement::insert().
|
inline |
pat::eventhypothesis::Looper< T >::operator bool | ( | ) | const |
Returns true if you have not run out of the boundaries. It does NOT check if typeOk()
Definition at line 218 of file EventHypothesisLooper.h.
References pat::EventHypothesis::begin(), pat::eventhypothesis::Looper< T >::eh_, pat::EventHypothesis::end(), and pat::eventhypothesis::Looper< T >::iter_.
|
inline |
Definition at line 98 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
|
inline |
Accessor as if it was a const_iterator on a list of T.
Definition at line 59 of file EventHypothesisLooper.h.
References ptr_.
Looper< T > & pat::eventhypothesis::Looper< T >::operator++ | ( | void | ) |
iteration
Definition at line 152 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::assertOk(), pat::eventhypothesis::Looper< T >::eh_, pat::EventHypothesis::end(), pat::eventhypothesis::Looper< T >::filter_, pat::eventhypothesis::Looper< T >::iter_, pat::eventhypothesis::Looper< T >::num_, and pat::eventhypothesis::Looper< T >::ptr_.
Looper< T > & pat::eventhypothesis::Looper< T >::operator-- | ( | ) |
iteration
Definition at line 168 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::assertOk(), pat::EventHypothesis::begin(), pat::eventhypothesis::Looper< T >::eh_, pat::eventhypothesis::Looper< T >::filter_, pat::eventhypothesis::Looper< T >::iter_, pat::eventhypothesis::Looper< T >::num_, and pat::eventhypothesis::Looper< T >::ptr_.
|
inline |
Accessor as if it was a const_iterator on a list of T.
Definition at line 61 of file EventHypothesisLooper.h.
References ptr_.
|
inline |
|
inline |
|
inline |
returns true if loopers point to the same record
Definition at line 97 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
|
inline |
Definition at line 102 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
|
inline |
Definition at line 100 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::iter_.
|
private |
Definition at line 223 of file EventHypothesisLooper.h.
References pat::EventHypothesis::begin(), pat::eventhypothesis::Looper< T >::eh_, pat::EventHypothesis::end(), pat::eventhypothesis::Looper< T >::filter_, pat::eventhypothesis::Looper< T >::iter_, pat::eventhypothesis::Looper< T >::num_, and pat::eventhypothesis::Looper< T >::total_.
|
inline |
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 193 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::assertOk(), pat::eventhypothesis::Looper< T >::eh_, pat::EventHypothesis::end(), pat::eventhypothesis::Looper< T >::first(), pat::eventhypothesis::Looper< T >::iter_, and pat::eventhypothesis::Looper< T >::num_.
|
inline |
|
inline |
Number of particles in the loop.
Definition at line 80 of file EventHypothesisLooper.h.
References electrons_cff::bool, delta, reset(), and createPayload::skip.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
Looper< T > & pat::eventhypothesis::Looper< T >::skip | ( | int | delta | ) |
skip (might be slow)
Definition at line 185 of file EventHypothesisLooper.h.
References pat::eventhypothesis::Looper< T >::assertOk().
|
private |
Definition at line 112 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::assertOk(), pat::eventhypothesis::Looper< T >::first(), pat::eventhypothesis::Looper< T >::operator bool(), pat::eventhypothesis::Looper< T >::operator++(), pat::eventhypothesis::Looper< T >::operator--(), pat::eventhypothesis::Looper< T >::realSize(), and pat::eventhypothesis::Looper< T >::reset().
|
private |
Definition at line 113 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::assertOk(), pat::eventhypothesis::Looper< T >::first(), pat::eventhypothesis::Looper< T >::operator++(), pat::eventhypothesis::Looper< T >::operator--(), and pat::eventhypothesis::Looper< T >::realSize().
|
private |
Definition at line 114 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::assertOk(), pat::eventhypothesis::Looper< T >::first(), pat::eventhypothesis::Looper< T >::operator bool(), 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 >::realSize(), and pat::eventhypothesis::Looper< T >::reset().
|
private |
Definition at line 115 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::first(), pat::eventhypothesis::Looper< T >::operator++(), pat::eventhypothesis::Looper< T >::operator--(), pat::eventhypothesis::Looper< T >::realSize(), and pat::eventhypothesis::Looper< T >::reset().
|
mutableprivate |
Definition at line 117 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::first(), pat::eventhypothesis::Looper< T >::operator++(), and pat::eventhypothesis::Looper< T >::operator--().
|
mutableprivate |
Definition at line 116 of file EventHypothesisLooper.h.
Referenced by pat::eventhypothesis::Looper< T >::realSize().