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

#include <G4QInelasticCHIPSBuilder.hh>

Public Member Functions

 G4QInelasticCHIPSBuilder (G4int verbose)
 
virtual ~G4QInelasticCHIPSBuilder ()
 
void Build ()
 

Protected Attributes

G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 

Detailed Description

Definition at line 63 of file G4QInelasticCHIPSBuilder.hh.

Constructor & Destructor Documentation

◆ G4QInelasticCHIPSBuilder()

G4QInelasticCHIPSBuilder::G4QInelasticCHIPSBuilder ( G4int  verbose)

Definition at line 51 of file G4QInelasticCHIPSBuilder.cc.

51 :
52 verbose(ver), wasActivated(false), inelastic(0), nGamma(0)
53{
54 // pointer to the particle table
57}
G4PTblDicIterator * GetIterator()
static G4ParticleTable * GetParticleTable()
G4ParticleTable::G4PTblDicIterator * theParticleIterator

◆ ~G4QInelasticCHIPSBuilder()

G4QInelasticCHIPSBuilder::~G4QInelasticCHIPSBuilder ( )
virtual

Definition at line 59 of file G4QInelasticCHIPSBuilder.cc.

60{
61 if(wasActivated) delete inelastic;
62}

Member Function Documentation

◆ Build()

void G4QInelasticCHIPSBuilder::Build ( )

Definition at line 64 of file G4QInelasticCHIPSBuilder.cc.

65{
66 if(wasActivated) return;
67 wasActivated = true;
69 inelastic = new G4QInelastic();
70 while( (*theParticleIterator)() )
71 {
73 G4String pname = particle->GetParticleName();
74 if(pname == "kaon-" || pname == "kaon+" || pname == "kaon0S" || pname == "kaon0L" ||
75 pname == "pi-" || pname == "pi+" || pname == "neutron" || pname == "proton" ||
76 pname == "lambda" || pname == "sigma+" || pname == "sigma0" ||
77 pname == "sigma-" || pname == "xi0" || pname == "xi-" || pname == "omega-" ||
78 pname == "anti_proton" || pname == "anti_neutron" || pname == "anti_lambda" ||
79 pname == "anti_sigma+" || pname == "anti_sigma0" || pname == "anti_sigma-" ||
80 pname == "anti_xi0" || pname == "anti_xi-" || pname == "anti_omega-" )
81 {
82 if(verbose>1)G4cout<< "__G4QInelCHIPSBuilder: "<< pname <<" is defined here"<<G4endl;
83 G4ProcessManager* pmanager = particle->GetProcessManager();
84 pmanager->AddDiscreteProcess(inelastic);
85 if(verbose>1) G4cout<<"###> G4QInelasticCHIPSBuilder: "<<inelastic->GetProcessName()
86 <<" is added for "<<pname<<G4endl;
87 }
88 }
89}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
const G4String & GetProcessName() const
Definition: G4VProcess.hh:379

Referenced by HadronPhysicsCHIPS::ConstructProcess().

Member Data Documentation

◆ theParticleIterator

G4ParticleTable::G4PTblDicIterator* G4QInelasticCHIPSBuilder::theParticleIterator
protected

Definition at line 75 of file G4QInelasticCHIPSBuilder.hh.

Referenced by Build(), and G4QInelasticCHIPSBuilder().

◆ theParticleTable

G4ParticleTable* G4QInelasticCHIPSBuilder::theParticleTable
protected

Definition at line 74 of file G4QInelasticCHIPSBuilder.hh.

Referenced by G4QInelasticCHIPSBuilder().


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