5#ifndef FOURMOM_P4PXPYPZE_H
6#define FOURMOM_P4PXPYPZE_H
11#include "CLHEP/Units/SystemOfUnits.h"
12#include "CLHEP/Vector/LorentzVector.h"
36 P4PxPyPzE(
const CLHEP::HepLorentzVector & theHlv);
46 virtual double px()
const;
48 virtual double py()
const;
50 virtual double pz()
const;
52 virtual double e()
const;
55 virtual void setPx(
double thePx) ;
57 virtual void setPy(
double thePy) ;
59 virtual void setPz(
double thePz) ;
61 virtual void setE(
double theE) ;
68 virtual void set4Mom (
const CLHEP::HepLorentzVector & theHlv );
183{
const double thePx=
pxi();
184 const double thePy=
pyi();
185 return sqrt(thePx*thePx+thePy*thePy);}
I4Momentum is an abstract base class providing 4-momentum behavior.
virtual double pz() const =0
z component of momentum
virtual double px() const =0
x component of momentum
virtual double e() const =0
energy
virtual double py() const =0
y component of momentum
P4PxPyPzEBase is a base class for classes with 4-momentum behavior, for which Px, Py,...
virtual double e() const
get energy data member
virtual void setE(double theE)
set energy data member
virtual void setPz(double thePz)
set Pz data member
virtual void setPx(double thePx)
set Px data member
double pzi() const
Experimental : inlined function to get pz without going through virtual inheritance.
double pyi() const
Experimental : inlined function to get py without going through virtual inheritance.
virtual void set4Mom(const I4Momentum &theI4Mom)
set all 4-mom from another I4Momentum reference
virtual void setPy(double thePy)
set Py data member
double pti() const
Experimental : inlined function to get pt without going through virtual inheritance.
virtual double px() const
get px data member
P4PxPyPzE(const double px, const double py, const double pz, const double e)
constructor with all data members
double pxi() const
Experimental : inlined function to get px without going through virtual inheritance.
virtual double py() const
get py data member
virtual double pz() const
get pz data member
double ei() const
Experimental : inlined function to get e without going through virtual inheritance.
virtual const I4MomentumError * errors() const
Access to errors, if available; returns 0 if no errors.
P4PxPyPzE()
default constructor