HackAnalysis
2
|
#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. | |
Particle & | operator= (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 P4 & | mom () const |
Get the 4 vector. | |
void | set_mom (const P4 &p4) |
Set the 4 vector. | |
void | translate_zt (double dz, double dt) |
const P4 & | prod_vertex () const |
const P4 & | decay_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. | |
Simple particle class, encapsulating a momentum 4-vector and adding some extra ID info
|
inline |
4-mom + PDG ID constructor
"Cartesian" constructor for massless particles - or close enough