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

#include <G4BinaryPiKBuilder.hh>

+ Inheritance diagram for G4BinaryPiKBuilder:

Public Member Functions

 G4BinaryPiKBuilder ()
 
virtual ~G4BinaryPiKBuilder ()
 
virtual void Build (G4HadronElasticProcess *) final override
 
virtual void Build (G4HadronInelasticProcess *aP) final override
 
virtual void SetMinEnergy (G4double aM) final override
 
virtual void SetMaxEnergy (G4double aM) final override
 
- Public Member Functions inherited from G4VPiKBuilder
 G4VPiKBuilder ()=default
 
virtual ~G4VPiKBuilder ()
 
virtual void Build ()
 
- Public Member Functions inherited from G4PhysicsBuilderInterface
 G4PhysicsBuilderInterface ()=default
 
virtual ~G4PhysicsBuilderInterface ()=default
 
virtual void RegisterMe (G4PhysicsBuilderInterface *)
 

Detailed Description

Definition at line 50 of file G4BinaryPiKBuilder.hh.

Constructor & Destructor Documentation

◆ G4BinaryPiKBuilder()

G4BinaryPiKBuilder::G4BinaryPiKBuilder ( )

Definition at line 48 of file G4BinaryPiKBuilder.cc.

50{
51 theMin = 0.0;
52 theMax = 1.5*GeV;
53 theModel = new G4BinaryCascade();
54 theModel->SetMinEnergy(theMin);
55 theModel->SetMaxEnergy(theMax);
56}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)

◆ ~G4BinaryPiKBuilder()

virtual G4BinaryPiKBuilder::~G4BinaryPiKBuilder ( )
inlinevirtual

Definition at line 54 of file G4BinaryPiKBuilder.hh.

54{}

Member Function Documentation

◆ Build() [1/2]

virtual void G4BinaryPiKBuilder::Build ( G4HadronElasticProcess * )
inlinefinaloverridevirtual

Implements G4VPiKBuilder.

Definition at line 56 of file G4BinaryPiKBuilder.hh.

56{}

◆ Build() [2/2]

void G4BinaryPiKBuilder::Build ( G4HadronInelasticProcess * aP)
finaloverridevirtual

Implements G4VPiKBuilder.

Definition at line 58 of file G4BinaryPiKBuilder.cc.

60{
61 theModel->SetMinEnergy(theMin);
62 theModel->SetMaxEnergy(theMax);
65 } else if ( aP->GetParticleDefinition() == G4PionMinus::Definition() ) {
67 }
68 aP->RegisterMe(theModel);
69}
const G4ParticleDefinition * GetParticleDefinition() const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
static G4PionMinus * Definition()
static G4PionPlus * Definition()
Definition G4PionPlus.cc:46

◆ SetMaxEnergy()

virtual void G4BinaryPiKBuilder::SetMaxEnergy ( G4double aM)
inlinefinaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 60 of file G4BinaryPiKBuilder.hh.

60{theMax = aM;}

◆ SetMinEnergy()

virtual void G4BinaryPiKBuilder::SetMinEnergy ( G4double aM)
inlinefinaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 59 of file G4BinaryPiKBuilder.hh.

59{theMin = aM;}

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