Go to the source code of this file.
Functions | |
GetOptions ("input|i:s"=>\$input,"help|h"=>\$help,"output|o:s"=>\$output) | |
if (defined $help) | |
if (!defined $input) | |
foreach | $filename (@defFiles) |
open (OUTPUT) or die("Could not open $output for writing") | |
print OUTPUT<< EOF;<?xml version="1.0"encoding="UTF-8"?> < gdmlxmlns:gdml="http:xmlns:xsi="http:xsi:noNamespaceSchemaLocation="GDMLSchema/gdml.xsd"> EOF foreach | $keyword (@keywords) |
print OUTPUT<< EOF;< setup name="Default"version="1.0"> < worldref="volWorld"/></setup > </gdml > EOF | close (OUTPUT) |
sub | usage () |
Variables | |
else | |
$parser = new XML::LibXML | |
$dom = $parser->parse_file($input) | |
defFiles = $dom->findnodes('/config/constantfiles/filename') | |
gdmlFiles = $dom->findnodes('/config/gdmlfiles/filename') | |
$numberConstants = -1 | |
keywords = qw( define materials solids structure ) | |
$OUTPUT = ">" . $output | |
foreach $filename | ( | @ | defFiles | ) |
Definition at line 90 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
print OUTPUT<<EOF;<?xml version="1.0" encoding="UTF-8" ?><gdmlxmlns:gdml="http:xmlns:xsi="http:xsi:noNamespaceSchemaLocation="GDMLSchema/gdml.xsd"> EOF foreach $keyword | ( | @ | keywords | ) |
Definition at line 183 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
print OUTPUT<<EOF;<setup name="Default" version="1.0"><worldref="volWorld"/></setup></gdml> EOF close | ( | OUTPUT | ) |
GetOptions | ( | "input|i:s" | , |
\ | $input, | ||
"help|h" | , | ||
\ | $help, | ||
"output|o:s" | , | ||
\ | $output | ||
) |
if | ( | defined | $help | ) |
Definition at line 17 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
if | ( | !defined | $input | ) |
Definition at line 24 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
open | ( | OUTPUT | ) |
sub usage | ( | ) |
Definition at line 228 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
$dom = $parser->parse_file($input) |
Definition at line 69 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
$numberConstants = -1 |
Definition at line 76 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
$OUTPUT = ">" . $output |
Definition at line 167 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
$parser = new XML::LibXML |
Definition at line 65 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
defFiles = $dom->findnodes('/config/constantfiles/filename') |
Definition at line 72 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
else |
Definition at line 45 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
gdmlFiles = $dom->findnodes('/config/gdmlfiles/filename') |
Definition at line 73 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.
keywords = qw( define materials solids structure ) |
Definition at line 133 of file icarusalg/icarusalg/Geometry/gdml/make_gdml.pl.