VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01RunConfiguration.h
Go to the documentation of this file.
1#ifndef A01_RUN_CONFIGURATION1_H
2#define A01_RUN_CONFIGURATION1_H
3
4//------------------------------------------------
5// The Virtual Monte Carlo examples
6// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7// All rights reserved.
8//
9// For the licensing terms see geant4_vmc/LICENSE.
10// Contact: root-vmc@cern.ch
11//-------------------------------------------------
12
13/// \file A01RunConfiguration.h
14/// \brief Definition of the A01RunConfiguration class
15///
16/// Geant4 ExampleN03 adapted to Virtual Monte Carlo
17///
18/// \author I. Hrivnacova; IPN, Orsay
19
20#include "TG4RunConfiguration.h"
21
22/// \ingroup A01
23/// \brief User Geant4 VMC run configuration
24///
25/// This class overrides setting of the default Geant4 VMC geometry
26/// construction with Geant4 detector construction
27///
28/// \author I. Hrivnacova; IPN, Orsay
29
31{
32 public:
33 A01RunConfiguration(const TString& physicsList = "emStandard",
34 const TString& specialProcess = "stepLimiter");
35 virtual ~A01RunConfiguration();
36
37 // methods
39
40 // set methods
41 void SetUseLocalMagField(Bool_t localMagField);
42
43 private:
44 /// Option to use local magnetic field
46};
47
48// inline functions
49
50/// Set the option to use local magnetic field (working only with Geant4 !)
51/// \param localMagField The new value of the option
52inline void A01RunConfiguration::SetUseLocalMagField(Bool_t localMagField)
53{
54 fUseLocalMagField = localMagField;
55}
56
57#endif // A01_RUN_CONFIGURATION1_H
User Geant4 VMC run configuration.
void SetUseLocalMagField(Bool_t localMagField)
virtual G4VUserDetectorConstruction * CreateDetectorConstruction()
A01RunConfiguration(const TString &physicsList="emStandard", const TString &specialProcess="stepLimiter")
Bool_t fUseLocalMagField
Option to use local magnetic field.