14 #include "CLHEP/Vector/LorentzVector.h"
36 m_h_rz_A =
new TH2D(
"h_stgc_rz_A",
"rz_A", 2000,6500., 8500., 1000, -5000., 5000.);
40 m_h_rz_C =
new TH2D(
"h_stgc_rz_C",
"rz_C", 2000,-8500., -6500., 5000, 0., 5000.);
44 m_h_L_rz_A =
new TH2D(
"h_stgc_L_rz_A",
"L_rz_A", 2000, 6500., 8500., 5000, 0., 5000.);
48 m_h_L_rz_C =
new TH2D(
"h_stgc_L_rz_C",
"L_rz_C", 2000,-8500., -6500., 5000, 0., 5000.);
52 m_h_S_rz_A =
new TH2D(
"h_stgc_S_rz_A",
"S_rz_A", 2000,6500., 8500., 5000, 0., 5000.);
56 m_h_S_rz_C =
new TH2D(
"h_stgc_S_rz_C",
"S_rz_C", 2000, -8500., -6500., 5000, 0., 5000.);
61 m_h_xy_A =
new TH2D(
"h_stgc_xy_A",
"xy_A", 1200,-6000., 6000., 1200, -6000., 6000.);
65 m_h_xy_C =
new TH2D(
"h_stgc_xy_C",
"xy_C", 1200,-6000., 6000., 1200, -6000., 6000.);
69 m_h_L_xy_A =
new TH2D(
"h_stgc_L_xy_A",
"L_xy_A", 1200,-6000., 6000., 1200, -6000., 6000.);
73 m_h_L_xy_C =
new TH2D(
"h_stgc_L_xy_C",
"L_xy_C", 1200,-6000., 6000., 1200, -6000., 6000.);
77 m_h_S_xy_A =
new TH2D(
"h_stgc_S_xy_A",
"S_xy_A", 1200,-6000., 6000., 1200, -6000., 6000.);
81 m_h_S_xy_C =
new TH2D(
"h_stgc_S_xy_C",
"S_xy_C", 1200,-6000., 6000., 1200, -6000., 6000.);
85 m_h_r_A =
new TH1D(
"h_stgc_r_A",
"r_A", 1000,0., 14000.);
89 m_h_r_C =
new TH1D(
"h_stgc_r_C",
"r_C", 1000,0., 14000.);
94 return StatusCode::SUCCESS;
100 const EventContext& ctx{Gaudi::Hive::currentContext()};
108 int simId = (*i_hit).sTGCId();
111 static const std::string QS1C(
"QS1C");
112 static const std::string QS2C(
"QS2C");
113 static const std::string QS3C(
"QS3C");
114 static const std::string QL1P(
"QL1P");
115 static const std::string QL2P(
"QL2P");
116 static const std::string QL3P(
"QL3P");
118 int sim_side = hitHelper->
GetSide(simId);
121 double r_A = std::sqrt(
p.x()*
p.x()+
p.y()*
p.y());
128 double r_C = std::sqrt(
p.x()*
p.x()+
p.y()*
p.y());
134 if ((sim_stationName==QS1C || sim_stationName==QS2C || sim_stationName==QS3C) && sim_side==1){
135 double r_S_A = std::sqrt(
p.x()*
p.x()+
p.y()*
p.y());
140 if ((sim_stationName==QS1C || sim_stationName==QS2C || sim_stationName==QS3C) && sim_side==-1){
141 double r_S_C = std::sqrt(
p.x()*
p.x()+
p.y()*
p.y());
146 if ((sim_stationName==QL1P || sim_stationName==QL2P || sim_stationName==QL3P) && sim_side==1){
147 double r_L_A = std::sqrt(
p.x()*
p.x()+
p.y()*
p.y());
152 if ((sim_stationName==QL1P || sim_stationName==QL2P || sim_stationName==QL3P) && sim_side==-1){
153 double r_L_C = std::sqrt(
p.x()*
p.x()+
p.y()*
p.y());
159 return StatusCode::SUCCESS;