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

#include <G4TritonBuilder.hh>

+ Inheritance diagram for G4TritonBuilder:

Public Member Functions

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

Detailed Description

Definition at line 48 of file G4TritonBuilder.hh.

Constructor & Destructor Documentation

◆ G4TritonBuilder()

G4TritonBuilder::G4TritonBuilder ( )

Definition at line 55 of file G4TritonBuilder.cc.

57 {
58 theTritonInelastic=new G4HadronInelasticProcess( "tInelastic", G4Triton::Definition() );
59 }
static G4Triton * Definition()
Definition G4Triton.cc:45

◆ ~G4TritonBuilder()

virtual G4TritonBuilder::~G4TritonBuilder ( )
inlinevirtual

Definition at line 52 of file G4TritonBuilder.hh.

52{}

Member Function Documentation

◆ Build()

void G4TritonBuilder::Build ( )
finalvirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 44 of file G4TritonBuilder.cc.

45 {
46 std::vector<G4VTritonBuilder *>::iterator i;
47 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
48 {
49 (*i)->Build(theTritonInelastic);
50 }
52 theProcMan->AddDiscreteProcess(theTritonInelastic);
53 }
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4Triton * Triton()
Definition G4Triton.cc:90

◆ RegisterMe()

void G4TritonBuilder::RegisterMe ( G4PhysicsBuilderInterface * aB)
finalvirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 61 of file G4TritonBuilder.cc.

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

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