ATLAS Offline Software
|
PdgIdFilter selects particles from their pdg id code. More...
#include <PdgIdFilter.h>
Public Member Functions | |
PdgIdFilter () | |
Default constructor: More... | |
PdgIdFilter (const PdgIdFilter< T > &rhs) | |
Copy constructor: More... | |
virtual | ~PdgIdFilter () |
Destructor: More... | |
PdgIdFilter< T > & | operator= (const PdgIdFilter< T > &rhs) |
Assignment operator: More... | |
virtual bool | isAccepted (const T *element) const |
Main filter method. More... | |
const ParticleCandidateList * | pdgIds () const |
Return the list of pdg ids the filter is looking for. More... | |
bool | matchSign () const |
Return true if the filter requires a strict sign matching. More... | |
void | setFilter (const IFilterCuts *filter) |
Pure virtual function (to be overloaded by each of the children classes) to copy the cut properties of a given filter to another one. More... | |
void | setPdgId (const int &pdgId) |
void | setPdgIds (const std::list< int > &pdgIds) |
void | setPdgIds (const ParticleCandidateList &pdgIds) |
void | setMatchSign (const bool matchSign) |
bool | operator() (const T *element) const |
Protected Attributes | |
ParticleCandidateList | m_pdgIds |
The list of particles ids which might be accepted. More... | |
bool | m_matchSign |
Tells to also match the sign of the pdg id of particles => true by default. More... | |
PdgIdFilter selects particles from their pdg id code.
Up to now, it is based on a ParticleCandidateList but it is very likely that internally it will be based on DecayPattern See AnalysisExamples/FilterExample.cxx for a concrete example
Definition at line 34 of file PdgIdFilter.h.
|
inline |
|
inline |
|
virtual |
|
virtual |
Main filter method.
This method takes the decision whether or not the filter has to accept the element. It returns true or false accordingly if the particle's id matches one of the required one.
Check if a pdg-id set has been set-up
Otherwise return true by convention
Implements IFilter< T >.
Definition at line 150 of file PdgIdFilter.h.
|
inline |
Return true if the filter requires a strict sign matching.
Definition at line 172 of file PdgIdFilter.h.
|
inline |
|
inline |
Return the list of pdg ids the filter is looking for.
Definition at line 166 of file PdgIdFilter.h.
|
virtual |
Pure virtual function (to be overloaded by each of the children classes) to copy the cut properties of a given filter to another one.
It copies the properties of ifilter to the current IFilterCuts object.
ifilter | the IFilterCuts which holds a set of properties one wants to copy to the current IFilterCuts object. |
Implements IFilterCuts.
Definition at line 178 of file PdgIdFilter.h.
|
inline |
Definition at line 219 of file PdgIdFilter.h.
|
inline |
Definition at line 197 of file PdgIdFilter.h.
|
inline |
Definition at line 213 of file PdgIdFilter.h.
void PdgIdFilter< T >::setPdgIds | ( | const std::list< int > & | pdgIds | ) |
|
protected |
Tells to also match the sign of the pdg id of particles => true by default.
Definition at line 101 of file PdgIdFilter.h.
|
protected |
The list of particles ids which might be accepted.
Definition at line 96 of file PdgIdFilter.h.