30 TLorentzVector ( ( const TVector3& ) p3,
sqrt ( p3.Mag2() + mass* mass ) )
37 for ( i = 0; i < 3; ++
i ) {
38 for ( j = i; j < 3; ++j ) {
48 for ( i = 0; i < 3; ++
i ) {
49 for ( j = 0; j < 3; ++j ) {
50 p4Err ( 4,4 ) += p3[
i] * p3[j] *
54 p4Err ( 4,4 ) /= ( energy *
energy );
60 for ( i = 0; i < 3; ++
i ) {
61 for ( j = 0; j < 3; ++j ) {
62 p4Err ( i,3 ) += p3 ( j ) / energy * p3.
CovMatrix() ( j,
i );
99 TLorentzVector::operator= ( v );
109 ( ( TLorentzVector ) *
this ) *= -1.;
132 temp ( 0 ) = refVector.X()-this->
X();
133 temp ( 1 ) = refVector.Y()-this->
Y();
134 temp ( 2 ) = refVector.Z()-this->
Z();
135 temp ( 3 ) = refVector.T()-this->
T();
145 TLorentzVector::Transform ( rot );
154 TLorentzVector::Transform ( rot );
162 for ( row = 0; row < 3; ++
row ) {
163 for ( col = 0; col < 3; ++
col ) {
164 tempRot ( row, col ) =
rot ( row, col );
169 tempRot ( 3,3 ) = 1.0;
170 for ( col = 0; col < 3; ++
col ) {
171 tempRot ( 3, col ) = 0.0;
175 for ( row = 0; row < 3; ++
row ) {
176 tempRot ( row, 3 ) = 0.0;
208 out <<
X() <<
"\t" <<
Y() <<
"\t" <<
Z() <<
"\t" <<
T();
RhoError operator-(const RhoError &m1, const RhoError &m2)
Double_t DetermineChisq(TVectorD &diff)
const RhoError & CovMatrix() const
friend F32vec4 sqrt(const F32vec4 &a)
RhoLorentzVectorErr & operator-()
std::ostream & operator<<(std::ostream &o, const PndEventInfo &a)
friend void operator+=(F32vec1 &a, const F32vec1 &b)
RhoError operator+(const RhoError &m1, const RhoError &m2)
friend void operator-=(F32vec1 &a, const F32vec1 &b)
void PrintOn(std::ostream &o=std::cout) const
RhoLorentzVectorErr & operator-=(const RhoLorentzVectorErr &v)
RhoLorentzVectorErr & Transform(const TRotation &rot)
RhoLorentzVectorErr & operator=(const RhoLorentzVectorErr &v)
RhoError Similarity(const TMatrixD &m1) const
void SetCovMatrix(const RhoError &v)
Double_t DetermineChisq(const TLorentzVector &refVector)
const RhoError & CovMatrix() const
TMatrixT< double > TMatrixD
RhoLorentzVectorErr & operator+=(const RhoLorentzVectorErr &v)