78 GetNavigatorForTracking();
89 CreateTouchableHistoryHandle();
91 G4int depth = touchable->GetHistoryDepth();
92 for (
G4int i = 0; i<depth; ++i) {
93 if(touchable->GetVolume()->GetLogicalVolume() ==
fVolume)
break;
94 touchable->MoveUpHistory();
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)
CLHEP::Hep3Vector G4ThreeVector
void SetGlobalPoint(const G4double point[4])
SetGlobalPoint() ensures that the point is within the global bounding box of this ElementField's glob...
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.
G4UserLimits * fUserLimits
virtual G4double GetLength()=0
virtual void SetUserMaxTrackLength(G4double utrakMax)
static F04GlobalField * GetObject()
virtual G4double GetWidth()=0
G4GLOB_DLL std::ostream G4cout
static G4TransportationManager * GetTransportationManager()
virtual G4double GetHeight()=0
G4AffineTransform fGlobal2local
void SetWorldVolume(G4VPhysicalVolume *pWorld)
static const G4VisAttributes Invisible
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
G4LogicalVolume * fVolume
void Construct()
the actual implementation constructs the F04ElementField
static G4ThreadLocal G4Navigator * fNavigator
void SetDaughtersInvisible(G4bool)
G4VPhysicalVolume * GetWorldVolume() const
void AddElementField(F04ElementField *f)
AddElementField() adds the ElementField object for a single element to the global field...
virtual void SetUserMaxTime(G4double utimeMax)
void SetVisAttributes(const G4VisAttributes *pVA)