]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added some methods for testing purpose
authorpavlinov <pavlinov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 20 Nov 2010 10:43:47 +0000 (10:43 +0000)
committerpavlinov <pavlinov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 20 Nov 2010 10:43:47 +0000 (10:43 +0000)
EMCAL/AliEMCALGeoUtils.cxx
EMCAL/AliEMCALGeoUtils.h
EMCAL/AliEMCALShishKebabTrd1Module.cxx
EMCAL/AliEMCALShishKebabTrd1Module.h

index 4bba996e1d51f9ef18fc90f2554d14fa9cc914cb..0ea50c146c4b5c565912a299c4a4aed998db9b98 100644 (file)
@@ -174,7 +174,7 @@ AliEMCALGeoUtils::AliEMCALGeoUtils(const Text_t* name, const Text_t* title)
        
   if (AliDebugLevel()>=2) {
     fEMCGeometry->Print();
-    PrintGeometry();
+    PrintGeometryGeoUtils();
   }
 
   for (Int_t ix = 0; ix < 48; ix++)
@@ -797,7 +797,7 @@ AliEMCALShishKebabTrd1Module* AliEMCALGeoUtils::GetShishKebabModule(Int_t neta)
 }
 
 //___________________________________________________________________
-void AliEMCALGeoUtils::PrintGeometry()
+void AliEMCALGeoUtils::PrintGeometryGeoUtils()
 {
   //Print information from geometry
   fEMCGeometry->PrintGeometry();
index e71b3f1eb49a31df1bf49d93ebc56b0c62c3137e..e623d57205c9e1920ca145c22245936e0883b008 100644 (file)
@@ -42,9 +42,9 @@ public:
   TList  *GetShishKebabTrd1Modules() const {return fShishKebabTrd1Modules;}
   AliEMCALShishKebabTrd1Module *GetShishKebabModule(Int_t neta) const;
 
-  void PrintGeometry(); 
+  void PrintGeometryGeoUtils();   // *MENU*  
   void PrintCellIndexes(Int_t absId=0, int pri=0, const char *tit="") const ;  //*MENU*
-  void PrintLocalTrd1(Int_t pri=0) const;  //*MENU*
+  void PrintLocalTrd1(Int_t pri=0) const;  // *MENU*
   virtual void Browse(TBrowser* b);
   virtual Bool_t  IsFolder() const;
 
index 739aa25275ea49e5be1efe75149be310893ca1eb..ef02400e76292d0ac182cffca756dfa3ff3e12c4 100644 (file)
@@ -152,7 +152,7 @@ void AliEMCALShishKebabTrd1Module::Init(Double_t A, Double_t B)
 }
 
 void AliEMCALShishKebabTrd1Module::DefineAllStaff()
-{
+{ 
   //Define some parameters     
   DefineName(fTheta);
   // Centers of cells - 2X2 case
index 3ceb8536e4c9a35f8565df9cab64598e89eeaa88..f78f51ca9084749df74514c57bf180733793a41a 100644 (file)
@@ -48,13 +48,16 @@ class AliEMCALShishKebabTrd1Module : public TNamed {
   //  Additional offline staff 
   //  ieta=0 or 1 - Jun 02, 2006
   TVector2& GetCenterOfCellInLocalCoordinateofSM(Int_t ieta)
-  { if(ieta<=0) return fOK2;
-    else        return fOK1;}
-  void GetCenterOfCellInLocalCoordinateofSM(Int_t ieta, Double_t &xr, Double_t &zr) const
+  { 
+    if(ieta<=0) return fOK2;
+    else        return fOK1;
+  }
+  void GetCenterOfCellInLocalCoordinateofSM(Int_t ieta, Double_t &xr, Double_t &zr, Int_t pri=0) const
   { 
     if(ieta<=0) {xr = fOK2.Y(); zr = fOK2.X();
     } else      {xr = fOK1.Y(); zr = fOK1.X();
     }
+    if(pri>0) printf(" %s ieta %2.2i xr %8.4f  zr %8.4f \n", GetName(), ieta, xr, zr);  
   }
   void GetCenterOfCellInLocalCoordinateofSM3X3(Int_t ieta, Double_t &xr, Double_t &zr) const
   { // 3X3 case - Nov 9,2006