[822] | 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 | // |
---|
[1058] | 27 | // $Id: G4MPVEntry.hh,v 1.8 2009/04/21 15:35:45 gcosmo Exp $ |
---|
[1196] | 28 | // GEANT4 tag $Name: materials-V09-02-18 $ |
---|
[822] | 29 | // |
---|
| 30 | // |
---|
| 31 | //////////////////////////////////////////////////////////////////////// |
---|
| 32 | // |
---|
[1058] | 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 |
---|
[822] | 44 | // Updated: 1999-10-29 add method and class descriptors |
---|
| 45 | // 1997-03-25 by Peter Gumplinger |
---|
[1058] | 46 | // > cosmetics (only) |
---|
[822] | 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 | |
---|
[1058] | 65 | class G4MPVEntry |
---|
| 66 | { |
---|
| 67 | public: // Without description |
---|
[822] | 68 | |
---|
[1058] | 69 | ////////////// |
---|
| 70 | // Operators |
---|
| 71 | ////////////// |
---|
[822] | 72 | |
---|
[1058] | 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); |
---|
[822] | 79 | |
---|
[1058] | 80 | /////////////////////////////// |
---|
| 81 | // Constructors and Destructor |
---|
| 82 | /////////////////////////////// |
---|
[822] | 83 | |
---|
[1058] | 84 | G4MPVEntry(G4double aPhotonEnergy, G4double aPropertyValue); |
---|
| 85 | G4MPVEntry(const G4MPVEntry &right); |
---|
| 86 | ~G4MPVEntry(); |
---|
[822] | 87 | |
---|
[1058] | 88 | //////////// |
---|
| 89 | // Methods |
---|
| 90 | //////////// |
---|
[822] | 91 | |
---|
[1058] | 92 | G4double GetPhotonEnergy(); |
---|
| 93 | G4double GetProperty(); |
---|
| 94 | |
---|
| 95 | ////////// |
---|
| 96 | // Tests |
---|
| 97 | ////////// |
---|
[822] | 98 | |
---|
[1058] | 99 | void DumpEntry(); |
---|
[822] | 100 | |
---|
[1058] | 101 | private: |
---|
[822] | 102 | |
---|
[1058] | 103 | ///////////////////////// |
---|
| 104 | // Private Data members |
---|
| 105 | ///////////////////////// |
---|
[822] | 106 | |
---|
[1058] | 107 | G4double thePhotonEnergy; |
---|
| 108 | G4double theProperty; |
---|
[822] | 109 | }; |
---|
| 110 | |
---|
| 111 | //////////////////// |
---|
| 112 | // Inline methods |
---|
| 113 | //////////////////// |
---|
| 114 | |
---|
[850] | 115 | // GetPhotonEnergy |
---|
| 116 | // --------------- |
---|
[822] | 117 | // |
---|
| 118 | |
---|
| 119 | inline |
---|
[850] | 120 | G4double G4MPVEntry::GetPhotonEnergy() |
---|
[822] | 121 | { |
---|
[1058] | 122 | return thePhotonEnergy; |
---|
[822] | 123 | } |
---|
| 124 | |
---|
| 125 | // GetProperty |
---|
| 126 | // ----------- |
---|
| 127 | // |
---|
| 128 | |
---|
| 129 | inline |
---|
| 130 | G4double G4MPVEntry::GetProperty() |
---|
| 131 | { |
---|
[1058] | 132 | return theProperty; |
---|
[822] | 133 | } |
---|
| 134 | |
---|
| 135 | #endif /* G4MPVEntry_h */ |
---|