Correct initialization of the EM length (A.Gheata)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jul 2005 09:29:34 +0000 (09:29 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jul 2005 09:29:34 +0000 (09:29 +0000)
ZDC/AliZDCv1.cxx
ZDC/AliZDCv2.cxx

index a4a235d..4bc8b34 100644 (file)
@@ -64,6 +64,12 @@ AliZDCv1::AliZDCv1() : AliZDC()
   fMedSensGR  = 0;
 //  fMedSensPI  = 0;
 //  fMedSensTDI = 0;
+  Float_t kDimZEMPb  = 0.15*(TMath::Sqrt(2.));  // z-dimension of the Pb slice
+  Float_t kDimZEMAir = 0.001;                  // scotch
+  Float_t kFibRadZEM = 0.0315;                         // External fiber radius (including cladding)
+  Int_t   kDivZEM[3] = {92, 0, 20};            // Divisions for EM detector
+  Float_t kDimZEM0 = 2*kDivZEM[2]*(kDimZEMPb+kDimZEMAir+kFibRadZEM*(TMath::Sqrt(2.)));
+  fZEMLength = kDimZEM0;
 }
  
 //_____________________________________________________________________________
@@ -139,6 +145,12 @@ AliZDCv1::AliZDCv1(const char *name, const char *title)
   fPosZEM[1] = 5.8;
   fPosZEM[2] = 11600.;
   
+  Float_t kDimZEMPb  = 0.15*(TMath::Sqrt(2.));  // z-dimension of the Pb slice
+  Float_t kDimZEMAir = 0.001;                  // scotch
+  Float_t kFibRadZEM = 0.0315;                         // External fiber radius (including cladding)
+  Int_t   kDivZEM[3] = {92, 0, 20};            // Divisions for EM detector
+  Float_t kDimZEM0 = 2*kDivZEM[2]*(kDimZEMPb+kDimZEMAir+kFibRadZEM*(TMath::Sqrt(2.)));
+  fZEMLength = kDimZEM0;
 }
  
 //_____________________________________________________________________________
index 64a3f33..cbe57f3 100644 (file)
@@ -141,7 +141,13 @@ AliZDCv2::AliZDCv2(const char *name, const char *title)
   fPosZEM[0] = 8.5;
   fPosZEM[1] = 0.;
   fPosZEM[2] = 735.;
-  fZEMLength = 0.;
+
+  Float_t kDimZEMPb  = 0.15*(TMath::Sqrt(2.));  // z-dimension of the Pb slice
+  Float_t kDimZEMAir = 0.001;                  // scotch
+  Float_t kFibRadZEM = 0.0315;                         // External fiber radius (including cladding)
+  Int_t   kDivZEM[3] = {92, 0, 20};            // Divisions for EM detector
+  Float_t kDimZEM0 = 2*kDivZEM[2]*(kDimZEMPb+kDimZEMAir+kFibRadZEM*(TMath::Sqrt(2.)));
+  fZEMLength = kDimZEM0;
   
 }