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;
107 int simId = (*i_hit).sTGCId();
110 static const std::string QS1C(
"QS1C");
111 static const std::string QS2C(
"QS2C");
112 static const std::string QS3C(
"QS3C");
113 static const std::string QL1P(
"QL1P");
114 static const std::string QL2P(
"QL2P");
115 static const std::string QL3P(
"QL3P");
117 int sim_side = hitHelper->
GetSide(simId);
120 double r_A = std::sqrt(p.x()*p.x()+p.y()*p.y());
127 double r_C = std::sqrt(p.x()*p.x()+p.y()*p.y());
133 if ((sim_stationName==QS1C || sim_stationName==QS2C || sim_stationName==QS3C) && sim_side==1){
134 double r_S_A = std::sqrt(p.x()*p.x()+p.y()*p.y());
139 if ((sim_stationName==QS1C || sim_stationName==QS2C || sim_stationName==QS3C) && sim_side==-1){
140 double r_S_C = std::sqrt(p.x()*p.x()+p.y()*p.y());
145 if ((sim_stationName==QL1P || sim_stationName==QL2P || sim_stationName==QL3P) && sim_side==1){
146 double r_L_A = std::sqrt(p.x()*p.x()+p.y()*p.y());
151 if ((sim_stationName==QL1P || sim_stationName==QL2P || sim_stationName==QL3P) && sim_side==-1){
152 double r_L_C = std::sqrt(p.x()*p.x()+p.y()*p.y());
158 return StatusCode::SUCCESS;