HepMC event record
|
Data Structures | |
class | Filter |
Class used to define filters for search engine. More... | |
class | ATTRIBUTE |
Filter for the attributes. More... | |
class | FilterBase |
Base class for Filter class. More... | |
class | FilterList |
List of filters for the search engine. More... | |
class | FindParticles |
Search engine for GenEvent class. More... | |
The aim of the search engine is to provide an unified way to search through the event for any type of particles needed for the analysis without any need of iterators or specific knowledge of event structure.
Particles can be filtered based on an event or particle pointer:
Filters can be constructed using any natural operator:
or boolean checks:
They can also be used to find particles selected attribute:
or with concrete value of an attribute:
Filters are additive:
Sequence point of '&&' operator is kept - if particle does not pass a filter, rest of the filters is not checked
Applying additional filters:
Example of advanced search:
Getting the results:
Filters are type-safe. Invalid searches will not compile:
Similarly, following filters will fail at compile time:
Last update 6 Apr 2016