6 #ifndef HEPMC_SEARCH_FILTER_H 7 #define HEPMC_SEARCH_FILTER_H 22 #include "HepMC/Search/FilterBase.h" 23 #include "HepMC/Data/SmartPointer.h" 24 #include "HepMC/Attribute.h" static const Filter init_has_production_vertex()
init static const HAS_PRODUCTION_VERTEX
static const Filter HAS_PRODUCTION_VERTEX
Filter for checking if HepMC::GenParticle::production_vertex() != NULL.
bool m_bool_value
Filter parameter for boolean-type filter.
FilterBoolParam m_bool
Boolean value (if boolean parameter type)
FilterBoolParam
List of filters with boolean parameter.
Class used to define filters for search engine.
FilterIntegerParam
List of filters with integer parameter.
bool passed_attribute_filter(const GenParticlePtr &p) const
Filter::passed_filter helper for attribute-type filters.
FilterOperator m_operator
Operator used by filter.
Smart pointer for HepMC objects.
bool passed_bool_filter(const GenParticlePtr &p) const
Filter::passed_filter helper for pointer-type filters.
bool passed_int_filter(const GenParticlePtr &p) const
Filter::passed_filter helper for integer-type filters.
static const Filter HAS_END_VERTEX
Filter for checking if HepMC::GenParticle::end_vertex() != NULL.
static const Filter init_is_stable()
init static const IS_STABLE
static const Filter init_is_beam()
init static const IS_BEAM
static const Filter HAS_SAME_PDG_ID_DAUGHTER
Filter for checking if end vertex has particle with same pdg_id.
static const Filter IS_STABLE
Filter for checking if particle is stable.
Filter(FilterBoolParam p, bool value=true)
Internal constructor for boolean-type filters.
string m_attribute_str
Filter parameter for attribute-type filters.
static const Filter init_has_end_vertex()
init static const HAS_END_VERTEX
FilterOperator
List of operators on filter values.
Filter operator!() const
Logical NOT operator for boolean filters.
bool passed_filter(const GenParticlePtr &p) const
Check if HepMC::GenParticle passed this filter.
Filter(FilterIntegerParam p, FilterOperator o, int value)
Internal constructor for integer-type filters.
static const Filter IS_BEAM
Filter for checking if particle is a beam particle.
string m_attribute_name
Filter parameter for attribute-type filters.
int m_int_value
Filter parameter for integer-type filter.
Definition of template class SmartPointer.
Base class for Filter class.
Filter(FilterAttributeParam p, const string name)
Internal constructor for attribute-type filters.
static const Filter init_has_same_pdg_id_daughter()
init static const HAS_SAME_PDG_ID_DAUGHTER
FilterAttributeParam
List of filters with attribute parameter.