VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01RunConfiguration Class Reference

User Geant4 VMC run configuration. More...

#include <A01RunConfiguration.h>

Inheritance diagram for A01RunConfiguration:

Public Member Functions

 A01RunConfiguration (const TString &physicsList="emStandard", const TString &specialProcess="stepLimiter")
 
virtual ~A01RunConfiguration ()
 
virtual G4VUserDetectorConstructionCreateDetectorConstruction ()
 
void SetUseLocalMagField (Bool_t localMagField)
 

Private Attributes

Bool_t fUseLocalMagField
 Option to use local magnetic field.
 

Detailed Description

User Geant4 VMC run configuration.

This class overrides setting of the default Geant4 VMC geometry construction with Geant4 detector construction

Author
I. Hrivnacova; IPN, Orsay

Definition at line 30 of file A01RunConfiguration.h.

Constructor & Destructor Documentation

◆ A01RunConfiguration()

A01RunConfiguration::A01RunConfiguration ( const TString & physicsList = "emStandard",
const TString & specialProcess = "stepLimiter" )

Standard constructor

Parameters
physicsListSelection of physics
specialProcessSelection of the special processes

The option for geometry selection has to be set here to "geomGeant4", as geometry will be defined directly via Geant4.

See also
More on the available option in class TG4RunConfiguration: http://ivana.home.cern.ch/ivana/g4vmc_html/classTG4RunConfiguration.html

Definition at line 21 of file A01RunConfiguration.cxx.

23 : TG4RunConfiguration("geomGeant4", physicsList, specialProcess),
25{
26 /// Standard constructor
27 /// \param physicsList Selection of physics
28 /// \param specialProcess Selection of the special processes
29 ///
30 /// The option for geometry selection has to be set here to "geomGeant4",
31 /// as geometry will be defined directly via Geant4.
32 /// \see More on the available option in class TG4RunConfiguration:
33 /// http://ivana.home.cern.ch/ivana/g4vmc_html/classTG4RunConfiguration.html
34}
Bool_t fUseLocalMagField
Option to use local magnetic field.

◆ ~A01RunConfiguration()

A01RunConfiguration::~A01RunConfiguration ( )
virtual

Destructor

Definition at line 37 of file A01RunConfiguration.cxx.

38{
39 /// Destructor
40}

Member Function Documentation

◆ CreateDetectorConstruction()

G4VUserDetectorConstruction * A01RunConfiguration::CreateDetectorConstruction ( )
virtual

The Geant4 VMC detector construction is overridden with the detector construction class from the Geant4 novice example N03 library.

Definition at line 47 of file A01RunConfiguration.cxx.

48{
49 /// The Geant4 VMC detector construction is overridden with the detector
50 /// construction class from the Geant4 novice example N03 library.
51
53}
The detector construction (defined via Geant4)

◆ SetUseLocalMagField()

void A01RunConfiguration::SetUseLocalMagField ( Bool_t localMagField)
inline

Set the option to use local magnetic field (working only with Geant4 !)

Parameters
localMagFieldThe new value of the option

Definition at line 52 of file A01RunConfiguration.h.

53{
54 fUseLocalMagField = localMagField;
55}

Member Data Documentation

◆ fUseLocalMagField

Bool_t A01RunConfiguration::fUseLocalMagField
private

Option to use local magnetic field.

Definition at line 45 of file A01RunConfiguration.h.


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