6 #ifndef HEPMC_SEARCH_FINDPARTICLES_H 7 #define HEPMC_SEARCH_FINDPARTICLES_H 18 #include "HepMC/Search/FilterList.h" 19 #include "HepMC/Data/SmartPointer.h" 92 inline vector<GenParticlePtr>
findParticles(
const GenEvent &evt,
FilterEvent filter_type, FilterList filter_list = FilterList() ) {
93 return FindParticles(evt, filter_type, filter_list).results();
98 return FindParticles(p, filter_type, filter_list).results();
103 return FindParticles(v, filter_type, filter_list).results();
bool passed_all_filters(const GenParticlePtr &p, FilterList &filter_list)
Check if particle passed all filters.
SmartPointer< class GenParticle > GenParticlePtr
Smart pointer to GenParticle.
FindParticles(const GenEvent &evt, FilterEvent filter_type, FilterList filter_list=FilterList())
GenEvent-based constructor.
const vector< GenParticlePtr > & results() const
Get results.
void narrow_down(FilterList filter_list)
Narrow down the results applying additional filters.
vector< GenVertexPtr > m_checked_vertices
List of already checked vertices.
FilterType FilterEvent
Compatibility name.
FilterType
List of methods of searching through all particles in the event.
void recursive_check_descendants(const GenVertexPtr &v, FilterList &filter_list)
Check if all descendants passed the filter.
vector< GenParticlePtr > findParticles(const GenEvent &evt, FilterEvent filter_type, FilterList filter_list=FilterList())
Find from GenEvent.
void recursive_check_ancestors(const GenVertexPtr &v, FilterList &filter_list)
Check if all ancestors passed the filter.
Definition of template class SmartPointer.
vector< GenParticlePtr > m_results
List of results.
SmartPointer< class GenVertex > GenVertexPtr
Smart pointer to GenVertex.
Relationship
List of methods of searching starting from a particle or vertex.