12 #ifndef PNDMATRIXUTIL_H 13 #define PNDMATRIXUTIL_H 16 #include <TGeoMatrix.h> 18 #include <TGeoManager.h> 20 #include <nlohmann/json.hpp> 39 static bool saveMatricesToJson(std::map<std::string, TGeoHMatrix> *matrices, std::string &outfilename);
40 static bool saveMatricesToRootFile(std::map<std::string, TGeoHMatrix> *matrices, std::string &fileName);
42 static std::map<string, TGeoHMatrix> *readMatricesFromRootFile(
string &fileName);
43 static std::map<std::string, TGeoHMatrix> *readMatricesFromJSON(
string &filename);
45 static bool saveGeoManagerMatricesToDisk(std::vector<string> &paths,
string &fileName);
46 static bool hasEnding(std::string
const &fullString, std::string
const &ending);
47 static std::vector<string> getPathsFromMatrixFile(
string &fileName);
51 static bool saveMatrices(std::map<std::string, TGeoHMatrix> *matrices, std::string &outfilename);
52 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)