GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Data Fields
GGSTSimInfo Class Reference

A class to store simulation informations. More...

#include <GGSTSimInfo.h>

Inheritance diagram for GGSTSimInfo:
Inheritance graph
[legend]
Collaboration diagram for GGSTSimInfo:
Collaboration graph
[legend]

Public Member Functions

bool IsSameSimAs (const GGSTSimInfo &simInfo)
 Equality operator. More...
 

Data Fields

TString G4Version
 Geant 4 version (as defined in G4Version.hh)
 
TString GGSVersion
 GGS version (as defined by GGSVERSION in Version.h)
 
TString geometry
 The geometry used for the simulation.
 
TString physicsList
 The physics list used for the simulation.
 
TString dataCard
 The data card file used for the simulation.
 
TString geoDataCard
 The data card file used for geometry configuration.
 
UInt_t seed1
 First random generator seed.
 
UInt_t seed2
 Second random generator seed.
 

Detailed Description

A class to store simulation informations.

This class stores global simulation parameters, such as the geometry, the physics list and the random generator seeds

Definition at line 21 of file GGSTSimInfo.h.

Member Function Documentation

bool GGSTSimInfo::IsSameSimAs ( const GGSTSimInfo simInfo)

Equality operator.

This operator can be used to check if two GGSTSimInfo objects describe the same simulation setup, i.e., all their fields are equal except for seeds, which must be different for different instances of GGSPenny in order to actually simulate different events

Parameters
simInfoThe GGSTSimInfo to compare to.
Returns
true if simInfo fields are identical to those of this object (except for seed1 and seed2).

Definition at line 21 of file GGSTSimInfo.cpp.

21  {
22 
23  return ((G4Version == simInfo.G4Version) && //
24  (GGSVersion == simInfo.GGSVersion) && //
25  (geometry == simInfo.geometry) && //
26  (physicsList == simInfo.physicsList) && //
27  (dataCard == simInfo.dataCard) && //
28  (geoDataCard == simInfo.geoDataCard));
29 }
TString geometry
The geometry used for the simulation.
Definition: GGSTSimInfo.h:26
TString G4Version
Geant 4 version (as defined in G4Version.hh)
Definition: GGSTSimInfo.h:23
TString physicsList
The physics list used for the simulation.
Definition: GGSTSimInfo.h:27
TString geoDataCard
The data card file used for geometry configuration.
Definition: GGSTSimInfo.h:29
TString dataCard
The data card file used for the simulation.
Definition: GGSTSimInfo.h:28
TString GGSVersion
GGS version (as defined by GGSVERSION in Version.h)
Definition: GGSTSimInfo.h:24

The documentation for this class was generated from the following files: