Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ParticleHPManager.hh
Go to the documentation of this file.
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 // P. Arce, June-2014 Conversion neutron_hp to particle_hp
28 //
29 #ifndef G4ParticleHPManager_h
30 #define G4ParticleHPManager_h 1
31 
32 // Class Description
33 // Manager of NeutronHP
34 // Class Description - End
35 
36 // 121031 First implementation done by T. Koi (SLAC/PPA)
37 //
38 #include <map>
39 #include <vector>
40 #include "globals.hh"
41 
43 
48 class G4ParticleHPVector;
49 class G4PhysicsTable;
50 struct E_isoAng;
51 struct E_P_E_isoAng;
52 
54 {
55  public:
57  if ( instance == NULL) instance = new G4ParticleHPManager();
58  return instance;
59  };
60 
61  private:
65  //static G4ThreadLocal G4ParticleHPManager* instance;
66  static G4ParticleHPManager* instance;
67 
68  public:
71  //void CloseReactionWhiteBoard(){delete RWB; RWB=NULL;};
73 
74  void GetDataStream( G4String , std::istringstream& iss );
75  void GetDataStream2( G4String , std::istringstream& iss );
76  void SetVerboseLevel( G4int i );
77  G4int GetVerboseLevel() {return verboseLevel; };
78 
79  void DumpDataSource();
80 
81  G4bool GetUseOnlyPhotoEvaporation() { return USE_ONLY_PHOTONEVAPORATION; };
82  void SetUseOnlyPhotoEvaporation( G4bool val ) { USE_ONLY_PHOTONEVAPORATION = val; };
83  G4bool GetSkipMissingIsotopes() { return SKIP_MISSING_ISOTOPES; };
84  G4bool GetNeglectDoppler() { return NEGLECT_DOPPLER; };
85  G4bool GetDoNotAdjustFinalState() { return DO_NOT_ADJUST_FINAL_STATE; };
86  G4bool GetProduceFissionFragments() { return PRODUCE_FISSION_FRAGMENTS; };
87 
88  void SetSkipMissingIsotopes( G4bool val ) { SKIP_MISSING_ISOTOPES = val; };
89  void SetNeglectDoppler( G4bool val ) { NEGLECT_DOPPLER = val; };
90  void SetDoNotAdjustFinalState( G4bool val ) { DO_NOT_ADJUST_FINAL_STATE = val; };
91  void SetProduceFissionFragments( G4bool val ) { PRODUCE_FISSION_FRAGMENTS = val; };
92 
93  void RegisterElasticCrossSections( G4PhysicsTable* val ){ theElasticCrossSections = val; };
94  G4PhysicsTable* GetElasticCrossSections(){ return theElasticCrossSections; };
95  void RegisterCaptureCrossSections( G4PhysicsTable* val ){ theCaptureCrossSections = val; };
96  G4PhysicsTable* GetCaptureCrossSections(){ return theCaptureCrossSections; };
99  void RegisterFissionCrossSections( G4PhysicsTable* val ){ theFissionCrossSections = val; };
100  G4PhysicsTable* GetFissionCrossSections(){ return theFissionCrossSections; };
101 
102  std::vector<G4ParticleHPChannel*>* GetElasticFinalStates() { return theElasticFSs; };
103  void RegisterElasticFinalStates( std::vector<G4ParticleHPChannel*>* val ) { theElasticFSs = val; };
104  std::vector<G4ParticleHPChannelList*>* GetInelasticFinalStates( const G4ParticleDefinition* );
105  void RegisterInelasticFinalStates( const G4ParticleDefinition* , std::vector<G4ParticleHPChannelList*>* );
106  std::vector<G4ParticleHPChannel*>* GetCaptureFinalStates() { return theCaptureFSs; };
107  void RegisterCaptureFinalStates( std::vector<G4ParticleHPChannel*>* val ) { theCaptureFSs = val; };
108  std::vector<G4ParticleHPChannel*>* GetFissionFinalStates() { return theFissionFSs; };
109  void RegisterFissionFinalStates( std::vector<G4ParticleHPChannel*>* val ) { theFissionFSs = val; };
110 
111  std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* GetThermalScatteringCoherentCrossSections() { return theTSCoherentCrossSections; };
112  void RegisterThermalScatteringCoherentCrossSections( std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* val ) { theTSCoherentCrossSections = val; };
113  std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* GetThermalScatteringIncoherentCrossSections() { return theTSIncoherentCrossSections; };
114  void RegisterThermalScatteringIncoherentCrossSections( std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* val ) { theTSIncoherentCrossSections = val; };
115  std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* GetThermalScatteringInelasticCrossSections() { return theTSInelasticCrossSections; };
116  void RegisterThermalScatteringInelasticCrossSections( std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* val ) { theTSInelasticCrossSections = val; };
117 
118  std::map < G4int , std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >* >* GetThermalScatteringCoherentFinalStates(){ return theTSCoherentFinalStates; };
119  void RegisterThermalScatteringCoherentFinalStates( std::map < G4int , std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >* >* val ) { theTSCoherentFinalStates = val; };
120  std::map < G4int , std::map < G4double , std::vector < E_isoAng* >* >* >* GetThermalScatteringIncoherentFinalStates(){ return theTSIncoherentFinalStates; };
121  void RegisterThermalScatteringIncoherentFinalStates( std::map < G4int , std::map < G4double , std::vector < E_isoAng* >* >* >* val ) { theTSIncoherentFinalStates = val; };
122  std::map < G4int , std::map < G4double , std::vector < E_P_E_isoAng* >* >* >* GetThermalScatteringInelasticFinalStates(){ return theTSInelasticFinalStates; };
123  void RegisterThermalScatteringInelasticFinalStates( std::map < G4int , std::map < G4double , std::vector < E_P_E_isoAng* >* >* >* val ) { theTSInelasticFinalStates = val; };
124 
125 
126  private:
127  void register_data_file( G4String , G4String );
128  std::map<G4String,G4String> mDataEvaluation;
129  /*G4ParticleHPReactionWhiteBoard* RWB;*/
130 
131  G4int verboseLevel;
132 
133  G4ParticleHPMessenger* messenger;
134  G4bool USE_ONLY_PHOTONEVAPORATION;
135  G4bool SKIP_MISSING_ISOTOPES;
136  G4bool NEGLECT_DOPPLER;
137  G4bool DO_NOT_ADJUST_FINAL_STATE;
138  G4bool PRODUCE_FISSION_FRAGMENTS;
139 
140  G4PhysicsTable* theElasticCrossSections;
141  G4PhysicsTable* theCaptureCrossSections;
142  std::map< const G4ParticleDefinition* , G4PhysicsTable* > theInelasticCrossSections;
143  G4PhysicsTable* theFissionCrossSections;
144 
145  std::vector<G4ParticleHPChannel*>* theElasticFSs;
146  std::map< const G4ParticleDefinition* , std::vector<G4ParticleHPChannelList*>* > theInelasticFSs;
147  std::vector<G4ParticleHPChannel*>* theCaptureFSs;
148  std::vector<G4ParticleHPChannel*>* theFissionFSs;
149 
150  std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* theTSCoherentCrossSections;
151  std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* theTSIncoherentCrossSections;
152  std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* theTSInelasticCrossSections;
153 
154  std::map< G4int , std::map< G4double , std::vector< std::pair< G4double , G4double >* >* >* >* theTSCoherentFinalStates;
155  std::map< G4int , std::map< G4double , std::vector< E_isoAng* >* >* >* theTSIncoherentFinalStates;
156  std::map< G4int , std::map< G4double , std::vector< E_P_E_isoAng* >* >* >* theTSInelasticFinalStates;
157 
158 };
159 #endif
static G4ParticleHPManager * GetInstance()
void RegisterInelasticCrossSections(const G4ParticleDefinition *, G4PhysicsTable *)
void RegisterElasticFinalStates(std::vector< G4ParticleHPChannel * > *val)
std::vector< G4ParticleHPChannel * > * GetCaptureFinalStates()
void RegisterThermalScatteringIncoherentCrossSections(std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > *val)
void RegisterFissionCrossSections(G4PhysicsTable *val)
void RegisterCaptureCrossSections(G4PhysicsTable *val)
void GetDataStream(G4String, std::istringstream &iss)
void RegisterFissionFinalStates(std::vector< G4ParticleHPChannel * > *val)
std::map< G4int, std::map< G4double, std::vector< E_P_E_isoAng * > * > * > * GetThermalScatteringInelasticFinalStates()
void RegisterThermalScatteringInelasticCrossSections(std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > *val)
void SetDoNotAdjustFinalState(G4bool val)
int G4int
Definition: G4Types.hh:78
G4PhysicsTable * GetFissionCrossSections()
std::map< G4int, std::map< G4double, std::vector< E_isoAng * > * > * > * GetThermalScatteringIncoherentFinalStates()
std::map< G4int, std::map< G4double, std::vector< std::pair< G4double, G4double > * > * > * > * GetThermalScatteringCoherentFinalStates()
void RegisterElasticCrossSections(G4PhysicsTable *val)
void SetProduceFissionFragments(G4bool val)
void SetUseOnlyPhotoEvaporation(G4bool val)
G4PhysicsTable * GetElasticCrossSections()
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * GetThermalScatteringIncoherentCrossSections()
G4PhysicsTable * GetCaptureCrossSections()
bool G4bool
Definition: G4Types.hh:79
void GetDataStream2(G4String, std::istringstream &iss)
void RegisterCaptureFinalStates(std::vector< G4ParticleHPChannel * > *val)
void SetNeglectDoppler(G4bool val)
std::vector< G4ParticleHPChannel * > * GetFissionFinalStates()
void RegisterThermalScatteringInelasticFinalStates(std::map< G4int, std::map< G4double, std::vector< E_P_E_isoAng * > * > * > *val)
G4PhysicsTable * GetInelasticCrossSections(const G4ParticleDefinition *)
std::vector< G4ParticleHPChannel * > * GetElasticFinalStates()
void RegisterThermalScatteringIncoherentFinalStates(std::map< G4int, std::map< G4double, std::vector< E_isoAng * > * > * > *val)
std::vector< G4ParticleHPChannelList * > * GetInelasticFinalStates(const G4ParticleDefinition *)
double G4double
Definition: G4Types.hh:76
void RegisterThermalScatteringCoherentCrossSections(std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > *val)
G4ParticleHPReactionWhiteBoard * GetReactionWhiteBoard()
void SetSkipMissingIsotopes(G4bool val)
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * GetThermalScatteringInelasticCrossSections()
void RegisterInelasticFinalStates(const G4ParticleDefinition *, std::vector< G4ParticleHPChannelList * > *)
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * GetThermalScatteringCoherentCrossSections()
void RegisterThermalScatteringCoherentFinalStates(std::map< G4int, std::map< G4double, std::vector< std::pair< G4double, G4double > * > * > * > *val)