VGM Version 5.3
Loading...
Searching...
No Matches
Medium.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The Geant4GM package of the Virtual Geometry Model
5// Copyright (C) 2007, Ivana Hrivnacova
6// All rights reserved.
7//
8// For the licensing terms see vgm/LICENSE.
9// Contact: ivana@ipno.in2p3.fr
10// -----------------------------------------------------------------------
11
13//
21
22#ifndef GEANT4_GM_MEDIUM_H
23#define GEANT4_GM_MEDIUM_H
24
26
27#include "globals.hh"
28
29#include <string>
30
31class G4Material;
32
33namespace Geant4GM {
34
36{
37 public:
38 Medium(const std::string& name, int mediumId, VGM::IMaterial* material,
39 int nofParameters, double* parameters);
40 virtual ~Medium();
41
42 // methods
43 virtual std::string Name() const;
44
45 virtual int Id() const;
46 virtual double Parameter(int i) const;
47
48 protected:
49 Medium();
50 Medium(const Medium& rhs);
51
52 private:
53 void CheckIndex(int iel) const;
54
55 // data members
56 static const int fgkParamSize;
57
58 G4String fName;
59 G4Material* fMaterial;
60 G4int fId;
61 G4double* fParameters;
62};
63
64} // namespace Geant4GM
65
66#endif // GEANT4_GM_MEDIUM_H
The ABC for tracking medium.
Definition VMedium.h:35
The VGM implementation of interface to tracking medium.
Definition Medium.h:36
virtual ~Medium()
Definition Medium.cxx:70
virtual int Id() const
Return its unique identifier.
Definition Medium.cxx:98
virtual std::string Name() const
Return its name.
Definition Medium.cxx:95
virtual double Parameter(int i) const
Return the i-th parameter.
Definition Medium.cxx:105
The VGM interface to materials.
Definition IMaterial.h:44
VGM implementation for Geant4.
Definition Element.h:29