From dae383aa8f9ed7dec6aa989e7e81981e6d144fd4 Mon Sep 17 00:00:00 2001 From: loizides Date: Tue, 1 May 2012 09:41:07 +0000 Subject: [PATCH] fix to get proper -1 for neg charges --- PWGGA/EMCALTasks/AliPicoTrack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGGA/EMCALTasks/AliPicoTrack.h b/PWGGA/EMCALTasks/AliPicoTrack.h index 6deb4ad00bc..b2fccdaa749 100644 --- a/PWGGA/EMCALTasks/AliPicoTrack.h +++ b/PWGGA/EMCALTasks/AliPicoTrack.h @@ -33,7 +33,7 @@ class AliPicoTrack: public AliVTrack { Double_t M() const { return 0.13957; } Double_t Eta() const { return fEta; } Double_t Y() const { return 0.5*TMath::Log((E()+Pz())/(E()-Pz())); } - Short_t Charge() const { return fQ; } + Short_t Charge() const { return (char)fQ;} Int_t GetLabel() const { return fLabel; } Int_t PdgCode() const { return 0; } const Double_t *PID() const { return 0; } -- 2.43.0