HackAnalysis  2
List of all members
HEP::Particle Class Reference

#include <Particle.h>

Public Member Functions

Constructors
 Particle ()
 Default constructor.
 
 Particle (double px, double py, double pz, double E, int pdgid)
 "Cartesian" constructor
 
 Particle (const P4 &mom, int pdgid)
 4-mom + PDG ID constructor More...
 
 Particle (const Particle &p)
 Copy constructor.
 
 Particle (const Particle *p)
 Copy constructor from a pointer.
 
Particleoperator= (const Particle &p)
 Copy assignment operator.
 
Implicit casts
 operator const P4 & () const
 
 operator const P4 * () const
 
Momentum

Access to the P4 object, plus convenience mapping of a few popular properties

const P4mom () const
 Get the 4 vector.
 
void set_mom (const P4 &p4)
 Set the 4 vector.
 
void translate_zt (double dz, double dt)
 
const P4prod_vertex () const
 
const P4decay_vertex () const
 
void set_prod (const P4 &p4)
 
void set_decay (const P4 &p4)
 
bool does_decay () const
 
void set_3Q (int qqq)
 
int get_3Q () const
 
double mass ()
 Get the mass (of the 4 vector)
 
void set_mass (double mass)
 Set the mass (of the 4 vector)
 
double eta () const
 Get the pseudorapidity.
 
double abseta () const
 Get the abs pseudorapidity.
 
double rap () const
 Get the rapidity.
 
double absrap () const
 Get the abs rapidity.
 
double phi () const
 Get the azimuthal angle.
 
double E () const
 Get the energy.
 
double pT2 () const
 Get the squared transverse momentum.
 
double pT () const
 Get the squared transverse momentum.
 
double p () const
 
Promptness
bool is_prompt () const
 Is this particle connected to the hard process or from a hadron/tau decay?
 
void set_prompt (bool isprompt=true)
 Set promptness.
 
Particle ID
int pid () const
 Get PDG ID code.
 
int abspid () const
 Get abs PDG ID code.
 
void set_pid (int pid)
 Set PDG ID code.
 

Detailed Description

Simple particle class, encapsulating a momentum 4-vector and adding some extra ID info

Constructor & Destructor Documentation

◆ Particle()

HEP::Particle::Particle ( const P4 mom,
int  pdgid 
)
inline

4-mom + PDG ID constructor

"Cartesian" constructor for massless particles - or close enough


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