]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4GeometryOutputManager.h
added tcsh UI
[u/mrichter/AliRoot.git] / TGeant4 / TG4GeometryOutputManager.h
1 // $Id$
2 // Category: geometry
3 //
4 // Author: I. Hrivnacova
5 //
6 // Class TG4GeometryOutputManager
7 // ------------------------------
8 // This class provides methods for writing
9 // tokens (ASCII form of Geant3 routines calls)
10 // into the specified output file.
11
12 #ifndef TG4_GEOMETRY_OUTPUT_MANAGER_H
13 #define TG4_GEOMETRY_OUTPUT_MANAGER_H
14
15 #include "TG4Globals.h"
16
17 #include <globals.hh>
18 #include <g4std/fstream>
19
20 class TG4GeometryOutputManager
21 {
22   public:
23     TG4GeometryOutputManager();
24     virtual ~TG4GeometryOutputManager();
25
26     // methods
27     void OpenFile(G4String filePath);
28     void CloseFile();
29
30     void WriteGsvolu(G4String name, G4String shape, G4int nmed, G4double* par,
31               G4int npar);
32
33     void WriteGspos(G4String name, G4int num, G4String moth, G4double x,
34               G4double y, G4double z, G4int irot, G4String only);
35
36     void WriteGsposp(G4String name, G4int num, G4String moth, G4double x,
37               G4double y, G4double z, G4int irot, G4String only,
38               G4double* Rpar, G4int npar);
39
40     void WriteGsrotm(G4int irot, G4double theta1, G4double phi1,
41               G4double theta2, G4double phi2, G4double theta3, G4double phi3);
42
43     //void WriteGsatt(G4String name, G4String attr, G4int ival);
44
45     void WriteGsdvn(G4String vname, G4String vmoth, G4int ndiv, G4int iaxis);
46
47     void WriteGsdvt(G4String name, G4String moth, G4double Step, G4int iaxis,
48               G4int numed, G4int ndvmx);
49
50     void WriteGsdvx(G4String name, G4String moth, G4int ndiv, G4int iaxis,
51               G4double Step, G4double c0, G4int numed, G4int ndvmx);
52
53     void WriteGsdvn2(G4String name, G4String moth, G4int ndiv, G4int iaxis,
54               G4double c0, G4int numed);
55
56     void WriteGsdvt2(G4String name, G4String moth, G4double Step, G4int iaxis,
57               G4double c0, G4int numed, G4int ndvmx);
58
59     void WriteGsmate(G4int imate, G4String name, G4double a, G4double z,
60               G4double dens, G4double radl, G4int nwbf, G4double* ubuf);
61
62     void WriteGsmixt(G4int imate, G4String name, G4double* a, G4double* z,
63               G4double dens, G4int nlmat, G4double* wmat);
64
65     void WriteGstmed(G4int itmed, G4String name, G4int nmat, G4int isvol,
66               G4int ifield, G4double fieldm, G4double tmaxfd,
67               G4double stemax, G4double deemax, G4double epsil,
68               G4double stmin, G4double* par, G4int npar);
69
70     void WriteGstpar(G4int itmed, G4String par, G4double parval);
71
72     void WriteGgclos();
73
74   private:
75     // data members
76     G4std::ofstream  fOutFile; //output file
77 };
78
79 #endif //TG4_GEOMETRY_OUTPUT_MANAGER_H
80