Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HadronPhysicsQGSP_BIC Class Reference

#include <G4HadronPhysicsQGSP_BIC.hh>

Inheritance diagram for G4HadronPhysicsQGSP_BIC:
Collaboration diagram for G4HadronPhysicsQGSP_BIC:

Public Member Functions

 G4HadronPhysicsQGSP_BIC (G4int verbose=1)
 
 G4HadronPhysicsQGSP_BIC (const G4String &name, G4bool quasiElastic=true)
 
virtual ~G4HadronPhysicsQGSP_BIC ()
 
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)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- 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 73 of file G4HadronPhysicsQGSP_BIC.hh.

Constructor & Destructor Documentation

G4HadronPhysicsQGSP_BIC::G4HadronPhysicsQGSP_BIC ( G4int  verbose = 1)

Definition at line 77 of file G4HadronPhysicsQGSP_BIC.cc.

78  : G4VPhysicsConstructor("hInelastic QGSP_BIC")
79 /* , theNeutrons(0)
80  , theFTFPNeutron(0)
81  , theQGSPNeutron(0)
82  , theBinaryNeutron(0)
83  , thePiK(0)
84  , theFTFPPiK(0)
85  , theQGSPPiK(0)
86  , theBertiniPiK(0)
87  , thePro(0)
88  , theFTFPPro(0)
89  , theQGSPPro(0)
90  , theBinaryPro(0)
91  , theHyperon(0)
92  , theAntiBaryon(0)
93  , theFTFPAntiBaryon(0)
94  , xsKaon(0)
95  , xsNeutronInelasticXS(0)
96  , xsNeutronCaptureXS(0)*/
97 // , QuasiElastic(true)
98 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_BIC::G4HadronPhysicsQGSP_BIC ( const G4String name,
G4bool  quasiElastic = true 
)

Definition at line 100 of file G4HadronPhysicsQGSP_BIC.cc.

101  : G4VPhysicsConstructor(name)
102 /* , theNeutrons(0)
103  , theFTFPNeutron(0)
104  , theQGSPNeutron(0)
105  , theBinaryNeutron(0)
106  , thePiK(0)
107  , theFTFPPiK(0)
108  , theQGSPPiK(0)
109  , theBertiniPiK(0)
110  , thePro(0)
111  , theFTFPPro(0)
112  , theQGSPPro(0)
113  , theBinaryPro(0)
114  , theHyperon(0)
115  , theAntiBaryon(0)
116  , theFTFPAntiBaryon(0)
117  , xsKaon(0)
118  , xsNeutronInelasticXS(0)
119  , xsNeutronCaptureXS(0)*/
120 // , QuasiElastic(quasiElastic)
121 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsQGSP_BIC::~G4HadronPhysicsQGSP_BIC ( )
virtual

Definition at line 164 of file G4HadronPhysicsQGSP_BIC.cc.

165 {
166  if (!tpdata) return;
167 
168  delete tpdata->theBinaryNeutron;
169  delete tpdata->theQGSPNeutron;
170  delete tpdata->theFTFPNeutron;
171  delete tpdata->theBertiniPiK;
172  delete tpdata->theQGSPPiK;
173  delete tpdata->theFTFPPiK;
174  delete tpdata->thePiK;
175  delete tpdata->theBinaryPro;
176  delete tpdata->theQGSPPro;
177  delete tpdata->theFTFPPro;
178  delete tpdata->thePro;
179  delete tpdata->theFTFPAntiBaryon;
180  delete tpdata->theAntiBaryon;
181  delete tpdata->theHyperon;
182  delete tpdata->xsNeutronCaptureXS;
183 
184  delete tpdata; tpdata =0 ;
185 }

Member Function Documentation

void G4HadronPhysicsQGSP_BIC::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 187 of file G4HadronPhysicsQGSP_BIC.cc.

188 {
189  G4MesonConstructor pMesonConstructor;
190  pMesonConstructor.ConstructParticle();
191 
192  G4BaryonConstructor pBaryonConstructor;
193  pBaryonConstructor.ConstructParticle();
194 
195  G4ShortLivedConstructor pShortLivedConstructor;
196  pShortLivedConstructor.ConstructParticle();
197 
198  G4IonConstructor pIonConstructor;
199  pIonConstructor.ConstructParticle();
200 }
static void ConstructParticle()
static void ConstructParticle()
static void ConstructParticle()

Here is the call graph for this function:

void G4HadronPhysicsQGSP_BIC::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 203 of file G4HadronPhysicsQGSP_BIC.cc.

204 {
205  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
206  CreateModels();
207  tpdata->theNeutrons->Build();
208  tpdata->thePro->Build();
209  tpdata->thePiK->Build();
210 
211  // --- Kaons ---
212  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
213  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
218 
219  tpdata->theHyperon->Build();
220  tpdata->theAntiBaryon->Build();
221 
222  // --- Neutrons ---
224  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
225 
226  G4HadronicProcess* capture = 0;
228  G4ProcessVector* pv = pmanager->GetProcessList();
229  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
230  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
231  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
232  }
233  }
234  if ( ! capture ) {
235  capture = new G4HadronCaptureProcess("nCapture");
236  pmanager->AddDiscreteProcess(capture);
237  }
239  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
240  capture->RegisterMe(new G4NeutronRadCapture());
241 }
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
static G4KaonZeroLong * KaonZeroLong()
static const char * Default_Name()
static G4KaonMinus * KaonMinus()
Definition: G4KaonMinus.cc:113
void RegisterMe(G4HadronicInteraction *a)
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
static G4KaonZeroShort * KaonZeroShort()
static G4CrossSectionDataSetRegistry * Instance()
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4int size() const
static const char * Default_Name()
G4ProcessManager * GetProcessManager() const
static G4KaonPlus * KaonPlus()
Definition: G4KaonPlus.cc:113
G4ProcessVector * GetProcessList() const

Here is the call graph for this function:


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