[1206] | 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 | // |
---|
[1315] | 26 | // $Id: HadronPhysicsFTFP_BERT_TRV.cc,v 1.2 2010/06/03 10:42:44 gunter Exp $ |
---|
[1337] | 27 | // GEANT4 tag $Name: geant4-09-04-beta-01 $ |
---|
[1206] | 28 | // |
---|
| 29 | //--------------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // ClassName: |
---|
| 32 | // |
---|
| 33 | // Author: 2007 Gunter Folger |
---|
| 34 | // created from HadronPhysicsFTFP |
---|
| 35 | // |
---|
| 36 | // Modified: |
---|
| 37 | // |
---|
| 38 | //---------------------------------------------------------------------------- |
---|
| 39 | // |
---|
| 40 | #include "HadronPhysicsFTFP_BERT_TRV.hh" |
---|
| 41 | |
---|
| 42 | #include "globals.hh" |
---|
| 43 | #include "G4ios.hh" |
---|
| 44 | #include <iomanip> |
---|
| 45 | #include "G4ParticleDefinition.hh" |
---|
| 46 | #include "G4ParticleTable.hh" |
---|
| 47 | |
---|
| 48 | #include "G4MesonConstructor.hh" |
---|
| 49 | #include "G4BaryonConstructor.hh" |
---|
| 50 | #include "G4ShortLivedConstructor.hh" |
---|
| 51 | |
---|
[1315] | 52 | HadronPhysicsFTFP_BERT_TRV::HadronPhysicsFTFP_BERT_TRV(G4int) |
---|
| 53 | : G4VPhysicsConstructor("hInelastic FTFP_BERT_TRV") |
---|
| 54 | , QuasiElastic(false) |
---|
| 55 | {} |
---|
| 56 | |
---|
[1206] | 57 | HadronPhysicsFTFP_BERT_TRV::HadronPhysicsFTFP_BERT_TRV(const G4String& name, G4bool quasiElastic) |
---|
| 58 | : G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic) |
---|
| 59 | {} |
---|
| 60 | |
---|
| 61 | void HadronPhysicsFTFP_BERT_TRV::CreateModels() |
---|
| 62 | { |
---|
| 63 | G4double minFTFP= 6.0 * GeV; |
---|
| 64 | G4double maxBERT= 8.0 * GeV; |
---|
| 65 | // G4double minFTFP= 5.0 * GeV; G4double maxBERT= 7.0 * GeV; |
---|
| 66 | G4cout << " Revised FTFTP_BERT_TRV - new threshold between BERT and FTFP " |
---|
| 67 | << " is over the interval " << minFTFP/GeV << " to " << maxBERT/GeV |
---|
| 68 | << " GeV. " << G4endl; |
---|
| 69 | G4cout << " -- quasiElastic was asked to be " << QuasiElastic |
---|
| 70 | << " and it is reset to " << false << G4endl; |
---|
| 71 | QuasiElastic= false; |
---|
| 72 | |
---|
| 73 | theNeutrons=new G4NeutronBuilder; |
---|
| 74 | theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder); |
---|
| 75 | theBertiniNeutron->SetMinEnergy(0.0*GeV); |
---|
| 76 | theBertiniNeutron->SetMaxEnergy(maxBERT); |
---|
| 77 | theFTFPNeutron=new G4FTFPNeutronBuilder(QuasiElastic); |
---|
| 78 | theNeutrons->RegisterMe(theFTFPNeutron); |
---|
| 79 | theFTFPNeutron->SetMinEnergy(minFTFP); |
---|
| 80 | // Exclude LEP -- don't even register it |
---|
| 81 | theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder); |
---|
| 82 | theLEPNeutron->SetMinInelasticEnergy(0.0*GeV); |
---|
| 83 | theLEPNeutron->SetMaxInelasticEnergy(0.0*GeV); |
---|
| 84 | |
---|
| 85 | thePro=new G4ProtonBuilder; |
---|
| 86 | theFTFPPro=new G4FTFPProtonBuilder(QuasiElastic); |
---|
| 87 | thePro->RegisterMe(theFTFPPro); |
---|
| 88 | thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder); |
---|
| 89 | theFTFPPro->SetMinEnergy(minFTFP); |
---|
| 90 | theBertiniPro->SetMaxEnergy(maxBERT); |
---|
| 91 | |
---|
| 92 | thePiK=new G4PiKBuilder; |
---|
| 93 | theFTFPPiK=new G4FTFPPiKBuilder(QuasiElastic); |
---|
| 94 | thePiK->RegisterMe(theFTFPPiK); |
---|
| 95 | thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder); |
---|
| 96 | theFTFPPiK->SetMinEnergy(minFTFP); |
---|
| 97 | theBertiniPiK->SetMaxEnergy(maxBERT); |
---|
| 98 | |
---|
| 99 | theMiscLHEP=new G4MiscLHEPBuilder; |
---|
| 100 | } |
---|
| 101 | |
---|
| 102 | HadronPhysicsFTFP_BERT_TRV::~HadronPhysicsFTFP_BERT_TRV() |
---|
| 103 | { |
---|
| 104 | delete theNeutrons; |
---|
| 105 | delete theBertiniNeutron; |
---|
| 106 | delete theFTFPNeutron; |
---|
| 107 | |
---|
| 108 | delete thePiK; |
---|
| 109 | delete theBertiniPiK; |
---|
| 110 | delete theFTFPPiK; |
---|
| 111 | |
---|
| 112 | delete thePro; |
---|
| 113 | delete theBertiniPro; |
---|
| 114 | delete theFTFPPro; |
---|
| 115 | |
---|
| 116 | delete theMiscLHEP; |
---|
| 117 | } |
---|
| 118 | |
---|
| 119 | void HadronPhysicsFTFP_BERT_TRV::ConstructParticle() |
---|
| 120 | { |
---|
| 121 | G4MesonConstructor pMesonConstructor; |
---|
| 122 | pMesonConstructor.ConstructParticle(); |
---|
| 123 | |
---|
| 124 | G4BaryonConstructor pBaryonConstructor; |
---|
| 125 | pBaryonConstructor.ConstructParticle(); |
---|
| 126 | |
---|
| 127 | G4ShortLivedConstructor pShortLivedConstructor; |
---|
| 128 | pShortLivedConstructor.ConstructParticle(); |
---|
| 129 | } |
---|
| 130 | |
---|
| 131 | #include "G4ProcessManager.hh" |
---|
| 132 | void HadronPhysicsFTFP_BERT_TRV::ConstructProcess() |
---|
| 133 | { |
---|
| 134 | CreateModels(); |
---|
| 135 | theNeutrons->Build(); |
---|
| 136 | thePro->Build(); |
---|
| 137 | thePiK->Build(); |
---|
| 138 | theMiscLHEP->Build(); |
---|
| 139 | } |
---|
| 140 | |
---|