Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 

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::G4WeightWindowBiasing ( const G4String name = "NoParallelWP")

Definition at line 60 of file G4WeightWindowBiasing.cc.

61  : G4VPhysicsConstructor(name), fGeomSampler(0), fWWalg(0), fPlaceOfAction(), paraFlag(false)
62 {;}
G4VPhysicsConstructor(const G4String &="")
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 }
const XML_Char * name
Definition: expat.h:151
G4VPhysicsConstructor(const G4String &="")
G4WeightWindowBiasing::~G4WeightWindowBiasing ( )
virtual

Definition at line 77 of file G4WeightWindowBiasing.cc.

78 {;}

Member Function Documentation

void G4WeightWindowBiasing::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 82 of file G4WeightWindowBiasing.cc.

83 {;}
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) {
96  fGeomSampler->PrepareWeightWindow(G4WeightWindowStore::GetInstance(paraName), fWWalg, fPlaceOfAction);
97  } else {
98  fGeomSampler->PrepareWeightWindow(G4WeightWindowStore::GetInstance(), fWWalg, fPlaceOfAction);
99  }
100  }
101 
102  if(first) {
103  fGeomSampler->Configure();
104  first = false;
105  }
106 
107 #ifdef G4MULTITHREADED
108  fGeomSampler->AddProcess();
109 #endif
110 
111 }
virtual void PrepareWeightWindow(G4VWeightWindowStore *wwstore, G4VWeightWindowAlgorithm *wwAlg, G4PlaceOfAction placeOfAction)
void SetParallel(G4bool paraflag)
G4GLOB_DLL std::ostream G4cout
bool G4bool
Definition: G4Types.hh:79
virtual void AddProcess()
static G4WeightWindowStore * GetInstance()
#define G4endl
Definition: G4ios.hh:61
virtual void Configure()

Here is the call graph for this function:


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