Geant4-11
Public Member Functions | Private Member Functions | Private Attributes
G4WeightCutOffConfigurator Class Reference

#include <G4WeightCutOffConfigurator.hh>

Inheritance diagram for G4WeightCutOffConfigurator:
G4VSamplerConfigurator

Public Member Functions

virtual void Configure (G4VSamplerConfigurator *preConf)
 
 G4WeightCutOffConfigurator (const G4VPhysicalVolume *worldvolume, const G4String &particlename, G4double wsurvival, G4double wlimit, G4double isource, G4VIStore *istore, G4bool paraflag)
 
virtual const G4VTrackTerminatorGetTrackTerminator () const
 
virtual ~G4WeightCutOffConfigurator ()
 

Private Member Functions

 G4WeightCutOffConfigurator (const G4WeightCutOffConfigurator &)
 
G4WeightCutOffConfiguratoroperator= (const G4WeightCutOffConfigurator &)
 

Private Attributes

G4bool fPlaced
 
G4ProcessPlacer fPlacer
 
G4WeightCutOffProcessfWeightCutOffProcess
 
const G4VPhysicalVolumefWorld
 
G4bool paraflag
 

Detailed Description

Definition at line 50 of file G4WeightCutOffConfigurator.hh.

Constructor & Destructor Documentation

◆ G4WeightCutOffConfigurator() [1/2]

G4WeightCutOffConfigurator::G4WeightCutOffConfigurator ( const G4VPhysicalVolume worldvolume,
const G4String particlename,
G4double  wsurvival,
G4double  wlimit,
G4double  isource,
G4VIStore istore,
G4bool  paraflag 
)

Definition at line 37 of file G4WeightCutOffConfigurator.cc.

46 : fWorld(worldvolume),
47 fPlacer(particlename),
48 fPlaced(false),
49 paraflag(para)
50{
52 new G4WeightCutOffProcess(wsurvival,wlimit,isource,istore,"WeightCutOffProcess",paraflag);
53// new G4WeightCutOffProcess(wsurvival,wlimit,isource,istore,aGCellfinder,"WeightCutOffProcess",paraflag);
55 {
56 G4Exception("G4WeightCutOffConfigurator::G4WeightCutOffConfigurator()",
57 "FatalError", FatalException,
58 "Failed to allocate G4WeightCutOffProcess !");
59 }
60}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
const G4VPhysicalVolume * fWorld
G4WeightCutOffProcess * fWeightCutOffProcess

References FatalException, fWeightCutOffProcess, G4Exception(), and paraflag.

◆ ~G4WeightCutOffConfigurator()

G4WeightCutOffConfigurator::~G4WeightCutOffConfigurator ( )
virtual

Definition at line 62 of file G4WeightCutOffConfigurator.cc.

63{
64 if (fPlaced)
65 {
68 }
69}
virtual void RemoveProcess(G4VProcess *process)

References fPlaced, fPlacer, fWeightCutOffProcess, and G4ProcessPlacer::RemoveProcess().

◆ G4WeightCutOffConfigurator() [2/2]

G4WeightCutOffConfigurator::G4WeightCutOffConfigurator ( const G4WeightCutOffConfigurator )
private

Member Function Documentation

◆ Configure()

void G4WeightCutOffConfigurator::Configure ( G4VSamplerConfigurator preConf)
virtual

Implements G4VSamplerConfigurator.

Definition at line 71 of file G4WeightCutOffConfigurator.cc.

72{
73 G4cout << " entering new weight window configure " << G4endl;
74
76
78 fPlaced = true;
79}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
virtual void AddProcessAsLastDoIt(G4VProcess *process)
const G4String & GetName() const
void SetParallelWorld(const G4String &parallelWorldName)

References G4ProcessPlacer::AddProcessAsLastDoIt(), fPlaced, fPlacer, fWeightCutOffProcess, fWorld, G4cout, G4endl, G4VPhysicalVolume::GetName(), paraflag, and G4WeightCutOffProcess::SetParallelWorld().

Referenced by G4GeometrySampler::AddProcess().

◆ GetTrackTerminator()

const G4VTrackTerminator * G4WeightCutOffConfigurator::GetTrackTerminator ( ) const
virtual

Implements G4VSamplerConfigurator.

Definition at line 82 of file G4WeightCutOffConfigurator.cc.

83{
84 return 0;
85}

◆ operator=()

G4WeightCutOffConfigurator & G4WeightCutOffConfigurator::operator= ( const G4WeightCutOffConfigurator )
private

Field Documentation

◆ fPlaced

G4bool G4WeightCutOffConfigurator::fPlaced
private

Definition at line 76 of file G4WeightCutOffConfigurator.hh.

Referenced by Configure(), and ~G4WeightCutOffConfigurator().

◆ fPlacer

G4ProcessPlacer G4WeightCutOffConfigurator::fPlacer
private

Definition at line 74 of file G4WeightCutOffConfigurator.hh.

Referenced by Configure(), and ~G4WeightCutOffConfigurator().

◆ fWeightCutOffProcess

G4WeightCutOffProcess* G4WeightCutOffConfigurator::fWeightCutOffProcess
private

◆ fWorld

const G4VPhysicalVolume* G4WeightCutOffConfigurator::fWorld
private

Definition at line 73 of file G4WeightCutOffConfigurator.hh.

Referenced by Configure().

◆ paraflag

G4bool G4WeightCutOffConfigurator::paraflag
private

Definition at line 79 of file G4WeightCutOffConfigurator.hh.

Referenced by Configure(), and G4WeightCutOffConfigurator().


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