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

#include <G4ProtonBuilder.hh>

+ Inheritance diagram for G4ProtonBuilder:

Public Member Functions

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

Detailed Description

Definition at line 51 of file G4ProtonBuilder.hh.

Constructor & Destructor Documentation

◆ G4ProtonBuilder()

G4ProtonBuilder::G4ProtonBuilder ( )

Definition at line 57 of file G4ProtonBuilder.cc.

58 {
59 theProtonInelastic=new G4HadronInelasticProcess( "protonInelastic", G4Proton::Definition() );
60 }
static G4Proton * Definition()
Definition G4Proton.cc:45

◆ ~G4ProtonBuilder()

virtual G4ProtonBuilder::~G4ProtonBuilder ( )
inlinevirtual

Definition at line 55 of file G4ProtonBuilder.hh.

55{}

Member Function Documentation

◆ Build()

void G4ProtonBuilder::Build ( )
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 46 of file G4ProtonBuilder.cc.

47 {
48 std::vector<G4VProtonBuilder *>::iterator i;
49 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
50 {
51 (*i)->Build(theProtonInelastic);
52 }
54 theProcMan->AddDiscreteProcess(theProtonInelastic);
55 }
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4Proton * Proton()
Definition G4Proton.cc:90

◆ RegisterMe()

void G4ProtonBuilder::RegisterMe ( G4PhysicsBuilderInterface * aB)
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 62 of file G4ProtonBuilder.cc.

62 {
63 auto bld = dynamic_cast<G4VProtonBuilder*>(aB);
64 if ( bld != nullptr ) {
65 theModelCollections.push_back(bld);
66 } else {
68 }
69 }
virtual void RegisterMe(G4PhysicsBuilderInterface *)

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