GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » R3BRoot » Installation and Compilation » Physics List change (Physics List change)
Re: Physics List change [message #23181 is a reply to message #23177] Tue, 23 October 2018 17:31 Go to previous messageGo to previous message
Jan Mayer is currently offline  Jan Mayer
Messages: 20
Registered: August 2015
occasional visitor
From: *dip0.t-ipconnect.de
The code in gconfig/g4Config.C reads the environment variable PHYSICSLIST via
gSystem->Getenv("PHYSICSLIST")
and falls back to QGSP_INCLXX_HP if not set.
You can set this enviroment variable from inside a macro with
gSystem->Setenv()
(or similar), or from the outside in the bash
PHYSICSLIST=FTFP_BERT root -l mymacro.C

The later is also helpful when iterating over physics lists, see my neutron cross section example.

I have also had problems with Geant3 before, however I couldn't find a solution fast enough - I just stopped using it, its probably my system/installation.
However you don't really seem to be interested in Geant3, but in nicer colors.

There should be options to set the color of the objects, both before creation (in the geometry creating macros) and afterwards by getting the right pointer.
I haven't tried that yet, but https://root.cern.ch/doc/master/classTGeoManager should be able to help you.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: FairRoot installation error
Next Topic: FairSoft compilation error
Goto Forum:
  


Current Time: Fri Apr 19 05:56:55 CEST 2024

Total time taken to generate the page: 0.01411 seconds