Skip to content

Rich: provide creation macros for rich v23 & v25

The RICH group decided to move from the version control purely via git (cbmroot/sim/detectors/rich/geo/RichGeoCreator.h/cxx)
to individual macros, like almost all other geometries do it.
Also see redmine issue https://redmine.cbm.gsi.de/issues/3636

The code itself was mostly untouched, just copying to macros, also sticking with the class structure.

Few stylistic and needed (moving to macros) changes:

  • remove FairLogger, e.g. LOG(info) ...
  • remove ClassImp, ClassDef
  • constructur/destructor = default
  • add header guards to have IDE code completion, make the macros run via JIT compiler and normal compiler
  • Change #include "" to #include <> if not from cbmroot
  • print full path to created geo file to terminal
  • rename class to CbmRichGeoCreator (otherwise it conflicts with RichGeoCreator)
  • rename header RichGeoMaterials.h to CbmRichGeoMaterials.h

Changes to v23 only:

  • add function GetGeoName()
Edited by Martin Beyer

Merge request reports

Loading