Geant4 11.2.2
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 ()=default
 
virtual void SetMinEnergy (G4double)
 
virtual void SetMaxEnergy (G4double)
 

Detailed Description

Definition at line 49 of file G4AntiBarionBuilder.hh.

Constructor & Destructor Documentation

◆ G4AntiBarionBuilder()

G4AntiBarionBuilder::G4AntiBarionBuilder ( )

Definition at line 46 of file G4AntiBarionBuilder.cc.

47{
48 theAntiProtonInelastic=new G4HadronInelasticProcess( "anti_protonInelastic", G4AntiProton::Definition() );
49 theAntiNeutronInelastic=new G4HadronInelasticProcess( "anti_neutronInelastic", G4AntiNeutron::Definition() );
50 theAntiDeuteronInelastic=new G4HadronInelasticProcess( "anti_deuteronInelastic", G4AntiDeuteron::Definition() );
51 theAntiTritonInelastic=new G4HadronInelasticProcess( "anti_tritonInelastic", G4AntiTriton::Definition() );
52 theAntiHe3Inelastic=new G4HadronInelasticProcess( "anti_He3Inelastic", G4AntiHe3::Definition() );
53 theAntiAlphaInelastic=new G4HadronInelasticProcess( "anti_alpha_Inelastic", G4AntiAlpha::Definition() );
54}
static G4AntiAlpha * Definition()
static G4AntiDeuteron * Definition()
static G4AntiHe3 * Definition()
Definition G4AntiHe3.cc:45
static G4AntiNeutron * Definition()
static G4AntiProton * Definition()
static G4AntiTriton * Definition()

◆ ~G4AntiBarionBuilder()

virtual G4AntiBarionBuilder::~G4AntiBarionBuilder ( )
inlinevirtual

Definition at line 53 of file G4AntiBarionBuilder.hh.

53{}

Member Function Documentation

◆ Build()

void G4AntiBarionBuilder::Build ( )
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 56 of file G4AntiBarionBuilder.cc.

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

◆ RegisterMe()

void G4AntiBarionBuilder::RegisterMe ( G4PhysicsBuilderInterface * aB)
finaloverridevirtual

Reimplemented from G4PhysicsBuilderInterface.

Definition at line 88 of file G4AntiBarionBuilder.cc.

88 {
89 auto bld = dynamic_cast<G4VAntiBarionBuilder*>(aB);
90 if ( bld != nullptr ) {
91 theModelCollections.push_back(bld);
92 } else {
94 }
95
96}
virtual void RegisterMe(G4PhysicsBuilderInterface *)

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