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

Last change on this file since 838 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 3.5 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
43
44class G4CrossSectionDataStore
45{
46public:
47
48   G4CrossSectionDataStore() :
49      NDataSetList(0), verboseLevel(0)
50   {}
51
52   ~G4CrossSectionDataStore()
53   {}
54
55   G4double GetCrossSection(const G4DynamicParticle*, 
56                            const G4Element*, G4double aTemperature);
57
58   G4double GetCrossSection(const G4DynamicParticle*, 
59                            const G4Isotope*, G4double aTemperature);
60
61   G4double GetCrossSection(const G4DynamicParticle*, 
62                            G4double Z, G4double A, G4double aTemperature);
63
64   // to replace GetMicroscopicCrossSection
65   G4double GetCrossSection(const G4DynamicParticle*, const G4Material*);
66
67   std::pair<G4double/*Z*/, G4double/*A*/> 
68   SelectRandomIsotope(const G4DynamicParticle*, const G4Material*);
69
70   void AddDataSet(G4VCrossSectionDataSet*);
71
72   void BuildPhysicsTable(const G4ParticleDefinition&);
73
74   void DumpPhysicsTable(const G4ParticleDefinition&);
75
76   void SetVerboseLevel(G4int value)
77   {
78      verboseLevel = value;
79   }
80
81   G4int GetVerboseLevel()
82   {
83      return verboseLevel;
84   }
85
86private:
87
88
89   G4VCrossSectionDataSet* whichDataSetInCharge(const G4DynamicParticle*, 
90                            const G4Element*);
91
92   enum { NDataSetMax = 100 };
93   G4VCrossSectionDataSet* DataSetList[NDataSetMax];
94   G4int NDataSetList;
95   G4int verboseLevel;
96};
97
98#endif
Note: See TracBrowser for help on using the repository browser.