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

#include <G4WeightWindowBiasing.hh>

+ Inheritance diagram for G4WeightWindowBiasing:

Public Member Functions

 G4WeightWindowBiasing (const G4String &name="NoParallelWP")
 
 G4WeightWindowBiasing (G4GeometrySampler *mgs, G4VWeightWindowAlgorithm *wwAlg, G4PlaceOfAction placeOfAction, const G4String &name="NoParallelWP")
 
virtual ~G4WeightWindowBiasing ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
 
virtual ~G4VPhysicsConstructor ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Types inherited from G4VPhysicsConstructor
using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
PhysicsBuilder_V GetBuilders () const
 
void AddBuilder (G4PhysicsBuilderInterface *bld)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel = 0
 
G4String namePhysics = ""
 
G4int typePhysics = 0
 
G4ParticleTabletheParticleTable = nullptr
 
G4int g4vpcInstanceID = 0
 
- Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager
 

Detailed Description

Definition at line 41 of file G4WeightWindowBiasing.hh.

Constructor & Destructor Documentation

◆ G4WeightWindowBiasing() [1/2]

G4WeightWindowBiasing::G4WeightWindowBiasing ( const G4String name = "NoParallelWP")

Definition at line 59 of file G4WeightWindowBiasing.cc.

60 : G4VPhysicsConstructor(name), fGeomSampler(0), fWWalg(0), fPlaceOfAction(), paraFlag(false)
61{;}

◆ G4WeightWindowBiasing() [2/2]

G4WeightWindowBiasing::G4WeightWindowBiasing ( G4GeometrySampler mgs,
G4VWeightWindowAlgorithm wwAlg,
G4PlaceOfAction  placeOfAction,
const G4String name = "NoParallelWP" 
)

Definition at line 65 of file G4WeightWindowBiasing.cc.

66: G4VPhysicsConstructor(name), fGeomSampler(mgs), fWWalg(wwAlg), fPlaceOfAction(placeOfAction), paraFlag(false), paraName(name)
67{
68 if(name != "NoParallelWP") {
69 paraFlag = true;
70 paraName = name;
71 }
72}
const char * name(G4int ptype)

◆ ~G4WeightWindowBiasing()

G4WeightWindowBiasing::~G4WeightWindowBiasing ( )
virtual

Definition at line 76 of file G4WeightWindowBiasing.cc.

77{;}

Member Function Documentation

◆ ConstructParticle()

void G4WeightWindowBiasing::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 81 of file G4WeightWindowBiasing.cc.

82{;}

◆ ConstructProcess()

void G4WeightWindowBiasing::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 86 of file G4WeightWindowBiasing.cc.

87{
88 G4cout << " paraFlag: " << paraFlag << G4endl;
89
90 static G4bool first = true;
91 if(first) {
92 G4cout << " Preparing WeightWindow Sampling " << G4endl;
93 fGeomSampler->SetParallel(paraFlag);
94 if(paraFlag) {
95 fGeomSampler->PrepareWeightWindow(G4WeightWindowStore::GetInstance(paraName), fWWalg, fPlaceOfAction);
96 } else {
97 fGeomSampler->PrepareWeightWindow(G4WeightWindowStore::GetInstance(), fWWalg, fPlaceOfAction);
98 }
99 }
100
101 if(first) {
102 fGeomSampler->Configure();
103 first = false;
104 }
105
106#ifdef G4MULTITHREADED
107 fGeomSampler->AddProcess();
108#endif
109
110}
bool G4bool
Definition: G4Types.hh:86
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void SetParallel(G4bool paraflag)
virtual void PrepareWeightWindow(G4VWeightWindowStore *wwstore, G4VWeightWindowAlgorithm *wwAlg, G4PlaceOfAction placeOfAction)
virtual void Configure()
virtual void AddProcess()
static G4WeightWindowStore * GetInstance()

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