HepMC3 event record library
Data Structures | Typedefs | Functions | Variables
HepMC3 Namespace Reference

HepMC3 main namespace. More...

Data Structures

class  AnalysisExample
 Example analysis. Produces a rapidity distribution of final state particles. More...
 
union  magic_t
 Union to hold first 4 byts of file, i.e. magic bytes. More...
 
class  ReaderGZ
 GenEvent I/O parsing for structured text files compressed with gzip. More...
 
class  WriterDOT
 GenEvent I/O output to dot files that should be processed by graphviz or other software. More...
 
class  WriterHEPEVTZEUS
 GenEvent I/O output to files readable by ZEUS software. More...
 
class  WriterRootTreeOPAL
 GenEvent I/O output to files similar to these produced by OPAL software. More...
 
class  AssociatedParticle
 Attribute class allowing eg. a GenParticle to refer to another GenParticle. More...
 
class  Attribute
 Forward declaration of GenParticle. More...
 
class  IntAttribute
 Attribute that holds an Integer implemented as an int. More...
 
class  LongAttribute
 Attribute that holds an Integer implemented as an int. More...
 
class  DoubleAttribute
 Attribute that holds a real number as a double. More...
 
class  FloatAttribute
 Attribute that holds a real number as a float. More...
 
class  StringAttribute
 Attribute that holds a string. More...
 
class  CharAttribute
 Attribute that holds an Chareger implemented as an int. More...
 
class  LongLongAttribute
 Attribute that holds an Integer implemented as an int. More...
 
class  LongDoubleAttribute
 Attribute that holds a real number as a double. More...
 
class  UIntAttribute
 Attribute that holds an unsigned int. More...
 
class  ULongAttribute
 Attribute that holds an unsigned long. More...
 
class  ULongLongAttribute
 Attribute that holds an unsigned long long. More...
 
class  BoolAttribute
 Attribute that holds an Booleger implemented as an int. More...
 
class  VectorCharAttribute
 Attribute that holds a vector of charegers of type char. More...
 
class  VectorFloatAttribute
 Attribute that holds a vector of floategers of type float. More...
 
class  VectorLongDoubleAttribute
 Attribute that holds a vector of long doubleegers of type long double. More...
 
class  VectorLongLongAttribute
 Attribute that holds a vector of long longegers of type long long. More...
 
class  VectorUIntAttribute
 Attribute that holds a vector of unsigned integers of type unsigned int. More...
 
class  VectorULongAttribute
 Attribute that holds a vector of unsigned longegers of type unsigned long. More...
 
class  VectorULongLongAttribute
 Attribute that holds a vector of unsigned long longegers of type unsigned long long. More...
 
class  VectorIntAttribute
 Attribute that holds a vector of integers of type int. More...
 
class  VectorLongIntAttribute
 
class  VectorDoubleAttribute
 
class  VectorStringAttribute
 
struct  GenEventData
 Stores serializable event information. More...
 
struct  GenParticleData
 Stores serializable particle information. More...
 
struct  GenRunInfoData
 Stores serializable run information. More...
 
struct  GenVertexData
 Stores serializable vertex information. More...
 
class  FourVector
 Generic 4-vector. More...
 
class  GenCrossSection
 Stores additional information about cross-section. More...
 
class  GenEvent
 Stores event-related information. More...
 
class  GenHeavyIon
 Stores additional information about Heavy Ion generator. More...
 
class  GenParticle
 Stores particle-related information. More...
 
class  GenPdfInfo
 Stores additional information about PDFs. More...
 
class  GenRunInfo
 Stores run-related information. More...
 
class  GenVertex
 Stores vertex-related information. More...
 
class  HEPEVT_Wrapper
 An interface to HEPEVT common block. More...
 
class  HEPRUPAttribute
 Class for storing data for LHEF run information. More...
 
class  HEPEUPAttribute
 Class for storing data for LHEF run information. More...
 
class  Print
 Provides different printing formats. More...
 
class  Reader
 Base class for all I/O readers. More...
 
class  ReaderAscii
 GenEvent I/O parsing for structured text files. More...
 
class  ReaderAsciiHepMC2
 Parser for HepMC2 I/O files. More...
 
class  ReaderHEPEVT
 GenEvent I/O parsing and serialization for HEPEVT files. More...
 
class  ReaderLHEF
 GenEvent I/O parsing and serialization for LHEF files. More...
 
class  ReaderPlugin
 GenEvent I/O parsing and serialization using external plugin. More...
 
class  Setup
 Configuration for HepMC. More...
 
class  Units
 Stores units-related enums and conversion functions. More...
 
class  Writer
 Base class for all I/O writers. More...
 
class  WriterAscii
 GenEvent I/O serialization for structured text files. More...
 
class  WriterAsciiHepMC2
 GenEvent I/O serialization for structured text files. More...
 
class  WriterHEPEVT
 GenEvent I/O serialization for HEPEVT files. More...
 
class  WriterPlugin
 GenEvent I/O parsing and serialization using external plugin. More...
 
class  Pythia8ToHepMC3
 
class  ReaderRoot
 GenEvent I/O parsing and serialization for root files. More...
 
class  ReaderRootTree
 GenEvent I/O parsing and serialization for root files based on root TTree. More...
 
class  WriterRoot
 GenEvent I/O serialization for root files. More...
 
class  WriterRootTree
 GenEvent I/O serialization for root files based on root TTree. More...
 
class  AttributeFeature
 AttributeFeature. More...
 
class  GenericFeature
 GenericFeature defines the Feature interface GenericFeature is not intended to be used directly. The derived Feature class and its specialisations should be used. More...
 
class  Feature
 Expose GenericFeature interface to derived Feature class. More...
 
class  Feature< Feature_type, typename std::enable_if< std::is_integral< Feature_type >::value, void >::type >
 Specialisation of Feature for integral types. More...
 
class  Feature< Feature_type, typename std::enable_if< std::is_floating_point< Feature_type >::value, void >::type >
 specialisation of Feature for floating point type More...
 
class  ATTRIBUTE
 Filter for the attributes. More...
 
class  RelativesInterface
 forward declare the Relatives interface in which _parents and _children are wrapped More...
 
class  Recursive
 forward declare the recursion wrapper More...
 
class  Relatives
 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. More...
 
class  _parents
 Provides operator to find the parent particles of a Vertex or Particle. More...
 
class  _children
 Provides operator to find the child particles of a Vertex or Particle. More...
 
class  SelectorWrapper
 Forward declaration of SelectorWrapper. More...
 
class  Selector
 Selector is an interface to "standard" Features that are valid for both integral and floating point comparisons. More...
 
class  StandardSelector
 StandardSelector. More...
 
struct  sort_by_id_asc
 Comparison of two particle by id. More...
 
struct  GenParticlePtr_greater_order
 comparison of two particles More...
 
struct  pair_GenVertexPtr_int_greater
 Order vertices with equal paths. More...
 

Typedefs

typedef GenHeavyIon HeavyIon
 Backward compatibility typedef. More...
 
using Filter = std::function< bool(ConstGenParticlePtr)>
 type of Filter More...
 
using Parents = RelativesInterface< _parents >
 alias of _parents wrapped in the Relatives interface More...
 
using Children = RelativesInterface< _children >
 alias of _children wrapped in the Relatives interface More...
 
using Ancestors = RelativesInterface< Recursive< _parents > >
 Ancestors is an alias to Recursion applied to the _parents and wrapped in the Relatives interface. More...
 
using Descendants = RelativesInterface< Recursive< _children > >
 Descendants is an alias to Recursion applied to the _children and wrapped in the Relatives interface. More...
 
using ConstSelectorPtr = std::shared_ptr< const Selector >
 Declaration of ConstSelectorPtr. More...
 

Functions

bool is_parton (const int &pd)
 Detects if particle is parton. Might be used to draw partons different from hadrons. More...
 
std::ostream & operator<< (std::ostream &os, const GenEvent &event)
 Print content of all GenEvent containers with idiomatic C++ printing. More...
 
std::ostream & operator<< (std::ostream &os, ConstGenVertexPtr v)
 Print one-line info with idiomatic C++ printing. More...
 
std::ostream & operator<< (std::ostream &os, ConstGenParticlePtr p)
 Print one-line info with idiomatic C++ printing. More...
 
std::ostream & operator<< (std::ostream &os, std::shared_ptr< GenCrossSection > &cs)
 Print one-line info with idiomatic C++ printing. More...
 
std::ostream & operator<< (std::ostream &os, std::shared_ptr< GenHeavyIon > &hi)
 Print one-line info with idiomatic C++ printing. More...
 
std::ostream & operator<< (std::ostream &os, std::shared_ptr< GenPdfInfo > &pi)
 Print one-line info with idiomatic C++ printing. More...
 
std::ostream & operator<< (std::ostream &os, const FourVector &p)
 Print one-line info with idiomatic C++ printing. More...
 
std::ostream & operator<< (std::ostream &os, const GenRunInfo::ToolInfo &t)
 Print one-line info with idiomatic C++ printing. More...
 
std::ostream & operator<< (std::ostream &os, const GenRunInfo &ri)
 Print one-line info with idiomatic C++ printing. More...
 
std::shared_ptr< Readerdeduce_reader (std::istream &stream)
 This function will deduce the type of input stream based on its content and will return appropriate Reader. More...
 
std::shared_ptr< Readerdeduce_reader (const std::string &filename)
 THis function will deduce the type of input file based on the name/URL and it's content and will return appropriate Reader. More...
 
std::string version ()
 Get the HepMC library version string. More...
 
template<typename Feature_type >
Feature< Feature_type > abs (const Feature< Feature_type > &input)
 Obtain the absolute value of a Feature. This works as you'd expect. If foo is a valid Feature, then abs(foo) returns a new Feature that corresponds to the absolute value of the foo feature. You can construct a Filter from that in the usual way with e.g. Filter f = abs(foo) > 10.;. More...
 
std::vector< GenParticlePtr > applyFilter (const Filter &filter, const std::vector< GenParticlePtr > &particles)
 Apply a Filter to a list of GenParticles Returns a vector of GenParticles that satisfy the Filter. More...
 
std::vector< ConstGenParticlePtr > applyFilter (const Filter &filter, const std::vector< ConstGenParticlePtr > &particles)
 Apply a Filter to a list of ConstGenParticles Returns a vector of ConstGenParticles that satisfy the Filter. More...
 
bool ACCEPT_ALL (ConstGenParticlePtr dummy)
 A Filter that will accept all particles This might be needed if a signature requires a default Filter. More...
 
Filter operator&& (const Filter &lhs, const Filter &rhs)
 The logical AND of two Filters is itself a Filter. More...
 
Filter operator|| (const Filter &lhs, const Filter &rhs)
 The logical OR of two Filters is itself a Filter. More...
 
Filter operator! (const Filter &rhs)
 The negation of a Filter is itself a Filter. More...
 
std::vector
< HepMC3::GenParticlePtr > 
children_particles (HepMC3::GenVertexPtr O)
 Return children particles. More...
 
std::vector
< HepMC3::ConstGenParticlePtr > 
children_particles (HepMC3::ConstGenVertexPtr O)
 Return children particles. More...
 
std::vector< HepMC3::GenVertexPtr > children_vertices (HepMC3::GenParticlePtr O)
 Return children vertices. More...
 
std::vector
< HepMC3::ConstGenVertexPtr > 
children_vertices (HepMC3::ConstGenParticlePtr O)
 Return children vertices. More...
 
std::vector
< HepMC3::GenParticlePtr > 
grandchildren_particles (HepMC3::GenParticlePtr O)
 Return grandchildren particles. More...
 
std::vector
< HepMC3::ConstGenParticlePtr > 
grandchildren_particles (HepMC3::ConstGenParticlePtr O)
 Return grandchildren particles. More...
 
std::vector< HepMC3::GenVertexPtr > grandchildren_vertices (HepMC3::GenVertexPtr O)
 Return grandchildren vertices. More...
 
std::vector
< HepMC3::ConstGenVertexPtr > 
grandchildren_vertices (HepMC3::ConstGenVertexPtr O)
 Return grandchildren vertices. More...
 
std::vector
< HepMC3::GenParticlePtr > 
parent_particles (HepMC3::GenVertexPtr O)
 Return parent particles. More...
 
std::vector
< HepMC3::ConstGenParticlePtr > 
parent_particles (HepMC3::ConstGenVertexPtr O)
 Return parent particles. More...
 
std::vector< HepMC3::GenVertexPtr > parent_vertices (HepMC3::GenParticlePtr O)
 Return parent vertices. More...
 
std::vector
< HepMC3::ConstGenVertexPtr > 
parent_vertices (HepMC3::ConstGenParticlePtr O)
 Return parent vertices. More...
 
std::vector
< HepMC3::GenParticlePtr > 
grandparent_particles (HepMC3::GenParticlePtr O)
 Return grandparent particles. More...
 
std::vector
< HepMC3::ConstGenParticlePtr > 
grandparent_particles (HepMC3::ConstGenParticlePtr O)
 Return grandparent particles. More...
 
std::vector< HepMC3::GenVertexPtr > grandparent_vertices (HepMC3::GenVertexPtr O)
 Return grandparent vertices. More...
 
std::vector
< HepMC3::ConstGenVertexPtr > 
grandparent_vertices (HepMC3::ConstGenVertexPtr O)
 Return grandparent vertices. More...
 
std::vector
< HepMC3::ConstGenParticlePtr > 
descendant_particles (HepMC3::ConstGenVertexPtr obj)
 Return descendant particles. More...
 
std::vector
< HepMC3::GenParticlePtr > 
descendant_particles (HepMC3::GenVertexPtr obj)
 Return descendant particles. More...
 
std::vector
< HepMC3::ConstGenParticlePtr > 
descendant_particles (HepMC3::ConstGenParticlePtr obj)
 Return descendant particles. More...
 
std::vector
< HepMC3::GenParticlePtr > 
descendant_particles (HepMC3::GenParticlePtr obj)
 Return descendant particles. More...
 
std::vector
< HepMC3::ConstGenVertexPtr > 
descendant_vertices (HepMC3::ConstGenParticlePtr obj)
 Return descendant vertices. More...
 
std::vector< HepMC3::GenVertexPtr > descendant_vertices (HepMC3::GenParticlePtr obj)
 Return descendant vertices. More...
 
std::vector
< HepMC3::ConstGenVertexPtr > 
descendant_vertices (HepMC3::ConstGenVertexPtr obj)
 Return descendant vertices. More...
 
std::vector< HepMC3::GenVertexPtr > descendant_vertices (HepMC3::GenVertexPtr obj)
 Return descendant vertices. More...
 
std::vector
< HepMC3::ConstGenParticlePtr > 
ancestor_particles (HepMC3::ConstGenVertexPtr obj)
 Return ancestor particles. More...
 
std::vector
< HepMC3::GenParticlePtr > 
ancestor_particles (HepMC3::GenVertexPtr obj)
 Return ancestor particles. More...
 
std::vector
< HepMC3::ConstGenParticlePtr > 
ancestor_particles (HepMC3::ConstGenParticlePtr obj)
 Return ancestor particles. More...
 
std::vector
< HepMC3::GenParticlePtr > 
ancestor_particles (HepMC3::GenParticlePtr obj)
 Return ancestor particles. More...
 
std::vector
< HepMC3::ConstGenVertexPtr > 
ancestor_vertices (HepMC3::ConstGenParticlePtr obj)
 Return ancestor vertices. More...
 
std::vector< HepMC3::GenVertexPtr > ancestor_vertices (HepMC3::GenParticlePtr obj)
 Return ancestor vertices. More...
 
std::vector
< HepMC3::ConstGenVertexPtr > 
ancestor_vertices (HepMC3::ConstGenVertexPtr obj)
 Return ancestor vertices. More...
 
std::vector< HepMC3::GenVertexPtr > ancestor_vertices (HepMC3::GenVertexPtr obj)
 Return ancestor vertices. More...
 
ConstSelectorPtr abs (const Selector &input)
 ConstSelectorPtr abs. More...
 
std::vector
< HepMC3::GenParticlePtr > 
children (HepMC3::GenVertexPtr O)
 
std::vector
< HepMC3::ConstGenParticlePtr > 
children (HepMC3::ConstGenVertexPtr O)
 
std::vector< HepMC3::GenVertexPtr > children (HepMC3::GenParticlePtr O)
 
std::vector
< HepMC3::ConstGenVertexPtr > 
children (HepMC3::ConstGenParticlePtr O)
 
std::vector
< HepMC3::GenParticlePtr > 
grandchildren (HepMC3::GenParticlePtr O)
 
std::vector
< HepMC3::ConstGenParticlePtr > 
grandchildren (HepMC3::ConstGenParticlePtr O)
 
std::vector< HepMC3::GenVertexPtr > grandchildren (HepMC3::GenVertexPtr O)
 
std::vector
< HepMC3::ConstGenVertexPtr > 
grandchildren (HepMC3::ConstGenVertexPtr O)
 
std::vector
< HepMC3::GenParticlePtr > 
parents (HepMC3::GenVertexPtr O)
 
std::vector
< HepMC3::ConstGenParticlePtr > 
parents (HepMC3::ConstGenVertexPtr O)
 
std::vector< HepMC3::GenVertexPtr > parents (HepMC3::GenParticlePtr O)
 
std::vector
< HepMC3::ConstGenVertexPtr > 
parents (HepMC3::ConstGenParticlePtr O)
 
std::vector
< HepMC3::GenParticlePtr > 
grandparents (HepMC3::GenParticlePtr O)
 
std::vector
< HepMC3::ConstGenParticlePtr > 
grandparents (HepMC3::ConstGenParticlePtr O)
 
std::vector< HepMC3::GenVertexPtr > grandparents (HepMC3::GenVertexPtr O)
 
std::vector
< HepMC3::ConstGenVertexPtr > 
grandparents (HepMC3::ConstGenVertexPtr O)
 
template<class O >
std::vector< O > descendants_of_same_type (O obj)
 
template<class O , class R >
std::vector< R > descendants_of_other_type (O obj)
 
template<class O >
std::vector< O > ancestors_of_same_type (O obj)
 
template<class O , class R >
std::vector< R > ancestors_of_other_type (O obj)
 
static bool visit_children (std::map< ConstGenVertexPtr, int > &a, ConstGenVertexPtr v)
 
void calculate_longest_path_to_top (ConstGenVertexPtr v, std::map< ConstGenVertexPtr, int > &pathl)
 Calculates the path to the top (beam) particles. More...
 
Unbound vector comparison functions
double delta_phi (const FourVector &a, const FourVector &b)
 Signed azimuthal angle separation in [-pi, pi] between vecs a and b. More...
 
double delta_eta (const FourVector &a, const FourVector &b)
 Pseudorapidity separation between vecs a and b. More...
 
double delta_rap (const FourVector &a, const FourVector &b)
 Rapidity separation between vecs a and b. More...
 
double delta_r2_eta (const FourVector &a, const FourVector &b)
 R_eta^2-distance separation dR^2 = dphi^2 + deta^2 between vecs a and b. More...
 
double delta_r_eta (const FourVector &a, const FourVector &b)
 R_eta-distance separation dR = sqrt(dphi^2 + deta^2) between vecs a and b. More...
 
double delta_r2_rap (const FourVector &a, const FourVector &b)
 R_rap^2-distance separation dR^2 = dphi^2 + drap^2 between vecs a and b. More...
 
double delta_r_rap (const FourVector &a, const FourVector &b)
 R_rap-distance separation dR = sqrt(dphi^2 + drap^2) between vecs a and b. More...
 

Variables

struct HEPEVThepevtptr
 

Detailed Description

HepMC3 main namespace.

HepMC3 main namespace

Typedef Documentation

Ancestors is an alias to Recursion applied to the _parents and wrapped in the Relatives interface.

Definition at line 36 of file Relatives.h.

alias of _children wrapped in the Relatives interface

Definition at line 34 of file Relatives.h.

using ConstSelectorPtr = std::shared_ptr<const Selector>

Declaration of ConstSelectorPtr.

Definition at line 24 of file Selector.h.

Descendants is an alias to Recursion applied to the _children and wrapped in the Relatives interface.

Definition at line 38 of file Relatives.h.

using Filter = std::function<bool(ConstGenParticlePtr)>

type of Filter

Definition at line 17 of file Filter.h.

Backward compatibility typedef.

Definition at line 248 of file GenHeavyIon.h.

alias of _parents wrapped in the Relatives interface

Definition at line 32 of file Relatives.h.

Function Documentation

ConstSelectorPtr abs ( const Selector &  input)

ConstSelectorPtr abs.

Definition at line 25 of file Selector.cc.

Feature<Feature_type> HepMC3::abs ( const Feature< Feature_type > &  input)

Obtain the absolute value of a Feature. This works as you'd expect. If foo is a valid Feature, then abs(foo) returns a new Feature that corresponds to the absolute value of the foo feature. You can construct a Filter from that in the usual way with e.g. Filter f = abs(foo) > 10.;.

Definition at line 316 of file Feature.h.

bool HepMC3::ACCEPT_ALL ( ConstGenParticlePtr  dummy)
inline

A Filter that will accept all particles This might be needed if a signature requires a default Filter.

Definition at line 41 of file Filter.h.

std::vector< HepMC3::ConstGenParticlePtr > ancestor_particles ( HepMC3::ConstGenVertexPtr  obj)

Return ancestor particles.

Definition at line 179 of file Relatives.cc.

std::vector< HepMC3::GenParticlePtr > ancestor_particles ( HepMC3::GenVertexPtr  obj)

Return ancestor particles.

Definition at line 182 of file Relatives.cc.

std::vector< HepMC3::ConstGenParticlePtr > ancestor_particles ( HepMC3::ConstGenParticlePtr  obj)

Return ancestor particles.

Definition at line 198 of file Relatives.cc.

std::vector< HepMC3::GenParticlePtr > ancestor_particles ( HepMC3::GenParticlePtr  obj)

Return ancestor particles.

Definition at line 199 of file Relatives.cc.

std::vector< HepMC3::ConstGenVertexPtr > ancestor_vertices ( HepMC3::ConstGenParticlePtr  obj)

Return ancestor vertices.

Definition at line 186 of file Relatives.cc.

std::vector< HepMC3::GenVertexPtr > ancestor_vertices ( HepMC3::GenParticlePtr  obj)

Return ancestor vertices.

Definition at line 189 of file Relatives.cc.

std::vector< HepMC3::ConstGenVertexPtr > ancestor_vertices ( HepMC3::ConstGenVertexPtr  obj)

Return ancestor vertices.

Definition at line 200 of file Relatives.cc.

std::vector< HepMC3::GenVertexPtr > ancestor_vertices ( HepMC3::GenVertexPtr  obj)

Return ancestor vertices.

Definition at line 201 of file Relatives.cc.

std::vector<GenParticlePtr> HepMC3::applyFilter ( const Filter &  filter,
const std::vector< GenParticlePtr > &  particles 
)
inline

Apply a Filter to a list of GenParticles Returns a vector of GenParticles that satisfy the Filter.

Definition at line 21 of file Filter.h.

std::vector<ConstGenParticlePtr> HepMC3::applyFilter ( const Filter &  filter,
const std::vector< ConstGenParticlePtr > &  particles 
)
inline

Apply a Filter to a list of ConstGenParticles Returns a vector of ConstGenParticles that satisfy the Filter.

Definition at line 31 of file Filter.h.

void HepMC3::calculate_longest_path_to_top ( ConstGenVertexPtr  v,
std::map< ConstGenVertexPtr, int > &  pathl 
)

Calculates the path to the top (beam) particles.

Definition at line 92 of file HEPEVT_Wrapper.cc.

std::vector< HepMC3::GenParticlePtr > children_particles ( HepMC3::GenVertexPtr  O)

Return children particles.

Definition at line 202 of file Relatives.cc.

std::vector< HepMC3::ConstGenParticlePtr > children_particles ( HepMC3::ConstGenVertexPtr  O)

Return children particles.

Definition at line 203 of file Relatives.cc.

std::vector< HepMC3::GenVertexPtr > children_vertices ( HepMC3::GenParticlePtr  O)

Return children vertices.

Definition at line 204 of file Relatives.cc.

std::vector< HepMC3::ConstGenVertexPtr > children_vertices ( HepMC3::ConstGenParticlePtr  O)

Return children vertices.

Definition at line 205 of file Relatives.cc.

std::shared_ptr< Reader > deduce_reader ( std::istream &  stream)

This function will deduce the type of input stream based on its content and will return appropriate Reader.

Examples:
convert_example.cc.

Definition at line 122 of file ReaderFactory.h.

std::shared_ptr<Reader> HepMC3::deduce_reader ( const std::string &  filename)

THis function will deduce the type of input file based on the name/URL and it's content and will return appropriate Reader.

Definition at line 23 of file ReaderFactory.h.

References deduce_reader().

double HepMC3::delta_eta ( const FourVector &  a,
const FourVector &  b 
)
inline

Pseudorapidity separation between vecs a and b.

Definition at line 315 of file FourVector.h.

References FourVector::delta_eta().

double HepMC3::delta_phi ( const FourVector &  a,
const FourVector &  b 
)
inline

Signed azimuthal angle separation in [-pi, pi] between vecs a and b.

Definition at line 312 of file FourVector.h.

References FourVector::delta_phi().

double HepMC3::delta_r2_eta ( const FourVector &  a,
const FourVector &  b 
)
inline

R_eta^2-distance separation dR^2 = dphi^2 + deta^2 between vecs a and b.

Definition at line 321 of file FourVector.h.

References FourVector::delta_r2_eta().

double HepMC3::delta_r2_rap ( const FourVector &  a,
const FourVector &  b 
)
inline

R_rap^2-distance separation dR^2 = dphi^2 + drap^2 between vecs a and b.

Definition at line 327 of file FourVector.h.

References FourVector::delta_r2_rap().

double HepMC3::delta_r_eta ( const FourVector &  a,
const FourVector &  b 
)
inline

R_eta-distance separation dR = sqrt(dphi^2 + deta^2) between vecs a and b.

Definition at line 324 of file FourVector.h.

References FourVector::delta_r_eta().

double HepMC3::delta_r_rap ( const FourVector &  a,
const FourVector &  b 
)
inline

R_rap-distance separation dR = sqrt(dphi^2 + drap^2) between vecs a and b.

Definition at line 330 of file FourVector.h.

References FourVector::delta_r_rap().

double HepMC3::delta_rap ( const FourVector &  a,
const FourVector &  b 
)
inline

Rapidity separation between vecs a and b.

Definition at line 318 of file FourVector.h.

References FourVector::delta_rap().

std::vector< HepMC3::ConstGenParticlePtr > descendant_particles ( HepMC3::ConstGenVertexPtr  obj)

Return descendant particles.

Definition at line 165 of file Relatives.cc.

std::vector< HepMC3::GenParticlePtr > descendant_particles ( HepMC3::GenVertexPtr  obj)

Return descendant particles.

Definition at line 168 of file Relatives.cc.

std::vector< HepMC3::ConstGenParticlePtr > descendant_particles ( HepMC3::ConstGenParticlePtr  obj)

Return descendant particles.

Definition at line 194 of file Relatives.cc.

std::vector< HepMC3::GenParticlePtr > descendant_particles ( HepMC3::GenParticlePtr  obj)

Return descendant particles.

Definition at line 195 of file Relatives.cc.

std::vector< ConstGenVertexPtr > descendant_vertices ( HepMC3::ConstGenParticlePtr  obj)

Return descendant vertices.

Definition at line 172 of file Relatives.cc.

std::vector< HepMC3::GenVertexPtr > descendant_vertices ( HepMC3::GenParticlePtr  obj)

Return descendant vertices.

Definition at line 175 of file Relatives.cc.

std::vector< HepMC3::ConstGenVertexPtr > descendant_vertices ( HepMC3::ConstGenVertexPtr  obj)

Return descendant vertices.

Definition at line 196 of file Relatives.cc.

std::vector< HepMC3::GenVertexPtr > descendant_vertices ( HepMC3::GenVertexPtr  obj)

Return descendant vertices.

Definition at line 197 of file Relatives.cc.

std::vector< HepMC3::GenParticlePtr > grandchildren_particles ( HepMC3::GenParticlePtr  O)

Return grandchildren particles.

Definition at line 206 of file Relatives.cc.

std::vector< HepMC3::ConstGenParticlePtr > grandchildren_particles ( HepMC3::ConstGenParticlePtr  O)

Return grandchildren particles.

Definition at line 207 of file Relatives.cc.

std::vector< HepMC3::GenVertexPtr > grandchildren_vertices ( HepMC3::GenVertexPtr  O)

Return grandchildren vertices.

Definition at line 208 of file Relatives.cc.

std::vector< HepMC3::ConstGenVertexPtr > grandchildren_vertices ( HepMC3::ConstGenVertexPtr  O)

Return grandchildren vertices.

Definition at line 209 of file Relatives.cc.

std::vector< HepMC3::GenParticlePtr > grandparent_particles ( HepMC3::GenParticlePtr  O)

Return grandparent particles.

Definition at line 214 of file Relatives.cc.

std::vector< HepMC3::ConstGenParticlePtr > grandparent_particles ( HepMC3::ConstGenParticlePtr  O)

Return grandparent particles.

Definition at line 215 of file Relatives.cc.

std::vector< HepMC3::GenVertexPtr > grandparent_vertices ( HepMC3::GenVertexPtr  O)

Return grandparent vertices.

Definition at line 216 of file Relatives.cc.

std::vector< HepMC3::ConstGenVertexPtr > grandparent_vertices ( HepMC3::ConstGenVertexPtr  O)

Return grandparent vertices.

Definition at line 217 of file Relatives.cc.

bool HepMC3::is_parton ( const int &  pd)

Detects if particle is parton. Might be used to draw partons different from hadrons.

Definition at line 33 of file WriterDOT.cc.

Filter HepMC3::operator! ( const Filter &  rhs)
inline

The negation of a Filter is itself a Filter.

Definition at line 56 of file Filter.h.

Filter HepMC3::operator&& ( const Filter &  lhs,
const Filter &  rhs 
)
inline

The logical AND of two Filters is itself a Filter.

Definition at line 46 of file Filter.h.

std::ostream& HepMC3::operator<< ( std::ostream &  os,
const GenEvent &  event 
)
inline

Print content of all GenEvent containers with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 21 of file PrintStreams.h.

References Print::content().

std::ostream& HepMC3::operator<< ( std::ostream &  os,
ConstGenVertexPtr  v 
)
inline

Print one-line info with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 25 of file PrintStreams.h.

References Print::line().

std::ostream& HepMC3::operator<< ( std::ostream &  os,
ConstGenParticlePtr  p 
)
inline

Print one-line info with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 29 of file PrintStreams.h.

References Print::line().

std::ostream& HepMC3::operator<< ( std::ostream &  os,
std::shared_ptr< GenCrossSection > &  cs 
)
inline

Print one-line info with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 33 of file PrintStreams.h.

References Print::line().

std::ostream& HepMC3::operator<< ( std::ostream &  os,
std::shared_ptr< GenHeavyIon > &  hi 
)
inline

Print one-line info with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 37 of file PrintStreams.h.

References Print::line().

std::ostream& HepMC3::operator<< ( std::ostream &  os,
std::shared_ptr< GenPdfInfo > &  pi 
)
inline

Print one-line info with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 41 of file PrintStreams.h.

References Print::line().

std::ostream& HepMC3::operator<< ( std::ostream &  os,
const FourVector &  p 
)
inline

Print one-line info with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 45 of file PrintStreams.h.

References Print::line().

std::ostream& HepMC3::operator<< ( std::ostream &  os,
const GenRunInfo::ToolInfo &  t 
)
inline

Print one-line info with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 49 of file PrintStreams.h.

References Print::line().

std::ostream& HepMC3::operator<< ( std::ostream &  os,
const GenRunInfo &  ri 
)
inline

Print one-line info with idiomatic C++ printing.

Note
More generic printing methods from HepMC3::Print should be preffered

Definition at line 53 of file PrintStreams.h.

References Print::line().

Filter HepMC3::operator|| ( const Filter &  lhs,
const Filter &  rhs 
)
inline

The logical OR of two Filters is itself a Filter.

Definition at line 51 of file Filter.h.

std::vector< HepMC3::GenParticlePtr > parent_particles ( HepMC3::GenVertexPtr  O)

Return parent particles.

Definition at line 210 of file Relatives.cc.

std::vector< HepMC3::ConstGenParticlePtr > parent_particles ( HepMC3::ConstGenVertexPtr  O)

Return parent particles.

Definition at line 211 of file Relatives.cc.

std::vector< HepMC3::GenVertexPtr > parent_vertices ( HepMC3::GenParticlePtr  O)

Return parent vertices.

Definition at line 212 of file Relatives.cc.

std::vector< HepMC3::ConstGenVertexPtr > parent_vertices ( HepMC3::ConstGenParticlePtr  O)

Return parent vertices.

Definition at line 213 of file Relatives.cc.

std::string HepMC3::version ( )
inline

Get the HepMC library version string.

Definition at line 20 of file Version.h.

static bool HepMC3::visit_children ( std::map< ConstGenVertexPtr, int > &  a,
ConstGenVertexPtr  v 
)
static
Todo:
This looks dangerously similar to the recusive event traversel that we forbade in the Core library due to wories about generator dependence

Definition at line 255 of file GenEvent.cc.