]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrected for Bugs and added getter methods
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jan 2002 02:59:06 +0000 (02:59 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Jan 2002 02:59:06 +0000 (02:59 +0000)
EMCAL/AliEMCALGeometry.cxx
EMCAL/AliEMCALGeometry.h

index 124196053e9996ce8404c3f9662532c0acfca811..0fe05a97c5f6fd5e5f56a8ed17694d75edd35799 100644 (file)
@@ -268,7 +268,7 @@ Int_t AliEMCALGeometry::PreTowerIndexFromEtaPhi(Float_t eta,Float_t phi){
 //______________________________________________________________________
 Bool_t AliEMCALGeometry::AbsToRelNumbering(Int_t AbsId, Int_t *relid){
     // Converts the absolute numbering into the following array/
-    //  relid[0] = EMCAL Module number 1:1 (EMCAL arm number)
+    //  relid[0] = EMCAL Arm number 1:1 
     //  relid[1] = 0  Not in Pre Shower layers
     //           = -1 In Pre Shower
     //  relid[2] = Row number inside EMCAL
@@ -283,20 +283,21 @@ Bool_t AliEMCALGeometry::AbsToRelNumbering(Int_t AbsId, Int_t *relid){
     TowerIndexes(index,ieta,iphi,ipre);
     relid[0] = 1;
     relid[1] = 0;
-    if(ipre==1) relid[1] = -1;
+    if(ipre==1) 
+      relid[1] = -1;
     relid[2] = ieta;
     relid[3] = iphi;
 
     return rv;
 }
 //______________________________________________________________________
-void AliEMCALGeometry::RelPosInModule(const Int_t *relid,Float_t &theta,
+void AliEMCALGeometry::PosInAlice(const Int_t *relid,Float_t &theta,
                                     Float_t &phi){
-    // Converts the relative numbering into the local PHOS-module (x, z)
+    // Converts the relative numbering into the local EMCAL-module (x, z)
     // coordinates
     Int_t ieta   = relid[2]; // offset along x axis
     Int_t iphi = relid[3]; // offset along z axis
-    Int_t ipre = relid[1]; // indecates -1 preshower, or 0 full tower.
+    Int_t ipre = relid[1]; // indicates -1 preshower, or 0 full tower.
     Int_t index;
     Float_t eta;
 
index 23eee81d6d4804abc03d8cd6740df792992d6a8b..af4dce60338b3063a7390dbe07be9f89114517fb 100644 (file)
@@ -96,7 +96,7 @@ class AliEMCALGeometry : public AliGeometry {
     // for a given eta and phi in the EMCAL it returns the pretower index.
     Int_t PreTowerIndexFromEtaPhi(Float_t eta,Float_t phi);
     // Returns theta and phi (degree) for a given EMCAL cell indecated by relid
-    void RelPosInModule(const Int_t *relid,Float_t &theta,Float_t &phi);
+    void PosInAlice(const Int_t *relid,Float_t &theta,Float_t &phi);
     // Returns an array indicating the Tower/preshower, iz, and iphi for a
     // specific EMCAL indes.
     Bool_t AbsToRelNumbering(Int_t AbsId, Int_t *relid);