gmake[1]: cernlib:
Command not found
.....G4Exception.d:1:
*** missing separator. Stop.
...../G4DalitzDecayChannel.d:1:
*** missing separator. Stop.
:
:
error in loading shared libraries:
libCLHEP.so: cannot open shared object file:
No such file or directory
.
GetCopyNo()
from my physical volume pointer, but it doesn't seem to work!
gmake[1]: cernlib: Command not found
.....G4Exception.d:1:
*** missing separator. Stop.
...../G4DalitzDecayChannel.d:1:
*** missing separator. Stop.
:
:
gmake dependencies='' cleanfrom the affected module (i.e. for this case, from $G4INSTALL/source/global/management and $G4INSTALL/source/particles/management) and rebuild.
gmake cleanfrom geant4/source and rebuild.
CXXFLAGS := -pipe -fno-for-scope -DGNU_GCC
CXXFLAGS := -ansi -pedantic -pipe -fno-for-scope
-DGNU_GCC
ifdef G4USE_OSPACE
CPPFLAGS += -DOS_LINUX_2 -DOS_NEW_CHECK -DOS_STL_ASSERT
CPPFLAGS += -DOS_NO_WSTRING -DOS_NO_ALLOCATORS
CPPFLAGS += -I$(OSPACE_BASE_DIR)/ospace/std
-I$(OSPACE_BASE_DIR)
# else
# G4USE_STD_NAMESPACE := yes
# CPPFLAGS += -DG4USE_STD_NAMESPACE
endif
G4USE_STD_NAMESPACE := yes
CPPFLAGS += -DG4USE_STD_NAMESPACE
cd geant4/source
gmake clean
gmake
#if !defined(__GNUC__) || defined(__STRICT_ANSI__)
...
#endif
in DRand48Engine.h.
error in loading shared libraries:
libCLHEP.so: cannot open shared object file:
No such file or directory.
#include "G4TransportationManager.hh" #include "G4Navigator.hh" G4ThreeVector myPoint = ....; G4Navigator* theNavigator = G4TransportationManager::GetTransportationManager()->GetNavigatorForTracking(); G4VPhysicalVolume* myVolume = theNavigator->LocateGlobalPointAndSetup(myPoint);
G4VPhysicalVolume* myPVolume = ....; G4LogicalVolume* myLVolume = myPVolume->GetLogicalVolume(); for (G4int i=0; iGetNoDaughters(); i++) myPVolume = myLVolume->GetDaughter(i);
GetCopyNo()
from my physical volume pointer, but it doesn't seem to work!
G4Step* aStep = ..; G4StepPoint* preStepPoint = aStep->GetPreStepPoint(); G4TouchableHandle theTouchable = preStepPoint->GetTouchableHandle(); G4int copyNo = theTouchable->GetReplicaNumber(); G4int motherCopyNo = theTouchable->GetReplicaNumber(1);where
Replica
here stays for any duplicated instance of a physical
volume, either if it is a G4PVPlacement
(multiple placements of the
same logical volume) or a G4PVReplica
/G4PVParameterised
.GetCopyNo()
is meant to return only the serial
number of placements not duplicated in the geometry tree.
G4Step* aStep = ..; G4StepPoint* preStepPoint = aStep->GetPreStepPoint(); G4TouchableHandle theTouchable = preStepPoint->GetTouchableHandle(); G4ThreeVector worldPosition = preStepPoint->GetPosition(); G4ThreeVector localPosition = theTouchable->GetHistory()-> GetTopTransform().TransformPoint(worldPosition);where
worldPosition
here stays for the position related to the world
volume, while localPosition
refers to the coordinates local to the
volume where the particle is currently placed.
cd $G4INSTALL/source/visualization gmake clean gmake cd $G4INSTALL/source/interfaces gmake clean gmake cd $G4INSTALL/source gmake libmap cd [your working directory] gmake clean gmakeTry environment variables
G4VIS_BUILD_xxx_DRIVER
and G4VIS_USE_xxx
, where xxx = OPENGLX, DAWN, DANWFILE, VRML,
VRMLFILE
all set to 1.