31#ifdef G4LIB_USE_PYTHIA
36#include "HepMC/GenEvent.h"
37#include "HepMC/PythiaWrapper6_4.h"
46 void pygive(
const char*,
int);
47 void pyrget(
int*,
int*);
48 void pyrset(
int*,
int*);
51void call_pygive(
G4String s) { pygive(s.c_str(), s.length()); }
52void call_pyrget(
int a,
int b) { pyrget(&
a, &b); }
53void call_pyrset(
int a,
int b) { pyrset(&
a, &b); }
57 : verbose(0), mpylist(0)
85 call_pyinit(frame.c_str(), beam.c_str(), target.c_str(), win);
97 pydatr.mrpy[1-1]= iseed;
103 call_pyrget(lun, move);
109 call_pyrset(lun, move);
115 ostr <<
"# Pythia random numbers status" << G4endl;
116 for (G4int j=0; j<6; j++) {
117 ostr <<
"pydatr.mrpy[" << j <<
"]= " << pydatr.mrpy[j] << G4endl;
119 for (G4int k=0; k<100; k++) {
120 ostr <<
"pydatr.rrpy[" << k <<
"]= " << pydatr.rrpy[k] << G4endl;
127 G4cout <<
"set user parameters of PYTHIA common." << G4endl
128 <<
"nothing to be done in default."
135 static G4int nevent= 0;
142 HepMC::GenEvent* evt=
hepevtio.read_next_event();
143 evt-> set_event_number(nevent++);
152 G4cout <<
"PythiaInterface::Print()..." << G4endl;
std::vector< ExP01TrackerHit * > a
Definition of the HepMCG4PythiaInterface class.
Definition of the HepMCG4PythiaMessenger class.
~HepMCG4PythiaInterface()
void CallPyrset(G4int lun, G4int move)
virtual void Print() const
HepMC::IO_HEPEVT hepevtio
void CallPyinit(G4String frame, G4String beam, G4String target, G4double win)
void SetRandomSeed(G4int iseed)
virtual HepMC::GenEvent * GenerateHepMCEvent()
void CallPystat(G4int istat)
void PrintRandomStatus(std::ostream &ostr=G4cout) const
virtual void SetUserParameters()
HepMCG4PythiaMessenger * messenger
void CallPyrget(G4int lun, G4int move)
void CallPygive(G4String par)