Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4FTFPPionBuilder Class Reference

#include <G4FTFPPionBuilder.hh>

Inheritance diagram for G4FTFPPionBuilder:
G4VPionBuilder

Public Member Functions

 G4FTFPPionBuilder (G4bool quasiElastic=false)
 
virtual ~G4FTFPPionBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)
 
virtual void Build (G4PionPlusInelasticProcess *aP)
 
virtual void Build (G4PionMinusInelasticProcess *aP)
 
void SetMinEnergy (G4double aM)
 
void SetMaxEnergy (G4double aM)
 
- Public Member Functions inherited from G4VPionBuilder
 G4VPionBuilder ()
 
virtual ~G4VPionBuilder ()
 

Detailed Description

Definition at line 59 of file G4FTFPPionBuilder.hh.

Constructor & Destructor Documentation

G4FTFPPionBuilder::G4FTFPPionBuilder ( G4bool  quasiElastic = false)

Definition at line 43 of file G4FTFPPionBuilder.cc.

References python.hepunit::GeV, G4VPartonStringModel::SetFragmentationModel(), G4TheoFSGenerator::SetHighEnergyGenerator(), G4HadronicInteraction::SetMaxEnergy(), G4HadronicInteraction::SetMinEnergy(), G4TheoFSGenerator::SetQuasiElasticChannel(), G4TheoFSGenerator::SetTransport(), and python.hepunit::TeV.

44 {
45  thePiData = new G4CrossSectionPairGG(new G4PiNuclearCrossSection(), 91*GeV);
46  theMin = 4*GeV;
47  theMax = 100*TeV;
48  theModel = new G4TheoFSGenerator("FTFP");
49 
50  theStringModel = new G4FTFModel;
51  theStringDecay = new G4ExcitedStringDecay(theLund = new G4LundStringFragmentation);
52  theStringModel->SetFragmentationModel(theStringDecay);
53 
54  thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler);
55  theCascade = new G4GeneratorPrecompoundInterface(thePreEquilib);
56 
57  theModel->SetHighEnergyGenerator(theStringModel);
58  if (quasiElastic)
59  {
60  theQuasiElastic=new G4QuasiElasticChannel;
61  theModel->SetQuasiElasticChannel(theQuasiElastic);
62  } else
63  { theQuasiElastic=0;}
64 
65  theModel->SetTransport(theCascade);
66  theModel->SetMinEnergy(theMin);
67  theModel->SetMaxEnergy(100*TeV);
68 }
void SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
void SetFragmentationModel(G4VStringFragmentation *aModel)
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void SetTransport(G4VIntraNuclearTransportModel *const value)
G4FTFPPionBuilder::~G4FTFPPionBuilder ( )
virtual

Definition at line 70 of file G4FTFPPionBuilder.cc.

71 {
72  delete theCascade;
73  delete theStringDecay;
74  delete theStringModel;
75  delete theModel;
76  if ( theQuasiElastic ) delete theQuasiElastic;
77  //delete theHandler;
78  delete theLund;
79 }

Member Function Documentation

void G4FTFPPionBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 82 of file G4FTFPPionBuilder.cc.

82 {}
void G4FTFPPionBuilder::Build ( G4PionPlusInelasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 85 of file G4FTFPPionBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

86 {
87  theModel->SetMinEnergy(theMin);
88  theModel->SetMaxEnergy(theMax);
89  aP->AddDataSet(thePiData);
90  aP->RegisterMe(theModel);
91 }
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void SetMaxEnergy(const G4double anEnergy)
void G4FTFPPionBuilder::Build ( G4PionMinusInelasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 94 of file G4FTFPPionBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

95 {
96  theModel->SetMinEnergy(theMin);
97  theModel->SetMaxEnergy(theMax);
98  aP->AddDataSet(thePiData);
99  aP->RegisterMe(theModel);
100 }
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void SetMaxEnergy(const G4double anEnergy)
void G4FTFPPionBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 71 of file G4FTFPPionBuilder.hh.

71 {theMax = aM;}
void G4FTFPPionBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 70 of file G4FTFPPionBuilder.hh.

70 {theMin = aM;}

The documentation for this class was generated from the following files: