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] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /examples/extended/hadronic/Hadr02/src/HadronPhysicsCRMC_FTFP_BERT.cc (Version 11.3.0) and /examples/extended/hadronic/Hadr02/src/HadronPhysicsCRMC_FTFP_BERT.cc (Version 8.0.p1)


  1 //                                                  1 
  2 // *******************************************    
  3 // * License and Disclaimer                       
  4 // *                                              
  5 // * The  Geant4 software  is  copyright of th    
  6 // * the Geant4 Collaboration.  It is provided    
  7 // * conditions of the Geant4 Software License    
  8 // * LICENSE and available at  http://cern.ch/    
  9 // * include a list of copyright holders.         
 10 // *                                              
 11 // * Neither the authors of this software syst    
 12 // * institutes,nor the agencies providing fin    
 13 // * work  make  any representation or  warran    
 14 // * regarding  this  software system or assum    
 15 // * use.  Please see the license in the file     
 16 // * for the full disclaimer and the limitatio    
 17 // *                                              
 18 // * This  code  implementation is the result     
 19 // * technical work of the GEANT4 collaboratio    
 20 // * By using,  copying,  modifying or  distri    
 21 // * any work based  on the software)  you  ag    
 22 // * use  in  resulting  scientific  publicati    
 23 // * acceptance of all terms of the Geant4 Sof    
 24 // *******************************************    
 25 //                                                
 26 /// \file hadronic/Hadr02/src/HadronPhysicsCRM    
 27 /// \brief Implementation of the CRMC_FTFP_BER    
 28 //                                                
 29 //                                                
 30 //--------------------------------------------    
 31 //                                                
 32 // ClassName:   HadronPhysicsCRMC_FTFP_BERT       
 33 //                                                
 34 // Authors: 2018 Alberto Ribon                    
 35 //                                                
 36 // Modified:                                      
 37 // -  18-May-2021 Alberto Ribon : Migrated to     
 38 //                                and used the    
 39 //                                                
 40 //--------------------------------------------    
 41 //                                                
 42 #ifdef G4_USE_CRMC                                
 43                                                   
 44 #  include "HadronPhysicsCRMC_FTFP_BERT.hh"       
 45                                                   
 46 #  include "CRMCKaonBuilder.hh"                   
 47 #  include "CRMCNeutronBuilder.hh"                
 48 #  include "CRMCPionBuilder.hh"                   
 49 #  include "CRMCProtonBuilder.hh"                 
 50                                                   
 51 #  include "G4BertiniKaonBuilder.hh"              
 52 #  include "G4BertiniNeutronBuilder.hh"           
 53 #  include "G4BertiniPionBuilder.hh"              
 54 #  include "G4BertiniProtonBuilder.hh"            
 55 #  include "G4FTFPKaonBuilder.hh"                 
 56 #  include "G4FTFPNeutronBuilder.hh"              
 57 #  include "G4FTFPPionBuilder.hh"                 
 58 #  include "G4FTFPProtonBuilder.hh"               
 59 #  include "G4HadParticles.hh"                    
 60 #  include "G4KaonBuilder.hh"                     
 61 #  include "G4NeutronBuilder.hh"                  
 62 #  include "G4NeutronCaptureXS.hh"                
 63 #  include "G4NeutronInelasticXS.hh"              
 64 #  include "G4NeutronRadCapture.hh"               
 65 #  include "G4ParticleDefinition.hh"              
 66 #  include "G4ParticleTable.hh"                   
 67 #  include "G4PhysListUtil.hh"                    
 68 #  include "G4PhysicsConstructorFactory.hh"       
 69 #  include "G4PionBuilder.hh"                     
 70 #  include "G4ProcessManager.hh"                  
 71 #  include "G4ProcessVector.hh"                   
 72 #  include "G4ProtonBuilder.hh"                   
 73 #  include "G4SystemOfUnits.hh"                   
 74 #  include "G4ios.hh"                             
 75 #  include "globals.hh"                           
 76                                                   
 77 #  include <iomanip>                              
 78                                                   
 79 //....oooOO0OOooo........oooOO0OOooo........oo    
 80                                                   
 81 G4_DECLARE_PHYSCONSTR_FACTORY(HadronPhysicsCRM    
 82                                                   
 83 const std::array<std::string, 13> HadronPhysic    
 84   "EPOS-LHC", "EPOS-1.99", "QGSJET-01",   "",     
 85   "",         "",          "QGSJETII-03", "DPM    
 86                                                   
 87 //....oooOO0OOooo........oooOO0OOooo........oo    
 88                                                   
 89 HadronPhysicsCRMC_FTFP_BERT::HadronPhysicsCRMC    
 90   : HadronPhysicsCRMC_FTFP_BERT("hInelastic CR    
 91 {}                                                
 92                                                   
 93 //....oooOO0OOooo........oooOO0OOooo........oo    
 94                                                   
 95 HadronPhysicsCRMC_FTFP_BERT::HadronPhysicsCRMC    
 96   : G4HadronPhysicsFTFP_BERT(name, qe)            
 97 {                                                 
 98   fModel = 0;  //***LOOKHERE*** CRMC model: 0:    
 99                //                           7:    
100   fMinCRMC =                                      
101     100.0 * GeV;  //***LOOKHERE*** CRMC model     
102   fMaxFTFP =                                      
103     110.0 * GeV;  //***LOOKHERE*** FTFP model     
104 }                                                 
105                                                   
106 //....oooOO0OOooo........oooOO0OOooo........oo    
107                                                   
108 HadronPhysicsCRMC_FTFP_BERT::~HadronPhysicsCRM    
109                                                   
110 //....oooOO0OOooo........oooOO0OOooo........oo    
111                                                   
112 void HadronPhysicsCRMC_FTFP_BERT::Neutron()       
113 {                                                 
114   auto neutronBuilder = new G4NeutronBuilder;     
115   AddBuilder(neutronBuilder);                     
116   auto ftfpnBuilder = new G4FTFPNeutronBuilder    
117   ftfpnBuilder->SetMinEnergy(minFTFP_neutron);    
118   ftfpnBuilder->SetMaxEnergy(fMaxFTFP);           
119   AddBuilder(ftfpnBuilder);                       
120   neutronBuilder->RegisterMe(ftfpnBuilder);       
121   auto bertnBuilder = new G4BertiniNeutronBuil    
122   bertnBuilder->SetMaxEnergy(maxBERT_neutron);    
123   AddBuilder(bertnBuilder);                       
124   neutronBuilder->RegisterMe(bertnBuilder);       
125   auto crmcnBuilder = new CRMCNeutronBuilder(f    
126   crmcnBuilder->SetMinEnergy(fMinCRMC);           
127   AddBuilder(crmcnBuilder);                       
128   neutronBuilder->RegisterMe(crmcnBuilder);       
129   neutronBuilder->Build();                        
130   const G4ParticleDefinition* neutron = G4Neut    
131   G4HadronicProcess* inel = G4PhysListUtil::Fi    
132   if (inel) inel->AddDataSet(new G4NeutronInel    
133   G4HadronicProcess* capture = G4PhysListUtil:    
134   if (capture) capture->RegisterMe(new G4Neutr    
135 }                                                 
136                                                   
137 //....oooOO0OOooo........oooOO0OOooo........oo    
138                                                   
139 void HadronPhysicsCRMC_FTFP_BERT::Proton()        
140 {                                                 
141   auto protonBuilder = new G4ProtonBuilder;       
142   AddBuilder(protonBuilder);                      
143   auto ftfppBuilder = new G4FTFPProtonBuilder(    
144   ftfppBuilder->SetMinEnergy(minFTFP_proton);     
145   ftfppBuilder->SetMaxEnergy(fMaxFTFP);           
146   AddBuilder(ftfppBuilder);                       
147   protonBuilder->RegisterMe(ftfppBuilder);        
148   auto bertpBuilder = new G4BertiniProtonBuild    
149   bertpBuilder->SetMaxEnergy(maxBERT_proton);     
150   AddBuilder(bertpBuilder);                       
151   protonBuilder->RegisterMe(bertpBuilder);        
152   auto crmcpBuilder = new CRMCProtonBuilder(fM    
153   crmcpBuilder->SetMinEnergy(fMinCRMC);           
154   AddBuilder(crmcpBuilder);                       
155   protonBuilder->RegisterMe(crmcpBuilder);        
156   protonBuilder->Build();                         
157 }                                                 
158                                                   
159 //....oooOO0OOooo........oooOO0OOooo........oo    
160                                                   
161 void HadronPhysicsCRMC_FTFP_BERT::Pion()          
162 {                                                 
163   auto pionBuilder = new G4PionBuilder;           
164   AddBuilder(pionBuilder);                        
165   auto ftfppiBuilder = new G4FTFPPionBuilder(Q    
166   ftfppiBuilder->SetMinEnergy(minFTFP_pion);      
167   ftfppiBuilder->SetMaxEnergy(fMaxFTFP);          
168   AddBuilder(ftfppiBuilder);                      
169   pionBuilder->RegisterMe(ftfppiBuilder);         
170   auto bertpiBuilder = new G4BertiniPionBuilde    
171   bertpiBuilder->SetMaxEnergy(maxBERT_pion);      
172   AddBuilder(bertpiBuilder);                      
173   pionBuilder->RegisterMe(bertpiBuilder);         
174   auto crmcpiBuilder = new CRMCPionBuilder(fMo    
175   crmcpiBuilder->SetMinEnergy(fMinCRMC);          
176   AddBuilder(crmcpiBuilder);                      
177   pionBuilder->RegisterMe(crmcpiBuilder);         
178   pionBuilder->Build();                           
179 }                                                 
180                                                   
181 //....oooOO0OOooo........oooOO0OOooo........oo    
182                                                   
183 void HadronPhysicsCRMC_FTFP_BERT::Kaon()          
184 {                                                 
185   auto kaonBuilder = new G4KaonBuilder;           
186   AddBuilder(kaonBuilder);                        
187   auto ftfpkBuilder = new G4FTFPKaonBuilder(Qu    
188   ftfpkBuilder->SetMinEnergy(minFTFP_kaon);       
189   ftfpkBuilder->SetMaxEnergy(fMaxFTFP);           
190   AddBuilder(ftfpkBuilder);                       
191   kaonBuilder->RegisterMe(ftfpkBuilder);          
192   auto bertkBuilder = new G4BertiniKaonBuilder    
193   bertkBuilder->SetMaxEnergy(maxBERT_kaon);       
194   AddBuilder(bertkBuilder);                       
195   kaonBuilder->RegisterMe(bertkBuilder);          
196   auto crmckBuilder = new CRMCKaonBuilder(fMod    
197   crmckBuilder->SetMinEnergy(fMinCRMC);           
198   AddBuilder(crmckBuilder);                       
199   kaonBuilder->RegisterMe(crmckBuilder);          
200   kaonBuilder->Build();                           
201 }                                                 
202                                                   
203 #endif  // G4_USE_CRMC                            
204