Geant4 9.6.0
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 (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 ()
 
virtual void Configure (G4VSamplerConfigurator *preConf)=0
 
virtual const G4VTrackTerminatorGetTrackTerminator () const =0
 

Detailed Description

Definition at line 51 of file G4WeightCutOffConfigurator.hh.

Constructor & Destructor Documentation

◆ G4WeightCutOffConfigurator()

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

Definition at line 38 of file G4WeightCutOffConfigurator.cc.

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

◆ ~G4WeightCutOffConfigurator()

G4WeightCutOffConfigurator::~G4WeightCutOffConfigurator ( )
virtual

Definition at line 63 of file G4WeightCutOffConfigurator.cc.

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

Member Function Documentation

◆ Configure()

void G4WeightCutOffConfigurator::Configure ( G4VSamplerConfigurator preConf)
virtual

Implements G4VSamplerConfigurator.

Definition at line 72 of file G4WeightCutOffConfigurator.cc.

73{
74 G4cout << " entering new weight window configure " << G4endl;
75
76 if(paraflag) fWeightCutOffProcess->SetParallelWorld(fWorld);
77
78 fPlacer.AddProcessAsLastDoIt(fWeightCutOffProcess);
79 fPlaced = true;
80}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
virtual void AddProcessAsLastDoIt(G4VProcess *process)
void SetParallelWorld(G4String parallelWorldName)

Referenced by G4GeometrySampler::Configure().

◆ GetTrackTerminator()

const G4VTrackTerminator * G4WeightCutOffConfigurator::GetTrackTerminator ( ) const
virtual

Implements G4VSamplerConfigurator.

Definition at line 83 of file G4WeightCutOffConfigurator.cc.

84{
85 return 0;
86}

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