- Timestamp:
- Nov 27, 2009, 11:46:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/physics_lists/builders/src/G4FTFPPiKBuilder.cc
r921 r1203 24 24 // ******************************************************************** 25 25 // 26 #include "G4FTFPPiKBuilder.hh" 27 #include "G4ParticleDefinition.hh" 28 #include "G4ParticleTable.hh" 29 #include "G4ProcessManager.hh" 26 // $Id: G4FTFPPiKBuilder.cc,v 1.5 2009/04/23 18:54:57 japost Exp $ 27 // GEANT4 tag $Name: geant4-09-03-cand-03 $ 28 // 29 //--------------------------------------------------------------------------- 30 // 31 // ClassName: G4FTFPPiKBuilder 32 // 33 // Author: 2002 J.P. Wellisch 34 // 35 // Modified: 36 // 30.03.2009 V.Ivanchenko create cross section by new 37 // 38 //---------------------------------------------------------------------------- 39 // 40 #include "G4FTFPPiKBuilder.hh" 41 #include "G4ParticleDefinition.hh" 42 #include "G4ParticleTable.hh" 43 #include "G4ProcessManager.hh" 30 44 31 32 45 G4FTFPPiKBuilder:: 46 G4FTFPPiKBuilder(G4bool quasiElastic) 33 47 { 48 thePiData = new G4PiNuclearCrossSection; 34 49 theMin = 4*GeV; 50 theMax = 100*TeV; 35 51 theModel = new G4TheoFSGenerator("FTFP"); 36 52 … … 52 68 53 69 theModel->SetTransport(theCascade); 70 theModel->SetMinEnergy(theMin); 71 theModel->SetMaxEnergy(100*TeV); 54 72 } 55 73 56 G4FTFPPiKBuilder:: 57 ~G4FTFPPiKBuilder() 74 G4FTFPPiKBuilder:: ~G4FTFPPiKBuilder() 58 75 { 59 76 delete theCascade; … … 64 81 } 65 82 66 67 83 void G4FTFPPiKBuilder:: 84 Build(G4HadronElasticProcess * ) {} 68 85 69 70 86 void G4FTFPPiKBuilder:: 87 Build(G4PionPlusInelasticProcess * aP) 71 88 { 72 89 theModel->SetMinEnergy(theMin); 73 theModel->SetMaxEnergy( 100*TeV);74 aP->AddDataSet( &thePiData);90 theModel->SetMaxEnergy(theMax); 91 aP->AddDataSet(thePiData); 75 92 aP->RegisterMe(theModel); 76 93 } 77 94 78 79 95 void G4FTFPPiKBuilder:: 96 Build(G4PionMinusInelasticProcess * aP) 80 97 { 81 98 theModel->SetMinEnergy(theMin); 82 theModel->SetMaxEnergy( 100*TeV);83 aP->AddDataSet( &thePiData);99 theModel->SetMaxEnergy(theMax); 100 aP->AddDataSet(thePiData); 84 101 aP->RegisterMe(theModel); 85 102 } 86 103 87 88 104 void G4FTFPPiKBuilder:: 105 Build(G4KaonPlusInelasticProcess * aP) 89 106 { 90 107 theModel->SetMinEnergy(theMin); 91 theModel->SetMaxEnergy( 100*TeV);108 theModel->SetMaxEnergy(theMax); 92 109 aP->RegisterMe(theModel); 93 110 } 94 111 95 96 112 void G4FTFPPiKBuilder:: 113 Build(G4KaonMinusInelasticProcess * aP) 97 114 { 98 115 theModel->SetMinEnergy(theMin); 99 theModel->SetMaxEnergy( 100*TeV);116 theModel->SetMaxEnergy(theMax); 100 117 aP->RegisterMe(theModel); 101 118 } 102 119 103 104 120 void G4FTFPPiKBuilder:: 121 Build(G4KaonZeroLInelasticProcess * aP) 105 122 { 106 123 theModel->SetMinEnergy(theMin); 107 theModel->SetMaxEnergy( 100*TeV);124 theModel->SetMaxEnergy(theMax); 108 125 aP->RegisterMe(theModel); 109 126 } 110 127 111 112 128 void G4FTFPPiKBuilder:: 129 Build(G4KaonZeroSInelasticProcess * aP) 113 130 { 114 131 theModel->SetMinEnergy(theMin); 115 theModel->SetMaxEnergy( 100*TeV);132 theModel->SetMaxEnergy(theMax); 116 133 aP->RegisterMe(theModel); 117 134 }
Note: See TracChangeset
for help on using the changeset viewer.