Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4HadronPhysicsFTFP_BERT_TRV.cc
이 파일의 문서화 페이지로 가기
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 // $Id: G4HadronPhysicsFTFP_BERT_TRV.cc 105736 2017-08-16 13:01:11Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName:
31 //
32 // Author: 2007 Gunter Folger
33 // created from G4HadronPhysicsFTFP
34 //
35 // Modified:
36 //
37 //----------------------------------------------------------------------------
38 //
39 #include <iomanip>
40 
42 #include "G4PiKBuilder.hh"
43 #include "G4FTFPPiKBuilder.hh"
44 #include "G4BertiniPiKBuilder.hh"
45 
46 #include "globals.hh"
47 #include "G4ios.hh"
48 #include "G4SystemOfUnits.hh"
49 
50 // factory
52 //
54 
56  G4HadronPhysicsFTFP_BERT_TRV("hInelastic FTFP_BERT_TRV",false)
57 {}
58 
60  : G4HadronPhysicsFTFP_BERT(name,quasiElastic)
61 {
62  //Change configuration parameters of FTFP_BERT
63  minFTFP_pion = 2.0 * GeV;
64  maxBERT_pion = 4.0 * GeV;
65  minFTFP_kaon = 2.0 * GeV;
66  maxBERT_kaon = 4.0 * GeV;
67  minFTFP_proton = 2.0 * GeV;
68  maxBERT_proton = 4.0 * GeV;
69  minFTFP_neutron = 2.0 * GeV;
70  maxBERT_neutron = 4.0 * GeV;
71  QuasiElastic = false;
72 }
73 
75 {
76  G4cout << " Revised FTFTP_BERT_TRV - new threshold between BERT and FTFP "
77  << " is over the interval " << minFTFP_pion/GeV << " to " << maxBERT_pion/GeV
78  << " GeV. " << G4endl;
79  G4cout << " -- quasiElastic was asked to be " << QuasiElastic
80  << " and it is reset to " << false << G4endl;
81 }
82 
84 {
85  auto pik = new G4PiKBuilder;
86  AddBuilder(pik);
87  auto ftfppik = new G4FTFPPiKBuilder(QuasiElastic);
88  AddBuilder(ftfppik);
89  ftfppik->SetMinEnergy(minFTFP_pion);
90  pik->RegisterMe(ftfppik);
91  auto bertpik = new G4BertiniPiKBuilder();
92  AddBuilder(bertpik);
93  bertpik->SetMaxEnergy(maxBERT_pion);
94  pik->RegisterMe(bertpik);
95  pik->Build();
96 }
97 
99  //Use combined with pions
100 }
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
const XML_Char * name
Definition: expat.h:151
#define G4endl
Definition: G4ios.hh:61
bool G4bool
Definition: G4Types.hh:79
void AddBuilder(G4PhysicsBuilderInterface *bld)
int G4int
Definition: G4Types.hh:78
G4GLOB_DLL std::ostream G4cout
static constexpr double GeV
Definition: G4SIunits.hh:217