HepMC event record
|
Filter for the attributes.
Used to construct filters that can check if an attribute exists or to compare against other attribute. See Search engine for details and examples of its use.
Definition at line 28 of file build/outputs/include/HepMC/Search/FilterAttribute.h.
#include <FilterAttribute.h>
Public Member Functions | |
ATTRIBUTE (const string &name) | |
Default constructor. More... | |
Filter & | operator== (shared_ptr< Attribute > &at) |
Compare if this attribute is equal to other attribute. More... | |
Filter & | operator!= (shared_ptr< Attribute > &at) |
Compare if this attribute is not equal to other attribute. More... | |
Filter & | operator== (const std::string &value) |
Compare if string version of this attribute is equal value. More... | |
Filter & | operator!= (const std::string &value) |
Compare if string version of this attribute is not equal value. More... | |
Filter & | operator! () |
Negate logic of the result (eg. check if attribute does not exist) More... | |
ATTRIBUTE (const string &name) | |
Default constructor. More... | |
Filter & | operator== (shared_ptr< Attribute > &at) |
Compare if this attribute is equal to other attribute. More... | |
Filter & | operator!= (shared_ptr< Attribute > &at) |
Compare if this attribute is not equal to other attribute. More... | |
Filter & | operator== (const std::string &value) |
Compare if string version of this attribute is equal value. More... | |
Filter & | operator!= (const std::string &value) |
Compare if string version of this attribute is not equal value. More... | |
Filter & | operator! () |
Negate logic of the result (eg. check if attribute does not exist) More... | |
bool | passed_filter (const GenParticlePtr &p) const |
Check if HepMC::GenParticle passed this filter. More... | |
bool | passed_filter (const GenParticlePtr &p) const |
Check if HepMC::GenParticle passed this filter. More... | |
Filter | operator! () const |
Logical NOT operator for boolean filters. More... | |
Filter | operator== (int value) const |
Create integer filter with operator ==. More... | |
Filter | operator!= (int value) const |
Create integer filter with operator !=. More... | |
Protected Types | |
enum | FilterParamType { INTEGER_PARAM, BOOL_PARAM, ATTRIBUTE_PARAM, INTEGER_PARAM, BOOL_PARAM, ATTRIBUTE_PARAM } |
List of filter parameter types. More... | |
enum | FilterParamType { INTEGER_PARAM, BOOL_PARAM, ATTRIBUTE_PARAM, INTEGER_PARAM, BOOL_PARAM, ATTRIBUTE_PARAM } |
List of filter parameter types. More... | |
enum | FilterIntegerParam { STATUS, PDG_ID, ABS_PDG_ID, STATUS, PDG_ID, ABS_PDG_ID } |
List of filters with integer parameter. More... | |
enum | FilterIntegerParam { STATUS, PDG_ID, ABS_PDG_ID, STATUS, PDG_ID, ABS_PDG_ID } |
List of filters with integer parameter. More... | |
enum | FilterBoolParam { HAS_END_VERTEX, HAS_PRODUCTION_VERTEX, HAS_SAME_PDG_ID_DAUGHTER, IS_STABLE, IS_BEAM, HAS_END_VERTEX, HAS_PRODUCTION_VERTEX, HAS_SAME_PDG_ID_DAUGHTER, IS_STABLE, IS_BEAM } |
List of filters with boolean parameter. More... | |
enum | FilterBoolParam { HAS_END_VERTEX, HAS_PRODUCTION_VERTEX, HAS_SAME_PDG_ID_DAUGHTER, IS_STABLE, IS_BEAM, HAS_END_VERTEX, HAS_PRODUCTION_VERTEX, HAS_SAME_PDG_ID_DAUGHTER, IS_STABLE, IS_BEAM } |
List of filters with boolean parameter. More... | |
enum | FilterAttributeParam { ATTRIBUTE_EXISTS, ATTRIBUTE_IS_EQUAL, ATTRIBUTE_EXISTS, ATTRIBUTE_IS_EQUAL } |
List of filters with attribute parameter. More... | |
enum | FilterAttributeParam { ATTRIBUTE_EXISTS, ATTRIBUTE_IS_EQUAL, ATTRIBUTE_EXISTS, ATTRIBUTE_IS_EQUAL } |
List of filters with attribute parameter. More... | |
enum | FilterOperator { EQUAL, GREATER, GREATER_OR_EQUAL, LESS, LESS_OR_EQUAL, NOT_EQUAL, EQUAL, GREATER, GREATER_OR_EQUAL, LESS, LESS_OR_EQUAL, NOT_EQUAL } |
List of operators on filter values. More... | |
enum | FilterOperator { EQUAL, GREATER, GREATER_OR_EQUAL, LESS, LESS_OR_EQUAL, NOT_EQUAL, EQUAL, GREATER, GREATER_OR_EQUAL, LESS, LESS_OR_EQUAL, NOT_EQUAL } |
List of operators on filter values. More... | |
Protected Member Functions | |
Filter | operator> (int value) const |
Create integer filter with operator > More... | |
Filter | operator> (int value) const |
Create integer filter with operator > More... | |
Filter | operator>= (int value) const |
Create integer filter with operator >=. More... | |
Filter | operator>= (int value) const |
Create integer filter with operator >=. More... | |
Filter | operator< (int value) const |
Create integer filter with operator <. More... | |
Filter | operator< (int value) const |
Create integer filter with operator <. More... | |
Filter | operator<= (int value) const |
Create integer filter with operator <=. More... | |
Filter | operator<= (int value) const |
Create integer filter with operator <=. More... | |
Static Protected Member Functions | |
static const FilterBase | init_status () |
init static const STATUS More... | |
static const FilterBase | init_status () |
init static const STATUS More... | |
static const FilterBase | init_pdg_id () |
init static const PDG_ID More... | |
static const FilterBase | init_pdg_id () |
init static const PDG_ID More... | |
static const FilterBase | init_abs_pdg_id () |
init static const ABS_PDG_ID More... | |
static const FilterBase | init_abs_pdg_id () |
init static const ABS_PDG_ID More... | |
static const Filter | init_has_end_vertex () |
init static const HAS_END_VERTEX More... | |
static const Filter | init_has_end_vertex () |
init static const HAS_END_VERTEX More... | |
static const Filter | init_has_production_vertex () |
init static const HAS_PRODUCTION_VERTEX More... | |
static const Filter | init_has_production_vertex () |
init static const HAS_PRODUCTION_VERTEX More... | |
static const Filter | init_has_same_pdg_id_daughter () |
init static const HAS_SAME_PDG_ID_DAUGHTER More... | |
static const Filter | init_has_same_pdg_id_daughter () |
init static const HAS_SAME_PDG_ID_DAUGHTER More... | |
static const Filter | init_is_stable () |
init static const IS_STABLE More... | |
static const Filter | init_is_stable () |
init static const IS_STABLE More... | |
static const Filter | init_is_beam () |
init static const IS_BEAM More... | |
static const Filter | init_is_beam () |
init static const IS_BEAM More... | |
Protected Attributes | |
FilterOperator | m_operator |
Operator used by filter. More... | |
int | m_int_value |
Filter parameter for integer-type filter. More... | |
bool | m_bool_value |
Filter parameter for boolean-type filter. More... | |
string | m_attribute_name |
Filter parameter for attribute-type filters. More... | |
string | m_attribute_str |
Filter parameter for attribute-type filters. More... | |
FilterParamType | m_value_type |
Parameter type. More... | |
union { | |
FilterAttributeParam m_attribute | |
Attribute value (if attribute parameter type) More... | |
FilterIntegerParam m_int | |
Integer value (if integer parameter type) More... | |
FilterBoolParam m_bool | |
Boolean value (if boolean parameter type) More... | |
}; | |
union { | |
FilterAttributeParam m_attribute | |
Attribute value (if attribute parameter type) More... | |
FilterIntegerParam m_int | |
Integer value (if integer parameter type) More... | |
FilterBoolParam m_bool | |
Boolean value (if boolean parameter type) More... | |
}; | |
|
protectedinherited |
List of filters with attribute parameter.
Definition at line 56 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of filters with attribute parameter.
Definition at line 56 of file include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of filters with boolean parameter.
Definition at line 47 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of filters with boolean parameter.
Definition at line 47 of file include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of filters with integer parameter.
Definition at line 40 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of filters with integer parameter.
Definition at line 40 of file include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of operators on filter values.
Definition at line 62 of file include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of operators on filter values.
Definition at line 62 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of filter parameter types.
Definition at line 33 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protectedinherited |
List of filter parameter types.
Definition at line 33 of file include/HepMC/Search/FilterBase.h.
|
inline |
Default constructor.
Provides the name of the attribute used in by the filter
Definition at line 36 of file build/outputs/include/HepMC/Search/FilterAttribute.h.
|
inline |
Default constructor.
Provides the name of the attribute used in by the filter
Definition at line 36 of file include/HepMC/Search/FilterAttribute.h.
|
inlinestaticinherited |
init static const ABS_PDG_ID
Definition at line 77 of file build/outputs/include/HepMC/Search/FilterBase.h.
References FilterBase::FilterBase().
|
inlinestaticinherited |
init static const ABS_PDG_ID
Definition at line 77 of file include/HepMC/Search/FilterBase.h.
References FilterBase::FilterBase().
|
staticinherited |
init static const HAS_END_VERTEX
Definition at line 25 of file FilterBase.cc.
|
staticinherited |
init static const HAS_END_VERTEX
|
staticinherited |
init static const HAS_PRODUCTION_VERTEX
Definition at line 26 of file FilterBase.cc.
|
staticinherited |
init static const HAS_PRODUCTION_VERTEX
|
staticinherited |
init static const HAS_SAME_PDG_ID_DAUGHTER
Definition at line 27 of file FilterBase.cc.
|
staticinherited |
init static const HAS_SAME_PDG_ID_DAUGHTER
|
staticinherited |
init static const IS_BEAM
Definition at line 29 of file FilterBase.cc.
|
staticinherited |
init static const IS_BEAM
|
staticinherited |
init static const IS_STABLE
Definition at line 28 of file FilterBase.cc.
|
staticinherited |
init static const IS_STABLE
|
inlinestaticinherited |
init static const PDG_ID
Definition at line 76 of file build/outputs/include/HepMC/Search/FilterBase.h.
References FilterBase::FilterBase().
|
inlinestaticinherited |
init static const PDG_ID
Definition at line 76 of file include/HepMC/Search/FilterBase.h.
References FilterBase::FilterBase().
|
inlinestaticinherited |
init static const STATUS
Definition at line 75 of file build/outputs/include/HepMC/Search/FilterBase.h.
References FilterBase::FilterBase().
|
inlinestaticinherited |
init static const STATUS
Definition at line 75 of file include/HepMC/Search/FilterBase.h.
References FilterBase::FilterBase().
|
inlineinherited |
Logical NOT operator for boolean filters.
Definition at line 69 of file build/outputs/include/HepMC/Search/Filter.h.
References Filter::Filter(), FilterBase::m_bool, and Filter::m_bool_value.
|
inline |
Negate logic of the result (eg. check if attribute does not exist)
Definition at line 74 of file include/HepMC/Search/FilterAttribute.h.
References Filter::m_bool_value.
|
inline |
Negate logic of the result (eg. check if attribute does not exist)
Definition at line 74 of file build/outputs/include/HepMC/Search/FilterAttribute.h.
References Filter::m_bool_value.
Compare if this attribute is not equal to other attribute.
Definition at line 51 of file build/outputs/include/HepMC/Search/FilterAttribute.h.
References FilterBase::m_attribute, Filter::m_attribute_str, and Filter::m_bool_value.
Compare if this attribute is not equal to other attribute.
Definition at line 51 of file include/HepMC/Search/FilterAttribute.h.
References FilterBase::m_attribute, Filter::m_attribute_str, and Filter::m_bool_value.
Compare if string version of this attribute is not equal value.
Definition at line 66 of file include/HepMC/Search/FilterAttribute.h.
References FilterBase::m_attribute, Filter::m_attribute_str, and Filter::m_bool_value.
Compare if string version of this attribute is not equal value.
Definition at line 66 of file build/outputs/include/HepMC/Search/FilterAttribute.h.
References FilterBase::m_attribute, Filter::m_attribute_str, and Filter::m_bool_value.
Create integer filter with operator !=.
Definition at line 18 of file FilterBase.cc.
References FilterBase::m_int.
|
inherited |
Create integer filter with operator <.
Definition at line 21 of file FilterBase.cc.
References FilterBase::m_int.
|
inherited |
Create integer filter with operator <.
|
inherited |
Create integer filter with operator <=.
|
inherited |
Create integer filter with operator <=.
Definition at line 22 of file FilterBase.cc.
References FilterBase::m_int.
Compare if this attribute is equal to other attribute.
Definition at line 44 of file build/outputs/include/HepMC/Search/FilterAttribute.h.
References FilterBase::m_attribute, and Filter::m_attribute_str.
Compare if this attribute is equal to other attribute.
Definition at line 44 of file include/HepMC/Search/FilterAttribute.h.
References FilterBase::m_attribute, and Filter::m_attribute_str.
|
inline |
Compare if string version of this attribute is equal value.
Definition at line 59 of file build/outputs/include/HepMC/Search/FilterAttribute.h.
References FilterBase::m_attribute, and Filter::m_attribute_str.
|
inline |
Compare if string version of this attribute is equal value.
Definition at line 59 of file include/HepMC/Search/FilterAttribute.h.
References FilterBase::m_attribute, and Filter::m_attribute_str.
|
inherited |
Create integer filter with operator ==.
Definition at line 17 of file FilterBase.cc.
References FilterBase::m_int.
|
inherited |
Create integer filter with operator >
Definition at line 19 of file FilterBase.cc.
References FilterBase::m_int.
|
inherited |
Create integer filter with operator >
|
inherited |
Create integer filter with operator >=.
Definition at line 20 of file FilterBase.cc.
References FilterBase::m_int.
|
inherited |
Create integer filter with operator >=.
|
inherited |
Check if HepMC::GenParticle passed this filter.
Definition at line 20 of file Filter.cc.
References FilterBase::m_value_type, Filter::passed_attribute_filter(), Filter::passed_bool_filter(), and Filter::passed_int_filter().
|
inherited |
Check if HepMC::GenParticle passed this filter.
|
inherited |
Attribute value (if attribute parameter type)
Definition at line 126 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protectedinherited |
Filter parameter for attribute-type filters.
Definition at line 87 of file build/outputs/include/HepMC/Search/Filter.h.
|
protectedinherited |
Filter parameter for attribute-type filters.
Definition at line 88 of file build/outputs/include/HepMC/Search/Filter.h.
|
inherited |
Boolean value (if boolean parameter type)
Definition at line 128 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protectedinherited |
Filter parameter for boolean-type filter.
Definition at line 86 of file build/outputs/include/HepMC/Search/Filter.h.
|
inherited |
Integer value (if integer parameter type)
Definition at line 127 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protectedinherited |
Filter parameter for integer-type filter.
Definition at line 85 of file build/outputs/include/HepMC/Search/Filter.h.
|
protectedinherited |
Operator used by filter.
Definition at line 84 of file build/outputs/include/HepMC/Search/Filter.h.
|
protectedinherited |
Parameter type.
Definition at line 123 of file build/outputs/include/HepMC/Search/FilterBase.h.