RotMatrixName returns TString to avoid runtime problems (valgrind)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Jan 2004 10:51:19 +0000 (10:51 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Jan 2004 10:51:19 +0000 (10:51 +0000)
RICH/AliRICHChamber.h

index a322336..2af9a07 100644 (file)
@@ -27,7 +27,7 @@ public:
            AliRICHChamber& operator=(const AliRICHChamber&)              {return *this;}
   
   TRotMatrix* RotMatrix()          const{return fpRotMatrix;}
-  const char* RotMatrixName()      const{return "rot"+fName;}
+  TString RotMatrixName()          const{return "rot"+fName;}
   TRotation   Rot()                const{return fRot;}
   Double_t    Rho()                const{return fCenterV3.Mag();} 
   Double_t    ThetaD()             const{return fCenterV3.Theta()*TMath::RadToDeg();}