GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » error starting Pandaroot and running macros (root command was not recognized by the terminal)
Re: error starting Pandaroot and running macros [message #23949 is a reply to message #23945] Thu, 16 May 2019 08:09 Go to previous message
AbTomer is currently offline  AbTomer
Messages: 2
Registered: April 2019
Location: Surat
occasional visitor
From: 14.139.121*
I exported all the commands in config.sh. ran config.sh as well, then started rootshell to find the FairRoot commands not being recognized. TBrowser opened fine.
How to make sure root recognize FariRoot commands.

commands on the terminal to export all the path in config.sh
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export SIMPATH="/home/newapd/fair/buildFairSoft"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOTSYS="/home/newapd/fair/buildFairSoft/bin"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export FAIRROOTPATH="/home/newapd/fair/fairsoft_may18/installFairRoot-v18.0.4/ "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4_INCLUDE_DIR=" /home/newapd/fair/buildFairSoft/include/Geant4:/home/newapd/fair/buildFa irSoft//transport/geant4/source/interfaces/common/include:/home/newapd/f air/buildFairSoft//transport/geant4/physics_lists/hadronic/Packaging/inc lude:/home/newapd/fair/buildFairSoft//transport/geant4/physics_lists/had ronic/QGSP/include "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4VMC_INCLUDE_DIR="/home/newapd/fair/buildFairSoft/include/geant4vmc "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4VMC_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT4VMC_MACRO_DIR="GEANT4VMC_MACRO_DIR-NOTFOUND"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export CLHEP_INCLUDE_DIR="/home/newapd/fair/buildFairSoft/include/Geant4"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export CLHEP_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export CLHEP_BASE_DIR=""
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PLUTO_LIBRARY_DIR=""
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PLUTO_INCLUDE_DIR=""
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PYTHIA6_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G3SYS="/home/newapd/fair/buildFairSoft/share/geant3"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT3_INCLUDE_DIR="/home/newapd/fair/buildFairSoft/include/TGeant3"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT3_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export GEANT3_LIBRARIES="/home/newapd/fair/buildFairSoft/lib/libgeant321.so"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export USE_VGM="1"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PYTHIA8DATA="/home/newapd/fair/buildFairSoft//share/pythia8/xmldoc"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export CLASSPATH=""
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4LEDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4EMLOW"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4LEVELGAMMADATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/PhotonEvaporation "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4NeutronHPCrossSections="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4NDL "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4NEUTRONHPDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4NDL "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4NEUTRONXSDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4NEUTRONXS "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4PIIDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4PII"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4RADIOACTIVEDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/RadioactiveDecay "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4REALSURFACEDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/RealSurface "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4SAIDXSDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4SAIDDATA "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export G4ENSDFSTATEDATA="/home/newapd/fair/buildFairSoft/share/Geant4/data/G4ENSDFSTATE "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ echo $SIMPATH
/home/newapd/fair/buildFairSoft
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOT_LIBRARY_DIR="/home/newapd/fair/buildFairSoft/lib/root"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOT_LIBRARIES="-L/home/newapd/fair/buildFairSoft/lib/root -lGui -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -Wl,-rpath,/home/newapd/fair/buildFairSoft/lib/root -lm -ldl -rdynamic"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOT_INCLUDE_DIR="/home/newapd/fair/buildFairSoft/include/root"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export ROOT_INCLUDE_PATH=" /home/newapd/fair/buildFairSoft/include/TGeant3:/home/newapd/fair/fairso ft_may18/installFairRoot-v18.0.4/include "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export VMCWORKDIR="/home/newapd/fair/fairsoft_may18/pandaroot"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export FAIRLIBDIR="/home/newapd/fair/fairsoft_may18/pandaroot/buildPanda/lib"
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ export PYTHONPATH=" /home/newapd/fair/fairsoft_may18/pandaroot/python:/home/newapd/fair/buil dFairSoft//lib:/home/newapd/fair/buildFairSoft//lib/root:/home/newapd/fa ir/buildFairSoft//lib/Geant4:/home/newapd/fair/buildFairSoft//lib/g4py "
newapd@newapd-HP-ProDesk-600-G3-PCI-MT:~/fair/fairsoft_may18/pandaroot/t utorials/rho$ ~/fair/buildFairSoft/bin/root
------------------------------------------------------------
| Welcome to ROOT 6.12/06 http://root.cern.ch |
| (c) 1995-2017, The ROOT Team |
| Built for linuxx8664gcc |
| From tags/v6-12-06@v6-12-06, Apr 03 2019, 14:45:00 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------

root [0] .x tut_sim.C
In file included from input_line_10:1:
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:26:3: error: unknown type name 'PndMasterRunSim'
PndMasterRunSim *fRun = new PndMasterRunSim();
^
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:26:31 : error: unknown type name 'PndMasterRunSim'
PndMasterRunSim *fRun = new PndMasterRunSim();
^
/home/newapd/fair/fairsoft_may18/pandaroot/tutorials/rho/tut_sim.C:40:3: error: unknown type name 'FairFilteredPrimaryGenerator'
FairFilteredPrimaryGenerator *primGen = fRun->GetFilteredPrimaryGenerator();
^
root [1] TBrowser t
(TBrowser &) Name: Browser Title: ROOT Object Browser
root [2] .q


QCD
 
Read Message
Read Message
Read Message
Previous Topic: Error in PandaRoot_18p1 installation
Next Topic: NYX phases out
Goto Forum:
  


Current Time: Wed Dec 04 01:18:10 CET 2024

Total time taken to generate the page: 0.00518 seconds