VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
A01
include
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
29
class
A01RootDetectorConstruction
:
public
TObject
30
{
31
public
:
32
A01RootDetectorConstruction
(
const
TString& geometryFileName);
33
virtual
~A01RootDetectorConstruction
();
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 !)
46
Bool_t
fUseLocalMagField
;
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
55
inline
void
A01RootDetectorConstruction::SetUseLocalMagField
(
56
Bool_t localMagField)
57
{
58
fUseLocalMagField
= localMagField;
59
}
60
61
#endif
// A01_DETECTOR_CONSTRUCTION_H
A01RootDetectorConstruction::ConstructGeometry
void ConstructGeometry()
Definition
A01RootDetectorConstruction.cxx:50
A01RootDetectorConstruction::~A01RootDetectorConstruction
virtual ~A01RootDetectorConstruction()
Definition
A01RootDetectorConstruction.cxx:40
A01RootDetectorConstruction::A01RootDetectorConstruction
A01RootDetectorConstruction(const TString &geometryFileName)
Definition
A01RootDetectorConstruction.cxx:31
A01RootDetectorConstruction::fGeometryFileName
TString fGeometryFileName
The root geometry file name.
Definition
A01RootDetectorConstruction.h:43
A01RootDetectorConstruction::SetUseLocalMagField
void SetUseLocalMagField(Bool_t localMagField)
Definition
A01RootDetectorConstruction.h:55
A01RootDetectorConstruction::fUseLocalMagField
Bool_t fUseLocalMagField
Option to use local magnetic field (working only with Geant4 !).
Definition
A01RootDetectorConstruction.h:46
TObject
Generated on
for VMC Examples by
1.17.0