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

#include <G4LHEPAntiBarionBuilder.hh>

Public Member Functions

 G4LHEPAntiBarionBuilder ()
 
virtual ~G4LHEPAntiBarionBuilder ()
 
void Build ()
 

Detailed Description

Definition at line 54 of file G4LHEPAntiBarionBuilder.hh.

Constructor & Destructor Documentation

◆ G4LHEPAntiBarionBuilder()

G4LHEPAntiBarionBuilder::G4LHEPAntiBarionBuilder ( )

Definition at line 48 of file G4LHEPAntiBarionBuilder.cc.

48 :
49 theAntiProtonInelastic(0), theLEAntiProtonModel(0), theHEAntiProtonModel(0),
50 theAntiNeutronInelastic(0), theLEAntiNeutronModel(0), theHEAntiNeutronModel(0),
51 wasActivated(false)
52{}

◆ ~G4LHEPAntiBarionBuilder()

G4LHEPAntiBarionBuilder::~G4LHEPAntiBarionBuilder ( )
virtual

Definition at line 54 of file G4LHEPAntiBarionBuilder.cc.

55{}

Member Function Documentation

◆ Build()

void G4LHEPAntiBarionBuilder::Build ( )

Definition at line 57 of file G4LHEPAntiBarionBuilder.cc.

58{
59 G4ProcessManager * aProcMan = 0;
60 wasActivated = true;
61
62 // anti-Proton
63 theAntiProtonInelastic = new G4AntiProtonInelasticProcess();
65 theLEAntiProtonModel = new G4LEAntiProtonInelastic();
66 theHEAntiProtonModel = new G4HEAntiProtonInelastic();
67 theHEAntiProtonModel->SetMaxEnergy(100*TeV);
68 theAntiProtonInelastic->RegisterMe(theLEAntiProtonModel);
69 theAntiProtonInelastic->RegisterMe(theHEAntiProtonModel);
70 aProcMan->AddDiscreteProcess(theAntiProtonInelastic);
71
72 // AntiNeutron
73 theAntiNeutronInelastic = new G4AntiNeutronInelasticProcess();
75 theLEAntiNeutronModel = new G4LEAntiNeutronInelastic();
76 theHEAntiNeutronModel = new G4HEAntiNeutronInelastic();
77 theHEAntiNeutronModel->SetMaxEnergy(100*TeV);
78 theAntiNeutronInelastic->RegisterMe(theLEAntiNeutronModel);
79 theAntiNeutronInelastic->RegisterMe(theHEAntiNeutronModel);
80 aProcMan->AddDiscreteProcess(theAntiNeutronInelastic);
81}
static G4AntiNeutron * AntiNeutron()
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
void SetMaxEnergy(const G4double anEnergy)
void RegisterMe(G4HadronicInteraction *a)
G4ProcessManager * GetProcessManager() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

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