source: trunk/source/processes/hadronic/cross_sections/include/G4CrossSectionDataStore.hh @ 1034

Last change on this file since 1034 was 1007, checked in by garnier, 15 years ago

update to geant4.9.2

File size: 3.6 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// Class Description
27// This is the class to which cross section data sets may be registered.
28// An instance of it is contained in each hadronic process, allowing
29// the use of the AddDataSet() method to tailor the cross sections to
30// your application.
31// Class Description - End
32
33#ifndef G4CrossSectionDataStore_h
34#define G4CrossSectionDataStore_h 1
35
36#include "G4ParticleDefinition.hh"
37#include "G4DynamicParticle.hh"
38#include "G4Isotope.hh"
39#include "G4Element.hh"
40#include "G4Material.hh"
41#include "G4VCrossSectionDataSet.hh"
42
43class G4Nucleus;
44
45class G4CrossSectionDataStore
46{
47public:
48
49   G4CrossSectionDataStore() :
50      NDataSetList(0), verboseLevel(0)
51   {}
52
53   ~G4CrossSectionDataStore()
54   {}
55
56   G4double GetCrossSection(const G4DynamicParticle*, 
57                            const G4Element*, G4double aTemperature);
58
59   G4double GetCrossSection(const G4DynamicParticle*, 
60                            const G4Isotope*, G4double aTemperature);
61
62   G4double GetCrossSection(const G4DynamicParticle*, 
63                            G4double Z, G4double A, G4double aTemperature);
64
65   // to replace GetMicroscopicCrossSection
66   G4double GetCrossSection(const G4DynamicParticle*, const G4Material*);
67
68   std::pair<G4double/*Z*/, G4double/*A*/> 
69   SelectRandomIsotope(const G4DynamicParticle*, const G4Material*);
70
71   G4Element* SampleZandA(const G4DynamicParticle*, const G4Material*,
72                          G4Nucleus& target);
73
74   void AddDataSet(G4VCrossSectionDataSet*);
75
76   void BuildPhysicsTable(const G4ParticleDefinition&);
77
78   void DumpPhysicsTable(const G4ParticleDefinition&);
79
80   void SetVerboseLevel(G4int value)
81   {
82      verboseLevel = value;
83   }
84
85   G4int GetVerboseLevel()
86   {
87      return verboseLevel;
88   }
89
90private:
91
92
93   G4VCrossSectionDataSet* whichDataSetInCharge(const G4DynamicParticle*, 
94                            const G4Element*);
95
96   enum { NDataSetMax = 100 };
97   G4VCrossSectionDataSet* DataSetList[NDataSetMax];
98   G4int NDataSetList;
99   G4int verboseLevel;
100};
101
102#endif
Note: See TracBrowser for help on using the repository browser.