VMC Examples Version 6.6
Loading...
Searching...
No Matches
Ex02DetectorConstructionOld.h
Go to the documentation of this file.
1#ifndef EX02_DETECTOR_CONSTRUCTION_OLD_H
2#define EX02_DETECTOR_CONSTRUCTION_OLD_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 Ex02DetectorConstructionOld.h
14/// \brief Definition of the Ex02DetectorConstructionOld 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 old detector construction (via VMC functions)
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(Ex02DetectorConstructionOld, 1) // Ex02DetectorConstructionOld
64};
65
66#endif // EX02_DETECTOR_CONSTRUCTION_OLD_H
The old detector construction (via VMC functions)
Int_t fImedXe
The Xenon gas medium Id.
Double_t fWorldLength
Full length of the world volume.
void SetChamberMaterial(const TString &name)
Double_t fTrackerLength
Full length of Tracker.
Double_t fChamberWidth
Width of the chambers.
Int_t fNofChambers
Nb of chambers in the tracker region.
Double_t fTargetLength
Full length of Target.
void SetTargetMaterial(const TString &name)
Double_t fChamberSpacing
Distance between chambers.