VMC Examples Version 6.6
Loading...
Searching...
No Matches
A01RootDetectorConstruction.h
Go to the documentation of this file.
1#ifndef A01_ROOT_DETECTOR_CONSTRUCTION_H
2#define A01_ROOT_DETECTOR_CONSTRUCTION_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 A01RootDetectorConstruction.h
14/// \brief Definition of the A01RootDetectorConstruction class
15///
16/// Geant4 example A01 adapted to Virtual Monte Carlo: \n
17///
18/// \author I. Hrivnacova; IPN, Orsay
19
20#include <TObject.h>
21#include <TString.h>
22
23/// \ingroup A01
24/// \brief The detector construction (via TGeo )
25///
26/// \date 12/05/2012
27/// \author I. Hrivnacova; IPN, Orsay
28
30{
31 public:
32 A01RootDetectorConstruction(const TString& geometryFileName);
34
35 public:
36 void ConstructGeometry();
37
38 void SetUseLocalMagField(Bool_t localMagField);
39
40 private:
41 // data members
42
43 TString fGeometryFileName; ///< The root geometry file name
44
45 /// Option to use local magnetic field (working only with Geant4 !)
47
48 ClassDef(A01RootDetectorConstruction, 1) // A01RootDetectorConstruction
49};
50
51// inline functions
52
53/// Set the option to use local magnetic field (working only with Geant4 !)
54/// \param localMagField The new value of the option
56 Bool_t localMagField)
57{
58 fUseLocalMagField = localMagField;
59}
60
61#endif // A01_DETECTOR_CONSTRUCTION_H
The detector construction (via TGeo )
A01RootDetectorConstruction(const TString &geometryFileName)
TString fGeometryFileName
The root geometry file name.
void SetUseLocalMagField(Bool_t localMagField)
Bool_t fUseLocalMagField
Option to use local magnetic field (working only with Geant4 !)