Geant4  10.03
G4GeometrySampler Class Reference

#include <G4GeometrySampler.hh>

+ Inheritance diagram for G4GeometrySampler:
+ Collaboration diagram for G4GeometrySampler:

Public Member Functions

 G4GeometrySampler (G4VPhysicalVolume *worldvolume, const G4String &particlename)
 
 G4GeometrySampler (G4String worldvolumeName, const G4String &particlename)
 
virtual ~G4GeometrySampler ()
 
virtual void PrepareImportanceSampling (G4VIStore *istore, const G4VImportanceAlgorithm *ialg)
 
virtual void PrepareWeightRoulett (G4double wsurvive, G4double wlimit, G4double isource)
 
virtual void PrepareWeightWindow (G4VWeightWindowStore *wwstore, G4VWeightWindowAlgorithm *wwAlg, G4PlaceOfAction placeOfAction)
 
virtual void Configure ()
 
virtual void AddProcess ()
 
virtual void ClearSampling ()
 
virtual G4bool IsConfigured () const
 
void SetParallel (G4bool paraflag)
 
void SetWorld (const G4VPhysicalVolume *world)
 
void SetParticle (const G4String &particlename)
 
G4String GetParticleName ()
 
- Public Member Functions inherited from G4VSampler
 G4VSampler ()
 
virtual ~G4VSampler ()
 

Private Member Functions

 G4GeometrySampler (const G4GeometrySampler &)
 
G4GeometrySampleroperator= (const G4GeometrySampler &)
 

Private Attributes

G4String fParticleName
 
const G4VPhysicalVolumefWorld
 
G4String fWorldName
 
G4ImportanceConfiguratorfImportanceConfigurator
 
G4WeightCutOffConfiguratorfWeightCutOffConfigurator
 
G4VIStorefIStore
 
G4WeightWindowConfiguratorfWeightWindowConfigurator
 
G4VWeightWindowStorefWWStore
 
G4bool fIsConfigured
 
G4Configurators fConfigurators
 
G4bool paraflag
 

Detailed Description

Definition at line 53 of file G4GeometrySampler.hh.

Constructor & Destructor Documentation

G4GeometrySampler::G4GeometrySampler ( G4VPhysicalVolume worldvolume,
const G4String particlename 
)
explicit

Definition at line 51 of file G4GeometrySampler.cc.

References paraflag.

G4GeometrySampler::G4GeometrySampler ( G4String  worldvolumeName,
const G4String particlename 
)
explicit

Definition at line 70 of file G4GeometrySampler.cc.

References fWorld, G4TransportationManager::GetNavigatorForTracking(), G4TransportationManager::GetTransportationManager(), G4Navigator::GetWorldVolume(), and paraflag.

+ Here is the call graph for this function:

G4GeometrySampler::~G4GeometrySampler ( )
virtual

Definition at line 89 of file G4GeometrySampler.cc.

References ClearSampling().

+ Here is the call graph for this function:

G4GeometrySampler::G4GeometrySampler ( const G4GeometrySampler )
private

Member Function Documentation

void G4GeometrySampler::AddProcess ( )
virtual

Definition at line 287 of file G4GeometrySampler.cc.

References G4VSamplerConfigurator::Configure(), G4WeightCutOffConfigurator::Configure(), fConfigurators, and fWeightCutOffConfigurator.

Referenced by B03PhysicsList::AddBiasingProcess(), Configure(), G4ImportanceBiasing::ConstructProcess(), and G4WeightWindowBiasing::ConstructProcess().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeometrySampler::ClearSampling ( )
virtual

Implements G4VSampler.

Definition at line 94 of file G4GeometrySampler.cc.

References fConfigurators, fImportanceConfigurator, fIsConfigured, fIStore, fWeightCutOffConfigurator, and fWeightWindowConfigurator.

Referenced by ~G4GeometrySampler().

+ Here is the caller graph for this function:

void G4GeometrySampler::Configure ( )
virtual

Implements G4VSampler.

Definition at line 235 of file G4GeometrySampler.cc.

References AddProcess(), fConfigurators, fImportanceConfigurator, fIsConfigured, fWeightWindowConfigurator, G4cout, G4endl, and IsConfigured().

Referenced by B03PhysicsList::AddBiasingProcess(), G4ImportanceBiasing::ConstructProcess(), and G4WeightWindowBiasing::ConstructProcess().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4GeometrySampler::GetParticleName ( )
inline

Definition at line 84 of file G4GeometrySampler.hh.

References fParticleName.

G4bool G4GeometrySampler::IsConfigured ( ) const
virtual

Implements G4VSampler.

Definition at line 126 of file G4GeometrySampler.cc.

References fIsConfigured, G4cout, and G4endl.

Referenced by Configure().

+ Here is the caller graph for this function:

G4GeometrySampler& G4GeometrySampler::operator= ( const G4GeometrySampler )
private
void G4GeometrySampler::PrepareImportanceSampling ( G4VIStore istore,
const G4VImportanceAlgorithm ialg 
)
virtual

Implements G4VSampler.

Definition at line 160 of file G4GeometrySampler.cc.

References FatalException, fImportanceConfigurator, fIStore, fParticleName, fWorldName, G4cout, G4endl, G4Exception(), G4VIStore::GetWorldVolume(), paraflag, and G4ImportanceConfigurator::SetWorldName().

Referenced by B03PhysicsList::AddBiasingProcess(), and G4ImportanceBiasing::ConstructProcess().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeometrySampler::PrepareWeightRoulett ( G4double  wsurvive,
G4double  wlimit,
G4double  isource 
)
virtual

Implements G4VSampler.

Definition at line 181 of file G4GeometrySampler.cc.

References FatalException, fIStore, fParticleName, fWeightCutOffConfigurator, fWorld, G4cout, G4endl, G4Exception(), and paraflag.

+ Here is the call graph for this function:

void G4GeometrySampler::PrepareWeightWindow ( G4VWeightWindowStore wwstore,
G4VWeightWindowAlgorithm wwAlg,
G4PlaceOfAction  placeOfAction 
)
virtual

Implements G4VSampler.

Definition at line 212 of file G4GeometrySampler.cc.

References fParticleName, fWeightWindowConfigurator, fWWStore, G4cout, G4endl, G4VWeightWindowStore::GetWorldVolume(), and paraflag.

Referenced by G4WeightWindowBiasing::ConstructProcess().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeometrySampler::SetParallel ( G4bool  paraflag)
virtual

Implements G4VSampler.

Definition at line 308 of file G4GeometrySampler.cc.

References paraflag.

Referenced by B03PhysicsList::AddBiasingProcess(), G4ImportanceBiasing::ConstructProcess(), G4WeightWindowBiasing::ConstructProcess(), and main().

+ Here is the caller graph for this function:

void G4GeometrySampler::SetParticle ( const G4String particlename)

Definition at line 318 of file G4GeometrySampler.cc.

References fParticleName.

void G4GeometrySampler::SetWorld ( const G4VPhysicalVolume world)

Definition at line 313 of file G4GeometrySampler.cc.

References fWorld.

Referenced by B03PhysicsList::AddBiasingProcess().

+ Here is the caller graph for this function:

Member Data Documentation

G4Configurators G4GeometrySampler::fConfigurators
private

Definition at line 105 of file G4GeometrySampler.hh.

Referenced by AddProcess(), ClearSampling(), and Configure().

G4ImportanceConfigurator* G4GeometrySampler::fImportanceConfigurator
private

Definition at line 97 of file G4GeometrySampler.hh.

Referenced by ClearSampling(), Configure(), and PrepareImportanceSampling().

G4bool G4GeometrySampler::fIsConfigured
private

Definition at line 104 of file G4GeometrySampler.hh.

Referenced by ClearSampling(), Configure(), and IsConfigured().

G4VIStore* G4GeometrySampler::fIStore
private
G4String G4GeometrySampler::fParticleName
private
G4WeightCutOffConfigurator* G4GeometrySampler::fWeightCutOffConfigurator
private

Definition at line 100 of file G4GeometrySampler.hh.

Referenced by AddProcess(), ClearSampling(), and PrepareWeightRoulett().

G4WeightWindowConfigurator* G4GeometrySampler::fWeightWindowConfigurator
private

Definition at line 102 of file G4GeometrySampler.hh.

Referenced by ClearSampling(), Configure(), and PrepareWeightWindow().

const G4VPhysicalVolume* G4GeometrySampler::fWorld
private

Definition at line 95 of file G4GeometrySampler.hh.

Referenced by G4GeometrySampler(), PrepareWeightRoulett(), and SetWorld().

G4String G4GeometrySampler::fWorldName
private

Definition at line 96 of file G4GeometrySampler.hh.

Referenced by PrepareImportanceSampling().

G4VWeightWindowStore* G4GeometrySampler::fWWStore
private

Definition at line 103 of file G4GeometrySampler.hh.

Referenced by PrepareWeightWindow().

G4bool G4GeometrySampler::paraflag
private

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