Darwin  1.0
Event loop based prototype framework
FourVector

Description

An extended version of ROOT 4-vectors.

#include <Objects.h>

+ Inheritance diagram for FourVector:
+ Collaboration diagram for FourVector:

Public Member Functions

virtual float Rapidity () const
 
virtual float AbsRap () const
 
virtual void clear ()
 
virtual FourVectoroperator+= (const ROOT::Math::PtEtaPhiM4D< float > &)
 
virtual FourVector operator+ (const ROOT::Math::PtEtaPhiM4D< float > &) const
 
 FourVector ()=default
 
 FourVector (const ROOT::Math::PtEtaPhiM4D< float > &)
 
virtual ~FourVector ()=default
 

Constructor & Destructor Documentation

◆ FourVector() [1/2]

FourVector ( )
default

◆ FourVector() [2/2]

FourVector ( const ROOT::Math::PtEtaPhiM4D< float > &  p4)
139 {
140  SetPxPyPzE( p4.Px(),
141  p4.Py(),
142  p4.Pz(),
143  p4.E () );
144 }

◆ ~FourVector()

virtual ~FourVector ( )
virtualdefault

Member Function Documentation

◆ AbsRap()

float AbsRap ( ) const
virtual

return absolute rapidity

147 { return std::abs(Rapidity()); }

◆ clear()

void clear ( )
virtual

resets all members to the same values as in the constructor

Reimplemented in RecJet, GenJet, and Jet.

150 {
151  SetCoordinates(0.,0.,0.,0.);
152 }

◆ operator+()

FourVector operator+ ( const ROOT::Math::PtEtaPhiM4D< float > &  other) const
virtual
164 {
165  FourVector v(*this);
166  v += other;
167  return v;
168 }

◆ operator+=()

FourVector & operator+= ( const ROOT::Math::PtEtaPhiM4D< float > &  other)
virtual
155 {
156  SetPxPyPzE( Px() + other.Px(),
157  Py() + other.Py(),
158  Pz() + other.Pz(),
159  E () + other.E () );
160  return *this;
161 }

◆ Rapidity()

float Rapidity ( ) const
virtual

return rapidity

146 { return 0.5*log((E()+Pz())/(E()-Pz())); }

The documentation for this struct was generated from the following files:
Darwin::Physics::FourVector
An extended version of ROOT 4-vectors.
Definition: Objects.h:128
Darwin::Physics::FourVector::Rapidity
virtual float Rapidity() const
return rapidity
Definition: Objects.cc:146