24 #ifndef PNDMATRIXUTIL_H 25 #define PNDMATRIXUTIL_H 28 #include <TGeoMatrix.h> 30 #include <TGeoManager.h> 32 #include <nlohmann/json.hpp> 51 static bool saveMatricesToJson(std::map<std::string, TGeoHMatrix> *matrices, std::string &outfilename);
52 static bool saveMatricesToRootFile(std::map<std::string, TGeoHMatrix> *matrices, std::string &fileName);
54 static std::map<string, TGeoHMatrix> *readMatricesFromRootFile(
string &fileName);
55 static std::map<std::string, TGeoHMatrix> *readMatricesFromJSON(
string &filename);
57 static bool saveGeoManagerMatricesToDisk(std::vector<string> &paths,
string &fileName);
58 static bool hasEnding(std::string
const &fullString, std::string
const &ending);
59 static std::vector<string> getPathsFromMatrixFile(
string &fileName);
63 static bool saveMatrices(std::map<std::string, TGeoHMatrix> *matrices, std::string &outfilename);
64 static std::map<string, TGeoHMatrix> *
readMatrices(std::string &fileName);
static std::map< string, TGeoHMatrix > * readMatrices(std::string &fileName)
static bool saveMatrices(std::map< std::string, TGeoHMatrix > *matrices, std::string &outfilename)
ClassDef(PndMatrixUtil, 0)