EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PndTrack.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PndTrack.cxx
1 /*
2  * PndTrack.cpp
3  *
4  * Created on: 05.03.2009
5  * Author: stockman
6  */
7 
8 #include <Math/DistFunc.h>
9 
10 #include "PndTrack.h"
11 
13 
15 {
16  fPidHypo = 0;
17  fFlag = 0;
18  fChi2 = -1.;
19  fChiSquareCCDF = -1.;
20  fNDF = 0;
21  fRefIndex = -1;
22 }
23 
24 
25 PndTrack::PndTrack(const FairTrackParP& first, const FairTrackParP& last, const PndTrackCand& cand, Int_t flag, Double_t chi2, Int_t ndf, Int_t pid, Int_t id, Int_t type):
26  fTrackParamFirst(first), fTrackParamLast(last), fTrackCand(cand), fPidHypo(pid), fFlag(flag), fChi2(chi2), fNDF(ndf), fRefIndex(id)
27 {
28  fChiSquareCCDF = fNDF > 0 ? ROOT::Math::chisquared_cdf_c(fChi2, fNDF) : 0.;
29 
30  SetLink(FairLink(type, id));
31  SetTimeStamp(cand.GetTimeStamp());
33 }
34 
35 
36 
38  std::cout << "FirstTrackPar" << std::endl;
40  std::cout << "LastTrackPar" << std::endl;
42  std::cout << "chi2 " << fChi2 << std::endl;
43  std::cout << "ndf " << fNDF << std::endl;
44  std::cout << "fRefIndex " << fRefIndex << std::endl;
45 }