VMC Examples Version 6.6
Loading...
Searching...
No Matches
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
35{
36 public:
39
40 public:
41 void ConstructMaterials();
42 void ConstructGeometry();
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
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
The old detector construction (via VMC functions)
Int_t fNbOfLayers
The number of calorimeter layers.
TString fGapMaterial
The gap material name.
Double_t fWorldSizeYZ
The world size y,z component.
Double_t fCalorSizeYZ
The calorimeter size y,z component.
TString fDefaultMaterial
The default material name.
void SetGapMaterial(const TString &materialName)
TString fAbsorberMaterial
The absorber material name.
void SetAbsorberMaterial(const TString &materialName)
Double_t fWorldSizeX
The world size x component.
Double_t fAbsorberThickness
The absorber thickness.
Double_t fCalorThickness
The calorimeter thickness.
void SetDefaultMaterial(const TString &materialName)
Double_t fLayerThickness
The calorimeter layer thickness.
Double_t fGapThickness
The gap thickness.