Geant4-11
Public Member Functions | Private Attributes
G4ProtonBuilder Class Reference

#include <G4ProtonBuilder.hh>

Inheritance diagram for G4ProtonBuilder:
G4PhysicsBuilderInterface

Public Member Functions

virtual void Build () final override
 
 G4ProtonBuilder ()
 
virtual void RegisterMe (G4PhysicsBuilderInterface *aB) final override
 
virtual void SetMaxEnergy (G4double)
 
virtual void SetMinEnergy (G4double)
 
virtual ~G4ProtonBuilder ()
 

Private Attributes

std::vector< G4VProtonBuilder * > theModelCollections
 
G4HadronInelasticProcesstheProtonInelastic
 

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 {
60 }
G4HadronInelasticProcess * theProtonInelastic
static G4Proton * Definition()
Definition: G4Proton.cc:48

References G4Proton::Definition(), and theProtonInelastic.

◆ ~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 }
55 }
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
std::vector< G4VProtonBuilder * > theModelCollections
static G4Proton * Proton()
Definition: G4Proton.cc:92

References G4ProcessManager::AddDiscreteProcess(), G4ParticleDefinition::GetProcessManager(), G4Proton::Proton(), theModelCollections, and theProtonInelastic.

◆ 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 *)

References G4PhysicsBuilderInterface::RegisterMe(), and theModelCollections.

◆ SetMaxEnergy()

virtual void G4PhysicsBuilderInterface::SetMaxEnergy ( G4double  )
inlinevirtualinherited

◆ SetMinEnergy()

virtual void G4PhysicsBuilderInterface::SetMinEnergy ( G4double  )
inlinevirtualinherited

Field Documentation

◆ theModelCollections

std::vector<G4VProtonBuilder *> G4ProtonBuilder::theModelCollections
private

Definition at line 63 of file G4ProtonBuilder.hh.

Referenced by Build(), and RegisterMe().

◆ theProtonInelastic

G4HadronInelasticProcess* G4ProtonBuilder::theProtonInelastic
private

Definition at line 61 of file G4ProtonBuilder.hh.

Referenced by Build(), and G4ProtonBuilder().


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