Functions

OLYMPUS.cc File Reference

Source file containing the main program for the OLYMPUS Monte Carlo. More...

#include "globals.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIsession.hh"
#include "G4UIQt.hh"
#include "G4UIXm.hh"
#include "G4UIXaw.hh"
#include "G4UIterminal.hh"
#include "G4UItcsh.hh"
#include "Detector.h"
#include "Physics.h"
#include "Generator.h"
#include "RunAction.h"
#include "EventAction.h"
Include dependency graph for OLYMPUS.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 Main program for the GEANT4 simulation of the OLYMPUS experiment.

Detailed Description

Source file containing the main program for the OLYMPUS Monte Carlo.

The main program initialises the OLYMPUS detector, event generator and physics classes. It then starts the GEANT4 kernel and executes either a batch macro file given on the command line or a default visualisation macro file based on environmental variables for running interactively.

Author:
D.K. Hasell
Version:
1.0
Date:
2010-09-01

Definition in file OLYMPUS.cc.


Function Documentation

int main ( int  argc,
char **  argv 
)

Main program for the GEANT4 simulation of the OLYMPUS experiment.

The main program receives the command line arguments argc and argv.

  • If the command line contains only the program name (i.e. OLYMPUS) then a default visualisation macro file is executed and then control is returned to the user for interactive operation of the program.
  • If the command line contains more than just the program name then the second argument is taken to be the name of a macro file which is executed in batch mode.
Parameters:
[in]argc- the number of words on the command line including the command itself.
[in]argv- an array of character arrays giving the command line arguments.
Returns:
returns the integer 0 on successful completion.

Definition at line 61 of file OLYMPUS.cc.