FairRoot/PandaRoot
Functions
PndCAMCTrack.cxx File Reference
#include "PndCAMCTrack.h"
#include "PndCAMath.h"
#include "TParticle.h"
#include "TDatabasePDG.h"

Go to the source code of this file.

Functions

ostream & operator<< (ostream &out, const PndCAMCTrack &a)
 
istream & operator>> (istream &in, PndCAMCTrack &a)
 

Function Documentation

ostream& operator<< ( ostream &  out,
const PndCAMCTrack a 
)

Definition at line 90 of file PndCAMCTrack.cxx.

References PndCAMCTrack::fFirstMCPointID, PndCAMCTrack::fMotherId, PndCAMCTrack::fNHits, PndCAMCTrack::fNMCPoints, PndCAMCTrack::fNReconstructed, PndCAMCTrack::fNTurns, for(), PndCAMCTrack::fP, PndCAMCTrack::fPar, PndCAMCTrack::fPDG, PndCAMCTrack::fPt, PndCAMCTrack::fSet, PndCAMCTrack::fTPCPar, and i.

91 {
92  out << a.fMotherId << " " << a.fPDG << std::endl;
93  for (int i = 0; i < 7; i++) out << a.fPar[i] << " ";
94  out << std::endl;
95  for (int i = 0; i < 7; i++) out << a.fTPCPar[i] << " ";
96  out << std::endl;
97  out << a.fP << " " << a.fPt << std::endl;
98  out << a.fNHits << " " << a.fNMCPoints << " " << a.fFirstMCPointID << std::endl;
99  return out << a.fNReconstructed << " " << a.fSet << " " << a.fNTurns << std::endl;
100 }
int fFirstMCPointID
Definition: PndCAMCTrack.h:95
Int_t i
Definition: run_full.C:25
int fNReconstructed
Definition: PndCAMCTrack.h:96
for(int j=0;j< ncounts;j++)
TFile * out
Definition: reco_muo.C:20
float fTPCPar[7]
Definition: PndCAMCTrack.h:91
float fPar[7]
Definition: PndCAMCTrack.h:90
istream& operator>> ( istream &  in,
PndCAMCTrack a 
)

Definition at line 103 of file PndCAMCTrack.cxx.

References PndCAMCTrack::fFirstMCPointID, PndCAMCTrack::fMotherId, PndCAMCTrack::fNHits, PndCAMCTrack::fNMCPoints, PndCAMCTrack::fNReconstructed, PndCAMCTrack::fNTurns, PndCAMCTrack::fP, PndCAMCTrack::fPar, PndCAMCTrack::fPDG, PndCAMCTrack::fPt, PndCAMCTrack::fSet, PndCAMCTrack::fTPCPar, and i.

104 {
105  in >> a.fMotherId;
106  in >> a.fPDG;
107  for (int i = 0; i < 7; i++) in >> a.fPar[i];
108  for (int i = 0; i < 7; i++) in >> a.fTPCPar[i];
109  in >> a.fP >> a.fPt;
110  in >> a.fNHits >> a.fNMCPoints >> a.fFirstMCPointID;
111  return in >> a.fNReconstructed >> a.fSet >> a.fNTurns;
112 }
int fFirstMCPointID
Definition: PndCAMCTrack.h:95
Int_t i
Definition: run_full.C:25
int fNReconstructed
Definition: PndCAMCTrack.h:96
float fTPCPar[7]
Definition: PndCAMCTrack.h:91
float fPar[7]
Definition: PndCAMCTrack.h:90