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

#include <G4HadronPhysicsFTFP_BERT_ATL.hh>

Inheritance diagram for G4HadronPhysicsFTFP_BERT_ATL:
Collaboration diagram for G4HadronPhysicsFTFP_BERT_ATL:

Public Member Functions

 G4HadronPhysicsFTFP_BERT_ATL (G4int verbose=1)
 
 G4HadronPhysicsFTFP_BERT_ATL (const G4String &name, G4bool quasiElastic=false)
 
virtual ~G4HadronPhysicsFTFP_BERT_ATL ()
 
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 67 of file G4HadronPhysicsFTFP_BERT_ATL.hh.

Constructor & Destructor Documentation

G4HadronPhysicsFTFP_BERT_ATL::G4HadronPhysicsFTFP_BERT_ATL ( G4int  verbose = 1)

Definition at line 71 of file G4HadronPhysicsFTFP_BERT_ATL.cc.

72  : G4VPhysicsConstructor("hInelastic FTFP_BERT_ATL")
73 /* , theNeutrons(0)
74  , theBertiniNeutron(0)
75  , theFTFPNeutron(0)
76  , thePiK(0)
77  , theBertiniPiK(0)
78  , theFTFPPiK(0)
79  , thePro(0)
80  , theBertiniPro(0)
81  , theFTFPPro(0)
82  , theHyperon(0)
83  , theAntiBaryon(0)
84  , theFTFPAntiBaryon(0) */
85  , QuasiElastic(false)
86  /*, xsKaon(0)
87  , xsNeutronInelasticXS(0)
88  , xsNeutronCaptureXS(0)*/
89 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT_ATL::G4HadronPhysicsFTFP_BERT_ATL ( const G4String name,
G4bool  quasiElastic = false 
)

Definition at line 91 of file G4HadronPhysicsFTFP_BERT_ATL.cc.

92  : G4VPhysicsConstructor(name)
93 /* , theNeutrons(0)
94  , theBertiniNeutron(0)
95  , theFTFPNeutron(0)
96  , thePiK(0)
97  , theBertiniPiK(0)
98  , theFTFPPiK(0)
99  , thePro(0)
100  , theBertiniPro(0)
101  , theFTFPPro(0)
102  , theHyperon(0)
103  , theAntiBaryon(0)
104  , theFTFPAntiBaryon(0)*/
105  , QuasiElastic(quasiElastic)
106  /*, xsKaonMinus(0)
107  , xsNeutronInelasticXS(0)
108  , xsNeutronCaptureXS(0)*/
109 {}
G4VPhysicsConstructor(const G4String &="")
G4HadronPhysicsFTFP_BERT_ATL::~G4HadronPhysicsFTFP_BERT_ATL ( )
virtual

Definition at line 145 of file G4HadronPhysicsFTFP_BERT_ATL.cc.

146 {
147  if (!tpdata) return;
148 
149  delete tpdata->theNeutrons;
150  delete tpdata->theBertiniNeutron;
151  delete tpdata->theFTFPNeutron;
152 
153  delete tpdata->thePiK;
154  delete tpdata->theBertiniPiK;
155  delete tpdata->theFTFPPiK;
156 
157  delete tpdata->thePro;
158  delete tpdata->theBertiniPro;
159  delete tpdata->theFTFPPro;
160 
161  delete tpdata->theHyperon;
162  delete tpdata->theAntiBaryon;
163  delete tpdata->theFTFPAntiBaryon;
164 
165  //Note that here we need to set to 0 the pointer
166  //since tpdata is static and if thread are "reused"
167  //it can be problematic
168  delete tpdata; tpdata = 0;
169 }

Member Function Documentation

void G4HadronPhysicsFTFP_BERT_ATL::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 171 of file G4HadronPhysicsFTFP_BERT_ATL.cc.

172 {
173  G4MesonConstructor pMesonConstructor;
174  pMesonConstructor.ConstructParticle();
175 
176  G4BaryonConstructor pBaryonConstructor;
177  pBaryonConstructor.ConstructParticle();
178 
179  G4ShortLivedConstructor pShortLivedConstructor;
180  pShortLivedConstructor.ConstructParticle();
181 }
static void ConstructParticle()
static void ConstructParticle()

Here is the call graph for this function:

void G4HadronPhysicsFTFP_BERT_ATL::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 184 of file G4HadronPhysicsFTFP_BERT_ATL.cc.

185 {
186  if ( tpdata == 0 ) tpdata = new ThreadPrivate;
187  CreateModels();
188  tpdata->theNeutrons->Build();
189  tpdata->thePro->Build();
190  tpdata->thePiK->Build();
191 
192  // --- Kaons ---
193  tpdata->xsKaon = new G4ComponentGGHadronNucleusXsc();
194  G4VCrossSectionDataSet * kaonxs = new G4CrossSectionInelastic(tpdata->xsKaon);
199 
200  tpdata->theHyperon->Build();
201  tpdata->theAntiBaryon->Build();
202 
203  // --- Neutrons ---
205  G4PhysListUtil::FindInelasticProcess(G4Neutron::Neutron())->AddDataSet(tpdata->xsNeutronInelasticXS);
206 
207  G4HadronicProcess* capture = 0;
209  G4ProcessVector* pv = pmanager->GetProcessList();
210  for ( size_t i=0; i < static_cast<size_t>(pv->size()); ++i ) {
211  if ( fCapture == ((*pv)[i])->GetProcessSubType() ) {
212  capture = static_cast<G4HadronicProcess*>((*pv)[i]);
213  }
214  }
215  if ( ! capture ) {
216  capture = new G4HadronCaptureProcess("nCapture");
217  pmanager->AddDiscreteProcess(capture);
218  }
220  capture->AddDataSet(tpdata->xsNeutronCaptureXS);
221  capture->RegisterMe(new G4NeutronRadCapture());
222 }
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: