4 StKFTrack::StKFTrack(Int_t k,
KFParticle *particle, Double_t chi2, Int_t iWE) :
5 fK(k), fWeight(-1), fW(-1), fOrigKFParticle(particle), fWestOrEast(iWE) {
12 void StKFTrack::SetChi2(Double_t chi2) {
15 fWeight = TMath::Exp(-fChi2/(2.*StAnneling::Temperature()));
21 Int_t StKFTrack::CorrectGePid(Int_t gePid) {
23 if (gePid == 99) gePid = 11151;
24 if (gePid == 207) gePid = 41;
25 if (gePid == 40001) gePid = 24;
26 if (gePid == 98) gePid = 18;
27 if (gePid == 40002) gePid = 32;
28 if (gePid == 97) gePid = 26;
29 if (gePid == 40003) gePid = 23;
30 if (gePid == 40004) gePid = 31;
31 if (gePid == 40005) gePid = 22;
32 if (gePid == 40006) gePid = 30;
33 if (gePid == 10150) gePid = 150;
34 if (gePid == 10151) gePid = 151;
35 if (gePid == 11151) gePid = 10151;
36 if (gePid == 10018) gePid = 98;
37 if (gePid == 10026) gePid = 97;
38 if (gePid == 10017) gePid = 17;
39 if (gePid == 10039) gePid = 39;
40 if (gePid == 10040) gePid = 40;
41 if (gePid == 98) gePid = 18;
42 if (gePid == 97) gePid = 26;
43 if (gePid < 0 || gePid > 50) {
44 std::cout <<
"Illegal gePid " << gePid << std::endl;
46 if (gePid < 0 || gePid > 50) gePid = 51;
50 std::ostream& operator<<(std::ostream& os,
const StKFTrack& p) {
51 os << Form(
"%5i %9.3f %9.3f %9.3f %9.3f",
52 p.K(),p.Weight(),p.W(),p.OrigParticle()->GetZ(),p.Chi2());