Skip to content

Creation of a AGAPRO::Tools class?

There are some static functions that can be useful to all actors, for example in the Histogramer class :

  • static std::string GetCrystalNameFromID(const Int_t id);
  • static UShort_t GetCrystalIDFromName(const string &name);
  • static std::string GetSegmentNameFromID(const Int_t id);
  • static std::string GetCoreNameFromID(const Int_t id);

Should we move such functions to a Core/Tools class in order to make them available to all actors and avoid duplication of code?