Skip to content

Commit

Permalink
remove dummy offset in position. The original problem was a bug in Ve…
Browse files Browse the repository at this point in the history
…cGeom
  • Loading branch information
atolosadelgado committed Nov 21, 2023
1 parent a3875bc commit ec36503
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions detector/PID/ARC_geo_o1_v01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,7 @@ static Ref_t create_ARC_barrel(Detector &desc, xml::Handle_t handle, SensitiveDe
double radiator_thickness = vessel_outer_r-vessel_inner_r-2*vessel_wall_thickness;
// default 0.5cm assumed by original optimization by Martin
double sensor_z_offset_Martin = GetVariableFromXML( desc, "SENSOR_Z_OFFSET", 0.5*cm, 0., radiator_thickness);
double extra_offset_to_avoid_overlap_when_using_ROOT_units = 1*mm;
double sensor_z_origin_Martin = vessel_inner_r + vessel_wall_thickness + sensor_z_offset_Martin + extra_offset_to_avoid_overlap_when_using_ROOT_units;
double sensor_z_origin_Martin = vessel_inner_r + vessel_wall_thickness + sensor_z_offset_Martin;
auto sensorMat = desc.material("SiliconOptical");
auto sensorVis = desc.visAttributes("arc_no_vis");
// auto sensorSurf = surfMgr.opticalSurface(sensorElem.attr<std::string>(_Unicode(surface)));
Expand Down

0 comments on commit ec36503

Please sign in to comment.