Hello, yesterday my supervisor said me the path to use Geant4 installed on the computer hosted in the laboratory that is faster than a normal computer so I should get simulation in lower time.
Unfortunately, even if my simulation is compiled and runned without error on my computer (Geant4 10.06 and VS2019 compiler) when we tried (together) to compile my simulation on this computer by ssh connection, we got this error
Going back with Geant4 versions is not a solution, you need anyway new cmake and also gcc. Examples are released with each G4 version, and of course they evolve with the G4 code, you’d need to check the example provided with a particular version of G4 instead of the latest one.
I don’t know the details of the machine you attempt to run it on, but since you have access to cvmfs try the following:
First use newer gcc, type: source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7-gcc8-opt/setup.sh
Use appropriate version of G4, e.g.: source /cvmfs/geant4.cern.ch/geant4/10.6.p02/x86_64-centos7-gcc8-optdeb-MT/bin/geant4.sh
Substitute cmake with cmake3 in your build command (if it’s installed)
otherwise try substituting cmake with /cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin/cmake
Warning suggest you can clean-up the code, but it’s not critical.
I’m not sure what you mean that the suggested command does not work (and it certainly has no connection to the build system - cmake). It seems it does work, have a look inside nohup.out file to see the output (as you see printed in the terminal).
If your two volume the same size and shape (i.e., solidEnv and solidEnv2 are equivalent), then you don’t need them to be separate. You can use the same solid multiple times in different LVs. You can even use a single LV for multiple placements.
You don’t “upload” your personal macros into directories on CVMFS. You use the software on CVMFS to run your personal macros in your own personal directories.
If you are not familiar with how to configure and use ROOT, I strongly recommend reading the documentation from https://root.cern.ch, before posting questions to the ROOT forums.
I’m able to use ROOT, but I always used it on my computer! I never used id on CVMF!
[quote=“mkelsey, post:9, topic:2968, full:true”]
You don’t “upload” your personal macros into directories on CVMFS. You use the software on CVMFS to run your personal macros in your own personal directories. [/quote]
I uploaded the macro in my personal directory and now I can run it! There is just a “problem”. When I run a ROOT macro on my computer, I see the Canvas during the run and he prints the name of the pdf file created (step by step). I runned the macro on cvmf but I don’t see anything
Yes, the “DISPLAY not set” error is the key here. Do you have X11 running on your local Windows machine? I don’t use Windows, and this is not a Geant4 issue, so you will need to look for information elsewhere on how to run an XWindows server on your machine.
Once you have that working, then the ssh -Y command is correct, and you should be able to launch a TBrowser or do other graphical stuff with ROOT (as well as getting visualization with G4).