88#include <algorithm>
99#include <cmath>
1010
11- void defineIOTOFGeo (const double rAvg = 21 , // cm, average radius of the layer (used for stave size calculations)
12- const int nStaves = 24 , // Number of staves
13- const double staveWidth = 5.42 , // cm, Stave width (arc length at avg radius at 0 degrees)
11+ void defineIOTOFGeo (const double rAvg = 21 , // cm, average radius of the layer (used for stave size calculations)
12+ const int nStaves = 24 , // Number of staves
13+ const double staveWidth = 5.42 , // cm, Stave width (arc length at avg radius at 0 degrees)
1414 const double staveHeightX2X0 = 0.02 , // Stave height (radial at 0 degrees)
15- const double staveTilt = 10 // Stave tilt angle in degrees
15+ const double staveTilt = 10 // Stave tilt angle in degrees
1616)
1717{
1818 const double Si_X0 = 9.5f ; // cm, radiation length of silicon
1919 const double staveHeight = staveHeightX2X0 * Si_X0 ;
2020
21-
2221 // 1. Define inner and outer radii for the disk.
2322 // The radius corresponds to the distance of the center of the stave to the origin
2423 const double rInner = rAvg - staveHeight / 2.0 ;
@@ -45,7 +44,7 @@ void defineIOTOFGeo(const double rAvg = 21, // cm, average radius of t
4544 const double vCorners [4 ] = {- W / 2.0 , - W / 2.0 , W / 2.0 , W / 2.0 };
4645 for (int i = 0 ; i < 4 ; ++ i ) {
4746 const double dist = std ::hypot (uCorners [i ] - u0 , vCorners [i ] - v0 );
48- if (dist > rOutscribed ){
47+ if (dist > rOutscribed ) {
4948 rOutscribed = dist ;
5049 }
5150 }
0 commit comments