VMC Examples Version 6.6
Loading...
Searching...
No Matches
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
26namespace VMC
27{
28namespace 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
38{
39 public:
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; }
63
64 private:
65 void PrintParameters();
66
67 // data members
72 Double_t fWorldSizeX;
73 Double_t fWorldSizeYZ;
74 Double_t fMaxStepSize;
76
77 ClassDef(DetectorConstruction, 1) // DetectorConstruction
78};
79
80// inline functions
81
83 Bool_t geometryInitialized)
84{
85 fGeometryInitialized = geometryInitialized;
86}
87
88} // namespace Monopole
89} // namespace VMC
90
91#endif // DETECTOR_CONSTRUCTION_H
The detector construction (via TGeo )
void SetAbsorberMaterial(const TString &name)
void SetGeometryInitialized(Bool_t geometryInitialized)