VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
Monopole
include
DetectorConstruction.h
Go to the documentation of this file.
1
#ifndef DETECTOR_CONSTRUCTION_H
2
#define DETECTOR_CONSTRUCTION_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2018 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 DetectorConstruction.h
14
/// \brief Definition of the DetectorConstruction class
15
///
16
/// Geant4 monopole adapted to Virtual Monte Carlo: \n
17
///
18
/// \author I. Hrivnacova; IPN, Orsay
19
20
#include <map>
21
22
#include <Riostream.h>
23
#include <TObject.h>
24
#include <TString.h>
25
26
namespace
VMC
27
{
28
namespace
Monopole
29
{
30
31
/// \ingroup Monopole
32
/// \brief The detector construction (via TGeo )
33
///
34
/// \date 06/07/2018
35
/// \author I. Hrivnacova; IPN, Orsay
36
37
class
DetectorConstruction
:
public
TObject
38
{
39
public
:
40
DetectorConstruction
();
41
virtual
~DetectorConstruction
();
42
43
public
:
44
void
ConstructMaterials
();
45
void
ConstructGeometry
();
46
47
// set methods
48
void
SetAbsorberSizeX
(Double_t sizeX);
49
void
SetAbsorberSizeYZ
(Double_t sizeYZ);
50
void
SetAbsorberMaterial
(
const
TString& name);
51
// void SetMagField(Double_t fieldValue);
52
void
SetMaxStepSize
(Double_t maxStepSize);
53
void
SetGeometryInitialized
(Bool_t geometryInitialized);
54
// void UpdateGeometry();
55
56
//
57
// get methods
58
Double_t
GetWorldSizeX
()
const
{
return
fWorldSizeX
; }
59
Double_t
GetAbsorberSizeX
()
const
{
return
fAbsorberSizeX
; }
60
Double_t
GetMaxStepSize
()
const
{
return
fMaxStepSize
; }
61
TString
GetAbsorberMaterial
()
const
{
return
fAbsorberMaterial
; }
62
Bool_t
GetGeometryInitialized
()
const
{
return
fGeometryInitialized
; }
63
64
private
:
65
void
PrintParameters
();
66
67
// data members
68
TString
fWorldMaterial
;
69
TString
fAbsorberMaterial
;
70
Double_t
fAbsorberSizeX
;
71
Double_t
fAbsorberSizeYZ
;
72
Double_t
fWorldSizeX
;
73
Double_t
fWorldSizeYZ
;
74
Double_t
fMaxStepSize
;
75
Bool_t
fGeometryInitialized
;
76
77
ClassDef(
DetectorConstruction
, 1)
// DetectorConstruction
78
};
79
80
// inline functions
81
82
inline
void
DetectorConstruction::SetGeometryInitialized
(
83
Bool_t geometryInitialized)
84
{
85
fGeometryInitialized
= geometryInitialized;
86
}
87
88
}
// namespace Monopole
89
}
// namespace VMC
90
91
#endif
// DETECTOR_CONSTRUCTION_H
TObject
VMC::Monopole::DetectorConstruction::DetectorConstruction
DetectorConstruction()
Definition
DetectorConstruction.cxx:39
VMC::Monopole::DetectorConstruction::fWorldSizeYZ
Double_t fWorldSizeYZ
Definition
DetectorConstruction.h:73
VMC::Monopole::DetectorConstruction::fWorldSizeX
Double_t fWorldSizeX
Definition
DetectorConstruction.h:72
VMC::Monopole::DetectorConstruction::SetAbsorberSizeYZ
void SetAbsorberSizeYZ(Double_t sizeYZ)
Definition
DetectorConstruction.cxx:200
VMC::Monopole::DetectorConstruction::fAbsorberSizeX
Double_t fAbsorberSizeX
Definition
DetectorConstruction.h:70
VMC::Monopole::DetectorConstruction::SetAbsorberSizeX
void SetAbsorberSizeX(Double_t sizeX)
Definition
DetectorConstruction.cxx:186
VMC::Monopole::DetectorConstruction::fAbsorberMaterial
TString fAbsorberMaterial
Definition
DetectorConstruction.h:69
VMC::Monopole::DetectorConstruction::ConstructGeometry
void ConstructGeometry()
Definition
DetectorConstruction.cxx:127
VMC::Monopole::DetectorConstruction::~DetectorConstruction
virtual ~DetectorConstruction()
Definition
DetectorConstruction.cxx:54
VMC::Monopole::DetectorConstruction::SetMaxStepSize
void SetMaxStepSize(Double_t maxStepSize)
Definition
DetectorConstruction.cxx:286
VMC::Monopole::DetectorConstruction::GetGeometryInitialized
Bool_t GetGeometryInitialized() const
Definition
DetectorConstruction.h:62
VMC::Monopole::DetectorConstruction::fGeometryInitialized
Bool_t fGeometryInitialized
Definition
DetectorConstruction.h:75
VMC::Monopole::DetectorConstruction::PrintParameters
void PrintParameters()
Definition
DetectorConstruction.cxx:177
VMC::Monopole::DetectorConstruction::fMaxStepSize
Double_t fMaxStepSize
Definition
DetectorConstruction.h:74
VMC::Monopole::DetectorConstruction::GetAbsorberMaterial
TString GetAbsorberMaterial() const
Definition
DetectorConstruction.h:61
VMC::Monopole::DetectorConstruction::GetMaxStepSize
Double_t GetMaxStepSize() const
Definition
DetectorConstruction.h:60
VMC::Monopole::DetectorConstruction::GetWorldSizeX
Double_t GetWorldSizeX() const
Definition
DetectorConstruction.h:58
VMC::Monopole::DetectorConstruction::fAbsorberSizeYZ
Double_t fAbsorberSizeYZ
Definition
DetectorConstruction.h:71
VMC::Monopole::DetectorConstruction::SetAbsorberMaterial
void SetAbsorberMaterial(const TString &name)
Definition
DetectorConstruction.cxx:214
VMC::Monopole::DetectorConstruction::SetGeometryInitialized
void SetGeometryInitialized(Bool_t geometryInitialized)
Definition
DetectorConstruction.h:82
VMC::Monopole::DetectorConstruction::ConstructMaterials
void ConstructMaterials()
Definition
DetectorConstruction.cxx:68
VMC::Monopole::DetectorConstruction::GetAbsorberSizeX
Double_t GetAbsorberSizeX() const
Definition
DetectorConstruction.h:59
VMC::Monopole::DetectorConstruction::fWorldMaterial
TString fWorldMaterial
Definition
DetectorConstruction.h:68
VMC::Monopole
Definition
DetectorConstruction.h:29
VMC
Definition
FastSimulation.h:26
Generated on
for VMC Examples by
1.17.0