Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4ParticleHPManager.hh
이 파일의 문서화 페이지로 가기
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;
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 );
78 
79  void DumpDataSource();
80 
88 
90  void SetNeglectDoppler( G4bool val ) { NEGLECT_DOPPLER = val; };
94 
103 
104  std::vector<G4ParticleHPChannel*>* GetElasticFinalStates() { return theElasticFSs; };
105  void RegisterElasticFinalStates( std::vector<G4ParticleHPChannel*>* val ) { theElasticFSs = val; };
106  std::vector<G4ParticleHPChannelList*>* GetInelasticFinalStates( const G4ParticleDefinition* );
107  void RegisterInelasticFinalStates( const G4ParticleDefinition* , std::vector<G4ParticleHPChannelList*>* );
108  std::vector<G4ParticleHPChannel*>* GetCaptureFinalStates() { return theCaptureFSs; };
109  void RegisterCaptureFinalStates( std::vector<G4ParticleHPChannel*>* val ) { theCaptureFSs = val; };
110  std::vector<G4ParticleHPChannel*>* GetFissionFinalStates() { return theFissionFSs; };
111  void RegisterFissionFinalStates( std::vector<G4ParticleHPChannel*>* val ) { theFissionFSs = val; };
112 
113  std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* GetThermalScatteringCoherentCrossSections() { return theTSCoherentCrossSections; };
114  void RegisterThermalScatteringCoherentCrossSections( std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* val ) { theTSCoherentCrossSections = val; };
115  std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* GetThermalScatteringIncoherentCrossSections() { return theTSIncoherentCrossSections; };
116  void RegisterThermalScatteringIncoherentCrossSections( std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* val ) { theTSIncoherentCrossSections = val; };
117  std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* GetThermalScatteringInelasticCrossSections() { return theTSInelasticCrossSections; };
118  void RegisterThermalScatteringInelasticCrossSections( std::map<G4int,std::map<G4double,G4ParticleHPVector*>*>* val ) { theTSInelasticCrossSections = val; };
119 
120  std::map < G4int , std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >* >* GetThermalScatteringCoherentFinalStates(){ return theTSCoherentFinalStates; };
121  void RegisterThermalScatteringCoherentFinalStates( std::map < G4int , std::map < G4double , std::vector < std::pair< G4double , G4double >* >* >* >* val ) { theTSCoherentFinalStates = val; };
122  std::map < G4int , std::map < G4double , std::vector < E_isoAng* >* >* >* GetThermalScatteringIncoherentFinalStates(){ return theTSIncoherentFinalStates; };
123  void RegisterThermalScatteringIncoherentFinalStates( std::map < G4int , std::map < G4double , std::vector < E_isoAng* >* >* >* val ) { theTSIncoherentFinalStates = val; };
124  std::map < G4int , std::map < G4double , std::vector < E_P_E_isoAng* >* >* >* GetThermalScatteringInelasticFinalStates(){ return theTSInelasticFinalStates; };
125  void RegisterThermalScatteringInelasticFinalStates( std::map < G4int , std::map < G4double , std::vector < E_P_E_isoAng* >* >* >* val ) { theTSInelasticFinalStates = val; };
126 
127 
128  private:
130  std::map<G4String,G4String> mDataEvaluation;
131  /*G4ParticleHPReactionWhiteBoard* RWB;*/
132 
134 
142 
145  std::map< const G4ParticleDefinition* , G4PhysicsTable* > theInelasticCrossSections;
147 
148  std::vector<G4ParticleHPChannel*>* theElasticFSs;
149  std::map< const G4ParticleDefinition* , std::vector<G4ParticleHPChannelList*>* > theInelasticFSs;
150  std::vector<G4ParticleHPChannel*>* theCaptureFSs;
151  std::vector<G4ParticleHPChannel*>* theFissionFSs;
152 
153  std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* theTSCoherentCrossSections;
154  std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* theTSIncoherentCrossSections;
155  std::map< G4int , std::map< G4double , G4ParticleHPVector* >* >* theTSInelasticCrossSections;
156 
157  std::map< G4int , std::map< G4double , std::vector< std::pair< G4double , G4double >* >* >* >* theTSCoherentFinalStates;
158  std::map< G4int , std::map< G4double , std::vector< E_isoAng* >* >* >* theTSIncoherentFinalStates;
159  std::map< G4int , std::map< G4double , std::vector< E_P_E_isoAng* >* >* >* theTSInelasticFinalStates;
160 
161 };
162 #endif
static G4ParticleHPManager * instance
void register_data_file(G4String, G4String)
std::map< G4int, std::map< G4double, std::vector< std::pair< G4double, G4double > * > * > * > * theTSCoherentFinalStates
static G4ParticleHPManager * GetInstance()
void RegisterThermalScatteringInelasticCrossSections(std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > *val)
void RegisterThermalScatteringCoherentCrossSections(std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > *val)
G4PhysicsTable * GetFissionCrossSections()
void SetDoNotAdjustFinalState(G4bool val)
G4PhysicsTable * theElasticCrossSections
std::map< const G4ParticleDefinition *, std::vector< G4ParticleHPChannelList * > * > theInelasticFSs
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * theTSInelasticCrossSections
std::map< G4int, std::map< G4double, std::vector< E_P_E_isoAng * > * > * > * GetThermalScatteringInelasticFinalStates()
void RegisterElasticCrossSections(G4PhysicsTable *val)
void RegisterElasticFinalStates(std::vector< G4ParticleHPChannel * > *val)
void RegisterFissionFinalStates(std::vector< G4ParticleHPChannel * > *val)
void RegisterThermalScatteringInelasticFinalStates(std::map< G4int, std::map< G4double, std::vector< E_P_E_isoAng * > * > * > *val)
G4PhysicsTable * GetInelasticCrossSections(const G4ParticleDefinition *)
G4PhysicsTable * theFissionCrossSections
G4PhysicsTable * GetCaptureCrossSections()
void GetDataStream(G4String, std::istringstream &iss)
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * GetThermalScatteringInelasticCrossSections()
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
std::vector< G4ParticleHPChannel * > * GetCaptureFinalStates()
std::map< G4String, G4String > mDataEvaluation
std::map< G4int, std::map< G4double, std::vector< E_P_E_isoAng * > * > * > * theTSInelasticFinalStates
void RegisterFissionCrossSections(G4PhysicsTable *val)
G4ParticleHPReactionWhiteBoard * GetReactionWhiteBoard()
std::vector< G4ParticleHPChannel * > * GetFissionFinalStates()
void RegisterThermalScatteringCoherentFinalStates(std::map< G4int, std::map< G4double, std::vector< std::pair< G4double, G4double > * > * > * > *val)
G4PhysicsTable * theCaptureCrossSections
void RegisterInelasticCrossSections(const G4ParticleDefinition *, G4PhysicsTable *)
void SetNeglectDoppler(G4bool val)
std::vector< G4ParticleHPChannel * > * theFissionFSs
void SetProduceFissionFragments(G4bool val)
void RegisterThermalScatteringIncoherentCrossSections(std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > *val)
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * theTSIncoherentCrossSections
G4ParticleHPMessenger * messenger
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * GetThermalScatteringIncoherentCrossSections()
int G4int
Definition: G4Types.hh:78
std::vector< G4ParticleHPChannel * > * GetElasticFinalStates()
std::vector< G4ParticleHPChannel * > * theElasticFSs
void RegisterThermalScatteringIncoherentFinalStates(std::map< G4int, std::map< G4double, std::vector< E_isoAng * > * > * > *val)
void RegisterCaptureFinalStates(std::vector< G4ParticleHPChannel * > *val)
void SetUseNRESP71Model(G4bool val)
std::vector< G4ParticleHPChannelList * > * GetInelasticFinalStates(const G4ParticleDefinition *)
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * GetThermalScatteringCoherentCrossSections()
std::map< G4int, std::map< G4double, std::vector< E_isoAng * > * > * > * theTSIncoherentFinalStates
void SetUseOnlyPhotoEvaporation(G4bool val)
std::map< const G4ParticleDefinition *, G4PhysicsTable * > theInelasticCrossSections
G4PhysicsTable * GetElasticCrossSections()
void SetSkipMissingIsotopes(G4bool val)
std::map< G4int, std::map< G4double, std::vector< E_isoAng * > * > * > * GetThermalScatteringIncoherentFinalStates()
void RegisterInelasticFinalStates(const G4ParticleDefinition *, std::vector< G4ParticleHPChannelList * > *)
std::map< G4int, std::map< G4double, std::vector< std::pair< G4double, G4double > * > * > * > * GetThermalScatteringCoherentFinalStates()
std::vector< G4ParticleHPChannel * > * theCaptureFSs
void RegisterCaptureCrossSections(G4PhysicsTable *val)
void GetDataStream2(G4String, std::istringstream &iss)
G4ParticleHPManager(const G4ParticleHPManager &)
std::map< G4int, std::map< G4double, G4ParticleHPVector * > * > * theTSCoherentCrossSections