HepMC3 event record library
Relatives Class Referenceabstract

Detailed Description

Define a common interface that all Relatives objects will satisfy Relatives provides an operator to get the relatives of a range of different GenObject types. The following are examples.

Relatives::ANCESTORS(GenParticlePtr);// returns ancestors of the particle Descendants descendants; descendants(GenVertexPtr);// descendants of the vertex vector<Relatives*> relations = {&Relatives::CHILDREN, &Relatives::DESCENDANTS, &Relatives::PARENTS, new Ancestors()}; // make a vector of Relatives

You can also define your own relation and wrap it in the Relatives interface using Relatives * relo = new RelativesInterface<MyRelationClass>();

Definition at line 51 of file Relatives.h.

#include <Relatives.h>

Inheritance diagram for Relatives:
Collaboration diagram for Relatives:

Public Member Functions

virtual std::vector< GenParticlePtr > operator() (GenParticlePtr input) const =0
virtual std::vector< ConstGenParticlePtr > operator() (ConstGenParticlePtr input) const =0
virtual std::vector< GenParticlePtr > operator() (GenVertexPtr input) const =0
virtual std::vector< ConstGenParticlePtr > operator() (ConstGenVertexPtr input) const =0

Static Public Attributes

static const Parents PARENTS
static const Children CHILDREN
static const Ancestors ANCESTORS
static const Descendants DESCENDANTS

Field Documentation

◆ ANCESTORS

const Ancestors ANCESTORS
thread_localstatic

Definition at line 62 of file Relatives.h.

◆ CHILDREN

const Children CHILDREN
static

Definition at line 61 of file Relatives.h.

◆ DESCENDANTS

const Descendants DESCENDANTS
thread_localstatic

Definition at line 63 of file Relatives.h.

◆ PARENTS

const Parents PARENTS
static

Definition at line 60 of file Relatives.h.


The documentation for this class was generated from the following files: