7#ifndef FOURMOM_P4IMPLEETAPHIM_H
8#define FOURMOM_P4IMPLEETAPHIM_H
14#include "CLHEP/Vector/LorentzVector.h"
15#include "CLHEP/Units/SystemOfUnits.h"
61 const double phi,
const double m );
98 void setE(
const double theE );
100 void setEta(
const double theEta );
102 void setPhi(
const double thePhi );
104 void setM(
const double theM );
111 void set4Mom(
const CLHEP::HepLorentzVector & theHlv );
151 const double phi,
const double m ) :
275 m_error = std::make_unique< ErrorType>(err, *
this);
I4Momentum is an abstract base class providing 4-momentum behavior.
virtual double m() const =0
mass
virtual double phi() const =0
phi in [-pi,pi[
virtual double eta() const =0
pseudo rapidity
virtual double e() const =0
energy
P4BaseEEtaPhiM is a base class for classes with 4-momentum behavior, for which E, eta,...
CLHEP::HepLorentzVector hlv() const
I4Momentum::Kind kind() const
P4ImplEEtaPhiM & operator=(const P4ImplEEtaPhiM &rhs)
Assignment operator.
double m() const
{@ a la I4Momentum -like interface
FourMomentumError< P4ImplEEtaPhiM > ErrorType
std::unique_ptr< ErrorType > m_error
virtual const I4MomentumError * errors() const
void set4Mom(const I4Momentum &theI4Mom)
set all 4-mom from another I4Momentum reference
friend class P4ImplEEtaPhiMCnv_p1
void setEta(const double theEta)
set eta data member
void setE(const double theE)
set energy data member
void setM(const double theM)
set mass data member
P4ImplEEtaPhiM()
Default constructor:
void setErrors(const ErrorMatrixEEtaPhiM &err)
set the errors
void setPhi(const double thePhi)
set phi data member
virtual ~P4ImplEEtaPhiM()
virtual destructor needed by pool