#include <EDepSimVConstrainedPositionGenerator.hh>
Classes | |
class | PositionTest |
Public Types | |
typedef std::vector< PositionTest * > | PositionTests |
Public Member Functions | |
VConstrainedPositionGenerator (const G4String &name) | |
virtual | ~VConstrainedPositionGenerator () |
virtual bool | ForcePosition () |
void | SetVolumeName (const G4String &volume) |
Set the name of the volume to be sampled for a vertex. More... | |
void | ClearPositionTests (void) |
Clear the current set of vertex checks. More... | |
void | CheckVolumeName (const G4String &name) |
void | CheckNotVolumeName (const G4String &name) |
void | CheckVolumeMaterial (const G4String &name) |
Check that the vertex is inside of a material specified by name. More... | |
void | CheckNotVolumeMaterial (const G4String &name) |
Check that the vertex is not inside of a material specified by name. More... | |
void | CheckMinX (double x) |
Check that the vertex X position is greater than some value. More... | |
void | CheckMaxX (double x) |
Check that the vertex X position is less than some value. More... | |
void | CheckMinY (double y) |
Check that the vertex Y position is greater than some value. More... | |
void | CheckMaxY (double y) |
Check that the vertex Y position is less than some value. More... | |
void | CheckMinZ (double z) |
Check that the vertex Z position is greater than some value. More... | |
void | CheckMaxZ (double z) |
Check that the vertex Z position is less than some value. More... | |
Public Member Functions inherited from EDepSim::VPositionGenerator | |
VPositionGenerator (const G4String &name) | |
virtual | ~VPositionGenerator () |
virtual G4LorentzVector | GetPosition ()=0 |
Return the candidate position for the primary vertex. More... | |
G4String | GetName () const |
Return the name of the generator. More... | |
Protected Member Functions | |
virtual bool | ValidPosition (const G4LorentzVector &vtx) |
Return true if the vertex is valid. This is used in the derived class. More... | |
G4LorentzVector | TrialPosition () |
Generate a trial position uniformly in the sample box. More... | |
Private Member Functions | |
void | FindLimits () |
Find the limits of the volume to be sampled for a good vertex. More... | |
Private Attributes | |
G4String | fSampleVolume |
The name of the volume to be sampled. More... | |
bool | fLimitsFound |
True if the limits have been initialized. More... | |
PositionTests | fPositionTests |
The vertex tests to apply. More... | |
G4ThreeVector | fMinimumCorner |
The lower boundary of the volume to be sampled for the vertex. More... | |
G4ThreeVector | fMaximumCorner |
The upper boundary of the volume to be sampled for the vertex. More... | |
Definition at line 13 of file EDepSimVConstrainedPositionGenerator.hh.
Definition at line 28 of file EDepSimVConstrainedPositionGenerator.hh.
EDepSim::VConstrainedPositionGenerator::VConstrainedPositionGenerator | ( | const G4String & | name | ) |
Definition at line 18 of file EDepSimVConstrainedPositionGenerator.cc.
|
virtual |
Definition at line 26 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckMaxX | ( | double | x | ) |
Check that the vertex X position is less than some value.
Definition at line 193 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckMaxY | ( | double | y | ) |
Check that the vertex Y position is less than some value.
Definition at line 198 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckMaxZ | ( | double | z | ) |
Check that the vertex Z position is less than some value.
Definition at line 203 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckMinX | ( | double | x | ) |
Check that the vertex X position is greater than some value.
Definition at line 178 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckMinY | ( | double | y | ) |
Check that the vertex Y position is greater than some value.
Definition at line 183 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckMinZ | ( | double | z | ) |
Check that the vertex Z position is greater than some value.
Definition at line 188 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckNotVolumeMaterial | ( | const G4String & | name | ) |
Check that the vertex is not inside of a material specified by name.
Definition at line 173 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckNotVolumeName | ( | const G4String & | name | ) |
Check that the vertex is not inside of a volume specified by name. Name may be a sub-string contained in the full volume name.
Definition at line 163 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckVolumeMaterial | ( | const G4String & | name | ) |
Check that the vertex is inside of a material specified by name.
Definition at line 168 of file EDepSimVConstrainedPositionGenerator.cc.
void EDepSim::VConstrainedPositionGenerator::CheckVolumeName | ( | const G4String & | name | ) |
Check that the vertex is inside of a volume specified by name. Name may be a sub-string contanied in the full volume name.
Definition at line 158 of file EDepSimVConstrainedPositionGenerator.cc.
|
inline |
Clear the current set of vertex checks.
Definition at line 34 of file EDepSimVConstrainedPositionGenerator.hh.
|
private |
Find the limits of the volume to be sampled for a good vertex.
Definition at line 221 of file EDepSimVConstrainedPositionGenerator.cc.
|
virtual |
Flag if the vertex should be forced to the candidate vertex returned by GetPosition().
Implements EDepSim::VPositionGenerator.
Reimplemented in EDepSim::DensityPositionGenerator, and EDepSim::UniformPositionGenerator.
Definition at line 28 of file EDepSimVConstrainedPositionGenerator.cc.
|
inline |
Set the name of the volume to be sampled for a vertex.
Definition at line 31 of file EDepSimVConstrainedPositionGenerator.hh.
|
protected |
Generate a trial position uniformly in the sample box.
Definition at line 287 of file EDepSimVConstrainedPositionGenerator.cc.
|
protectedvirtual |
Return true if the vertex is valid. This is used in the derived class.
Definition at line 32 of file EDepSimVConstrainedPositionGenerator.cc.
|
private |
True if the limits have been initialized.
Definition at line 80 of file EDepSimVConstrainedPositionGenerator.hh.
|
private |
The upper boundary of the volume to be sampled for the vertex.
Definition at line 92 of file EDepSimVConstrainedPositionGenerator.hh.
|
private |
The lower boundary of the volume to be sampled for the vertex.
Definition at line 89 of file EDepSimVConstrainedPositionGenerator.hh.
|
private |
The vertex tests to apply.
Definition at line 86 of file EDepSimVConstrainedPositionGenerator.hh.
|
private |
The name of the volume to be sampled.
Definition at line 77 of file EDepSimVConstrainedPositionGenerator.hh.