Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4Medium.h
Go to the documentation of this file.
1#ifndef TG4_MEDIUM_H
2#define TG4_MEDIUM_H
3
4//------------------------------------------------
5// The Geant4 Virtual Monte Carlo package
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
17
18#include "globals.hh"
19
20class G4UserLimits;
21class G4Material;
22
27
29{
30 public:
31 TG4Medium(G4int id);
32 ~TG4Medium();
33
34 // methods
35 void Print() const;
36
37 // set methods
38 void SetName(const G4String& name);
39 void SetMaterial(G4Material* material);
40 void SetLimits(G4UserLimits* limits);
41 void SetIfield(G4int ifield);
42
43 // get methods
44 G4int GetID() const;
45 G4String GetName() const;
46 G4Material* GetMaterial() const;
47 G4UserLimits* GetLimits() const;
48 G4int GetIfield() const;
49
50 private:
54 TG4Medium(const TG4Medium& right);
57
58 // static data members
59 static const G4String fgkUndefinedName;
60 static const G4int fgkDefaultIfield;
61
62 // data members
63 G4int fID;
64 G4String fName;
65 G4Material* fMaterial;
67
74 G4int fIfield;
75};
76
77// inline functions
78
79inline void TG4Medium::SetIfield(G4int ifield)
80{
81 fIfield = ifield;
82}
83
84inline G4int TG4Medium::GetID() const
85{
86 return fID;
87}
88
89inline G4String TG4Medium::GetName() const
90{
91 return fName;
92}
93
94inline G4Material* TG4Medium::GetMaterial() const
95{
96 return fMaterial;
97}
98
100{
101 return fLimits;
102}
103
104inline G4int TG4Medium::GetIfield() const
105{
106 return fIfield;
107}
108
109#endif // TG4_MEDIUM_H
Helper class to keep medium data.
Definition TG4Medium.h:29
TG4Medium(const TG4Medium &right)
Not implemented.
G4UserLimits * fLimits
user limits associated with this medium
Definition TG4Medium.h:66
static const G4int fgkDefaultIfield
the default ifield value
Definition TG4Medium.h:60
static const G4String fgkUndefinedName
the default (undefined) name
Definition TG4Medium.h:59
G4UserLimits * GetLimits() const
Definition TG4Medium.h:99
G4Material * fMaterial
material associated with this medium
Definition TG4Medium.h:65
G4Material * GetMaterial() const
Definition TG4Medium.h:94
G4int GetIfield() const
Definition TG4Medium.h:104
G4int GetID() const
Definition TG4Medium.h:84
void Print() const
Definition TG4Medium.cxx:44
G4int fID
medium ID
Definition TG4Medium.h:63
void SetLimits(G4UserLimits *limits)
Definition TG4Medium.cxx:83
void SetIfield(G4int ifield)
Definition TG4Medium.h:79
G4String GetName() const
Definition TG4Medium.h:89
TG4Medium & operator=(const TG4Medium &right)
Not implemented.
G4String fName
medium name
Definition TG4Medium.h:64
void SetMaterial(G4Material *material)
Definition TG4Medium.cxx:68
TG4Medium()
Not implemented.
void SetName(const G4String &name)
Definition TG4Medium.cxx:55
G4int fIfield
Definition TG4Medium.h:74