]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSSurvey.cxx
fix constness
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSurvey.cxx
index e944529c4d02301778e44a91234a9a86fb302cfd..06a04833c4f5dac7c83bfe8606536ac26f54ea72 100644 (file)
@@ -18,6 +18,9 @@
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.6  2007/08/28 13:12:18  hristov
+ * AliAlignObjAngles becomes AliAlignObjParams (Raffaele)
+ *
  * Revision 1.5  2007/07/10 12:41:38  kharlov
  * Added a new class AliPHOSSurvet1 which read survey data from EDMS files
  *
@@ -100,6 +103,11 @@ AliPHOSSurvey::AliPHOSSurvey(const TString &txtFileName)
   Double_t *xReal = new Double_t[fStrNum * 2];//2
   Double_t *zReal = new Double_t[fStrNum * 2];//3
 
+  for (Int_t i = 0; i < fStrNum * 2; ++i) {
+    xReal[i] = 0.;
+    zReal[i] = 0.;
+  }
+  
   for (Int_t i = 0; i < fStrNum * 2; ++i) {
     if (!inputFile) {
       AliError("Error while reading input file.");
@@ -197,7 +205,7 @@ void AliPHOSSurvey::InitStripData(const Double_t *xReal, const Double_t *zReal)
   const AliPHOSGeometry *phosGeom = AliPHOSGeometry::GetInstance("IHEP", "IHEP");
   AliPHOSEMCAGeometry * emcaGeom = phosGeom->GetEMCAGeometry();
   const Float_t *strip = emcaGeom->GetStripHalfSize();
-  const Float_t *cell = emcaGeom->GetSteelCellHalfSize(); 
+  const Float_t *cell  = emcaGeom->GetAirCellHalfSize(); 
 
   AliPHOSStripCoords *idealStrips = new AliPHOSStripCoords[fStrNum];//1
   for (Int_t ix = 0, stripNumber = 0; ix < emcaGeom->GetNStripX(); ++ix) {