Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pythia_main.cpp File Reference
#include <iostream>
#include <sstream>
#include <string>
#include <getopt.h>
#include <TFile.h>
#include <TObjString.h>
#include <TTree.h>
#include "factory.h"
#include "pythia_commons.h"
#include "pythia_erhic.h"
+ Include dependency graph for pythia_main.cpp:

Go to the source code of this file.

Functions

std::string initialise (int argc, char *argv[])
 
void write_run_data (TFile &)
 
int main (int argc, char *argv[])
 

Function Documentation

std::string initialise ( int  argc,
char *  argv[] 
)

Initialise the program, processing command line arguments. Returns the name of the ROOT file to generate.

Definition at line 56 of file pythia_main.cpp.

View newest version in sPHENIX GitHub at line 56 of file pythia_main.cpp

References __pythia6_MOD_initialise(), __pythia6_MOD_printascii, filename, perf_headwind::name, and printf().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

C++ wrapper for calling the eRHIC PYTHIA 6 implementation and building eRHIX C++ events to store in a ROOT tree.

Definition at line 25 of file pythia_main.cpp.

View newest version in sPHENIX GitHub at line 25 of file pythia_main.cpp

References __pythia6_MOD_finish(), __pythia6_MOD_generate(), file, filename, initialise(), tree, and write_run_data().

+ Here is the call graph for this function:

void write_run_data ( TFile &  file)

Extract the following run data from PYTHIA and write as TObjStrings to the provided file with the names shown:

  • Total sampled cross section as "crossSection"
  • Total number of generated events as "nEvents"
  • Total number of event trials as "nTrials"

Definition at line 112 of file pythia_main.cpp.

View newest version in sPHENIX GitHub at line 112 of file pythia_main.cpp

References msti, ngen, pari, and text().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: