48 fMinX = fMinY = fMinZ = -
DBL_MAX;
49 fMaxX = fMaxY = fMaxZ =
DBL_MAX;
78 GetNavigatorForTracking();
89 CreateTouchableHistoryHandle();
92 for (
G4int i = 0; i<depth; ++i) {
105 for (
int i=0; i<2; ++i) {
106 local[0] = (i==0 ? -1.0 : 1.0) *
GetWidth()/2.;
107 for (
int j=0; j<2; ++j) {
108 local[1] = (j==0 ? -1.0 : 1.0) *
GetHeight()/2.;
109 for (
int k=0; k<2; ++k) {
110 local[2] = (k==0 ? -1.0 : 1.0) *
GetLength()/2.;
114 global[0] = globalPosition.
x();
115 global[1] = globalPosition.
y();
116 global[2] = globalPosition.
z();
128 if(color.size() > 0 &&
129 (isdigit(color.c_str()[0]) || color.c_str()[0] ==
'.')) {
131 if (sscanf(color.c_str(),
"%lf,%lf,%lf",&
red,&green,&
blue) == 3) {
virtual void SetMaxAllowedStep(G4double ustepMax)
static constexpr double mm
G4int GetHistoryDepth() const
void SetGlobalPoint(const G4double point[4])
G4VPhysicalVolume * GetVolume(G4int depth=0) const
Definition of the F04GlobalField class.
F04ElementField(const G4ThreeVector, G4LogicalVolume *)
Constructor.
void SetUserLimits(G4UserLimits *pULimits)
virtual void SetUserMinEkine(G4double uekinMin)
static G4VisAttributes * GetVisAttribute(G4String color)
GetVisAttribute() returns the appropriate G4VisAttributes.
Definition of the F04ElementField class.
virtual G4double GetLength()=0
virtual void SetUserMaxTrackLength(G4double utrakMax)
static F04GlobalField * GetObject()
virtual G4double GetWidth()=0
G4GLOB_DLL std::ostream G4cout
static constexpr double m
void SetDaughtersInvisible(G4bool=true)
static G4TransportationManager * GetTransportationManager()
virtual G4double GetHeight()=0
G4AffineTransform fGlobal2local
G4LogicalVolume * GetLogicalVolume() const
void SetWorldVolume(G4VPhysicalVolume *pWorld)
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
static constexpr double MeV
const G4AffineTransform & GetTopTransform() const
const G4NavigationHistory * GetHistory() const
G4LogicalVolume * fVolume
G4int MoveUpHistory(G4int num_levels=1)
static constexpr double ms
void Construct()
the actual implementation constructs the F04ElementField
G4VPhysicalVolume * GetWorldVolume() const
static const G4VisAttributes & GetInvisible()
void AddElementField(F04ElementField *f)
virtual void SetUserMaxTime(G4double utimeMax)
void SetVisAttributes(const G4VisAttributes *pVA)