]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use of fGeom avoided; function GetGlobalPosition overwritten
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 23 Sep 2001 13:55:04 +0000 (13:55 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 23 Sep 2001 13:55:04 +0000 (13:55 +0000)
PHOS/AliPHOSRecPoint.cxx
PHOS/AliPHOSRecPoint.h

index 1e01fdeb088f31414e67ff7718a7c70b1966e71b..879f1f770a493a0861d2b260a433addb0054fcb1 100644 (file)
@@ -46,8 +46,7 @@ AliPHOSRecPoint::AliPHOSRecPoint()
 
   fMaxTrack = 200 ;
   fPHOSMod = 0;
-  AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ; 
-  fGeom =  (AliPHOSGeometry*)gime->PHOSGeometry();
+
 }
 
 //____________________________________________________________________________
@@ -228,6 +227,17 @@ void  AliPHOSRecPoint::EvalPrimaries(TClonesArray * digits)
   delete tempo ;
 
 }
+//____________________________________________________________________________
+void AliPHOSRecPoint::GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const
+{
+  // returns the position of the cluster in the global reference system of ALICE
+  // and the uncertainty on this position
+  
+  
+  AliPHOSGetter::GetInstance()->PHOSGeometry()->GetGlobal(this, gpos, gmat) ;
+}
+
 
 //______________________________________________________________________________
 void AliPHOSRecPoint::Paint(Option_t *)
index aa0dd75bdfad76c22e8ba6b4e6ce3e38e8ddfc63..7287e0ba4d3b176a564c6a5ce6ba01be8b39402a 100644 (file)
@@ -50,6 +50,7 @@ class AliPHOSRecPoint : public AliRecPoint {
   virtual void    EvalAll(Float_t logWeight,TClonesArray * digits) ;  
   virtual void    EvalPHOSMod(AliPHOSDigit * digit) ;  
   virtual void    EvalPrimaries(TClonesArray * digits) ;  
+  virtual void    GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE
   virtual Int_t   GetPHOSMod(void) const {return fPHOSMod ; }
   virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; 
                                                       return fTracksList ; }