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

#include <G4PionBuilder.hh>

+ Inheritance diagram for G4PionBuilder:

Public Member Functions

 G4PionBuilder ()
 
virtual ~G4PionBuilder ()
 
virtual void Build () final override
 
virtual void RegisterMe (G4PhysicsBuilderInterface *aB) final override
 
- Public Member Functions inherited from G4PhysicsBuilderInterface
 G4PhysicsBuilderInterface ()=default
 
virtual ~G4PhysicsBuilderInterface ()
 
virtual void Build ()
 
virtual void RegisterMe (G4PhysicsBuilderInterface *)
 
virtual void SetMinEnergy (G4double)
 
virtual void SetMaxEnergy (G4double)
 

Detailed Description

Definition at line 48 of file G4PionBuilder.hh.

Constructor & Destructor Documentation

◆ G4PionBuilder()

G4PionBuilder::G4PionBuilder ( )

Definition at line 44 of file G4PionBuilder.cc.

45{
46 thePionPlusInelastic=new G4HadronInelasticProcess( "pi+Inelastic", G4PionPlus::Definition() );
47 thePionMinusInelastic=new G4HadronInelasticProcess( "pi-Inelastic", G4PionMinus::Definition() );
48}
static G4PionMinus * Definition()
Definition: G4PionMinus.cc:51
static G4PionPlus * Definition()
Definition: G4PionPlus.cc:51

◆ ~G4PionBuilder()

virtual G4PionBuilder::~G4PionBuilder ( )
inlinevirtual

Definition at line 52 of file G4PionBuilder.hh.

52{}

Member Function Documentation

◆ Build()

void G4PionBuilder::Build ( )
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 50 of file G4PionBuilder.cc.

52{
53 std::vector<G4VPionBuilder *>::iterator i;
54 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
55 {
56 (*i)->Build(thePionPlusInelastic);
57 (*i)->Build(thePionMinusInelastic);
58 }
59 G4ProcessManager * theProcMan;
60
62 theProcMan->AddDiscreteProcess(thePionPlusInelastic);
63
65 theProcMan->AddDiscreteProcess(thePionMinusInelastic);
66}
G4ProcessManager * GetProcessManager() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:97
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:97
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

◆ RegisterMe()

void G4PionBuilder::RegisterMe ( G4PhysicsBuilderInterface aB)
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 68 of file G4PionBuilder.cc.

68 {
69 auto bld = dynamic_cast<G4VPionBuilder*>(aB);
70 if ( bld != nullptr ) {
71 theModelCollections.push_back(bld);
72 } else {
74 }
75}
virtual void RegisterMe(G4PhysicsBuilderInterface *)

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