18 , _sensor_resolution_x(0)
19 , _sensor_resolution_y(0)
46 TVector3 sensorPosition;
50 bool geantino =
false;
143 dynamic_cast<PHG4TrackUserInfoV1*>(
p))
196 int sensor_ID_0 = -1;
197 int sensor_ID_1 = -1;
204 G4double baseSH_width = baseplate_width / 2;
205 G4double _module_x_dimension = baseplate_length;
206 G4double _module_y_dimension = baseplate_width + baseSH_width;
216 float prePoint_Phi = prePointVec.Phi()+
M_PI;
226 sensor_ID_0 = (
int) ( ( ( prePoint->
GetPosition().
x() + (prePoint->
GetPosition().
x()<0 ? -_module_x_dimension /2 : _module_x_dimension/2) ) ) / _module_x_dimension );
227 sensor_ID_1 = (
int) ( ( ( prePoint->
GetPosition().
y() + (prePoint->
GetPosition().
y()<0 ? -_module_y_dimension /2 : _module_y_dimension/2) ) ) / _module_y_dimension );
229 float sensorcorner_x = sensor_ID_0*_module_x_dimension - sensor_x_dimension/2;
230 float sensorcorner_y = 0;
231 if((sensor_ID_1%2==0 && layer_ID==0) || (sensor_ID_1%2!=0 && layer_ID==1) ){
233 sensorcorner_y = sensor_ID_1*_module_y_dimension - _module_y_dimension/2 + (0.1 *
mm / 2);
236 sensorcorner_y = sensor_ID_1*_module_y_dimension + _module_y_dimension/2 - sensor_y_dimension - (0.1 *
mm / 2);
249 module_ret = module_ID;
251 sensor_0 = sensor_ID_0;
252 sensor_1 = sensor_ID_1;
265 std::string hitnodename;
276 hits_ = findNode::getClass<PHG4HitContainer>(topNode, hitnodename.c_str());
281 std::cout <<
"PHG4TTLSteppingAction::SetTopNode - unable to find "
282 << hitnodename << std::endl;