Geant4 10.7.0
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
 
virtual void Build ()
 
- 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 G4TritonBuilder.hh.

Constructor & Destructor Documentation

◆ G4TritonBuilder()

G4TritonBuilder::G4TritonBuilder ( )

Definition at line 55 of file G4TritonBuilder.cc.

57 {
58 theTritonInelastic=new G4TritonInelasticProcess;
59 }

◆ ~G4TritonBuilder()

virtual G4TritonBuilder::~G4TritonBuilder ( )
inlinevirtual

Definition at line 52 of file G4TritonBuilder.hh.

52{}

Member Function Documentation

◆ Build() [1/2]

virtual void G4PhysicsBuilderInterface::Build ( )
inlinevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 47 of file G4PhysicsBuilderInterface.hh.

48 {
49 G4Exception("G4PhysicsBuilderInterface::Build", "PHYSBLD001",
51 "Called based class method. Should be implemented in"
52 " inherited class");
53 ;
54 }
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35

◆ Build() [2/2]

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:94

◆ 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: