]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix to get proper -1 for neg charges
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 May 2012 09:41:07 +0000 (09:41 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 May 2012 09:41:07 +0000 (09:41 +0000)
PWGGA/EMCALTasks/AliPicoTrack.h

index 6deb4ad00bc0da23e027f9cd19d68e581a6e9377..b2fccdaa749e7b11dc070c78297393fb029eac2d 100644 (file)
@@ -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;       }