source: trunk/source/global/management/include/G4PhysicsOrderedFreeVector.hh@ 1259

Last change on this file since 1259 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

File size: 4.0 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: G4PhysicsOrderedFreeVector.hh,v 1.12 2009/06/25 10:05:26 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-03 $
29//
30////////////////////////////////////////////////////////////////////////
31// PhysicsOrderedFreeVector Class Definition
32////////////////////////////////////////////////////////////////////////
33//
34// File: G4PhysicsOrderedFreeVector.hh
35// Created: 1996-08-13
36// Author: Juliet Armstrong
37// Updated: 1997-03-25 by Peter Gumplinger
38// > cosmetics (only)
39// 2000-11-11 by H.Kurashige
40// > use STL vector for dataVector and binVector
41// mail: gum@triumf.ca
42//
43// Class description:
44//
45// A physics ordered free vector inherits from G4PhysicsVector which
46// has values of energy-loss, cross-section, and other physics values
47// of a particle in matter in a given range of the energy, momentum,
48// etc.). In addition, the ordered free vector provides a method for
49// the user to insert energy/value pairs in sequence. Methods to
50// Retrieve the Max and Min energies and values from the vector are
51// also provided.
52
53////////////////////////////////////////////////////////////////////////
54
55#ifndef G4PhysicsOrderedFreeVector_h
56#define G4PhysicsOrderedFreeVector_h 1
57
58/////////////
59// Includes
60/////////////
61
62#include "G4PhysicsVector.hh"
63
64/////////////////////
65// Class Definition
66/////////////////////
67
68class G4PhysicsOrderedFreeVector : public G4PhysicsVector
69{
70
71 public: // with description
72
73 ////////////////////////////////
74 // Constructors and Destructor
75 ////////////////////////////////
76
77 G4PhysicsOrderedFreeVector();
78 G4PhysicsOrderedFreeVector(G4double* Energies,
79 G4double* Values,
80 size_t VectorLength);
81
82 ~G4PhysicsOrderedFreeVector();
83
84 ////////////
85 // Methods
86 ////////////
87
88 void InsertValues(G4double energy, G4double value);
89
90 G4double GetLowEdgeEnergy(size_t binNumber) const;
91
92 G4double GetMaxValue();
93
94 G4double GetMinValue();
95
96 G4double GetEnergy(G4double aValue);
97
98 G4double GetMaxLowEdgeEnergy();
99
100 G4double GetMinLowEdgeEnergy();
101
102 void DumpValues();
103
104 private:
105
106 size_t FindBinLocation(G4double theEnergy) const;
107
108 size_t FindValueBinLocation(G4double aValue);
109
110 G4double LinearInterpolationOfEnergy(G4double aValue, size_t theLocBin);
111};
112
113#include "G4PhysicsOrderedFreeVector.icc"
114
115#endif /* G4PhysicsOrderedFreeVector_h */
116
117
118
119
120
121
Note: See TracBrowser for help on using the repository browser.