3 #include "FairPrimaryGenerator.h"
5 #include "TClonesArray.h"
6 #include "TDatabasePDG.h"
23 std::cout<<
"PndPythia6Direct::SetPandaDefaults()"<<std::endl;
40 std::cout<<
"PndPythia6Direct::Init(): Beam Momentum "<<
fMom<<std::endl;
61 if(
fVerbose>0) std::cout<<
"PndPythia6Direct::ReadEvent() No. "<<evtn<<std::endl;
63 if(
fVerbose>2) std::cout<<
"PndPythia6Direct::ReadEvent() Generation done."<<std::endl;
70 if(
fVerbose>0) std::cout<<
"PndPythia6Direct::ReadEvent() We have "<<npart<<
" tracks."<<std::endl;
71 for(
int i=0;
i<npart; ++
i)
73 if(
fVerbose>4) std::cout<<
"PndPythia6Direct::ReadEvent() particle No. "<<
i<<std::endl;
75 if(
fVerbose>4) std::cout<<
"PndPythia6Direct::ReadEvent() particle pointer "<<
fParticle<<std::endl;
85 std::cout<<
"PndPythia6Direct::ReadEvent() Particle:"
94 <<
" Time()*1000="<<
fParticle->GetTime()*1000
116 if(
fVerbose>0&&(evtn<10||(evtn%100)==0))
printf(
"- I -: new particle %d at: %f, %f, %f (%f)-> %f %f %f (%f) ID %d ##Daughters %d %d Mother %d\n",
117 i,fX, fY, fZ, fT,Px, Py, Pz, fE, Id, nFD, nLD, nMO);
120 dotracking = (status==1);
121 primGen->AddTrack(Id, Px, Py, Pz, fX, fY, fZ, nMO,dotracking,fE,fT);
123 primGen->AddTrack(Id, Px, Py, Pz, fX, fY, fZ,-1,
true,fE,fT);
Bool_t ReadEvent(FairPrimaryGenerator *)
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
FairPrimaryGenerator * primGen
virtual ~PndPythia6Direct()
TClonesArray * fParticleList