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

#include <G4BertiniPiKBuilder.hh>

+ Inheritance diagram for G4BertiniPiKBuilder:

Public Member Functions

 G4BertiniPiKBuilder ()
 
virtual ~G4BertiniPiKBuilder ()
 
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 G4BertiniPiKBuilder.hh.

Constructor & Destructor Documentation

◆ G4BertiniPiKBuilder()

G4BertiniPiKBuilder::G4BertiniPiKBuilder ( )

Definition at line 50 of file G4BertiniPiKBuilder.cc.

52 {
54 theMin = 0.0;
56 theModel = new G4CascadeInterface;
57 theModel->SetMinEnergy(theMin);
58 theModel->SetMaxEnergy(theMax);
59 }
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
static G4HadronicParameters * Instance()
G4double GetMaxEnergyTransitionFTF_Cascade() const

◆ ~G4BertiniPiKBuilder()

virtual G4BertiniPiKBuilder::~G4BertiniPiKBuilder ( )
inlinevirtual

Definition at line 54 of file G4BertiniPiKBuilder.hh.

54{}

Member Function Documentation

◆ Build() [1/2]

virtual void G4BertiniPiKBuilder::Build ( G4HadronElasticProcess * )
inlinefinaloverridevirtual

Implements G4VPiKBuilder.

Definition at line 56 of file G4BertiniPiKBuilder.hh.

56{}

◆ Build() [2/2]

void G4BertiniPiKBuilder::Build ( G4HadronInelasticProcess * aP)
finaloverridevirtual

Implements G4VPiKBuilder.

Definition at line 61 of file G4BertiniPiKBuilder.cc.

63 {
64 theModel->SetMinEnergy(theMin);
65 theModel->SetMaxEnergy(theMax);
68 } else if ( aP->GetParticleDefinition() == G4PionMinus::Definition() ) {
70 } else {
71 aP->AddDataSet(kaonxs);
72 }
73 aP->RegisterMe(theModel);
74 }
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 G4BertiniPiKBuilder::SetMaxEnergy ( G4double aM)
inlinefinaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 60 of file G4BertiniPiKBuilder.hh.

60{theMax = aM;}

◆ SetMinEnergy()

virtual void G4BertiniPiKBuilder::SetMinEnergy ( G4double aM)
inlinefinaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 59 of file G4BertiniPiKBuilder.hh.

59{theMin = aM;}

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