VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
E03
E03a
include
Ex03DetectorConstructionOld.h
Go to the documentation of this file.
1
#ifndef EX03_DETECTOR_CONSTRUCTION_OLD_H
2
#define EX03_DETECTOR_CONSTRUCTION_OLD_H
3
4
//------------------------------------------------
5
// The Virtual Monte Carlo examples
6
// Copyright (C) 2014 - 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 Ex03DetectorConstructionOld.h
14
/// \brief Definition of the Ex03DetectorConstructionOld class
15
///
16
/// Geant4 ExampleN03 adapted to Virtual Monte Carlo. \n
17
/// Id: ExN03DetectorConstruction.hh,v 1.5 2002/01/09 17:24:11 ranjard Exp
18
/// GEANT4 tag $Name: $
19
///
20
/// \author I. Hrivnacova; IPN, Orsay
21
22
#include <map>
23
24
#include <Riostream.h>
25
#include <TObject.h>
26
#include <TString.h>
27
28
/// \ingroup E03
29
/// \brief The old detector construction (via VMC functions)
30
///
31
/// \date 06/03/2003
32
/// \author I. Hrivnacova; IPN, Orsay
33
34
class
Ex03DetectorConstructionOld
:
public
TObject
35
{
36
public
:
37
Ex03DetectorConstructionOld
();
38
virtual
~Ex03DetectorConstructionOld
();
39
40
public
:
41
void
ConstructMaterials
();
42
void
ConstructGeometry
();
43
void
PrintCalorParameters
();
44
// void UpdateGeometry();
45
46
// set methods
47
void
SetNbOfLayers
(Int_t value);
48
void
SetDefaultMaterial
(
const
TString& materialName);
49
void
SetAbsorberMaterial
(
const
TString& materialName);
50
void
SetGapMaterial
(
const
TString& materialName);
51
void
SetCalorSizeYZ
(Double_t value);
52
void
SetAbsorberThickness
(Double_t value);
53
void
SetGapThickness
(Double_t value);
54
55
// get methods
56
57
/// \return The number of calorimeter layers
58
Int_t
GetNbOfLayers
()
const
{
return
fNbOfLayers
; }
59
60
/// \return The world size x component
61
Double_t
GetWorldSizeX
()
const
{
return
fWorldSizeX
; }
62
63
/// \return The world size y,z component
64
Double_t
GetWorldSizeYZ
()
const
{
return
fWorldSizeYZ
; }
65
66
/// \return The calorimeter size y,z component
67
Double_t
GetCalorSizeYZ
()
const
{
return
fCalorSizeYZ
; }
68
69
/// \return The calorimeter thickness
70
Double_t
GetCalorThickness
()
const
{
return
fCalorThickness
; }
71
72
/// \return The absorber thickness
73
Double_t
GetAbsorberThickness
()
const
{
return
fAbsorberThickness
; }
74
75
/// \return The gap thickness
76
Double_t
GetGapThickness
()
const
{
return
fGapThickness
; }
77
78
private
:
79
// methods
80
void
ComputeCalorParameters
();
81
82
// data members
83
Int_t
fNbOfLayers
;
///< The number of calorimeter layers
84
Double_t
fWorldSizeX
;
///< The world size x component
85
Double_t
fWorldSizeYZ
;
///< The world size y,z component
86
Double_t
fCalorSizeYZ
;
///< The calorimeter size y,z component
87
Double_t
fCalorThickness
;
///< The calorimeter thickness
88
Double_t
fLayerThickness
;
///< The calorimeter layer thickness
89
Double_t
fAbsorberThickness
;
///< The absorber thickness
90
Double_t
fGapThickness
;
///< The gap thickness
91
92
TString
fDefaultMaterial
;
///< The default material name
93
TString
fAbsorberMaterial
;
///< The absorber material name
94
TString
fGapMaterial
;
///< The gap material name
95
96
ClassDef(
Ex03DetectorConstructionOld
, 1)
// Ex03DetectorConstructionOld
97
};
98
99
#endif
// EX03_DETECTOR_CONSTRUCTION_H
Ex03DetectorConstructionOld::PrintCalorParameters
void PrintCalorParameters()
Definition
Ex03DetectorConstructionOld.cxx:361
Ex03DetectorConstructionOld::GetGapThickness
Double_t GetGapThickness() const
Definition
Ex03DetectorConstructionOld.h:76
Ex03DetectorConstructionOld::fNbOfLayers
Int_t fNbOfLayers
The number of calorimeter layers.
Definition
Ex03DetectorConstructionOld.h:83
Ex03DetectorConstructionOld::~Ex03DetectorConstructionOld
virtual ~Ex03DetectorConstructionOld()
Definition
Ex03DetectorConstructionOld.cxx:63
Ex03DetectorConstructionOld::SetGapThickness
void SetGapThickness(Double_t value)
Definition
Ex03DetectorConstructionOld.cxx:429
Ex03DetectorConstructionOld::ConstructGeometry
void ConstructGeometry()
Definition
Ex03DetectorConstructionOld.cxx:256
Ex03DetectorConstructionOld::fGapMaterial
TString fGapMaterial
The gap material name.
Definition
Ex03DetectorConstructionOld.h:94
Ex03DetectorConstructionOld::GetAbsorberThickness
Double_t GetAbsorberThickness() const
Definition
Ex03DetectorConstructionOld.h:73
Ex03DetectorConstructionOld::ConstructMaterials
void ConstructMaterials()
Definition
Ex03DetectorConstructionOld.cxx:89
Ex03DetectorConstructionOld::GetNbOfLayers
Int_t GetNbOfLayers() const
Definition
Ex03DetectorConstructionOld.h:58
Ex03DetectorConstructionOld::fWorldSizeYZ
Double_t fWorldSizeYZ
The world size y,z component.
Definition
Ex03DetectorConstructionOld.h:85
Ex03DetectorConstructionOld::GetCalorThickness
Double_t GetCalorThickness() const
Definition
Ex03DetectorConstructionOld.h:70
Ex03DetectorConstructionOld::SetAbsorberThickness
void SetAbsorberThickness(Double_t value)
Definition
Ex03DetectorConstructionOld.cxx:420
Ex03DetectorConstructionOld::fCalorSizeYZ
Double_t fCalorSizeYZ
The calorimeter size y,z component.
Definition
Ex03DetectorConstructionOld.h:86
Ex03DetectorConstructionOld::SetCalorSizeYZ
void SetCalorSizeYZ(Double_t value)
Definition
Ex03DetectorConstructionOld.cxx:411
Ex03DetectorConstructionOld::fDefaultMaterial
TString fDefaultMaterial
The default material name.
Definition
Ex03DetectorConstructionOld.h:92
Ex03DetectorConstructionOld::Ex03DetectorConstructionOld
Ex03DetectorConstructionOld()
Definition
Ex03DetectorConstructionOld.cxx:37
Ex03DetectorConstructionOld::SetNbOfLayers
void SetNbOfLayers(Int_t value)
Definition
Ex03DetectorConstructionOld.cxx:373
Ex03DetectorConstructionOld::SetGapMaterial
void SetGapMaterial(const TString &materialName)
Definition
Ex03DetectorConstructionOld.cxx:402
Ex03DetectorConstructionOld::fAbsorberMaterial
TString fAbsorberMaterial
The absorber material name.
Definition
Ex03DetectorConstructionOld.h:93
Ex03DetectorConstructionOld::GetWorldSizeX
Double_t GetWorldSizeX() const
Definition
Ex03DetectorConstructionOld.h:61
Ex03DetectorConstructionOld::ComputeCalorParameters
void ComputeCalorParameters()
Definition
Ex03DetectorConstructionOld.cxx:73
Ex03DetectorConstructionOld::GetWorldSizeYZ
Double_t GetWorldSizeYZ() const
Definition
Ex03DetectorConstructionOld.h:64
Ex03DetectorConstructionOld::SetAbsorberMaterial
void SetAbsorberMaterial(const TString &materialName)
Definition
Ex03DetectorConstructionOld.cxx:392
Ex03DetectorConstructionOld::fWorldSizeX
Double_t fWorldSizeX
The world size x component.
Definition
Ex03DetectorConstructionOld.h:84
Ex03DetectorConstructionOld::fAbsorberThickness
Double_t fAbsorberThickness
The absorber thickness.
Definition
Ex03DetectorConstructionOld.h:89
Ex03DetectorConstructionOld::GetCalorSizeYZ
Double_t GetCalorSizeYZ() const
Definition
Ex03DetectorConstructionOld.h:67
Ex03DetectorConstructionOld::fCalorThickness
Double_t fCalorThickness
The calorimeter thickness.
Definition
Ex03DetectorConstructionOld.h:87
Ex03DetectorConstructionOld::SetDefaultMaterial
void SetDefaultMaterial(const TString &materialName)
Definition
Ex03DetectorConstructionOld.cxx:382
Ex03DetectorConstructionOld::fLayerThickness
Double_t fLayerThickness
The calorimeter layer thickness.
Definition
Ex03DetectorConstructionOld.h:88
Ex03DetectorConstructionOld::fGapThickness
Double_t fGapThickness
The gap thickness.
Definition
Ex03DetectorConstructionOld.h:90
TObject
Generated on
for VMC Examples by
1.17.0