46 std::cout<<
"No track data file is available! "<<std::endl;abort();
49 m_inputFile.open(m_inputFileName.c_str());
51 cout <<
"EvtTrackGen: PROBLEMS OPENING FILE "
52 << m_inputFileName << endl;
57 while(!m_inputFile.eof()){
58 m_inputFile >> nParticles;
59 std::vector<EvtVector4R> vp4;
60 for (
int i = 0; i < nParticles; i++){
62 m_inputFile >> idParticles[i];
63 m_inputFile >> pxParticle;
p4.set(1,pxParticle);
64 m_inputFile >> pyParticle;
p4.set(2,pyParticle);
65 m_inputFile >> pzParticle;
p4.set(3,pzParticle);
66 m_inputFile >> eParticle;
p4.set(0,eParticle);
73 if(nParticles!=
getNDaug()){std::cout<<
"The number of daughters are not cosistent with that the data file"<<std::endl;abort();}
74 for(
int i=0;i<nParticles;i++){
76 if(pid!=
getDaug(i) ){std::cout<<
"The daughter particle pdg in your data file is not consistent with you decay card."<<std::endl;abort();}
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)