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

#include <G4AlphaBuilder.hh>

+ Inheritance diagram for G4AlphaBuilder:

Public Member Functions

 G4AlphaBuilder ()
 
virtual ~G4AlphaBuilder ()
 
virtual void Build () final override
 
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 46 of file G4AlphaBuilder.hh.

Constructor & Destructor Documentation

◆ G4AlphaBuilder()

G4AlphaBuilder::G4AlphaBuilder ( )

Definition at line 53 of file G4AlphaBuilder.cc.

54 {
55 theAlphaInelastic=new G4HadronInelasticProcess( "alphaInelastic", G4Alpha::Definition() );
56 }
static G4Alpha * Definition()
Definition: G4Alpha.cc:48

◆ ~G4AlphaBuilder()

virtual G4AlphaBuilder::~G4AlphaBuilder ( )
inlinevirtual

Definition at line 50 of file G4AlphaBuilder.hh.

50{}

Member Function Documentation

◆ Build()

void G4AlphaBuilder::Build ( )
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 42 of file G4AlphaBuilder.cc.

43 {
44 std::vector<G4VAlphaBuilder *>::iterator i;
45 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
46 {
47 (*i)->Build(theAlphaInelastic);
48 }
50 theProcMan->AddDiscreteProcess(theAlphaInelastic);
51 }
static G4Alpha * Alpha()
Definition: G4Alpha.cc:88
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

◆ RegisterMe()

void G4AlphaBuilder::RegisterMe ( G4PhysicsBuilderInterface aB)
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 58 of file G4AlphaBuilder.cc.

58 {
59 auto bld = dynamic_cast<G4VAlphaBuilder*>(ab);
60 if ( bld != nullptr ) {
61 theModelCollections.push_back(bld);
62 } else {
64 }
65 }
virtual void RegisterMe(G4PhysicsBuilderInterface *)

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