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

#include <G4PionBuilder.hh>

Public Member Functions

 G4PionBuilder ()
 
virtual ~G4PionBuilder ()
 
void Build ()
 
void RegisterMe (G4VPionBuilder *aB)
 

Detailed Description

Definition at line 48 of file G4PionBuilder.hh.

Constructor & Destructor Documentation

◆ G4PionBuilder()

G4PionBuilder::G4PionBuilder ( )

Definition at line 44 of file G4PionBuilder.cc.

45 : wasActivated(false)
46{
47 thePionPlusInelastic=new G4PionPlusInelasticProcess;
48 thePionMinusInelastic=new G4PionMinusInelasticProcess;
49}

◆ ~G4PionBuilder()

G4PionBuilder::~G4PionBuilder ( )
virtual

Definition at line 51 of file G4PionBuilder.cc.

52 {
53 delete thePionPlusInelastic;
54 delete thePionMinusInelastic;
55}

Member Function Documentation

◆ Build()

void G4PionBuilder::Build ( )

Definition at line 57 of file G4PionBuilder.cc.

59{
60 wasActivated = true;
61
62 std::vector<G4VPionBuilder *>::iterator i;
63 for(i=theModelCollections.begin(); i!=theModelCollections.end(); i++)
64 {
65 (*i)->Build(thePionPlusInelastic);
66 (*i)->Build(thePionMinusInelastic);
67 }
68 G4ProcessManager * theProcMan;
69
71 theProcMan->AddDiscreteProcess(thePionPlusInelastic);
72
74 theProcMan->AddDiscreteProcess(thePionMinusInelastic);
75}
G4ProcessManager * GetProcessManager() const
static G4PionMinus * PionMinus()
Definition: G4PionMinus.cc:98
static G4PionPlus * PionPlus()
Definition: G4PionPlus.cc:98
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)

Referenced by HadronPhysicsFTF_BIC::ConstructProcess(), and HadronPhysicsQGSP_BERT_CHIPS::ConstructProcess().

◆ RegisterMe()

void G4PionBuilder::RegisterMe ( G4VPionBuilder aB)
inline

Definition at line 56 of file G4PionBuilder.hh.

56{theModelCollections.push_back(aB);}

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