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

Last change on this file since 1353 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 3.7 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.8 2009/04/21 15:35:45 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-01 $
29//
30//
31////////////////////////////////////////////////////////////////////////
32//
33// Class G4MPVEntry
34//
35// Class description:
36//
37// A G4MPVEntry is a MaterialPropertyVector Entry. 
38// One Material Property Vector contains many MPVEntries.
39
40// File:        G4MPVEntry.hh
41// Version:     1.0
42// Created:     1996-02-08 
43// Author:      Juliet Armstrong
44// Updated:     1999-10-29 add method and class descriptors
45//              1997-03-25 by Peter Gumplinger
46//              > cosmetics (only)
47// mail:        gum@triumf.ca
48//
49////////////////////////////////////////////////////////////////////////
50
51#ifndef G4MPVEntry_h
52#define G4MPVEntry_h 1
53
54/////////////
55// Includes
56/////////////
57
58#include "G4ios.hh"
59#include "globals.hh"
60
61/////////////////////
62// Class Definition
63/////////////////////
64
65class G4MPVEntry
66{
67  public: // Without description
68
69    //////////////
70    // Operators
71    //////////////
72
73    // Well defined semantics for these operators
74    // required by G4RWTPtrSortedVector
75    //
76    G4bool operator <(const G4MPVEntry &right) const; 
77    G4bool operator ==(const G4MPVEntry &right) const;
78    G4MPVEntry& operator =(const G4MPVEntry &right);
79
80    ///////////////////////////////
81    // Constructors and Destructor
82    ///////////////////////////////
83
84    G4MPVEntry(G4double aPhotonEnergy, G4double aPropertyValue); 
85    G4MPVEntry(const G4MPVEntry &right);
86   ~G4MPVEntry();
87
88    ////////////
89    // Methods
90    ////////////
91
92    G4double GetPhotonEnergy();
93    G4double GetProperty();
94 
95    //////////
96    // Tests
97    //////////
98
99    void DumpEntry();
100
101  private:
102
103    /////////////////////////
104    // Private Data members
105    /////////////////////////
106
107    G4double thePhotonEnergy;
108    G4double theProperty;
109};
110
111////////////////////
112// Inline methods
113////////////////////
114
115// GetPhotonEnergy
116// ---------------
117//
118
119inline 
120G4double G4MPVEntry::GetPhotonEnergy()
121{
122  return thePhotonEnergy;
123}
124
125// GetProperty
126// -----------
127//
128
129inline 
130G4double G4MPVEntry::GetProperty()
131{
132  return theProperty;
133}
134
135#endif /* G4MPVEntry_h */
Note: See TracBrowser for help on using the repository browser.