52 "G4HEPEvtInterface:: cannot open file.");
71 "G4HEPEvtInterface:: cannot open file.");
75 G4Exception(
"G4HEPEvtInterface::GeneratePrimaryVertex",
"Event0202",
76 RunMustBeAborted,
"End-Of-File : HEPEvt input file -- no more event to read!");
82 G4cout <<
"G4HEPEvtInterface - reading " << NHEP <<
" HEPEvt particles from "
85 for(
G4int IHEP=0; IHEP<NHEP; IHEP++ )
96 inputFile >> ISTHEP >> IDHEP >> JDAHEP1 >> JDAHEP2
97 >> PHEP1 >> PHEP2 >> PHEP3 >> PHEP5;
100 G4Exception(
"G4HEPEvtInterface::GeneratePrimaryVertex",
"Event0203",
101 FatalException,
"Unexpected End-Of-File in the middle of an event");
105 G4cout <<
" " << ISTHEP <<
" " << IDHEP <<
" " << JDAHEP1 <<
" " << JDAHEP2
106 <<
" " << PHEP1 <<
" " << PHEP2 <<
" " << PHEP3 <<
" " << PHEP5
114 particle->
SetMomentum(PHEP1*GeV, PHEP2*GeV, PHEP3*GeV );
121 HPlist.push_back( hepParticle );
125 if(
HPlist.size() == 0 )
return;
129 for(
size_t i=0; i<
HPlist.size(); i++ )
131 if(
HPlist[i]->GetJDAHEP1() > 0 )
136 for(
G4int j=jda1; j<=jda2; j++ )
139 if(
HPlist[j]->GetISTHEP()>0)
152 for(
size_t ii=0; ii<
HPlist.size(); ii++ )
154 if(
HPlist[ii]->GetISTHEP() > 0 )
164 for(
size_t iii=0;iii<
HPlist.size();iii++)