74 LOG(debug1)<<
"MpdMCTracks::Exec";
79 const Double_t* point;
82 LOG(debug3)<<
"MpdMCTracks::Exec "<<
i;
85 TParticle* P = (TParticle*) tr->GetParticle();
86 Int_t particle_mother_id = P->GetMother(0);
87 Float_t particle_energy = P->Energy();
91 LOG(debug3)<<
"Particle name: "<<P->GetName()<<
" (pdg = "<<P->GetPdgCode()<<
")";
92 LOG(debug3)<<
"Parent track id = "<<particle_mother_id;
94 LOG(debug3)<<
"Particle Px : Py : Pz = "<<P->Px()<<
" : "<<P->Py()<<
" : "<<P->Pz();
95 LOG(debug3)<<
"Particle Vx : Vy : Vz: "<<P->Vx()<<
" : "<<P->Vy()<<
" : "<<P->Vz();
105 TEveTrack* track =
new TEveTrack(P, tr->GetPDG(),
fTrPr);
108 Int_t Np = tr->GetNpoints();
109 for (Int_t n = 0; n < Np; n++)
111 point = tr->GetPoint(n);
113 track->SetPoint(n, point[0], point[1], point[2]);
114 TEveVector pos = TEveVector(point[0], point[1], point[2]);
116 TEvePathMark* path =
new TEvePathMark();
118 path->fTime = point[3];
121 TEveVector Mom = TEveVector(P->Px(), P->Py(), P->Pz());
125 track->AddPathMark(*path);
126 LOG(debug4)<<
"Path marker added: "<<path<<
". X : Y : Z = "<<point[0]<<
" : "<<point[1]<<
" : "<<point[2];
132 LOG(debug3)<<
"Track added "<<track->GetName();