HepMC event record
|
Class used to define filters for search engine.
Objects of this class cannot be directly created by user. Use predefined static const HepMC::FilterBase objects to construct appropriate filters. See Search engine for more details.
Definition at line 33 of file build/outputs/include/HepMC/Search/Filter.h.
#include <Filter.h>
Public Member Functions | |
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... | |
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... | |
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 (FilterIntegerParam p, FilterOperator o, int value) | |
Internal constructor for integer-type filters. More... | |
Filter (FilterBoolParam p, bool value=true) | |
Internal constructor for boolean-type filters. More... | |
Filter (FilterAttributeParam p, const string name) | |
Internal constructor for attribute-type filters. More... | |
Filter (FilterIntegerParam p, FilterOperator o, int value) | |
Internal constructor for integer-type filters. More... | |
Filter (FilterBoolParam p, bool value=true) | |
Internal constructor for boolean-type filters. More... | |
Filter (FilterAttributeParam p, const string name) | |
Internal constructor for attribute-type filters. 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... | |
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... | |
}; | |
Private Member Functions | |
bool | passed_int_filter (const GenParticlePtr &p) const |
Filter::passed_filter helper for integer-type filters. More... | |
bool | passed_bool_filter (const GenParticlePtr &p) const |
Filter::passed_filter helper for pointer-type filters. More... | |
bool | passed_attribute_filter (const GenParticlePtr &p) const |
Filter::passed_filter helper for attribute-type filters. More... | |
bool | passed_int_filter (const GenParticlePtr &p) const |
Filter::passed_filter helper for integer-type filters. More... | |
bool | passed_bool_filter (const GenParticlePtr &p) const |
Filter::passed_filter helper for pointer-type filters. More... | |
bool | passed_attribute_filter (const GenParticlePtr &p) const |
Filter::passed_filter helper for attribute-type filters. More... | |
Friends | |
class | FilterBase |
|
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.
|
inlineprotected |
Internal constructor for integer-type filters.
Invoked when an operator == != < > <= or >= with integer value is used on a filter.
Definition at line 46 of file build/outputs/include/HepMC/Search/Filter.h.
|
inlineprotected |
Internal constructor for boolean-type filters.
Used to initialize global static const filters and to create new filters using operator '!'
Definition at line 53 of file build/outputs/include/HepMC/Search/Filter.h.
|
inlineprotected |
Internal constructor for attribute-type filters.
Used when class ATTRIBUTE is called to provide attribute name
Definition at line 59 of file build/outputs/include/HepMC/Search/Filter.h.
|
inlineprotected |
Internal constructor for integer-type filters.
Invoked when an operator == != < > <= or >= with integer value is used on a filter.
Definition at line 46 of file include/HepMC/Search/Filter.h.
|
inlineprotected |
Internal constructor for boolean-type filters.
Used to initialize global static const filters and to create new filters using operator '!'
Definition at line 53 of file include/HepMC/Search/Filter.h.
|
inlineprotected |
Internal constructor for attribute-type filters.
Used when class ATTRIBUTE is called to provide attribute name
Definition at line 59 of file include/HepMC/Search/Filter.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 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().
|
inline |
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 |
Logical NOT operator for boolean filters.
Definition at line 69 of file include/HepMC/Search/Filter.h.
References Filter::Filter(), FilterBase::m_bool, 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.
|
inherited |
Create integer filter with operator ==.
|
inherited |
Create integer filter with operator ==.
Definition at line 17 of file FilterBase.cc.
References FilterBase::m_int.
|
inherited |
Create integer filter with operator >
|
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.
|
private |
Filter::passed_filter helper for attribute-type filters.
Definition at line 99 of file Filter.cc.
References FilterBase::m_attribute, Filter::m_attribute_name, Filter::m_attribute_str, and Filter::m_bool_value.
|
private |
Filter::passed_filter helper for attribute-type filters.
|
private |
Filter::passed_filter helper for pointer-type filters.
|
private |
Filter::passed_filter helper for pointer-type filters.
Definition at line 59 of file Filter.cc.
References FilterBase::m_bool, and Filter::m_bool_value.
bool passed_filter | ( | const GenParticlePtr & | p | ) | const |
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().
bool passed_filter | ( | const GenParticlePtr & | p | ) | const |
Check if HepMC::GenParticle passed this filter.
|
private |
Filter::passed_filter helper for integer-type filters.
Definition at line 31 of file Filter.cc.
References FilterBase::m_int, Filter::m_int_value, and Filter::m_operator.
|
private |
Filter::passed_filter helper for integer-type filters.
|
inherited |
Attribute value (if attribute parameter type)
Definition at line 126 of file build/outputs/include/HepMC/Search/FilterBase.h.
|
protected |
Filter parameter for attribute-type filters.
Definition at line 87 of file build/outputs/include/HepMC/Search/Filter.h.
|
protected |
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.
|
protected |
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.
|
protected |
Filter parameter for integer-type filter.
Definition at line 85 of file build/outputs/include/HepMC/Search/Filter.h.
|
protected |
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.