Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BinaryPionBuilder Class Reference

#include <G4BinaryPionBuilder.hh>

+ Inheritance diagram for G4BinaryPionBuilder:

Public Member Functions

 G4BinaryPionBuilder ()
 
virtual ~G4BinaryPionBuilder ()
 
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 ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4PionPlusInelasticProcess *aP)=0
 
virtual void Build (G4PionMinusInelasticProcess *aP)=0
 

Detailed Description

Definition at line 52 of file G4BinaryPionBuilder.hh.

Constructor & Destructor Documentation

◆ G4BinaryPionBuilder()

G4BinaryPionBuilder::G4BinaryPionBuilder ( )

Definition at line 47 of file G4BinaryPionBuilder.cc.

49{
50 thePiData = new G4CrossSectionPairGG(new G4PiNuclearCrossSection(), 91*GeV);
51 theMin = 0*GeV;
52 theMax = 1.3*GeV;
53 theModel = new G4BinaryCascade;
54 theModel->SetMinEnergy(theMin);
55 theModel->SetMaxEnergy(theMax);
56}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)

◆ ~G4BinaryPionBuilder()

G4BinaryPionBuilder::~G4BinaryPionBuilder ( )
virtual

Definition at line 58 of file G4BinaryPionBuilder.cc.

60{
61}

Member Function Documentation

◆ Build() [1/3]

void G4BinaryPionBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 63 of file G4BinaryPionBuilder.cc.

64{}

◆ Build() [2/3]

void G4BinaryPionBuilder::Build ( G4PionMinusInelasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 75 of file G4BinaryPionBuilder.cc.

77{
78 theModel->SetMinEnergy(theMin);
79 theModel->SetMaxEnergy(theMax);
80 aP->AddDataSet(thePiData);
81 aP->RegisterMe(theModel);
82}
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

◆ Build() [3/3]

void G4BinaryPionBuilder::Build ( G4PionPlusInelasticProcess aP)
virtual

Implements G4VPionBuilder.

Definition at line 66 of file G4BinaryPionBuilder.cc.

68{
69 theModel->SetMinEnergy(theMin);
70 theModel->SetMaxEnergy(theMax);
71 aP->AddDataSet(thePiData);
72 aP->RegisterMe(theModel);
73}

◆ SetMaxEnergy()

void G4BinaryPionBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 64 of file G4BinaryPionBuilder.hh.

64{theMax = aM;}

◆ SetMinEnergy()

void G4BinaryPionBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 63 of file G4BinaryPionBuilder.hh.

63{theMin = aM;}

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