GEMC  1.8
Geant4 Monte-Carlo Framework
run_conditions.h
Go to the documentation of this file.
1 
8 #ifndef run_conditions_H
9 #define run_conditions_H
10 
11 // %%%%%%%%%%
12 // G4 headers
13 // %%%%%%%%%%
14 #include "G4ThreeVector.hh"
15 #include "G4RotationMatrix.hh"
16 
17 // %%%%%%%%%%
18 // Qt headers
19 // %%%%%%%%%%
20 #include <QDomDocument>
21 #include <QtGui>
22 
23 // %%%%%%%%%%%%%
24 // gemc headers
25 // %%%%%%%%%%%%%
26 #include "usage.h"
27 
28 // %%%%%%%%%%%
29 // C++ headers
30 // %%%%%%%%%%%
31 #include <iostream>
32 using namespace std;
33 
34 double get_number(string);
35 
42 {
43  private:
44  G4ThreeVector pos;
45  G4RotationMatrix rot; // Rotation Matrix
46  G4ThreeVector vrot; // Rotation Vector (ordered X,Y,Z)
47 
48 
49  int is_present;
50 
51  public:
52  gcard_detector(){is_present = 1;}
54 
55  void set_position(string X, string Y, string Z);
56  void set_rotation(string X, string Y, string Z);
57  void set_existance(string exist);
58 
59  G4ThreeVector get_position() {return pos;}
60  G4ThreeVector get_vrotation(){return vrot;}
61  G4RotationMatrix get_rotation() {return rot;}
62  int get_existance(){return is_present;}
63 
64 };
65 
66 
67 
75 {
76  public:
78  ~run_conditions();
79 
80  map<string, gcard_detector> gDet_Map;
81  vector<string> gTab_Vec;
82 
83  private:
84  QDomDocument domDocument;
85 
86 };
87 
88 
89 #endif
90 
91 
92 
93 
94 
95 
G4ThreeVector get_vrotation()
vector< string > gTab_Vec
Vector of SQL tables names.
STL namespace.
G4ThreeVector get_position()
G4RotationMatrix get_rotation()
map< string, gcard_detector > gDet_Map
Map of gcard_detector. Map Key = detector name.
double get_number(string)
Returns dimension from string, i.e. 100*cm.