public:
AliEmcalParticle();
AliEmcalParticle(TObject *particle, Int_t id = -1, Double_t vx=0, Double_t vy=0, Double_t vz=0);
- ~AliEmcalParticle();
AliEmcalParticle(const AliEmcalParticle &p);
AliEmcalParticle &operator=(const AliEmcalParticle &p);
+ virtual ~AliEmcalParticle();
Double_t Eta() const { return fEta; }
Double_t Phi() const { return fPhi; }
Double_t Pt() const { return fPt ; }
Double_t M() const { return 0.13957 ; }
Short_t Charge() const { if (fTrack) return fTrack->Charge(); else return 0 ; }
+ AliVCluster* GetCluster() const { return fCluster ; }
+ Int_t GetMatchedObjId(UShort_t i = 0) const { return fNMatched > i ? fMatchedIds[i] : -1 ; }
+ Double_t GetMatchedObjDistance(UShort_t i = 0) const { return fNMatched > i ? fMatchedDist[i] : -1 ; }
+ UShort_t GetNumberOfMatchedObj() const { return fNMatched ; }
+ AliVTrack* GetTrack() const { return fTrack ; }
Double_t GetTrackPhiOnEMCal() const { if (fTrack) return fTrack->GetTrackPhiOnEMCal(); else return -999; }
Double_t GetTrackEtaOnEMCal() const { if (fTrack) return fTrack->GetTrackEtaOnEMCal(); else return -999; }
+ Int_t IdInCollection() const { return fId ; }
+ Bool_t IsCluster() const { return (Bool_t) fCluster != 0 ; }
Bool_t IsEMCAL() const { if (fCluster) return kTRUE;
if (fTrack) return fTrack->IsEMCAL();
return kFALSE; }
- AliVCluster* GetCluster() const { return fCluster ; }
- AliVTrack* GetTrack() const { return fTrack ; }
- Bool_t IsCluster() const { return (Bool_t) fCluster != 0 ; }
Bool_t IsTrack() const { return (Bool_t) fTrack != 0 ; }
- Int_t IdInCollection() const { return fId ; }
Bool_t IsMC() const { if (fTrack) return (fTrack->GetLabel() == 100);
return (fCluster->Chi2() == 100); }
- Int_t GetMatchedObjId(UShort_t i = 0) const { return fNMatched > i ? fMatchedIds[i] : -1 ; }
- Double_t GetMatchedObjDistance(UShort_t i = 0) const { return fNMatched > i ? fMatchedDist[i] : -1 ; }
- UShort_t GetNumberOfMatchedObj() const { return fNMatched ; }
-
void AddMatchedObj(Int_t id, Double_t d);
void ResetMatchedObjects();
void SetIdInCollection(Int_t id) { fId = id ; }