]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSFastRecParticle.cxx
#include "AliHeader.h" needed
[u/mrichter/AliRoot.git] / PHOS / AliPHOSFastRecParticle.cxx
index 365e7c32912af11a9abb048b6a708efd141955d4..177d018993b01270e00575ac20a912c5c07898f2 100644 (file)
@@ -33,7 +33,7 @@
 #include "TPad.h"
 #include "TPaveText.h"
 
-ClassImp(AliPHOSFastRecParticle)
+ClassImp(AliPHOSFastRecParticle) ; 
 
 //____________________________________________________________________________
  AliPHOSFastRecParticle::AliPHOSFastRecParticle(const AliPHOSFastRecParticle & rp)
@@ -89,6 +89,7 @@ ClassImp(AliPHOSFastRecParticle)
   fPolarTheta  = p.fPolarTheta;
   fPolarPhi    = p.fPolarPhi;
   fParticlePDG = p.fParticlePDG; 
+
 }
 
 //____________________________________________________________________________
@@ -151,23 +152,9 @@ void AliPHOSFastRecParticle::ExecuteEvent(Int_t event, Int_t px, Int_t py)
     delete clustertext ; 
     clustertext = 0 ; 
     gPad->Update() ; 
-   break ;
+    break ;
   }
-  
   }
-
-}
-
-//____________________________________________________________________________
-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 ;
 }
 
 //____________________________________________________________________________
@@ -183,16 +170,16 @@ TString AliPHOSFastRecParticle::Name()
    case kELECTRON:
      name = "ELECTRON" ;
     break ; 
-   case kCHARGED_HA:
+   case kCHARGEDHA:
     name = "CHARGED_HA" ;
     break ; 
-  case kNEUTRAL_HA:
+  case kNEUTRALHA:
     name = "NEUTRAL_HA" ; 
     break ; 
-  case kNEUTRAL_EM:
+  case kNEUTRALEM:
     name = "NEUTRAL_EM" ; 
     break ; 
-  case kGAMMA_HA:
+  case kGAMMAHA:
     name = "PHOTON_HA" ; 
     break ; 
 
@@ -222,9 +209,9 @@ void AliPHOSFastRecParticle::Paint(Option_t *)
 }
 
 //____________________________________________________________________________
-void AliPHOSFastRecParticle::Print()
+void AliPHOSFastRecParticle::Print(const char * opt)
 {
-  // Print the typr, energy and momentum
+  // Print the type, energy and momentum of the reconstructed particle
   
   cout << "AliPHOSFastRecParticle > " << "type is  " << Name() << endl 
        << "                     " << "Energy = " << fE << endl