]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSSurvey.cxx
Bugfix: lowercase b should be upper case B for component id: TPCClusterFinder32Bit
[u/mrichter/AliRoot.git] / PHOS / AliPHOSSurvey.cxx
index a02b813810523b54c43a48fe88bdfe9244994240..2d8e0b73c42a00132f636d100e18be24c355d7e0 100644 (file)
 /* 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
+ *
  * Revision 1.4  2007/05/17 17:34:54  kharlov
  * Merging differences if v1.2 and 1.3
  *
@@ -30,7 +36,7 @@
  */
 
 // Objects of this class read txt file with survey (photogrammetry) data
-// and convert the data into AliAlignObjAngles of alignable PHOS volumes.
+// and convert the data into AliAlignObjParams of alignable PHOS volumes.
 // It can be used as a base class, you need to override GetStripTransformation.
 // AliPHOSSurvey inherits TObject only to use AliLog "functions".
 // Author: Timur Pocheptsov (JINR)
@@ -45,7 +51,7 @@
 #include "AliSurveyObj.h"
 
 #include "AliPHOSEMCAGeometry.h"
-#include "AliAlignObjAngles.h"
+#include "AliAlignObjParams.h"
 #include "AliPHOSGeometry.h"
 #include "AliPHOSSurvey.h"
 #include "AliLog.h"
@@ -122,9 +128,9 @@ AliPHOSSurvey::~AliPHOSSurvey()
 }
 
 //____________________________________________________________________________
-void AliPHOSSurvey::CreateAliAlignObjAngles(TClonesArray &array)
+void AliPHOSSurvey::CreateAliAlignObjParams(TClonesArray &array)
 {
-  //Create AliAlignObjAngles.
+  //Create AliAlignObjParams.
   const AliPHOSGeometry * phosGeom = AliPHOSGeometry::GetInstance("IHEP", "IHEP");
   if (!phosGeom) {
     AliError("Cannot obtain AliPHOSGeometry instance.");
@@ -148,7 +154,7 @@ void AliPHOSSurvey::CreateAliAlignObjAngles(TClonesArray &array)
         TString stripName(TString::Format("PHOS/Module%d/Strip_%d_%d", module, i, j));
         AliPHOSStripDelta t(GetStripTransformation(stripNum++, module));
         new(array[arrayInd])
-          AliAlignObjAngles(
+          AliAlignObjParams(
                             stripName.Data(), volid, 
                             t.fXShift, t.fYShift, t.fZShift, 
                             -t.fPsi, -t.fTheta, -t.fPhi, 
@@ -173,7 +179,7 @@ void AliPHOSSurvey::CreateNullObjects(TClonesArray &array, const AliPHOSGeometry
     for (Int_t i = 0; i < emcaGeom->GetNStripX(); ++i)
       for (Int_t j = 0; j < emcaGeom->GetNStripZ(); ++j) {
         TString stripName(TString::Format("PHOS/Module%d/Strip_%d_%d", module, i, j));
-        new(array[arrayInd]) AliAlignObjAngles(stripName.Data(), volid, 0., 0., 0., 0., 0., 0., true);
+        new(array[arrayInd]) AliAlignObjParams(stripName.Data(), volid, 0., 0., 0., 0., 0., 0., true);
         ++arrayInd;
       }
 }
@@ -194,7 +200,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) {