86 if (fVerbose > 1) cout<<
"MpdMCStack::Exec"<<endl;
91 if (fVerbose > 2) cout<<
"MpdMCStack::Exec "<<
i<<endl;
106 x1[0] = Vertex.x();
x1[1] = Vertex.y();
x1[2] = Vertex.z();
107 p1[0] = Ptot.Px();
p1[1] = Ptot.Py();
p1[2] = Ptot.Pz();
110 TParticlePDG* fParticlePDG = TDatabasePDG::Instance()->GetParticle(tr->
GetPdgCode());
112 Double_t mass = 0, ene = 0;
114 mass = fParticlePDG->Mass();
116 ene = TMath::Sqrt(mass*mass + Ptot.Mag2());
119 TParticle* P =
new TParticle(tr->
GetPdgCode(),
i, MotherId, -1, -1, -1, Ptot.Px(), Ptot.Py(),Ptot.Pz(),ene, Vertex.x(), Vertex.z(), Vertex.z(), time);
121 Float_t particle_energy = P->Energy();
144 fPro->SetDestinationLength(100.0);
148 const Double_t* point;
149 Int_t Np = tr1->GetNpoints();
150 for (Int_t n = 0; n < Np; n++)
152 point = tr1->GetPoint(n);
153 track->SetPoint(n, point[0], point[1], point[2]);
154 TEveVector pos = TEveVector(point[0], point[1], point[2]);
156 TEvePathMark* path =
new TEvePathMark();
158 path->fTime = point[3];
161 TEveVector Mom = TEveVector(P->Px(), P->Py(),P->Pz());
165 track->AddPathMark(*path);
166 if (fVerbose > 3) cout<<
"Path marker added "<<path<<endl;
170 if (fVerbose > 3) cout<<
"Track added "<<track->GetName()<<endl;