]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
GetPrimaries modified
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Apr 2001 15:02:17 +0000 (15:02 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Apr 2001 15:02:17 +0000 (15:02 +0000)
PHOS/AliPHOSFastRecParticle.cxx
PHOS/AliPHOSFastRecParticle.h

index 7db43b930bd4379f5d993a14b0ad50d40023b4fe..3dcbfcc712fafb7f8dd7bd0d8caca1c0241afd6d 100644 (file)
@@ -89,6 +89,7 @@ ClassImp(AliPHOSFastRecParticle) ;
   fPolarTheta  = p.fPolarTheta;
   fPolarPhi    = p.fPolarPhi;
   fParticlePDG = p.fParticlePDG; 
+
 }
 
 //____________________________________________________________________________
@@ -158,18 +159,6 @@ void AliPHOSFastRecParticle::ExecuteEvent(Int_t event, Int_t px, Int_t py)
 
 }
 
-//____________________________________________________________________________
-Int_t * AliPHOSFastRecParticle::GetPrimaries(Int_t & number) 
-{
-  // Retrieves the unique primary particle at the origine of the present reconstruced particle
-
-  number = 1 ; 
-  Int_t * list = new Int_t[1] ;
-  list[0] = fPrimary ; 
-  
-  return list ;
-}
-
 //____________________________________________________________________________
 TString AliPHOSFastRecParticle::Name()
 {
index 7ea48297e130628d11a1973181dd10f7cd08497c..e6fa46d4932a2710edff95fdbdd432287b6b79e0 100644 (file)
@@ -27,6 +27,7 @@ class AliPHOSFastRecParticle : public TParticle {
   AliPHOSFastRecParticle() {
     // ctor 
   };         
+
   AliPHOSFastRecParticle(const AliPHOSFastRecParticle & rp) ;  // ctor
   AliPHOSFastRecParticle(const TParticle & p) ;  // ctor
   virtual ~AliPHOSFastRecParticle(){
@@ -39,7 +40,7 @@ class AliPHOSFastRecParticle : public TParticle {
     // returns the index of this in the list
     return fIndexInList ; 
   } 
-  virtual Int_t * GetPrimaries(Int_t & number) ;
+  Int_t GetPrimary(){return fPrimary;}
   Int_t GetType() { 
     // returns the type of the particle
     return fType ; 
@@ -47,8 +48,7 @@ class AliPHOSFastRecParticle : public TParticle {
   TString Name() ; 
   virtual void Paint(Option_t * option="");
   virtual void Print(const char * opt) ; 
-  void SetPrimary(Int_t index) { 
-    // sets the primary particle index
+  void SetPrimary(Int_t index) { // sets the primary particle index
     fPrimary = index ; 
   }
   void SetType(Int_t type) { 
@@ -68,7 +68,7 @@ class AliPHOSFastRecParticle : public TParticle {
  protected:
 
   Int_t fIndexInList ; // the index of this RecParticle in the list stored in TreeR (to be set by analysis)
-  Int_t fPrimary ;     // (unique) primary particle index 
+  Int_t fPrimary ;  //  primary particle index 
   Int_t fType ;        // particle type obtained by "virtual" reconstruction
 
  private: