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

#include <G4AntiBarionBuilder.hh>

+ Inheritance diagram for G4AntiBarionBuilder:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4AntiBarionBuilder()

◆ ~G4AntiBarionBuilder()

virtual G4AntiBarionBuilder::~G4AntiBarionBuilder ( )
inlinevirtual

Definition at line 52 of file G4AntiBarionBuilder.hh.

52{}

Member Function Documentation

◆ Build()

void G4AntiBarionBuilder::Build ( )
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 53 of file G4AntiBarionBuilder.cc.

54{
55 std::vector<G4VAntiBarionBuilder *>::iterator i;
56 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
57 {
58 (*i)->Build(theAntiProtonInelastic);
59 (*i)->Build(theAntiNeutronInelastic);
60 (*i)->Build(theAntiDeuteronInelastic);
61 (*i)->Build(theAntiTritonInelastic);
62 (*i)->Build(theAntiHe3Inelastic);
63 (*i)->Build(theAntiAlphaInelastic);
64 }
65 G4ProcessManager * theProcMan;
67 theProcMan->AddDiscreteProcess(theAntiProtonInelastic);
68
70 theProcMan->AddDiscreteProcess(theAntiNeutronInelastic);
71
73 theProcMan->AddDiscreteProcess(theAntiDeuteronInelastic);
74
76 theProcMan->AddDiscreteProcess(theAntiTritonInelastic);
77
78 theProcMan = G4AntiHe3::AntiHe3()->GetProcessManager();
79 theProcMan->AddDiscreteProcess(theAntiHe3Inelastic);
80
82 theProcMan->AddDiscreteProcess(theAntiAlphaInelastic);
83}
static G4AntiAlpha * AntiAlpha()
Definition: G4AntiAlpha.cc:88
static G4AntiDeuteron * AntiDeuteron()
static G4AntiHe3 * AntiHe3()
Definition: G4AntiHe3.cc:93
static G4AntiNeutron * AntiNeutron()
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:92
static G4AntiTriton * AntiTriton()
Definition: G4AntiTriton.cc:93
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

◆ RegisterMe()

void G4AntiBarionBuilder::RegisterMe ( G4PhysicsBuilderInterface aB)
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 85 of file G4AntiBarionBuilder.cc.

85 {
86 auto bld = dynamic_cast<G4VAntiBarionBuilder*>(aB);
87 if ( bld != nullptr ) {
88 theModelCollections.push_back(bld);
89 } else {
91 }
92
93}
virtual void RegisterMe(G4PhysicsBuilderInterface *)

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