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

#include <G4WeightCutOffConfigurator.hh>

+ Inheritance diagram for G4WeightCutOffConfigurator:

Public Member Functions

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

Detailed Description

Definition at line 50 of file G4WeightCutOffConfigurator.hh.

Constructor & Destructor Documentation

◆ G4WeightCutOffConfigurator()

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{
51 fWeightCutOffProcess =
52 new G4WeightCutOffProcess(wsurvival,wlimit,isource,istore,"WeightCutOffProcess",paraflag);
53// new G4WeightCutOffProcess(wsurvival,wlimit,isource,istore,aGCellfinder,"WeightCutOffProcess",paraflag);
54 if (!fWeightCutOffProcess)
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)

◆ ~G4WeightCutOffConfigurator()

G4WeightCutOffConfigurator::~G4WeightCutOffConfigurator ( )
virtual

Definition at line 62 of file G4WeightCutOffConfigurator.cc.

63{
64 if (fPlaced)
65 {
66 fPlacer.RemoveProcess(fWeightCutOffProcess);
67 delete fWeightCutOffProcess;
68 }
69}
virtual void RemoveProcess(G4VProcess *process)

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
75 if(paraflag) fWeightCutOffProcess->SetParallelWorld(fWorld->GetName());
76
77 fPlacer.AddProcessAsLastDoIt(fWeightCutOffProcess);
78 fPlaced = true;
79}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
virtual void AddProcessAsLastDoIt(G4VProcess *process)
const G4String & GetName() const
void SetParallelWorld(const G4String &parallelWorldName)

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}

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