#include <G4GeometrySampler.hh>
Definition at line 53 of file G4GeometrySampler.hh.
Definition at line 51 of file G4GeometrySampler.cc.
52 : fParticleName(particlename),
54 fImportanceConfigurator(0),
57 fWeightCutOffConfigurator(0),
59 fWeightWindowConfigurator(0),
G4GeometrySampler::G4GeometrySampler |
( |
G4String |
worldvolumeName, |
|
|
const G4String & |
particlename |
|
) |
| |
|
explicit |
Definition at line 70 of file G4GeometrySampler.cc.
71 : fParticleName(particlename),
72 fWorldName(worldName),
73 fImportanceConfigurator(0),
76 fWeightCutOffConfigurator(0),
78 fWeightWindowConfigurator(0),
G4Navigator * GetNavigatorForTracking() const
static G4TransportationManager * GetTransportationManager()
G4VPhysicalVolume * GetWorldVolume() const
G4GeometrySampler::~G4GeometrySampler |
( |
| ) |
|
|
virtual |
void G4GeometrySampler::AddProcess |
( |
| ) |
|
|
virtual |
Definition at line 287 of file G4GeometrySampler.cc.
292 for (G4Configurators::iterator it = fConfigurators.begin();
293 it != fConfigurators.end(); it++)
300 if (fWeightCutOffConfigurator)
virtual void Configure(G4VSamplerConfigurator *preConf)=0
virtual void Configure(G4VSamplerConfigurator *preConf)
void G4GeometrySampler::ClearSampling |
( |
| ) |
|
|
virtual |
Implements G4VSampler.
Definition at line 94 of file G4GeometrySampler.cc.
96 if (fImportanceConfigurator)
98 delete fImportanceConfigurator;
99 fImportanceConfigurator = 0;
101 if (fWeightWindowConfigurator)
103 delete fWeightWindowConfigurator;
104 fWeightWindowConfigurator = 0;
111 if (fWeightCutOffConfigurator)
113 delete fWeightCutOffConfigurator;
114 fWeightCutOffConfigurator = 0;
122 fConfigurators.clear();
123 fIsConfigured =
false;
void G4GeometrySampler::Configure |
( |
| ) |
|
|
virtual |
Implements G4VSampler.
Definition at line 235 of file G4GeometrySampler.cc.
239 fIsConfigured =
true;
247 if (fImportanceConfigurator)
249 fConfigurators.push_back(fImportanceConfigurator);
251 if (fWeightWindowConfigurator)
253 fConfigurators.push_back(fWeightWindowConfigurator);
278 #ifdef G4MULTITHREADED
279 G4cout <<
" make sure AddProcess() is invoked for biasing!!! " <<
G4endl;
virtual G4bool IsConfigured() const
G4GLOB_DLL std::ostream G4cout
virtual void AddProcess()
G4String G4GeometrySampler::GetParticleName |
( |
| ) |
|
|
inline |
G4bool G4GeometrySampler::IsConfigured |
( |
| ) |
const |
|
virtual |
Implements G4VSampler.
Definition at line 126 of file G4GeometrySampler.cc.
131 G4cout <<
"WARNING - G4GeometrySampler::IsConfigured()"
132 <<
" Some initalization exists, use ClearSampling()"
133 <<
" before a new initialization !" <<
G4endl;
G4GLOB_DLL std::ostream G4cout
Implements G4VSampler.
Definition at line 160 of file G4GeometrySampler.cc.
163 G4cout <<
"G4GeometrySampler:: preparing importance sampling WorldName is " << fWorldName <<
G4endl;
167 fImportanceConfigurator =
172 if (!fImportanceConfigurator)
174 G4Exception(
"G4GeometrySampler::PrepareImportanceSampling()",
176 "Failed allocation of G4ImportanceConfigurator !");
void SetWorldName(G4String Name)
virtual const G4VPhysicalVolume & GetWorldVolume() const =0
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Implements G4VSampler.
Definition at line 181 of file G4GeometrySampler.cc.
186 G4cout <<
"G4GeometrySampler:: preparing weight roulette" <<
G4endl;
195 fWeightCutOffConfigurator =
203 if (!fWeightCutOffConfigurator)
205 G4Exception(
"G4GeometrySampler::PrepareWeightRoulett()",
207 "Failed allocation of G4WeightCutOffConfigurator !");
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Implements G4VSampler.
Definition at line 212 of file G4GeometrySampler.cc.
217 G4cout <<
"G4GeometrySampler:: preparing weight window" <<
G4endl;
221 fWeightWindowConfigurator =
225 placeOfAction, paraflag);
G4GLOB_DLL std::ostream G4cout
virtual const G4VPhysicalVolume & GetWorldVolume() const =0
void G4GeometrySampler::SetParallel |
( |
G4bool |
paraflag | ) |
|
|
virtual |
void G4GeometrySampler::SetParticle |
( |
const G4String & |
particlename | ) |
|
The documentation for this class was generated from the following files: