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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 126 of file RhoVector3Err.cxx.

References RhoVector3Err::CovMatrix().

127 {
128  RhoVector3Err ve ( TVector3 ( v.X() +w.X(),v.Y() +w.Y(),v.Z() +w.Z() ),
129  ( v.CovMatrix() +w.CovMatrix() ) );
130  return ve;
131 }
const RhoError & CovMatrix() const
Definition: RhoVector3Err.h:68
RhoVector3Err operator- ( const RhoVector3Err v,
const RhoVector3Err w 
)

Definition at line 133 of file RhoVector3Err.cxx.

References RhoVector3Err::CovMatrix().

134 {
135  RhoVector3Err ve ( TVector3 ( v.X()-w.X(),v.Y()-w.Y(),v.Z()-w.Z() ),
136  ( v.CovMatrix() +w.CovMatrix() ) );
137  return ve;
138 }
const RhoError & CovMatrix() const
Definition: RhoVector3Err.h:68
std::ostream& operator<< ( std::ostream stream,
const RhoVector3Err verr 
)

Definition at line 144 of file RhoVector3Err.cxx.

References RhoVector3Err::CovMatrix().

145 {
146  stream << ( const TVector3& ) verr
147  << ", " << verr.CovMatrix();
148 
149  return stream;
150 }
const RhoError & CovMatrix() const
Definition: RhoVector3Err.h:68
TBuffer& operator>> ( TBuffer &  buf,
RhoVector3Err *&  obj 
)

Definition at line 19 of file RhoVector3Err.cxx.

20 {
21  obj = ( RhoVector3Err* ) buf.ReadObject ( RhoVector3Err::Class() );
22  return buf;
23 }
std::istream& operator>> ( std::istream stream,
RhoVector3Err verr 
)

Definition at line 152 of file RhoVector3Err.cxx.

References RhoVector3Err::SetCovMatrix().

153 {
154  RhoError mat ( 3 );
155  stream >> verr >> mat;
156  verr.SetCovMatrix ( mat );
157 
158  return stream;
159 }
void SetCovMatrix(const RhoError &v)
Definition: RhoVector3Err.h:80