]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correct a typo SetTraskSegment to SetTrackSegment
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Jun 2002 16:04:19 +0000 (16:04 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Jun 2002 16:04:19 +0000 (16:04 +0000)
PHOS/AliPHOSPIDv0.cxx
PHOS/AliPHOSRecParticle.cxx
PHOS/AliPHOSRecParticle.h

index bfd453d7cbd7892fabf92e689cc04ac34d4177cd..d1e44f4fa0681838444a3bb35c13ed0b75b83052 100644 (file)
@@ -283,7 +283,7 @@ void  AliPHOSPIDv0::MakeRecParticles(){
     
     new( (*recParticles)[index] ) AliPHOSRecParticle() ;
     rp = (AliPHOSRecParticle *)recParticles->At(index) ; 
-    rp->SetTraskSegment(index) ;
+    rp->SetTrackSegment(index) ;
     rp->SetIndexInList(index) ;
     
     AliPHOSEmcRecPoint * emc = 0 ;
index e92de231c9555adb9101bec7fbbb3338a5ab3522..ec8abd281a234069731a2d0689de61e4d089022b 100644 (file)
@@ -29,7 +29,7 @@
 
 
 // --- AliRoot header files ---
-
+#include "AliHeader.h"
 #include "AliPHOSRecParticle.h"
 #include "AliPHOSGetter.h" 
 #include "TParticle.h"
@@ -71,6 +71,14 @@ ClassImp(AliPHOSRecParticle)
 
 //____________________________________________________________________________
 const Int_t AliPHOSRecParticle::GetNPrimaries() const  
+{   
+  AliHeader *h = gAlice->GetHeader();
+  return  h->GetNprimary(); 
+  // return  gAlice->GetNtrack(); 
+}
+
+//____________________________________________________________________________
+const Int_t AliPHOSRecParticle::GetNPrimariesToRecParticles() const  
 { 
 
   Int_t rv = 0 ;
@@ -82,7 +90,7 @@ const Int_t AliPHOSRecParticle::GetNPrimaries() const
 //____________________________________________________________________________
 const TParticle * AliPHOSRecParticle::GetPrimary(Int_t index) const  
 {
-  if ( index > GetNPrimaries() ) { 
+  if ( index > GetNPrimariesToRecParticles() ) { 
     if (fDebug) 
       cout << "WARNING : AliPHOSRecParticle::GetPrimary -> " << index << " is larger that the number of primaries " 
           <<  GetNPrimaries() << endl ;
index 5fa1ea2b9c76f40f5120c4010a12eb083155aef5..6f494f65f946bebf9b47a7c444948a8e046bf2e2 100644 (file)
@@ -28,12 +28,13 @@ class AliPHOSRecParticle : public AliPHOSFastRecParticle {
   AliPHOSRecParticle(const AliPHOSRecParticle & rp) ;  // ctor
   virtual ~AliPHOSRecParticle(){  }
 
-  Int_t  GetPHOSTSIndex()const {    return fPHOSTrackSegment ;  }
-  virtual const Int_t GetNPrimaries() const ; 
-  virtual const TParticle * GetPrimary(Int_t index) const ; 
-  void SetDebug() { fDebug = kTRUE ; } 
-  void UnsetDebug() { fDebug = kFALSE ; }
-  void   SetTraskSegment(Int_t index){fPHOSTrackSegment = index; }
+  Int_t   GetPHOSTSIndex()const {    return fPHOSTrackSegment ;  }
+  virtual const Int_t GetNPrimariesToRecParticles() const ;
+  virtual const Int_t GetNPrimaries() const ;
+  virtual const TParticle * GetPrimary(Int_t index) const ;
+  void    SetDebug() { fDebug = kTRUE ; } 
+  void    UnsetDebug() { fDebug = kFALSE ; }
+  void    SetTrackSegment(Int_t index){fPHOSTrackSegment = index; }
 
   typedef TClonesArray RecParticlesList ;