EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
12
ClassImp
(
PndTrack
);
13
14
PndTrack::PndTrack
()
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
());
32
SetTimeStampError
(cand.
GetTimeStampError
());
33
}
34
35
36
37
void
PndTrack::Print
(){
38
std::cout <<
"FirstTrackPar"
<< std::endl;
39
fTrackParamFirst
.
Print
();
40
std::cout <<
"LastTrackPar"
<< std::endl;
41
fTrackParamLast
.
Print
();
42
std::cout <<
"chi2 "
<<
fChi2
<< std::endl;
43
std::cout <<
"ndf "
<<
fNDF
<< std::endl;
44
std::cout <<
"fRefIndex "
<<
fRefIndex
<< std::endl;
45
}
EicRoot
blob
master
pnddata
TrackData
PndTrack.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:37
using
1.8.2 with
EIC GitHub integration