Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 15, 2024
1 parent 6e3ca57 commit bfb8b56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions compact/tracking/vertex_barrel_curved.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<constant name="SiVertexSensor_thickness" value="40*um" />
<constant name="RSU_width" value="19.564*mm" />
<constant name="RSU_length" value="21.666*mm" />
<constant name="Section_width" value="9.197*mm"/>
<constant name="Section_width" value="9.197*mm"/>
<constant name="Section_length" value="10.773*mm"/>

<comment>
Expand Down Expand Up @@ -63,9 +63,9 @@
<constant name="VertexBarrelLayer1_rmax" value="VertexBarrelLayer1_rmin + VertexBarrelLayer_thickness" />
<constant name="VertexBarrelLayer2_rmin" value="VertexBarrelMod2_rmin" />
<constant name="VertexBarrelLayer2_rmax" value="VertexBarrelLayer2_rmin + VertexBarrelLayer_thickness" />
<constant name="VertexBarrelLayer3_rmin" value="VertexBarrelMod3_rmin" />
<constant name="VertexBarrelLayer3_rmin" value="VertexBarrelMod3_rmin" />
<constant name="VertexBarrelLayer3_rmax" value="VertexBarrelLayer3_rmin + VertexBarrelLayer_thickness" />

<comment> ensure we are within the vertex envelope with some margin. </comment>
<constant name="VertexCheck" value="sqrt(VertexBarrel_rmax - VertexBarrelLayer3_rmax - .1*cm)" />
</define>
Expand All @@ -82,7 +82,7 @@
insideTrackingVolume="true">
<type_flags type="DetType_TRACKER + DetType_BARREL" />
<comment>
- Vertex Barrel Modules.
- Vertex Barrel Modules.
- For RSU (1 module = 1 upper/lower section of three tiles):
--Use [mod_name]_upper and [mod_name]_lower here, and [mod_name] in corresponding layer
to allow the geo plugin find both modules.
Expand All @@ -96,7 +96,7 @@
| ------biasing-------- | -------biasing--------
| tilex3 | tilex3
| ------readout-------- | -------readout--------

</comment>
<module name="Module1_upper" rmin="VertexBarrelMod1_rmin" width="VertexBarrelStave1_width"
length="VertexBarrelMod_length">
Expand All @@ -113,7 +113,7 @@
<module_component name="RSU" type="lower"
material="Silicon"
sensitive="true"
thickness="SiVertexSensor_thickness"
thickness="SiVertexSensor_thickness"
width="Section_width"
length="Section_length"
vis="VertexLayerVis" />
Expand All @@ -134,7 +134,7 @@
<module_component name="RSU" type="lower"
material="Silicon"
sensitive="true"
thickness="SiVertexSensor_thickness"
thickness="SiVertexSensor_thickness"
width="Section_width"
length="Section_length"
vis="VertexLayerVis" />
Expand All @@ -155,7 +155,7 @@
<module_component name="RSU" type="lower"
material="Silicon"
sensitive="true"
thickness="SiVertexSensor_thickness"
thickness="SiVertexSensor_thickness"
width="Section_width"
length="Section_length"
vis="VertexLayerVis" />
Expand Down
12 changes: 6 additions & 6 deletions src/SVTBarrelTracker_geo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static Ref_t create_SVTBarrelTracker(Detector& description, xml_h e, SensitiveDe
double c_rmin = m_rmin + thickness_so_far;
double c_dphi = c_width / c_rmin;

if (c_nam=="RSU"){ // for RSU, create ONE upper or lower 3-tile sections.
if (c_nam == "RSU") { // for RSU, create ONE upper or lower 3-tile sections.
// **** hard-coded RSU design with 12 tiles, plus backbones, readout pads, biasing
// Having issue including multiple sensitive surfaces in one Tube module (worked with box).
// Therefore use type "upper" and "lower" to create two mirrored tile sections. (left right is identical)
Expand All @@ -120,11 +120,11 @@ static Ref_t create_SVTBarrelTracker(Detector& description, xml_h e, SensitiveDe
const double ReadoutPadsWidth = m_width - BiasingWidth - c_width;
const double BackboneLength = m_length - c_length; //0.06*mm;

double px=0, py=0, pz=0;
double c_z0 = -m_length/2;
double c_z1 = c_z0+BackboneLength;
double c_z2 = m_length/2;
pz = (c_z1 + c_z2)/2; // section central z
double px = 0, py = 0, pz = 0;
double c_z0 = -m_length / 2;
double c_z1 = c_z0 + BackboneLength;
double c_z2 = m_length / 2;
pz = (c_z1 + c_z2) / 2; // section central z

double c_phi0 = 0;
double c_phi1, c_phi2;
Expand Down

0 comments on commit bfb8b56

Please sign in to comment.