//____________________________________________________________________________
-Float_t AliPHOSPIDv1::GetDistance(AliPHOSEmcRecPoint * emc,AliPHOSRecPoint * cpv, Option_t * axis)const
+Float_t AliPHOSPIDv1::GetDistance(AliPHOSEmcRecPoint * emc,AliPHOSCpvRecPoint * cpv, Option_t * axis)const
{
// Calculates the distance between the EMC RecPoint and the PPSD RecPoint
return 100000000 ;
}
//____________________________________________________________________________
-Int_t AliPHOSPIDv1::GetCPVBit(AliPHOSEmcRecPoint * emc,AliPHOSRecPoint * cpv, Int_t effPur, Float_t e) const
+Int_t AliPHOSPIDv1::GetCPVBit(AliPHOSEmcRecPoint * emc,AliPHOSCpvRecPoint * cpv, Int_t effPur, Float_t e) const
{
if(effPur>2 || effPur<0)
Error("GetCPVBit","Invalid Efficiency-Purity choice %d",effPur);
Float_t deltaX = TMath::Abs(GetDistance(emc, cpv, "X"));
Float_t deltaZ = TMath::Abs(GetDistance(emc, cpv, "Z"));
-
+
if((deltaX>sigX*(effPur+1))|(deltaZ>sigZ*(effPur+1)))
return 1;//Neutral
else
}
//____________________________________________________________________________
-TVector3 AliPHOSPIDv1::GetMomentumDirection(AliPHOSEmcRecPoint * emc, AliPHOSRecPoint * )const
+TVector3 AliPHOSPIDv1::GetMomentumDirection(AliPHOSEmcRecPoint * emc, AliPHOSCpvRecPoint * )const
{
// Calculates the momentum direction:
// 1. if only a EMC RecPoint, direction is given by IP and this RecPoint
if(ts->GetEmcIndex()>=0)
emc = (AliPHOSEmcRecPoint *) emcRecPoints->At(ts->GetEmcIndex()) ;
- AliPHOSRecPoint * cpv = 0 ;
+ AliPHOSCpvRecPoint * cpv = 0 ;
if(ts->GetCpvIndex()>=0)
- cpv = (AliPHOSRecPoint *) cpvRecPoints->At(ts->GetCpvIndex()) ;
+ cpv = (AliPHOSCpvRecPoint *) cpvRecPoints->At(ts->GetCpvIndex()) ;
// Now set type (reconstructed) of the particle
// --- AliRoot header files ---
class AliPHOSEmcRecPoint ;
-class AliPHOSRecPoint ;
+class AliPHOSCpvRecPoint ;
#include "AliPHOSPID.h"
virtual void InitParameters() ;
void MakeRecParticles(void ) ;
// Relative Distance CPV-EMC
- Float_t GetDistance (AliPHOSEmcRecPoint * emc, AliPHOSRecPoint * cpv, Option_t * axis)const ;
- Int_t GetCPVBit (AliPHOSEmcRecPoint * emc, AliPHOSRecPoint * cpv, Int_t EffPur, Float_t e) const;
+ Float_t GetDistance (AliPHOSEmcRecPoint * emc, AliPHOSCpvRecPoint * cpv, Option_t * axis)const ;
+ Int_t GetCPVBit (AliPHOSEmcRecPoint * emc, AliPHOSCpvRecPoint * cpv, Int_t EffPur, Float_t e) const;
Int_t GetPrincipalBit (TString particle, const Double_t* P, Int_t EffPur, Float_t e)const ; //Principal cut
Int_t GetHardPhotonBit(AliPHOSEmcRecPoint * emc) const;
Int_t GetHardPi0Bit (AliPHOSEmcRecPoint * emc) const;
- TVector3 GetMomentumDirection(AliPHOSEmcRecPoint * emc, AliPHOSRecPoint * cpv)const ;
+ TVector3 GetMomentumDirection(AliPHOSEmcRecPoint * emc, AliPHOSCpvRecPoint * cpv)const ;
void PrintRecParticles(Option_t * option) ;
virtual void WriteRecParticles() ;
void SetParameters() ; //Fills the matrix of parameters