53 "G4HEPEvtInterface:: cannot open file.");
88 "G4HEPEvtInterface:: cannot open file.");
92 G4Exception(
"G4HEPEvtInterface::GeneratePrimaryVertex",
"Event0202",
99 G4cout <<
"G4HEPEvtInterface - reading " << NHEP <<
" HEPEvt particles from "
102 for(
G4int IHEP=0; IHEP<NHEP; IHEP++ )
113 inputFile >> ISTHEP >> IDHEP >> JDAHEP1 >> JDAHEP2
114 >> PHEP1 >> PHEP2 >> PHEP3 >> PHEP5;
117 G4Exception(
"G4HEPEvtInterface::GeneratePrimaryVertex",
"Event0202",
122 G4cout <<
" " << ISTHEP <<
" " << IDHEP <<
" " << JDAHEP1 <<
" " << JDAHEP2
123 <<
" " << PHEP1 <<
" " << PHEP2 <<
" " << PHEP3 <<
" " << PHEP5
131 particle->
SetMomentum(PHEP1*GeV, PHEP2*GeV, PHEP3*GeV );
138 HPlist.push_back( hepParticle );
142 if(
HPlist.size() == 0 )
return;
146 for(
size_t i=0; i<
HPlist.size(); i++ )
148 if(
HPlist[i]->GetJDAHEP1() > 0 )
153 for(
G4int j=jda1; j<=jda2; j++ )
156 if(
HPlist[j]->GetISTHEP()>0)
169 for(
size_t ii=0; ii<
HPlist.size(); ii++ )
171 if(
HPlist[ii]->GetISTHEP() > 0 )
181 for(
size_t iii=0;iii<
HPlist.size();iii++)
void GeneratePrimaryVertex(G4Event *evt)
void SetMomentum(G4double px, G4double py, G4double pz)
void SetDaughter(G4PrimaryParticle *np)
G4ThreeVector particle_position
void SetPrimary(G4PrimaryParticle *pp)
G4HEPEvtInterface(const char *evfile, G4int vl=0)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
void AddPrimaryVertex(G4PrimaryVertex *aPrimaryVertex)
static constexpr double GeV
std::vector< G4HEPEvtParticle * > HPlist
void SetMass(G4double mas)