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