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

#include <G4ParallelWorldPhysics.hh>

Inheritance diagram for G4ParallelWorldPhysics:
Collaboration diagram for G4ParallelWorldPhysics:

Public Member Functions

 G4ParallelWorldPhysics (const G4String &name="ParallelWP", G4bool layerdMass=false)
 
virtual ~G4ParallelWorldPhysics ()
 
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 40 of file G4ParallelWorldPhysics.hh.

Constructor & Destructor Documentation

G4ParallelWorldPhysics::G4ParallelWorldPhysics ( const G4String name = "ParallelWP",
G4bool  layerdMass = false 
)

Definition at line 57 of file G4ParallelWorldPhysics.cc.

58  : G4VPhysicsConstructor(name), fLayeredMass(layeredMass)
59 {;}
G4VPhysicsConstructor(const G4String &="")
G4ParallelWorldPhysics::~G4ParallelWorldPhysics ( )
virtual

Definition at line 63 of file G4ParallelWorldPhysics.cc.

64 {;}

Member Function Documentation

void G4ParallelWorldPhysics::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 68 of file G4ParallelWorldPhysics.cc.

69 {;}
void G4ParallelWorldPhysics::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 73 of file G4ParallelWorldPhysics.cc.

74 {
75  // Make sure the parallel world registered
78 
79  // Add parallel world process
80  G4ParallelWorldProcess* theParallelWorldProcess
82  theParallelWorldProcess->SetParallelWorld(namePhysics);
83  theParallelWorldProcess->SetLayeredMaterialFlag(fLayeredMass);
84 
85  auto myParticleIterator=GetParticleIterator();
86  myParticleIterator->reset();
87  while( (*myParticleIterator)() ){
88  G4ParticleDefinition* particle = myParticleIterator->value();
89  G4ProcessManager* pmanager = particle->GetProcessManager();
90  pmanager->AddProcess(theParallelWorldProcess);
91  if(theParallelWorldProcess->IsAtRestRequired(particle))
92  {pmanager->SetProcessOrdering(theParallelWorldProcess, idxAtRest, 9900);}
93  pmanager->SetProcessOrderingToSecond(theParallelWorldProcess, idxAlongStep);
94  pmanager->SetProcessOrdering(theParallelWorldProcess, idxPostStep, 9900);
95  }
96 }
void SetProcessOrderingToSecond(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt)
G4bool IsAtRestRequired(G4ParticleDefinition *)
G4ParticleTable::G4PTblDicIterator * GetParticleIterator() const
void SetParallelWorld(G4String parallelWorldName)
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
void SetLayeredMaterialFlag(G4bool flg=true)
void SetProcessOrdering(G4VProcess *aProcess, G4ProcessVectorDoItIndex idDoIt, G4int ordDoIt=ordDefault)
static G4TransportationManager * GetTransportationManager()
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
G4ProcessManager * GetProcessManager() const

Here is the call graph for this function:


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