Geant4  10.02.p03
G4WeightWindowBiasing Class Reference

#include <G4WeightWindowBiasing.hh>

Inheritance diagram for G4WeightWindowBiasing:
Collaboration 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 ()
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Private Member Functions

G4WeightWindowBiasingoperator= (const G4WeightWindowBiasing &right)
 
 G4WeightWindowBiasing (const G4WeightWindowBiasing &)
 

Private Attributes

G4GeometrySampler * fGeomSampler
 
G4VWeightWindowAlgorithmfWWalg
 
G4PlaceOfAction fPlaceOfAction
 
G4bool paraFlag
 
G4String paraName
 

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 42 of file G4WeightWindowBiasing.hh.

Constructor & Destructor Documentation

◆ G4WeightWindowBiasing() [1/3]

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

Definition at line 60 of file G4WeightWindowBiasing.cc.

62 {;}
G4GeometrySampler * fGeomSampler
G4VWeightWindowAlgorithm * fWWalg
G4VPhysicsConstructor(const G4String &="")

◆ G4WeightWindowBiasing() [2/3]

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

Definition at line 66 of file G4WeightWindowBiasing.cc.

67 : G4VPhysicsConstructor(name), fGeomSampler(mgs), fWWalg(wwAlg), fPlaceOfAction(placeOfAction), paraFlag(false), paraName(name)
68 {
69  if(name != "NoParallelWP") {
70  paraFlag = true;
71  paraName = name;
72  }
73 }
G4String name
Definition: TRTMaterials.hh:40
G4GeometrySampler * fGeomSampler
G4VWeightWindowAlgorithm * fWWalg
G4VPhysicsConstructor(const G4String &="")

◆ ~G4WeightWindowBiasing()

G4WeightWindowBiasing::~G4WeightWindowBiasing ( )
virtual

Definition at line 77 of file G4WeightWindowBiasing.cc.

78 {;}

◆ G4WeightWindowBiasing() [3/3]

G4WeightWindowBiasing::G4WeightWindowBiasing ( const G4WeightWindowBiasing )
private

Member Function Documentation

◆ ConstructParticle()

void G4WeightWindowBiasing::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 82 of file G4WeightWindowBiasing.cc.

83 {;}

◆ ConstructProcess()

void G4WeightWindowBiasing::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 87 of file G4WeightWindowBiasing.cc.

88 {
89  G4cout << " paraFlag: " << paraFlag << G4endl;
90 
91  static G4bool first = true;
92  if(first) {
93  G4cout << " Preparing WeightWindow Sampling " << G4endl;
94  fGeomSampler->SetParallel(paraFlag);
95  if(paraFlag) {
97  } else {
99  }
100  }
101 
102  if(first) {
103  fGeomSampler->Configure();
104  first = false;
105  }
106 
107 #ifdef G4MULTITHREADED
108  fGeomSampler->AddProcess();
109 #endif
110 
111 }
G4GLOB_DLL std::ostream G4cout
bool G4bool
Definition: G4Types.hh:79
static G4WeightWindowStore * GetInstance()
G4GeometrySampler * fGeomSampler
G4VWeightWindowAlgorithm * fWWalg
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:

◆ operator=()

G4WeightWindowBiasing& G4WeightWindowBiasing::operator= ( const G4WeightWindowBiasing right)
private

Member Data Documentation

◆ fGeomSampler

G4GeometrySampler* G4WeightWindowBiasing::fGeomSampler
private

Definition at line 66 of file G4WeightWindowBiasing.hh.

◆ fPlaceOfAction

G4PlaceOfAction G4WeightWindowBiasing::fPlaceOfAction
private

Definition at line 68 of file G4WeightWindowBiasing.hh.

◆ fWWalg

G4VWeightWindowAlgorithm* G4WeightWindowBiasing::fWWalg
private

Definition at line 67 of file G4WeightWindowBiasing.hh.

◆ paraFlag

G4bool G4WeightWindowBiasing::paraFlag
private

Definition at line 70 of file G4WeightWindowBiasing.hh.

◆ paraName

G4String G4WeightWindowBiasing::paraName
private

Definition at line 71 of file G4WeightWindowBiasing.hh.


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