Project
Loading...
Searching...
No Matches
convert-geometry.cxx File Reference
#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::stringsplitString (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)
 

Function Documentation

◆ convertGeom()

void convertGeom ( const TGeoManager &  geom)

convert geometry into a json document.

Definition at line 126 of file convert-geometry.cxx.

◆ isMCH()

std::tuple< bool, uint16_t > isMCH ( std::string  alignableName)

Definition at line 96 of file convert-geometry.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 168 of file convert-geometry.cxx.

◆ matrix2json()

template<typename WRITER >
void matrix2json ( const TGeoHMatrix &  matrix,
WRITER &  w 
)

Definition at line 73 of file convert-geometry.cxx.

◆ readFromFile()

TGeoManager * readFromFile ( std::string  filename)

Definition at line 48 of file convert-geometry.cxx.

◆ splitString()

std::vector< std::string > splitString ( const std::string src,
char  delim 
)

Definition at line 33 of file convert-geometry.cxx.

◆ writeMatrix()

template<typename WRITER >
void writeMatrix ( const char name,
const TGeoHMatrix *  matrix,
WRITER &  w 
)

Definition at line 114 of file convert-geometry.cxx.