VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex02DetectorConstruction.h
Go to the documentation of this file.
1#ifndef EX02_DETECTOR_CONSTRUCTION_H
2#define EX02_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 Ex02DetectorConstruction.h
14/// \brief Definition of the Ex02DetectorConstruction class
15///
16/// Geant4 ExampleN02 adapted to Virtual Monte Carlo \n
17/// Id: ExN02DetectorConstruction.hh,v 1.7 2002/01/09 17:24:09 ranjard Exp \n
18/// GEANT4 tag Name: geant4-04-00-patch-02
19///
20/// \author I. Hrivnacova; IPN, Orsay
21
22#include <TObject.h>
23#include <TString.h>
24
25/// \ingroup E02
26/// \brief The detector construction (via TGeo )
27///
28/// \date 21/04/2002
29/// \author I. Hrivnacova; IPN, Orsay
30
32{
33 public:
36
37 public:
38 void ConstructMaterials();
39 void ConstructGeometry();
40
41 // set methods
42 void SetTargetMaterial(const TString& name);
43 void SetChamberMaterial(const TString& name);
44
45 /// \return The tracker full length
46 Double_t GetTrackerFullLength() { return fTrackerLength; };
47 /// \return The target full length
48 Double_t GetTargetFullLength() { return fTargetLength; };
49 /// \return The world full length
50 Double_t GetWorldFullLength() { return fWorldLength; };
51
52 private:
53 Double_t fWorldLength; ///< Full length of the world volume
54 Double_t fTargetLength; ///< Full length of Target
55 Double_t fTrackerLength; ///< Full length of Tracker
56 Int_t fNofChambers; ///< Nb of chambers in the tracker region
57 Double_t fChamberWidth; ///< Width of the chambers
58 Double_t fChamberSpacing; ///< Distance between chambers
59 Int_t fImedAir; ///< The Air medium Id
60 Int_t fImedPb; ///< The Lead medium Id
61 Int_t fImedXe; ///< The Xenon gas medium Id
62
63 ClassDef(Ex02DetectorConstruction, 1) // Ex02DetectorConstruction
64};
65
66#endif // EX02_DETECTOR_CONSTRUCTION_H
The detector construction (via TGeo )
void SetTargetMaterial(const TString &name)
Int_t fImedXe
The Xenon gas medium Id.
Double_t fChamberSpacing
Distance between chambers.
void SetChamberMaterial(const TString &name)
Double_t fChamberWidth
Width of the chambers.
Double_t fTrackerLength
Full length of Tracker.
Double_t fTargetLength
Full length of Target.
Int_t fImedPb
The Lead medium Id.
Int_t fImedAir
The Air medium Id.
Double_t fWorldLength
Full length of the world volume.
Int_t fNofChambers
Nb of chambers in the tracker region.