#include <RawParticleTypeFilter.h>
Public Member Functions | |
void | addAccept (const int id) |
void | addAccept (const std::string &name) |
void | addReject (const int id) |
void | addReject (const std::string &name) |
RawParticleTypeFilter () | |
RawParticleTypeFilter (const std::string &particleName) | |
Construct a filter to accept particles of particleName. More... | |
RawParticleTypeFilter (const std::string &particleName1, const std::string &particleName2) | |
Construct a filter to accept particles of particleName1 or particleName2. More... | |
RawParticleTypeFilter (const int pid) | |
Construct a filter to accept particles with id pid. More... | |
RawParticleTypeFilter (const int pid1, const int pid2) | |
Construct a filter to accept particles with id pid1 or pid2. More... | |
virtual | ~RawParticleTypeFilter () |
Public Member Functions inherited from BaseRawParticleFilter | |
bool | accept (const RawParticle &p) const |
bool | accept (const RawParticle *p) const |
void | addFilter (BaseRawParticleFilter *f) |
Add a BaseRawParticleFilter to be run after executing this one. More... | |
BaseRawParticleFilter () | |
virtual | ~BaseRawParticleFilter () |
Private Member Functions | |
bool | isAcceptable (const int id) const |
is this particle id in the list of acceptable particles? More... | |
bool | isOKForMe (const RawParticle *p) const |
implemented as required by class BaseRawParticleFilter More... | |
bool | isRejectable (const int id) const |
is this particle id in the list of rejectable particles? More... | |
Private Attributes | |
std::vector< int > | myAcceptIDs |
std::vector< int > | myRejectIDs |
Additional Inherited Members |
A RawParticle filter class. This class rejects or accepts RawParticles based on their pid(). It allows to either accept or (exclusive) reject particle types.
Definition at line 13 of file RawParticleTypeFilter.h.
|
inline |
Definition at line 16 of file RawParticleTypeFilter.h.
RawParticleTypeFilter::RawParticleTypeFilter | ( | const std::string & | particleName | ) |
Construct a filter to accept particles of particleName.
Definition at line 15 of file RawParticleTypeFilter.cc.
References myAcceptIDs, RawParticle::pid(), and tmp.
RawParticleTypeFilter::RawParticleTypeFilter | ( | const std::string & | particleName1, |
const std::string & | particleName2 | ||
) |
Construct a filter to accept particles of particleName1 or particleName2.
Definition at line 22 of file RawParticleTypeFilter.cc.
References myAcceptIDs, and RawParticle::pid().
RawParticleTypeFilter::RawParticleTypeFilter | ( | const int | pid | ) |
Construct a filter to accept particles with id pid.
Definition at line 32 of file RawParticleTypeFilter.cc.
References myAcceptIDs.
RawParticleTypeFilter::RawParticleTypeFilter | ( | const int | pid1, |
const int | pid2 | ||
) |
Construct a filter to accept particles with id pid1 or pid2.
Definition at line 36 of file RawParticleTypeFilter.cc.
References myAcceptIDs.
|
inlinevirtual |
Definition at line 31 of file RawParticleTypeFilter.h.
void RawParticleTypeFilter::addAccept | ( | const int | id | ) |
Accept in addition particles with id id. The list of particles to reject will be cleared and no longer used.
Definition at line 41 of file RawParticleTypeFilter.cc.
References myAcceptIDs, and myRejectIDs.
Referenced by addAccept().
void RawParticleTypeFilter::addAccept | ( | const std::string & | name | ) |
Accept in addition particles with name name. The list of particles to reject will be cleared and no longer used.
Definition at line 46 of file RawParticleTypeFilter.cc.
References addAccept(), RawParticle::pid(), and tmp.
void RawParticleTypeFilter::addReject | ( | const int | id | ) |
Reject in addition particles with id id. The list of particles to accept will be cleared and no longer used.
Definition at line 52 of file RawParticleTypeFilter.cc.
References myAcceptIDs, and myRejectIDs.
Referenced by addReject().
void RawParticleTypeFilter::addReject | ( | const std::string & | name | ) |
Reject in addition particles with name name. The list of particles to accept will be cleared and no longer used.
Definition at line 57 of file RawParticleTypeFilter.cc.
References addReject(), RawParticle::pid(), and tmp.
|
private |
is this particle id in the list of acceptable particles?
Definition at line 75 of file RawParticleTypeFilter.cc.
References myAcceptIDs.
Referenced by isOKForMe().
|
privatevirtual |
implemented as required by class BaseRawParticleFilter
Implements BaseRawParticleFilter.
Definition at line 63 of file RawParticleTypeFilter.cc.
References isAcceptable(), isRejectable(), myAcceptIDs, myRejectIDs, and RawParticle::pid().
|
private |
is this particle id in the list of rejectable particles?
Definition at line 89 of file RawParticleTypeFilter.cc.
References myRejectIDs.
Referenced by isOKForMe().
|
private |
Definition at line 63 of file RawParticleTypeFilter.h.
Referenced by addAccept(), addReject(), isAcceptable(), isOKForMe(), and RawParticleTypeFilter().
|
private |
Definition at line 63 of file RawParticleTypeFilter.h.
Referenced by addAccept(), addReject(), isOKForMe(), and isRejectable().