source: trunk/source/processes/hadronic/models/neutron_hp/include/G4NeutronHPFinalState.hh@ 893

Last change on this file since 893 was 819, checked in by garnier, 17 years ago

import all except CVS

File size: 3.3 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: G4NeutronHPFinalState.hh,v 1.13 2007/06/06 12:45:13 ahoward Exp $
28// GEANT4 tag $Name: $
29//
30#ifndef G4NeutronHPFinalState_h
31#define G4NeutronHPFinalState_h
32
33#include "G4Material.hh"
34#include "G4FastVector.hh"
35#include "G4HadFinalState.hh"
36#include "G4NeutronHPNames.hh"
37#include "G4NeutronHPVector.hh"
38#include "G4HadProjectile.hh"
39
40class G4NeutronHPFinalState
41{
42public:
43
44 G4NeutronHPFinalState()
45 {
46 hasFSData = true;
47 hasXsec = true;
48 hasAnyData = true;
49 theBaseZ = 0;
50 theBaseA = 0;
51 };
52
53 virtual ~G4NeutronHPFinalState(){};
54
55 virtual void Init (G4double A, G4double Z, G4String & dirName, G4String & aFSType) = 0;
56 virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & )
57 {
58 throw G4HadronicException(__FILE__, __LINE__, "G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack) needs implementation");
59 return 0;
60 }
61
62 // of course this would better be Done templating G4NeutronHPChannel...,
63 // but due to peculiarities of the DEC compiler, this way it
64 // is easier to maintain.
65 virtual G4NeutronHPFinalState * New() = 0;
66
67 G4bool HasXsec() {return hasXsec;}
68 G4bool HasFSData() {return hasFSData;}
69 G4bool HasAnyData() {return hasAnyData;}
70
71 virtual G4double GetXsec(G4double ) { return 0; }
72 virtual G4NeutronHPVector * GetXsec() { return 0; }
73
74 void SetA_Z(G4double anA, G4double aZ) {theBaseA = anA; theBaseZ = aZ; }
75 G4double GetZ() { return theBaseZ; }
76 G4double GetN() { return theBaseA; }
77
78 protected:
79
80 G4bool hasXsec;
81 G4bool hasFSData;
82 G4bool hasAnyData;
83 G4NeutronHPNames theNames;
84
85 G4HadFinalState theResult;
86
87 G4double theBaseA;
88 G4double theBaseZ;
89
90 private:
91
92};
93#endif
Note: See TracBrowser for help on using the repository browser.