source: trunk/source/processes/hadronic/models/neutron_hp/include/G4NeutronHPData.hh @ 1340

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

update ti head

File size: 3.2 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: G4NeutronHPData.hh,v 1.9 2006/06/29 20:47:11 gunter Exp $
28// GEANT4 tag $Name: geant4-09-03-ref-09 $
29//
30 // Hadronic Process: Very Low Energy Neutron X-Sections
31 // original by H.P. Wellisch, TRIUMF, 14-Feb-97
32 // Has the Cross-section data for all materials.
33 
34#ifndef G4NeutronHPData_h
35#define G4NeutronHPData_h 1
36#include "globals.hh"
37#include "G4Element.hh"
38#include "G4NeutronHPElasticData.hh"
39#include "G4NeutronHPInelasticData.hh"
40#include "G4NeutronHPFissionData.hh"
41#include "G4NeutronHPCaptureData.hh"
42#include "G4NeutronHPElementData.hh"
43
44class G4NeutronHPData
45{
46public:
47
48  G4NeutronHPData();
49
50  ~G4NeutronHPData();
51
52  inline G4PhysicsVector * MakePhysicsVector(G4Element * thE, G4NeutronHPFissionData * theP)
53  {
54     return DoPhysicsVector(theData[thE->GetIndex()].GetData(theP));
55  }
56  inline G4PhysicsVector * MakePhysicsVector(G4Element * thE, G4NeutronHPCaptureData * theP)
57  {
58     return DoPhysicsVector(theData[thE->GetIndex()].GetData(theP));
59  }
60  inline G4PhysicsVector * MakePhysicsVector(G4Element * thE, G4NeutronHPElasticData * theP)
61  {
62     return DoPhysicsVector(theData[thE->GetIndex()].GetData(theP));
63  }
64  inline G4PhysicsVector * MakePhysicsVector(G4Element * thE, G4NeutronHPInelasticData * theP)
65  {
66//     G4cout << "entered G4NeutronHPData::MakePhysicsVector!!!"<<G4endl;
67//     G4cout << "thE->GetIndex()="<<thE->GetIndex()<<G4endl;
68     return DoPhysicsVector(theData[thE->GetIndex()].GetData(theP));
69  }
70
71  G4PhysicsVector * DoPhysicsVector(G4NeutronHPVector * theVector);
72 
73  static G4NeutronHPData * Instance();
74 
75private:
76
77  G4NeutronHPElementData * theData;
78  G4int numEle;
79 
80};
81
82#endif
Note: See TracBrowser for help on using the repository browser.