source: trunk/source/materials/include/G4MPVEntry.hh@ 1012

Last change on this file since 1012 was 986, checked in by garnier, 17 years ago

fichiers manquants

File size: 3.9 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// $Id: G4MPVEntry.hh,v 1.7 2008/06/05 23:36:56 gum Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//
31////////////////////////////////////////////////////////////////////////
32// G4MPVEntry Class Definition
33////////////////////////////////////////////////////////////////////////
34//
35// File: G4MPVEntry.hh
36// Description: A G4MPVEntry is an MaterialPropertyVector Entry.
37// One Material Property Vector contains many MPVEntries
38// Version: 1.0
39// Created: 1996-02-08
40// Author: Juliet Armstrong
41// Updated: 1999-10-29 add method and class descriptors
42// 1997-03-25 by Peter Gumplinger
43// > cosmetics (only)
44// mail: gum@triumf.ca
45//
46////////////////////////////////////////////////////////////////////////
47
48#ifndef G4MPVEntry_h
49#define G4MPVEntry_h 1
50
51/////////////
52// Includes
53/////////////
54
55#include "G4ios.hh"
56#include "globals.hh"
57
58// Class Description:
59// A G4MPVEntry is an MaterialPropertyVector Entry.
60// One Material Property Vector contains many MPVEntries.
61// Class Description - End:
62
63/////////////////////
64// Class Definition
65/////////////////////
66
67class G4MPVEntry {
68
69public: // Without description
70
71 //////////////
72 // Operators
73 //////////////G4MPVEntry.hh
74
75 // Well defined semantics for these operators
76 // required by G4RWTPtrSortedVector
77
78 G4bool operator <(const G4MPVEntry &right) const;
79 G4bool operator ==(const G4MPVEntry &right) const;
80 G4MPVEntry& operator =(const G4MPVEntry &right);
81
82 ///////////////////////////////
83 // Constructor and Destructor
84 ///////////////////////////////
85
86 G4MPVEntry(G4double aPhotonEnergy, G4double aPropertyValue);
87
88 G4MPVEntry(const G4MPVEntry &right);
89
90 ~G4MPVEntry();
91
92 ////////////
93 // Methods
94 ////////////
95
96 G4double GetPhotonEnergy();
97
98 G4double GetProperty();
99
100 //////////
101 // Tests
102 //////////
103
104 void DumpEntry();
105
106private:
107
108 /////////////////////////
109 // Private Data members
110 /////////////////////////
111
112 G4double thePhotonEnergy;
113 G4double theProperty;
114};
115
116////////////////////
117// Inline methods
118////////////////////
119
120// GetPhotonEnergy
121// ---------------
122//
123
124inline
125G4double G4MPVEntry::GetPhotonEnergy()
126{
127 return thePhotonEnergy;
128}
129
130// GetProperty
131// -----------
132//
133
134inline
135G4double G4MPVEntry::GetProperty()
136{
137 return theProperty;
138}
139
140#endif /* G4MPVEntry_h */
Note: See TracBrowser for help on using the repository browser.