Geant4  10.01.p01
clparse.cc File Reference
#include "globals.hh"
#include <fstream>
#include "G4Tokenizer.hh"
#include "G3toG4.hh"
#include "G3EleTable.hh"
#include "G3VolTable.hh"
#include "G3MatTable.hh"
#include "G3MedTable.hh"
#include "G3RotTable.hh"
#include "G3PartTable.hh"
#include "G3DetTable.hh"
#include "G3SensVolVector.hh"
#include <stdlib.h>
+ Include dependency graph for clparse.cc:

Go to the source code of this file.

Functions

char gSeparator ('_')
 
G4int G3CLTokens (G4String *line, G4String *tokens)
 
void G3CLEval (G4String *tokens, char *select)
 
void PG4gsvolu (G4String *tokens)
 
void PG4gspos (G4String *tokens)
 
void PG4gsposp (G4String *tokens)
 
void PG4gsatt (G4String *tokens)
 
void PG4gsrotm (G4String *tokens)
 
void PG4gsdvn (G4String *tokens)
 
void PG4gsdvt (G4String *tokens)
 
void PG4gsdvx (G4String *tokens)
 
void PG4gsdvn2 (G4String *tokens)
 
void PG4gsdvt2 (G4String *tokens)
 
void PG4gsmate (G4String *tokens)
 
void PG4gsmixt (G4String *tokens)
 
void PG4gstmed (G4String *tokens)
 
void PG4gstpar (G4String *tokens)
 
void PG4gspart (G4String *tokens)
 
void PG4gsdk (G4String *tokens)
 
void PG4gsdet (G4String *tokens)
 
void PG4gsdetv (G4String *tokens)
 
void PG4gsdeta (G4String *tokens)
 
void PG4gsdeth (G4String *tokens)
 
void PG4gsdetd (G4String *tokens)
 
void PG4gsdetu (G4String *tokens)
 
void PG4ggclos ()
 
void G3CLRead (G4String &fname, char *select=0)
 
G4int G3CLTokens (G4String *line, G4String tokens[])
 
void G3CLEval (G4String tokens[], char *select)
 
void G3fillParams (G4String *tokens, const char *ptypes)
 

Variables

std::ofstream ofile
 
G3VolTable G3Vol
 
G3MatTable G3Mat
 
G3MedTable G3Med
 
G3RotTable G3Rot
 
G3PartTable G3Part
 
G3DetTable G3Det
 
G3EleTable G3Ele
 
G3SensVolVector G3SensVol
 
G4int narray
 
G4int Ipar [1000]
 
G4double Rpar [1000]
 
G4String Spar [1000]
 

Function Documentation

void G3CLEval ( G4String tokens,
char *  select 
)

Referenced by G3CLRead().

+ Here is the caller graph for this function:

void G3CLEval ( G4String  tokens[],
char *  select 
)

Definition at line 171 of file clparse.cc.

References G4endl, ofile, PG4ggclos(), PG4gsatt(), PG4gsdet(), PG4gsdeta(), PG4gsdetd(), PG4gsdeth(), PG4gsdetu(), PG4gsdetv(), PG4gsdk(), PG4gsdvn(), PG4gsdvn2(), PG4gsdvt(), PG4gsdvt2(), PG4gsdvx(), PG4gsmate(), PG4gsmixt(), PG4gspart(), PG4gspos(), PG4gsposp(), PG4gsrotm(), PG4gstmed(), PG4gstpar(), and PG4gsvolu().

+ Here is the call graph for this function:

void G3CLRead ( G4String fname,
char *  select = 0 
)

Definition at line 99 of file clparse.cc.

References G3CLEval(), G3CLTokens(), G4endl, ofile, and G4String::readLine().

Referenced by G4BuildGeom().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G3CLTokens ( G4String line,
G4String tokens 
)

Referenced by G3CLRead().

+ Here is the caller graph for this function:

G4int G3CLTokens ( G4String line,
G4String  tokens[] 
)

Definition at line 135 of file clparse.cc.

void G3fillParams ( G4String tokens,
const char *  ptypes 
)

Definition at line 219 of file clparse.cc.

References G4endl, Ipar, narray, ofile, and Rpar.

Referenced by PG4gsatt(), PG4gsdet(), PG4gsdeta(), PG4gsdetd(), PG4gsdeth(), PG4gsdetu(), PG4gsdetv(), PG4gsdk(), PG4gsdvn(), PG4gsdvn2(), PG4gsdvt(), PG4gsdvt2(), PG4gsdvx(), PG4gsmate(), PG4gsmixt(), PG4gspart(), PG4gspos(), PG4gsposp(), PG4gsrotm(), PG4gstmed(), PG4gstpar(), and PG4gsvolu().

+ Here is the caller graph for this function:

char gSeparator ( '_'  )
void PG4ggclos ( )

Definition at line 32 of file G4ggclos.cc.

References G4ggclos().

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsatt ( G4String tokens)

Definition at line 33 of file G4gsatt.cc.

References G3fillParams(), G4gsatt(), Ipar, name, PTgsatt, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdet ( G4String tokens)

Definition at line 32 of file G4gsdet.cc.

References G3fillParams(), G4gsdet(), Ipar, PTgsdet, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdeta ( G4String tokens)

Definition at line 38 of file G4gsdeta.cc.

References G3fillParams(), G4gsdeta(), Ipar, PTgsdeta, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdetd ( G4String tokens)

Definition at line 34 of file G4gsdetd.cc.

References G3fillParams(), G4gsdetd(), Ipar, PTgsdetd, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdeth ( G4String tokens)

Definition at line 34 of file G4gsdeth.cc.

References G3fillParams(), G4gsdeth(), Ipar, PTgsdeth, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdetu ( G4String tokens)

Definition at line 31 of file G4gsdetu.cc.

References G4String::data(), G3fillParams(), G4gsdetu(), Ipar, PTgsdetu, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdetv ( G4String tokens)

Definition at line 36 of file G4gsdetv.cc.

References G3fillParams(), G4gsdetv(), Ipar, PTgsdetv, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdk ( G4String tokens)

Definition at line 33 of file G4gsdk.cc.

References G3fillParams(), G4gsdk(), Ipar, PTgsdk, and Rpar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdvn ( G4String tokens)

Definition at line 38 of file G4gsdvn.cc.

References G3fillParams(), G4gsdvn(), Ipar, PTgsdvn, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdvn2 ( G4String tokens)

Definition at line 41 of file G4gsdvn2.cc.

References c0, G3fillParams(), G4gsdvn2(), Ipar, PTgsdvn2, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdvt ( G4String tokens)

Definition at line 41 of file G4gsdvt.cc.

References G3fillParams(), G4gsdvt(), Ipar, PTgsdvt, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdvt2 ( G4String tokens)

Definition at line 41 of file G4gsdvt2.cc.

References c0, G3fillParams(), G4gsdvt2(), Ipar, PTgsdvt2, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsdvx ( G4String tokens)

Definition at line 40 of file G4gsdvx.cc.

References c0, G3fillParams(), G4gsdvx(), Ipar, name, PTgsdvx, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsmate ( G4String tokens)

Definition at line 42 of file G4gsmate.cc.

References a, G3fillParams(), G4gsmate(), Ipar, name, PTgsmate, Rpar, Spar, and z.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsmixt ( G4String tokens)

Definition at line 43 of file G4gsmixt.cc.

References a, G4String::data(), G3fillParams(), G4gsmixt(), Ipar, name, PTgsmixt, Rpar, Spar, and z.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gspart ( G4String tokens)

Definition at line 33 of file G4gspart.cc.

References G3fillParams(), G4gspart(), Ipar, PTgspart, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gspos ( G4String tokens)

Definition at line 42 of file G4gspos.cc.

References G3fillParams(), G4gspos(), Ipar, name, PTgspos, Rpar, Spar, and z.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsposp ( G4String tokens)

Definition at line 42 of file G4gsposp.cc.

References G3fillParams(), G4gsposp(), Ipar, name, PTgsposp, Rpar, Spar, and z.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsrotm ( G4String tokens)

Definition at line 35 of file G4gsrotm.cc.

References G3fillParams(), G4gsrotm(), Ipar, PTgsrotm, and Rpar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gstmed ( G4String tokens)

Definition at line 44 of file G4gstmed.cc.

References G3fillParams(), G4gstmed(), Ipar, name, PTgstmed, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gstpar ( G4String tokens)

Definition at line 32 of file G4gstpar.cc.

References G3fillParams(), G4gstpar(), Ipar, PTgstpar, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PG4gsvolu ( G4String tokens)

Definition at line 37 of file G4gsvolu.cc.

References G3fillParams(), G4gsvolu(), Ipar, PTgsvolu, Rpar, and Spar.

Referenced by G3CLEval().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

G3DetTable G3Det

Definition at line 59 of file clparse.cc.

Referenced by G4BuildGeom(), and G4gsdeta().

G3EleTable G3Ele

Definition at line 60 of file clparse.cc.

Referenced by G4gsmate(), and G4gsmixt().

G3MatTable G3Mat

Definition at line 55 of file clparse.cc.

Referenced by G4gsmate(), G4gsmixt(), and G4gstmed().

G3MedTable G3Med

Definition at line 56 of file clparse.cc.

Referenced by G3toG4BuildLVTree(), and G4gstmed().

G3PartTable G3Part

Definition at line 58 of file clparse.cc.

Referenced by G4BuildGeom().

G3RotTable G3Rot

Definition at line 57 of file clparse.cc.

Referenced by G3toG4BuildPVTree(), G4gsrotm(), and GetTransform3D().

G3SensVolVector G3SensVol

Definition at line 61 of file clparse.cc.

Referenced by G3toG4BuildLVTree().

G4int narray

Definition at line 64 of file clparse.cc.

Referenced by G3fillParams().