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

#include <G4TritonBuilder.hh>

Inheritance diagram for G4TritonBuilder:
G4PhysicsBuilderInterface

Public Member Functions

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

Private Attributes

std::vector< G4VTritonBuilder * > theModelCollections
 
G4HadronInelasticProcesstheTritonInelastic
 

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 {
59 }
G4HadronInelasticProcess * theTritonInelastic
static G4Triton * Definition()
Definition: G4Triton.cc:49

References G4Triton::Definition(), and theTritonInelastic.

◆ ~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 46 of file G4PhysicsBuilderInterface.hh.

47 {
48 G4Exception("G4PhysicsBuilderInterface::Build", "PHYSBLD001",
50 "Called based class method. Should be implemented in"
51 " inherited class");
52 }
@ 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 }
53 }
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
std::vector< G4VTritonBuilder * > theModelCollections
static G4Triton * Triton()
Definition: G4Triton.cc:93

References G4ProcessManager::AddDiscreteProcess(), G4ParticleDefinition::GetProcessManager(), theModelCollections, theTritonInelastic, and G4Triton::Triton().

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

References G4PhysicsBuilderInterface::RegisterMe(), and theModelCollections.

◆ SetMaxEnergy()

virtual void G4PhysicsBuilderInterface::SetMaxEnergy ( G4double  )
inlinevirtualinherited

◆ SetMinEnergy()

virtual void G4PhysicsBuilderInterface::SetMinEnergy ( G4double  )
inlinevirtualinherited

Field Documentation

◆ theModelCollections

std::vector<G4VTritonBuilder *> G4TritonBuilder::theModelCollections
private

Definition at line 62 of file G4TritonBuilder.hh.

Referenced by Build(), and RegisterMe().

◆ theTritonInelastic

G4HadronInelasticProcess* G4TritonBuilder::theTritonInelastic
private

Definition at line 60 of file G4TritonBuilder.hh.

Referenced by Build(), and G4TritonBuilder().


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