FairRoot/PandaRoot
Functions
RhoLorentzVectorErr.cxx File Reference
#include "RhoLorentzVectorErr.h"
#include "RhoVector3Err.h"
#include "TBuffer.h"
#include <iostream>

Go to the source code of this file.

Functions

TBuffer & operator>> (TBuffer &buf, RhoLorentzVectorErr *&obj)
 
RhoLorentzVectorErr operator+ (const RhoLorentzVectorErr &v, const RhoLorentzVectorErr &w)
 
RhoLorentzVectorErr operator- (const RhoLorentzVectorErr &v, const RhoLorentzVectorErr &w)
 
std::ostreamoperator<< (std::ostream &stream, const RhoLorentzVectorErr &verr)
 

Function Documentation

RhoLorentzVectorErr operator+ ( const RhoLorentzVectorErr v,
const RhoLorentzVectorErr w 
)

Definition at line 187 of file RhoLorentzVectorErr.cxx.

References RhoLorentzVectorErr::CovMatrix().

188 {
189  RhoLorentzVectorErr ve ( TLorentzVector ( v.X() +w.X(),v.Y() +w.Y(),v.Z() +w.Z(),
190  v.T() +w.T() ),
191  ( v.CovMatrix() +w.CovMatrix() ) );
192  return ve;
193 }
const RhoError & CovMatrix() const
RhoLorentzVectorErr operator- ( const RhoLorentzVectorErr v,
const RhoLorentzVectorErr w 
)

Definition at line 198 of file RhoLorentzVectorErr.cxx.

References RhoLorentzVectorErr::CovMatrix().

199 {
200  RhoLorentzVectorErr ve ( TLorentzVector ( v.X()-w.X(),v.Y()-w.Y(),v.Z()-w.Z(),
201  v.T()-w.T() ),
202  ( v.CovMatrix() +w.CovMatrix() ) );
203  return ve;
204 }
const RhoError & CovMatrix() const
std::ostream& operator<< ( std::ostream stream,
const RhoLorentzVectorErr verr 
)

Definition at line 211 of file RhoLorentzVectorErr.cxx.

References RhoLorentzVectorErr::PrintOn().

212 {
213  verr.PrintOn ( stream );
214  return stream;
215 }
void PrintOn(std::ostream &o=std::cout) const
TBuffer& operator>> ( TBuffer &  buf,
RhoLorentzVectorErr *&  obj 
)

Definition at line 19 of file RhoLorentzVectorErr.cxx.

20 {
21  obj = ( RhoLorentzVectorErr* ) buf.ReadObject ( RhoLorentzVectorErr::Class() );
22  return buf;
23 }