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

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

update processes

File size: 3.7 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.15 2008/08/05 22:43:26 tkoi Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30// 080721 Create adjust_final_state method by T. Koi 
31// 080801 Introduce theNDLDataA,Z which has A and Z of NDL data by T. Koi
32//
33#ifndef G4NeutronHPFinalState_h
34#define G4NeutronHPFinalState_h
35
36#include "G4Material.hh"
37#include "G4FastVector.hh"
38#include "G4HadFinalState.hh"
39#include "G4NeutronHPNames.hh"
40#include "G4NeutronHPVector.hh"
41#include "G4HadProjectile.hh"
42
43class G4NeutronHPFinalState
44{
45public:
46
47  G4NeutronHPFinalState()
48  { 
49    hasFSData = true; 
50    hasXsec = true;
51    hasAnyData = true;
52    theBaseZ = 0;
53    theBaseA = 0;
54
55    theNDLDataZ = 0;
56    theNDLDataA = 0;
57
58     adjustResult = true;
59     if ( getenv( "G4NEUTRONHP_DO_NOT_ADJUST_FINAL_STATE" ) ) adjustResult = false;
60
61  };
62 
63  virtual ~G4NeutronHPFinalState(){};
64
65  virtual void Init (G4double A, G4double Z, G4String & dirName, G4String & aFSType) = 0;
66  virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & ) 
67  {
68    throw G4HadronicException(__FILE__, __LINE__, "G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack) needs implementation");
69    return 0;
70  };
71 
72  // of course this would better be Done templating G4NeutronHPChannel...,
73  // but due to peculiarities of the DEC compiler, this way it
74  // is easier to maintain.
75  virtual G4NeutronHPFinalState * New() = 0;
76 
77  G4bool HasXsec() {return hasXsec;};
78  G4bool HasFSData() {return hasFSData;};
79  G4bool HasAnyData() {return hasAnyData;};
80 
81  virtual G4double GetXsec(G4double ) { return 0; };
82  virtual G4NeutronHPVector * GetXsec() { return 0; };
83 
84  void     SetA_Z(G4double anA, G4double aZ) {theBaseA = anA; theBaseZ = aZ; };
85  G4double GetZ() { return theBaseZ; };
86  G4double GetN() { return theBaseA; };
87 
88  protected:
89 
90  G4bool hasXsec;
91  G4bool hasFSData;
92  G4bool hasAnyData;
93  G4NeutronHPNames theNames;
94 
95  G4HadFinalState theResult;
96 
97  G4double theBaseA;
98  G4double theBaseZ;
99
100
101//080721
102   protected:
103      void adjust_final_state ( G4LorentzVector );
104      G4int theNDLDataZ;
105      G4int theNDLDataA;
106
107   private:
108      G4bool adjustResult;
109
110
111};
112#endif
Note: See TracBrowser for help on using the repository browser.