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

#include <G4DeuteronBuilder.hh>

+ Inheritance diagram for G4DeuteronBuilder:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4DeuteronBuilder()

G4DeuteronBuilder::G4DeuteronBuilder ( )

Definition at line 54 of file G4DeuteronBuilder.cc.

55 {
56 theDeuteronInelastic=new G4HadronInelasticProcess( "dInelastic", G4Deuteron::Definition() );
57 }
static G4Deuteron * Definition()
Definition: G4Deuteron.cc:49

◆ ~G4DeuteronBuilder()

virtual G4DeuteronBuilder::~G4DeuteronBuilder ( )
inlinevirtual

Definition at line 52 of file G4DeuteronBuilder.hh.

52{}

Member Function Documentation

◆ Build()

void G4DeuteronBuilder::Build ( )
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 43 of file G4DeuteronBuilder.cc.

44 {
45 std::vector<G4VDeuteronBuilder *>::iterator i;
46 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
47 {
48 (*i)->Build(theDeuteronInelastic);
49 }
51 theProcMan->AddDiscreteProcess(theDeuteronInelastic);
52 }
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:93
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

◆ RegisterMe()

void G4DeuteronBuilder::RegisterMe ( G4PhysicsBuilderInterface aB)
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 59 of file G4DeuteronBuilder.cc.

59 {
60 auto bld = dynamic_cast<G4VDeuteronBuilder*>(aB);
61 if ( bld != nullptr ) {
62 theModelCollections.push_back(bld);
63 } else {
65 }
66 }
virtual void RegisterMe(G4PhysicsBuilderInterface *)

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