Reprocesses a GDML file via GEANT4. More...
#include "Geant4/G4GDMLParser.hh"
#include <getopt.h>
#include <unistd.h>
#include <string>
#include <iostream>
#include <cstdio>
#include <cstdlib>
Go to the source code of this file.
Classes | |
struct | ConfigurationParameters |
struct | ConfigurationParser |
struct | ConfigurationParser::opt |
Functions | |
std::string | addNameSuffix (std::string name, std::string suffix) |
bool | exists (std::string path) |
G4VPhysicalVolume * | readWorldVolume (G4GDMLParser &parser, ConfigurationParameters const ¶ms) |
int | writeWorld (G4GDMLParser &parser, ConfigurationParameters const ¶ms) |
int | main (int argc, char **argv) |
Reprocesses a GDML file via GEANT4.
Run with --help
argument for usage instructions.
This program needs to be linked to:
Example of build command in UPS environment:
Note that this program is a glorified 3-line code: parse XML file, get the world volume, write it.
Definition in file simplifyGDML.cc.
std::string addNameSuffix | ( | std::string | name, |
std::string | suffix | ||
) |
Definition at line 283 of file simplifyGDML.cc.
bool exists | ( | std::string | path | ) |
Definition at line 290 of file simplifyGDML.cc.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 345 of file simplifyGDML.cc.
G4VPhysicalVolume* readWorldVolume | ( | G4GDMLParser & | parser, |
ConfigurationParameters const & | params | ||
) |
Definition at line 296 of file simplifyGDML.cc.
int writeWorld | ( | G4GDMLParser & | parser, |
ConfigurationParameters const & | params | ||
) |
Definition at line 306 of file simplifyGDML.cc.