![]() |
![]() |
#include <EventHypothesisTools.h>
Public Member Functions | |
OrFilter & | operator&= (ParticleFilter *filter) |
virtual bool | operator() (const CandRefType &cand, const std::string &role) const |
OrFilter (ParticleFilter *f1, ParticleFilter *f2) | |
OrFilter () | |
virtual | ~OrFilter () |
Private Attributes | |
boost::ptr_vector< ParticleFilter > | filters_ |
Does the OR of some filters. OWNS the pointers to the filters
Definition at line 23 of file EventHypothesisTools.h.
pat::eventhypothesis::OrFilter::OrFilter | ( | ) | [inline] |
Definition at line 25 of file EventHypothesisTools.h.
: filters_(2) {}
OrFilter::OrFilter | ( | ParticleFilter * | f1, |
ParticleFilter * | f2 | ||
) |
virtual pat::eventhypothesis::OrFilter::~OrFilter | ( | ) | [inline, virtual] |
Definition at line 27 of file EventHypothesisTools.h.
{}
OrFilter& pat::eventhypothesis::OrFilter::operator&= | ( | ParticleFilter * | filter | ) | [inline] |
Definition at line 28 of file EventHypothesisTools.h.
References filters_.
bool OrFilter::operator() | ( | const CandRefType & | cand, |
const std::string & | role | ||
) | const [virtual] |
Implements pat::eventhypothesis::ParticleFilter.
Definition at line 24 of file EventHypothesisTools.cc.
References filters_.
boost::ptr_vector<ParticleFilter> pat::eventhypothesis::OrFilter::filters_ [private] |
Definition at line 31 of file EventHypothesisTools.h.
Referenced by operator&=(), operator()(), and OrFilter().