Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Public Member Functions
G4HadronPhysicsQGSP_BERT_HP Class Reference

#include <G4HadronPhysicsQGSP_BERT_HP.hh>

Inheritance diagram for G4HadronPhysicsQGSP_BERT_HP:
G4VPhysicsConstructor

Public Member Functions

 G4HadronPhysicsQGSP_BERT_HP (G4int verbose=1)
 
 G4HadronPhysicsQGSP_BERT_HP (const G4String &name, G4bool quasiElastic=true)
 
virtual ~G4HadronPhysicsQGSP_BERT_HP ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 71 of file G4HadronPhysicsQGSP_BERT_HP.hh.

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_BERT_HP::G4HadronPhysicsQGSP_BERT_HP ( G4int  verbose = 1)

Definition at line 74 of file G4HadronPhysicsQGSP_BERT_HP.cc.

75  : G4VPhysicsConstructor("hInelastic QGSP_BERT_HP")
76 /* , theNeutrons(0)
77  , theFTFPNeutron(0)
78  , theQGSPNeutron(0)
79  , theBertiniNeutron(0)
80  , theHPNeutron(0)
81  , thePiK(0)
82  , theFTFPPiK(0)
83  , theQGSPPiK(0)
84  , theBertiniPiK(0)
85  , thePro(0)
86  , theFTFPPro(0)
87  , theQGSPPro(0)
88  , theBertiniPro(0)
89  , theHyperon(0)
90  , theAntiBaryon(0)
91  , theFTFPAntiBaryon(0)
92  , xsNeutronCaptureXS(0)*/
93 // , QuasiElastic(true)
94 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_BERT_HP::G4HadronPhysicsQGSP_BERT_HP ( const G4String name,
G4bool  quasiElastic = true 
)

Definition at line 96 of file G4HadronPhysicsQGSP_BERT_HP.cc.

97  : G4VPhysicsConstructor(name)
98 /* , theNeutrons(0)
99  , theFTFPNeutron(0)
100  , theQGSPNeutron(0)
101  , theBertiniNeutron(0)
102  , theHPNeutron(0)
103  , thePiK(0)
104  , theFTFPPiK(0)
105  , theQGSPPiK(0)
106  , theBertiniPiK(0)
107  , thePro(0)
108  , theFTFPPro(0)
109  , theQGSPPro(0)
110  , theBertiniPro(0)
111  , theHyperon(0)
112  , theAntiBaryon(0)
113  , theFTFPAntiBaryon(0)
114  , xsNeutronCaptureXS(0)*/
115 // , QuasiElastic(quasiElastic)
116 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_BERT_HP::~G4HadronPhysicsQGSP_BERT_HP ( )
virtual

Definition at line 166 of file G4HadronPhysicsQGSP_BERT_HP.cc.

167 {
168  delete tpdata->theHPNeutron;
169  delete tpdata->theBertiniNeutron;
170  delete tpdata->theQGSPNeutron;
171  delete tpdata->theFTFPNeutron;
172  delete tpdata->theNeutrons;
173  delete tpdata->theBertiniPiK;
174  delete tpdata->theQGSPPiK;
175  delete tpdata->theFTFPPiK;
176  delete tpdata->thePiK;
177  delete tpdata->theBertiniPro;
178  delete tpdata->theQGSPPro;
179  delete tpdata->theFTFPPro;
180  delete tpdata->thePro;
181  delete tpdata->theFTFPAntiBaryon;
182  delete tpdata->theAntiBaryon;
183  delete tpdata->theHyperon;
184  delete tpdata->xsNeutronCaptureXS;
185 
186  delete tpdata; tpdata = 0;
187 }

Member Function Documentation

void G4HadronPhysicsQGSP_BERT_HP::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 189 of file G4HadronPhysicsQGSP_BERT_HP.cc.

References G4MesonConstructor::ConstructParticle(), G4IonConstructor::ConstructParticle(), G4BaryonConstructor::ConstructParticle(), and G4ShortLivedConstructor::ConstructParticle().

190 {
191  G4MesonConstructor pMesonConstructor;
192  pMesonConstructor.ConstructParticle();
193 
194  G4BaryonConstructor pBaryonConstructor;
195  pBaryonConstructor.ConstructParticle();
196 
197  G4ShortLivedConstructor pShortLivedConstructor;
198  pShortLivedConstructor.ConstructParticle();
199 
200  G4IonConstructor pIonConstructor;
201  pIonConstructor.ConstructParticle();
202 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()
void G4HadronPhysicsQGSP_BERT_HP::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 205 of file G4HadronPhysicsQGSP_BERT_HP.cc.

References G4HadronicProcess::AddDataSet(), G4ProcessManager::AddDiscreteProcess(), fCapture, fFission, G4ProcessManager::GetProcessList(), G4ParticleDefinition::GetProcessManager(), python.hepunit::MeV, G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMinEnergy(), and G4ProcessVector::size().

206 {
207  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
208  CreateModels();
209  tpdata->theNeutrons->Build();
210  tpdata->thePro->Build();
211  tpdata->thePiK->Build();
212  tpdata->theHyperon->Build();
213  tpdata->theAntiBaryon->Build();
214 
215  // --- Neutrons ---
216  G4HadronicProcess* capture = 0;
217  G4HadronicProcess* fission = 0;
219  G4ProcessVector* pv = pmanager->GetProcessList();
220  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
221  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
222  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
223  } else if ( fFission == ((*pv)[i])->GetProcessSubType() ) {
224  fission = static_cast<G4HadronicProcess*>((*pv)[i]);
225  }
226  }
227  if ( ! capture ) {
228  capture = new G4HadronCaptureProcess("nCapture");
229  pmanager->AddDiscreteProcess(capture);
230  }
231  tpdata->xsNeutronCaptureXS = new G4NeutronCaptureXS();
232  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
233  capture->AddDataSet( new G4NeutronHPCaptureData );
234  G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
235  theNeutronRadCapture->SetMinEnergy( 19.9*MeV );
236  capture->RegisterMe( theNeutronRadCapture );
237  if ( ! fission ) {
238  fission = new G4HadronFissionProcess("nFission");
239  pmanager->AddDiscreteProcess(fission);
240  }
241  G4LFission* theNeutronLEPFission = new G4LFission();
242  theNeutronLEPFission->SetMinEnergy( 19.9*MeV );
243  fission->RegisterMe( theNeutronLEPFission );
244 }
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4ProcessManager * GetProcessManager() const
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
G4ProcessVector * GetProcessList() const

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