HepMC3 event record library
Data Structures | Namespaces | Macros
FourVector.h File Reference

Detailed Description

Definition of class FourVector.

Definition in file FourVector.h.

#include <cmath>
#include <limits>
+ Include dependency graph for FourVector.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  FourVector
 Generic 4-vector. More...
 

Namespaces

namespace  HepMC3
 HepMC3 main namespace.
 

Macros

#define M_PI   3.14159265358979323846264338327950288
 Definition of PI. Needed on some platforms.
 

Functions

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.
 
double delta_eta (const FourVector &a, const FourVector &b)
 Pseudorapidity separation between vecs a and b.
 
double delta_rap (const FourVector &a, const FourVector &b)
 Rapidity separation between vecs a and b.
 
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.
 
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.
 
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.
 
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.
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846264338327950288

Definition of PI. Needed on some platforms.

Definition at line 16 of file FourVector.h.