FairRoot/PandaRoot
Classes | Namespaces | Macros | Typedefs | Functions
PndFTSCATrackParamVector.h File Reference
#include "PndFTSCADef.h"
#include "PndFTSVector.h"
#include "PndFTSCAMath.h"
#include "CAX1X2MeasurementInfo.h"
#include "FTSCAStation.h"
#include "debug.h"
#include <assert.h>
#include <valgrind/memcheck.h>

Go to the source code of this file.

Classes

struct  std::char_traits< T >
 
class  std::basic_istream< _CharT, _Traits >
 
class  std::basic_ostream< _CharT, _Traits >
 
class  PndFTSCATrackParamVector
 
struct  PndFTSCATrackParamVector::PndFTSCATrackFitParam
 

Namespaces

 std
 

Macros

#define VALGRIND_CHECK_MASKED_VECTOR_IS_DEFINED(v, k)
 

Typedefs

typedef basic_istream< char,
char_traits< char > > 
std::istream
 
typedef basic_ostream< char,
char_traits< char > > 
std::ostream
 
typedef PndFTSCATrackParamVector TrackParamVector
 

Functions

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

Macro Definition Documentation

#define VALGRIND_CHECK_MASKED_VECTOR_IS_DEFINED (   v,
 
)
Value:
{ \
__typeof__( v + v ) tmp( v ); \
tmp.setZero( !k ); \
VALGRIND_CHECK_VALUE_IS_DEFINED( tmp ); \
}
__m128 v
Definition: P4_F32vec4.h:4

Definition at line 1611 of file PndFTSCATrackParamVector.h.

Typedef Documentation

Definition at line 2023 of file PndFTSCATrackParamVector.h.

Function Documentation

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

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
TTree * t
Definition: bump_analys.C:13
std::istream& operator>> ( std::istream in,
PndFTSCATrackParamVector ot 
)

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 }
Double_t p
Definition: anasim.C:58
Int_t i
Definition: run_full.C:25
TLorentzVector s
Definition: Pnd2DStar.C:50
Double_t x
TTree * t
Definition: bump_analys.C:13