9 #include <Geant4/G4RotationMatrix.hh>
10 #include <Geant4/G4SystemOfUnits.hh>
11 #include <Geant4/G4ThreeVector.hh>
17 {{55, 0},
"M5P"}, {{56, 0},
"M5Z"}, {{55, 1},
"M8P"}, {{56, 1},
"M8Z"}, {{55, 2},
"M4P"}, {{56, 2},
"M4Z"}, {{55, 3},
"M10P"}, {{56, 3},
"M10Z"}, {{55, 4},
"M9P"}, {{56, 4},
"M9Z"}, {{55, 5},
"M2P"}, {{56, 5},
"M2Z"}, {{55, 6},
"M6P"}, {{56, 6},
"M6Z"}, {{55, 7},
"M7P"}, {{56, 7},
"M7Z"}}
27 {{0.0238291, -0.0610202, 359.729},
28 {0.32958, 0.104316, 0.491085}}},
30 {{0.0240982, -0.01546, -0.267002},
31 {0.196309, -0.00618558, 0.126347}}},
33 {{0.10541, 0.135221, -0.691686},
34 {0.775549, 0.281716, 0.603817}}},
36 {{0.10526, 0.122168, -0.691598},
37 {0.691176, 0.259581, 0.233525}}},
39 {{-0.417662, 0.0569648, -0.0964277},
40 {-0.0666588, 0.366775, -0.147532}}},
42 {{-0.417529, 0.120316, -0.0951897},
43 {-0.086922, 0.333419, -0.512579}}},
45 {{-0.202661, 0.0403903, -0.235734},
46 {0.153994, 0.313934, 0.13618}}},
48 {{-0.203231, 0.0481545, -0.228361},
49 {0.0652422, 0.30468, -0.241307}}},
51 {{0.0243278, 0.0186967, 0.524609},
52 {-1.1679, 0.746204, 0.704047}}},
54 {{-0.00159013, -0.0326792, 0.522416},
55 {-1.21045, 0.7655, 0.315458}}},
57 {{-0.172856, 0.156516, 0.630981},
58 {-1.23611, 0.828348, 0.349842}}},
60 {{-0.174169, 0.153218, 0.632272},
61 {-1.32091, 0.861492, -0.0240633}}},
63 {{-0.0802472, 0.12362, 0.804231},
64 {-1.15284, -0.140113, 0.102525}}},
66 {{-0.0822581, 0.127216, 0.803837},
67 {-1.20763, -0.242328, -0.269243}}},
69 {{-0.221227, -0.0357901, 0.597703},
70 {-0.951645, 0.183264, -0.169542}}},
72 {{-0.169038, -0.126228, 0.59627},
73 {-0.99097, -0.0452179, -0.574241}}}}
83 std::cout <<
" PHG4MicromegasSurvey::get_module_name - module not found. layer: " << layer <<
" tile: " << tile << std::endl;
98 std::cout <<
" PHG4MicromegasSurvey::get_transformation - module not found. layer: " << layer <<
" tile: " << tile << std::endl;
99 return G4Transform3D();
102 const auto& tile_name = tile_iter->second;
107 <<
" PHG4MicromegasSurvey::get_transformation - transformation not found."
108 <<
" layer: " << layer
110 <<
" tile_name: " << tile_name
112 return G4Transform3D();
116 const auto& transformation = transform_iter->second;
120 transformation.m_translation[0] *
cm,
121 transformation.m_translation[1] *
cm,
122 transformation.m_translation[2] *
cm);
125 G4RotationMatrix rotation;
126 rotation.rotateX(transformation.m_rotation[0] *
deg);
127 rotation.rotateY(transformation.m_rotation[1] *
deg);
128 rotation.rotateZ(transformation.m_rotation[2] *
deg);