Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4WeightCutOffConfigurator Class Reference

#include <G4WeightCutOffConfigurator.hh>

Inheritance diagram for G4WeightCutOffConfigurator:
G4VSamplerConfigurator

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 51 of file G4WeightCutOffConfigurator.hh.

Constructor & Destructor Documentation

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

Definition at line 39 of file G4WeightCutOffConfigurator.cc.

References FatalException, and G4Exception().

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 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4WeightCutOffConfigurator::~G4WeightCutOffConfigurator ( )
virtual

Definition at line 63 of file G4WeightCutOffConfigurator.cc.

References G4ProcessPlacer::RemoveProcess().

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

Member Function Documentation

void G4WeightCutOffConfigurator::Configure ( G4VSamplerConfigurator preConf)
virtual

Implements G4VSamplerConfigurator.

Definition at line 72 of file G4WeightCutOffConfigurator.cc.

References G4ProcessPlacer::AddProcessAsLastDoIt(), G4cout, G4endl, G4VPhysicalVolume::GetName(), and G4WeightCutOffProcess::SetParallelWorld().

Referenced by G4GeometrySampler::AddProcess().

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