#include <EventHypothesis.h>
Classes | |
class | ByRole |
Public Types | |
typedef eventhypothesis::Looper< reco::Candidate > | CandLooper |
typedef eventhypothesis::CandRefType | CandRefType |
typedef vector_type::const_iterator | const_iterator |
typedef vector_type::const_reverse_iterator | const_reverse_iterator |
typedef eventhypothesis::ParticleFilter | ParticleFilter |
typedef eventhypothesis::ParticleFilterPtr | ParticleFilterPtr |
typedef std::pair< std::string, CandRefType > | value_type |
typedef std::vector< value_type > | vector_type |
Public Member Functions | |
void | add (const CandRefType &ref, const std::string &role) |
std::vector< CandRefType > | all (const std::string &roleRegexp) const |
Return EDM references to all particles which have certaint roles. More... | |
std::vector< CandRefType > | all (const ParticleFilter &filter) const |
Return EDM references to all particles which satisfy some condition. More... | |
const_iterator | begin () const |
size_t | count () const |
size_t | count (const std::string &roleRegexp) const |
Counts particles which have certaint roles. More... | |
size_t | count (const ParticleFilter &role) const |
Counts particles which satisfy some condition. More... | |
const_iterator | end () const |
const CandRefType & | get (const std::string &role, int index=0) const |
const CandRefType & | get (const ParticleFilter &filter, int index=0) const |
template<typename T > | |
const T * | getAs (const std::string &role, int index=0) const |
template<typename T > | |
const T * | getAs (const ParticleFilter &filter, int index=0) const |
CandLooper | loop () const |
Loops over all particles. More... | |
CandLooper | loop (const std::string &roleRegexp) const |
Loops over particles which have certaint roles. More... | |
CandLooper | loop (const ParticleFilter &filter) const |
CandLooper | loop (const ParticleFilter *filter) const |
CandLooper | loop (const ParticleFilterPtr &filter) const |
Loops over particles which satisfy some condition. More... | |
template<typename T > | |
eventhypothesis::Looper< T > | loopAs (const std::string &roleRegexp) const |
Loops over particles which have certaint roles. More... | |
template<typename T > | |
eventhypothesis::Looper< T > | loopAs (const ParticleFilter &filter) const |
template<typename T > | |
eventhypothesis::Looper< T > | loopAs (const ParticleFilter *filter) const |
template<typename T > | |
eventhypothesis::Looper< T > | loopAs (const ParticleFilterPtr &filter) const |
Loops over particles which satisfy some condition. More... | |
const CandRefType & | operator[] (const std::string &role) const |
const CandRefType & | operator[] (const ParticleFilter &filter) const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
Private Member Functions | |
template<typename T > | |
std::string | createExceptionMessage (const CandRefType &ref) const |
char * | getDemangledSymbol (const char *mangledSymbol) const |
template<typename Iterator , typename Predicate > | |
Iterator | realGet (const Iterator &realBegin, const Iterator &realEnd, const Predicate &p, size_t idx) const |
Private Attributes | |
std::vector< value_type > | particles_ |
Definition at line 30 of file EventHypothesis.h.
Definition at line 37 of file EventHypothesis.h.
Definition at line 32 of file EventHypothesis.h.
typedef vector_type::const_iterator pat::EventHypothesis::const_iterator |
Definition at line 35 of file EventHypothesis.h.
typedef vector_type::const_reverse_iterator pat::EventHypothesis::const_reverse_iterator |
Definition at line 36 of file EventHypothesis.h.
Definition at line 54 of file EventHypothesis.h.
Definition at line 55 of file EventHypothesis.h.
typedef std::pair<std::string, CandRefType> pat::EventHypothesis::value_type |
Definition at line 33 of file EventHypothesis.h.
typedef std::vector<value_type> pat::EventHypothesis::vector_type |
Definition at line 34 of file EventHypothesis.h.
void pat::EventHypothesis::add | ( | const CandRefType & | ref, |
const std::string & | role | ||
) |
Definition at line 11 of file EventHypothesis.cc.
References particles_.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
std::vector< pat::EventHypothesis::CandRefType > pat::EventHypothesis::all | ( | const std::string & | roleRegexp | ) | const |
Return EDM references to all particles which have certaint roles.
Definition at line 45 of file EventHypothesis.cc.
std::vector< pat::EventHypothesis::CandRefType > pat::EventHypothesis::all | ( | const ParticleFilter & | filter | ) | const |
Return EDM references to all particles which satisfy some condition.
Definition at line 51 of file EventHypothesis.cc.
References begin(), end(), and ALCARECOTkAlBeamHalo_cff::filter.
|
inline |
Definition at line 41 of file EventHypothesis.h.
Referenced by all(), pat::eventhypothesis::Looper< T >::assertOk(), count(), pat::eventhypothesis::Looper< T >::first(), get(), pat::eventhypothesis::Looper< T >::operator bool(), pat::eventhypothesis::Looper< T >::operator--(), and pat::eventhypothesis::Looper< T >::realSize().
|
inline |
Definition at line 69 of file EventHypothesis.h.
References KineDebug3::count(), training_settings::idx, heppy_loop::loop, AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by count().
size_t pat::EventHypothesis::count | ( | const std::string & | roleRegexp | ) | const |
Counts particles which have certaint roles.
Definition at line 61 of file EventHypothesis.cc.
References count().
size_t pat::EventHypothesis::count | ( | const ParticleFilter & | role | ) | const |
Counts particles which satisfy some condition.
Definition at line 67 of file EventHypothesis.cc.
References begin(), end(), and gen::n.
|
private |
Definition at line 147 of file EventHypothesis.h.
References python.rootplot.argparse::message, and dataset::name.
|
inline |
Definition at line 42 of file EventHypothesis.h.
Referenced by all(), pat::eventhypothesis::Looper< T >::assertOk(), count(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), pat::eventhypothesis::Looper< T >::first(), get(), pat::eventhypothesis::Looper< T >::operator bool(), pat::eventhypothesis::Looper< T >::operator++(), pat::eventhypothesis::Looper< T >::realSize(), and pat::eventhypothesis::Looper< T >::reset().
const pat::EventHypothesis::CandRefType & pat::EventHypothesis::get | ( | const std::string & | role, |
int | index = 0 |
||
) | const |
Definition at line 16 of file EventHypothesis.cc.
References begin(), end(), Exception, rbegin(), realGet(), and rend().
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().
const pat::EventHypothesis::CandRefType & pat::EventHypothesis::get | ( | const ParticleFilter & | filter, |
int | index = 0 |
||
) | const |
Definition at line 30 of file EventHypothesis.cc.
References begin(), end(), Exception, rbegin(), realGet(), and rend().
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().
const T * pat::EventHypothesis::getAs | ( | const std::string & | role, |
int | index = 0 |
||
) | const |
Definition at line 164 of file EventHypothesis.h.
References Exception, edm::Ptr< T >::get(), and diffTreeTool::index.
const T * pat::EventHypothesis::getAs | ( | const ParticleFilter & | filter, |
int | index = 0 |
||
) | const |
Definition at line 173 of file EventHypothesis.h.
References Exception, ALCARECOTkAlBeamHalo_cff::filter, edm::Ptr< T >::get(), and diffTreeTool::index.
|
private |
pat::EventHypothesis::CandLooper pat::EventHypothesis::loop | ( | ) | const |
Loops over all particles.
Definition at line 77 of file EventHypothesis.cc.
References pat::eventhypothesis::AcceptAllFilter::get().
Referenced by loop().
pat::EventHypothesis::CandLooper pat::EventHypothesis::loop | ( | const std::string & | roleRegexp | ) | const |
Loops over particles which have certaint roles.
Definition at line 83 of file EventHypothesis.cc.
References loop().
pat::EventHypothesis::CandLooper pat::EventHypothesis::loop | ( | const ParticleFilter & | filter | ) | const |
Loops over particles which satisfy some condition. The caller code owns the filter, and must take care it is not deleted while the looper is still being used
Definition at line 89 of file EventHypothesis.cc.
pat::EventHypothesis::CandLooper pat::EventHypothesis::loop | ( | const ParticleFilter * | filter | ) | const |
Loops over particles which satisfy some condition. The looper owns the filter, which will be deleted when the looper is deleted. That is, you can call eventHypothesis.loop(new WhateverFilterYouLike(...))
Definition at line 95 of file EventHypothesis.cc.
pat::EventHypothesis::CandLooper pat::EventHypothesis::loop | ( | const ParticleFilterPtr & | filter | ) | const |
Loops over particles which satisfy some condition.
Definition at line 101 of file EventHypothesis.cc.
References pat::eventhypothesis::AcceptAllFilter::s_dummyFilter.
eventhypothesis::Looper< T > pat::EventHypothesis::loopAs | ( | const std::string & | roleRegexp | ) | const |
eventhypothesis::Looper< T > pat::EventHypothesis::loopAs | ( | const ParticleFilter & | filter | ) | const |
Loops over particles which satisfy some condition. The caller code owns the filter, and must take care it is not deleted while the looper is still being used
Definition at line 189 of file EventHypothesis.h.
eventhypothesis::Looper< T > pat::EventHypothesis::loopAs | ( | const ParticleFilter * | filter | ) | const |
Loops over particles which satisfy some condition. The looper owns the filter, which will be deleted when the looper is deleted. That is, you can call eventHypothesis.loopAs<...>(new WhateverFilterYouLike(...))
Definition at line 196 of file EventHypothesis.h.
eventhypothesis::Looper< T > pat::EventHypothesis::loopAs | ( | const ParticleFilterPtr & | filter | ) | const |
Loops over particles which satisfy some condition.
Definition at line 203 of file EventHypothesis.h.
|
inline |
Definition at line 61 of file EventHypothesis.h.
|
inline |
Definition at line 62 of file EventHypothesis.h.
References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), ALCARECOTkAlBeamHalo_cff::filter, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 43 of file EventHypothesis.h.
Referenced by get().
|
private |
Definition at line 132 of file EventHypothesis.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by get().
|
inline |
Definition at line 44 of file EventHypothesis.h.
Referenced by get().
|
private |
Definition at line 108 of file EventHypothesis.h.
Referenced by add().