Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4WeightCutOffConfigurator Class Reference

#include <G4WeightCutOffConfigurator.hh>

Inheritance diagram for G4WeightCutOffConfigurator:
Collaboration 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 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.

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

Here is the call graph for this function:

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)

Here is the call graph for this function:

Member Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

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: