Added the conversion electron in the particle type list
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 May 2004 08:08:09 +0000 (08:08 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 May 2004 08:08:09 +0000 (08:08 +0000)
PHOS/AliPHOSFastRecParticle.cxx
PHOS/AliPHOSFastRecParticle.h
PHOS/AliPHOSRecParticle.cxx

index 787c911..5263ab0 100644 (file)
@@ -231,7 +231,7 @@ Bool_t AliPHOSFastRecParticle::IsElectron(TString purity) const
 }
 
 //____________________________________________________________________________
-Bool_t AliPHOSFastRecParticle::IsElecCon(TString purity) const
+Bool_t AliPHOSFastRecParticle::IsEleCon(TString purity) const
 {
   // Rec.Particle is an electron if it has a photon-like shape, fast and charged
   // photon-like shape is defined with a purity "low", "medium" or "high"
index b69505e..ce71068 100644 (file)
@@ -69,7 +69,7 @@ class AliPHOSFastRecParticle : public TParticle {
   Bool_t IsSlowChargedHadron() const;
   Bool_t IsFastNeutralHadron() const;
   Bool_t IsSlowNeutralHadron() const;
-  Bool_t IsElecCon(TString purity = "low") const; 
+  Bool_t IsEleCon(TString purity = "low") const; 
 
   TString Name() const ; 
   virtual void Paint(Option_t * option="");
index df5777b..027a972 100644 (file)
@@ -114,6 +114,7 @@ const TParticle * AliPHOSRecParticle::GetPrimary(Int_t index) const
    } 
   //  return 0 ; 
 }
+
 //____________________________________________________________________________
 const Double_t * AliPHOSRecParticle::GetPID()
 {
@@ -157,6 +158,6 @@ const Double_t * AliPHOSRecParticle::GetPID()
   if (IsFastNeutralHadron())        fPID[7] = 1.0;
   if (IsSlowNeutralHadron())        fPID[8] = 1.0;
 
-  if (IsElecCon()) fPID[9] = 1.0;
+  if (IsEleCon()) fPID[9] = 1.0;
   return fPID;
 }