12 THijing::THijing(
const char *paramFile ) {
13 if (strlen(paramFile) > 255) {
14 cout <<
"Input parameter fileName is " << paramFile << endl;
15 cout <<
"This is longer than 255 characters. Need to increase buffer size." << endl;
17 hfilename_.length = strlen(paramFile);
18 strcpy(hfilename_.fileName,paramFile);
22 void THijing::init() {
30 void THijing::SetRandomSeed(
int iseed,
int k1,
int k2) {
32 rluxgo_(&lux,&iseed,&k1,&k2);
34 void THijing::GetRandomSeed(
int *lux,
int *iseed,
int *k1,
int *k2) {
35 rluxat_(lux,iseed,k1,k2);
37 void THijing::SaveRandomSeeds(
int *ivec) {
40 void THijing::RestoreRandomSeeds(
int *ivec) {
43 void THijing::GenerateEvent() {
52 void THijing::writeOut()
const {
54 cout <<
"No event generated."<<endl;
57 ofstream fout(
"particles.dat",ios::app);
58 fout <<
"Event " << mNevent <<
'\t' << himain1_.natt << endl;
60 for(
int ip = 0; ip < himain1_.natt; ip++) {
61 int istat = (himain2_.katt[3][ip] == 11) ? 2 : himain2_.katt[3][ip];
62 fout << ip <<
'\t' << istat <<
'\t' << himain2_.katt[0][ip] <<
'\t'
63 << himain2_.patt[0][ip] <<
'\t' << himain2_.patt[1][ip] <<
'\t'
64 << himain2_.patt[2][ip] <<
'\t' << himain2_.patt[3][ip] <<
'\t'