FairRoot/PandaRoot
Functions
PndFTSCATrackParamVector.cxx File Reference
#include "PndFTSCATrackParamVector.h"
#include "PndFTSCAMath.h"
#include "PndFTSCATrackLinearisationVector.h"
#include "PndFTSCAParam.h"
#include "FTSCAHitsV.h"
#include "FTSCATarget.h"
#include <iostream>
#include <iomanip>
#include <valgrind/memcheck.h>
#include <assert.h>
#include "debug.h"

Go to the source code of this file.

Functions

std::istreamoperator>> (std::istream &in, PndFTSCATrackParamVector &t)
 
std::ostreamoperator<< (std::ostream &out, const PndFTSCATrackParamVector &t)
 

Function Documentation

std::ostream& operator<< ( std::ostream out,
const PndFTSCATrackParamVector t 
)

Definition at line 1543 of file PndFTSCATrackParamVector.cxx.

References PndFTSCATrackParamVector::Chi2(), PndFTSCATrackParamVector::Cov(), i, PndFTSCATrackParamVector::NDF(), out, PndFTSCATrackParamVector::Par(), PndFTSCATrackParamVector::SignCosPhi(), and PndFTSCATrackParamVector::X().

1544 {
1545  if ( out == std::cerr ) {
1546  out << "------------------------------ Track Param ------------------------------"
1547  << "\n X: " << t.X()
1548  << "\n SignCosPhi: " << t.SignCosPhi()
1549  << "\n Chi2: " << t.Chi2()
1550  << "\n NDF: " << t.NDF()
1551  << "\n Y: " << t.Par()[0]
1552  << "\n Z: " << t.Par()[1]
1553  << "\n SinPhi: " << t.Par()[2]
1554  << "\n DzDs: " << t.Par()[3]
1555  << "\n q/Pt: " << t.Par()[4]
1556  << "\nCovariance Matrix\n";
1557  int i = 0;
1558  out << std::setprecision( 2 );
1559  for ( int step = 1; step <= 5; ++step ) {
1560  int end = i + step;
1561  for ( ; i < end; ++i ) {
1562  out << t.Cov()[i] << '\t';
1563  }
1564  out << "\n";
1565  }
1566  out << std::setprecision( 6 );
1567  return out << std::endl;
1568  }
1569  for ( int j = 0; j < uint_v::Size; ++j ) {
1570  out << t.X()[j] << " "
1571  << t.SignCosPhi()[j] << " "
1572  << t.Chi2()[j] << " "
1573  << t.NDF()[j]
1574  << std::endl;
1575  for ( int i = 0; i < 5; i++ ) out << t.Par()[i][j] << " ";
1576  out << std::endl;
1577  for ( int i = 0; i < 15; i++ ) out << t.Cov()[i][j] << " ";
1578  out << std::endl;
1579  }
1580  return out;
1581 }
Int_t i
Definition: run_full.C:25
TFile * out
Definition: reco_muo.C:20
const float_v & Cov(int i) const
const float_v & Par(int i) const
std::istream& operator>> ( std::istream in,
PndFTSCATrackParamVector t 
)

Definition at line 1522 of file PndFTSCATrackParamVector.cxx.

References c, PndFTSCATrackParamVector::fC, PndFTSCATrackParamVector::fChi2, PndFTSCATrackParamVector::fNDF, PndFTSCATrackParamVector::fP, PndFTSCATrackParamVector::fSignCosPhi, PndFTSCATrackParamVector::fX, i, p, s, and x.

1523 {
1524  float_v::Memory x, s, p[5], c[15], chi2;
1525  int_v::Memory ndf;
1526  for ( int j = 0; j < uint_v::Size; ++j ) {
1527  in >> x[j];
1528  in >> s[j];
1529  for ( int i = 0; i < 5; i++ ) in >> p[i][j];
1530  for ( int i = 0; i < 15; i++ ) in >> c[i][j];
1531  in >> chi2[j];
1532  in >> ndf[j];
1533  }
1534  t.fX.load( x );
1535  t.fSignCosPhi.load( s );
1536  for ( int i = 0; i < 5; i++ ) t.fP[i].load( p[i] );
1537  for ( int i = 0; i < 5; i++ ) t.fC[i].load( c[i] );
1538  t.fChi2.load( chi2 );
1539  t.fNDF.load( ndf );
1540  return in;
1541 }
Int_t i
Definition: run_full.C:25
TLorentzVector s
Definition: Pnd2DStar.C:50
Double_t p
Definition: anasim.C:58
Double_t x