New chamber geometry
[u/mrichter/AliRoot.git] / TRD / AliTRDgeometryFull.cxx
index feca4e854990c42d501ec9c6798314e1f3d25c51..50cbc44e4870f0accf405b79668b6c08952e0ee4 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.8  2002/02/11 14:21:16  cblume
+Update of the geometry. Get rid of MANY
+
 Revision 1.7  2001/05/11 07:56:12  hristov
 Consistent declarations needed on Alpha
 
@@ -102,20 +105,20 @@ void AliTRDgeometryFull::Init()
   fRICHhole = kFALSE;
 
   // The outer lengths of the chambers for the sectors with holes for the PHOS
-  Float_t lengthPH[kNplan][kNcham] = { { 123.5, 116.5,   0.0, 116.5, 123.5 }
+  Float_t lengthPH[kNplan][kNcham] = { { 124.0, 117.0,   0.0, 117.0, 124.0 }
                                     , { 131.0, 124.0,   0.0, 124.0, 131.0 }
-                                    , { 134.5, 131.5,   0.0, 131.5, 134.5 }
-                                    , { 142.0, 139.0,   0.0, 139.0, 142.0 }
-                                    , { 142.0, 146.0,   0.0, 146.0, 142.0 }
-                                     , { 134.5, 153.5,   0.0, 153.5, 134.5 } };
+                                    , { 138.0, 131.0,   0.0, 131.0, 138.0 }
+                                    , { 145.0, 138.0,   0.0, 138.0, 145.0 }
+                                    , { 147.0, 140.0,   0.0, 140.0, 147.0 }
+                                    , { 147.0, 140.0,   0.0, 140.0, 147.0 } };
 
   // The outer lengths of the chambers for the sectors with holes for the RICH
-  Float_t lengthRH[kNplan][kNcham] = { {  86.5,   0.0,   0.0,   0.0,  86.5 }
+  Float_t lengthRH[kNplan][kNcham] = { {  87.5,   0.0,   0.0,   0.0,  87.5 }
                                     , { 101.5,   0.0,   0.0,   0.0, 101.5 }
-                                    , { 112.5,   0.0,   0.0,   0.0, 112.5 }
-                                    , { 127.5,   0.0,   0.0,   0.0, 127.5 }
-                                    , { 134.5,   0.0,   0.0,   0.0, 134.5 }
-                                     , { 134.5,   0.0,   0.0,   0.0, 134.5 } };
+                                    , { 115.5,   0.0,   0.0,   0.0, 115.5 }
+                                    , { 129.5,   0.0,   0.0,   0.0, 129.5 }
+                                    , { 133.5,   0.0,   0.0,   0.0, 133.5 }
+                                    , { 133.5,   0.0,   0.0,   0.0, 133.5 } };
 
   for (icham = 0; icham < kNcham; icham++) {
     for (iplan = 0; iplan < kNplan; iplan++) {
@@ -776,3 +779,38 @@ void AliTRDgeometryFull::CreateGeometry(Int_t *idtmed)
   }
 
 }
+
+//_____________________________________________________________________________
+void AliTRDgeometryFull::SetOldGeometry()
+{
+  //
+  // Use the old chamber lengths
+  //
+
+  Int_t icham;
+  Int_t iplan;
+
+  AliTRDgeometry::SetOldGeometry();
+
+  Float_t lengthPH[kNplan][kNcham] = { { 123.5, 116.5,   0.0, 116.5, 123.5 }
+                                    , { 131.0, 124.0,   0.0, 124.0, 131.0 }
+                                    , { 134.5, 131.5,   0.0, 131.5, 134.5 }
+                                    , { 142.0, 139.0,   0.0, 139.0, 142.0 }
+                                    , { 142.0, 146.0,   0.0, 146.0, 142.0 }
+                                     , { 134.5, 153.5,   0.0, 153.5, 134.5 } };
+
+  Float_t lengthRH[kNplan][kNcham] = { {  86.5,   0.0,   0.0,   0.0,  86.5 }
+                                    , { 101.5,   0.0,   0.0,   0.0, 101.5 }
+                                    , { 112.5,   0.0,   0.0,   0.0, 112.5 }
+                                    , { 127.5,   0.0,   0.0,   0.0, 127.5 }
+                                    , { 134.5,   0.0,   0.0,   0.0, 134.5 }
+                                     , { 134.5,   0.0,   0.0,   0.0, 134.5 } };
+
+  for (icham = 0; icham < kNcham; icham++) {
+    for (iplan = 0; iplan < kNplan; iplan++) {
+      fClengthPH[iplan][icham] = lengthPH[iplan][icham];
+      fClengthRH[iplan][icham] = lengthRH[iplan][icham];
+    }
+  }
+
+}