Analysis Software
Documentation for sPHENIX simulation software
|
#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"
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[]) |
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().
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().
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:
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().