Fixed memory leaks for #86360: High memory consumption in 2.76TeV p+p RAW reco jobs
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSupportGeometry.cxx
index 7fdb819..cb832c6 100644 (file)
 
 #include "AliPHOSSupportGeometry.h"
 
-ClassImp(AliPHOSSupportGeometry) ;
+ClassImp(AliPHOSSupportGeometry)
 
 //____________________________________________________________________________
-AliPHOSSupportGeometry::AliPHOSSupportGeometry()
+AliPHOSSupportGeometry::AliPHOSSupportGeometry() :
+  fRailLength(1200.0),
+  fDistanceBetwRails(420.0),
+  fRailsDistanceFromIP(590.),
+  fCradleWallThickness(2.0)
 {
 
   // Initializes the PHOS support parameters
   
-  fRailLength   = 1200.0;
 
   fRailPart1[0] =   28.0;
   fRailPart1[1] =    3.0;
   fRailPart1[2] = fRailLength;
 
   fRailPart2[0] =    1.5;
-  fRailPart2[1] =   54.0;
+  fRailPart2[1] =   34.0;
   fRailPart2[2] = fRailLength;
 
   fRailPart3[0] =    6.0;
   fRailPart3[1] =    5.0;
   fRailPart3[2] = fRailLength;
 
+  fRailPos[0] = 0.;
+  fRailPos[1] = 0.;
+  fRailPos[2] = 0.;
+
   fRailOuterSize[0] = fRailPart1[0];
   fRailOuterSize[1] = fRailPart1[1]*2 + fRailPart2[1] + fRailPart3[1];
   fRailOuterSize[2] = fRailLength;
 
-  fDistanceBetwRails = 402.5;
-  fRailsDistanceFromIP = 610.;
-
   fRailRoadSize[0] = fDistanceBetwRails + fRailOuterSize[0];
   fRailRoadSize[1] = fRailOuterSize[1];
   fRailRoadSize[2] = fRailOuterSize[2];
 
-  fCradleWallThickness = 1.0;
-
   fCradleWall[0] =   0.;  // Inner radius, to be defined from PHOS parameters
   fCradleWall[1] =  65.;  // Diff. between outer and inner radii
   fCradleWall[2] =  18.;
@@ -70,6 +72,4 @@ AliPHOSSupportGeometry::AliPHOSSupportGeometry()
   fCradleWheel[0] = 30.0;
   fCradleWheel[1] = 80.0;
   fCradleWheel[2] = 30.0;
-  
 }
-//____________________________________________________________________________