![]() |
Project
|
#include <boost/program_options.hpp>#include <iostream>#include <stdexcept>#include <TGeoManager.h>#include <TFile.h>#include <sstream>#include <tuple>#include <vector>#include <string>#include "TGeoPhysicalNode.h"#include <rapidjson/document.h>#include <rapidjson/ostreamwrapper.h>#include <rapidjson/stringbuffer.h>#include <rapidjson/writer.h>#include <gsl/span>#include <cmath>#include <array>#include "MCHGeometryTransformer/Transformations.h"Go to the source code of this file.
Functions | |
| std::vector< std::string > | splitString (const std::string &src, char delim) |
| TGeoManager * | readFromFile (std::string filename) |
| template<typename WRITER > | |
| void | matrix2json (const TGeoHMatrix &matrix, WRITER &w) |
| std::tuple< bool, uint16_t > | isMCH (std::string alignableName) |
| template<typename WRITER > | |
| void | writeMatrix (const char *name, const TGeoHMatrix *matrix, WRITER &w) |
| void | convertGeom (const TGeoManager &geom) |
| int | main (int argc, char **argv) |
| void convertGeom | ( | const TGeoManager & | geom | ) |
convert geometry into a json document.
Definition at line 126 of file convert-geometry.cxx.
| std::tuple< bool, uint16_t > isMCH | ( | std::string | alignableName | ) |
Definition at line 96 of file convert-geometry.cxx.
Definition at line 168 of file convert-geometry.cxx.
| void matrix2json | ( | const TGeoHMatrix & | matrix, |
| WRITER & | w | ||
| ) |
Definition at line 73 of file convert-geometry.cxx.
| TGeoManager * readFromFile | ( | std::string | filename | ) |
Definition at line 48 of file convert-geometry.cxx.
| std::vector< std::string > splitString | ( | const std::string & | src, |
| char | delim | ||
| ) |
Definition at line 33 of file convert-geometry.cxx.
| void writeMatrix | ( | const char * | name, |
| const TGeoHMatrix * | matrix, | ||
| WRITER & | w | ||
| ) |
Definition at line 114 of file convert-geometry.cxx.