25 fTotalTracksNo = temp->
GetNpa();
27 for (
int i = 0; i < fTotalTracksNo; i++) {
29 TParticlePDG* pdg_part = fPDG->GetParticle(particle->
GetPdg());
32 charge = pdg_part->Charge() / 3.0;
34 Hal::McTrack* target_track = (Hal::McTrack*) fTracks->ConstructedAt(i);
35 target_track->ResetTrack(i,
this);
36 target_track->SetCharge(charge);
37 target_track->SetPdg(particle->
GetPdg());
39 target_track->SetPrimary();
42 target_track->SetMotherIndex(particle->
GetParent());
44 target_track->SetMomentum(particle->
Px(), particle->
Py(), particle->
Pz(), particle->
E());
45 target_track->SetFreezoutPosition(particle->
X(), particle->
Y(), particle->
Z(), particle->
T());
46 target_track->SetStatus(particle->
GetStatus());