]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added mass to PicoTrack (from Marta)
authorConstantin Loizides <loizides@localhost.localdomain>
Thu, 5 Dec 2013 19:45:29 +0000 (20:45 +0100)
committerConstantin Loizides <loizides@localhost.localdomain>
Thu, 5 Dec 2013 19:45:29 +0000 (20:45 +0100)
PWG/EMCAL/AliPicoTrack.cxx
PWG/EMCAL/AliPicoTrack.h

index bee93b0aa9679bd098e3285ce2be74954a27576f..443de061c810a746e3bd8be9ff4a9ac2ae7e4cd1 100644 (file)
 //_________________________________________________________________________________________________
 AliPicoTrack::AliPicoTrack() :
   AliVTrack(),
-  fPt(0), fEta(0), fPhi(0), fQ(0), fLabel(-1), fTrackType(0), fEtaEmc(0), fPhiEmc(0), fPtEmc(0), fEmcal(0), fClusId(-1)
+  fPt(0), fEta(0), fPhi(0), fM(0.13957), fQ(0), fLabel(-1), fTrackType(0), fEtaEmc(0), fPhiEmc(0), fPtEmc(0), fEmcal(0), fClusId(-1)
 {
   // Default constructor.
 }
 
 //_________________________________________________________________________________________________
 AliPicoTrack::AliPicoTrack(Double_t pt, Double_t eta, Double_t phi, Byte_t q, Int_t lab, Byte_t type,
-                           Double_t etaemc, Double_t phiemc, Double_t ptemc, Bool_t ise) :
+                           Double_t etaemc, Double_t phiemc, Double_t ptemc, Bool_t ise, Double_t mass) :
   AliVTrack(),
-  fPt(pt), fEta(eta), fPhi(phi), fQ(q), fLabel(lab), fTrackType(type), 
+  fPt(pt), fEta(eta), fPhi(phi), fM(mass), fQ(q), fLabel(lab), fTrackType(type), 
   fEtaEmc(etaemc), fPhiEmc(phiemc), fPtEmc(ptemc), fEmcal(ise), fClusId(-1)
 {
   // Constructor.
@@ -30,7 +30,7 @@ AliPicoTrack::AliPicoTrack(Double_t pt, Double_t eta, Double_t phi, Byte_t q, In
 //_________________________________________________________________________________________________
 AliPicoTrack::AliPicoTrack(const AliPicoTrack &pc) :
   AliVTrack(pc),
-  fPt(pc.fPt), fEta(pc.fEta), fPhi(pc.fPhi), 
+  fPt(pc.fPt), fEta(pc.fEta), fPhi(pc.fPhi), fM(pc.fM),
   fQ(pc.fQ), fLabel(pc.fLabel), fTrackType(pc.fTrackType),  
   fEtaEmc(pc.fEtaEmc), fPhiEmc(pc.fPhiEmc), fPtEmc(pc.fPtEmc), fEmcal(pc.fEmcal),
   fClusId(pc.fClusId)
@@ -48,6 +48,7 @@ AliPicoTrack &AliPicoTrack::operator=(const AliPicoTrack &pc)
     fPt     = pc.fPt;
     fEta    = pc.fEta;
     fPhi    = pc.fPhi;
+    fM      = pc.fM;
     fQ      = pc.fQ;
     fLabel  = pc.fLabel;
     fTrackType = pc.fTrackType;
index c05c84d1f3481155d61f50d7b6dcb29a73603f03..28103ee3c14e2f5f431bbb4e08bfe4d25d677b60 100644 (file)
@@ -11,7 +11,7 @@ class AliPicoTrack: public AliVTrack {
  public:
   AliPicoTrack();
   AliPicoTrack(Double_t pt, Double_t eta, Double_t phi, Byte_t q, Int_t label, Byte_t type,
-               Double_t etaemc=0, Double_t phiemc=0, Double_t ptemc=0, Bool_t ise=0);
+               Double_t etaemc=0, Double_t phiemc=0, Double_t ptemc=0, Bool_t ise=0, Double_t mass=0.13957);
   ~AliPicoTrack() {;}
   AliPicoTrack(const AliPicoTrack &pc); 
   AliPicoTrack &operator=(const AliPicoTrack &pc);
@@ -31,7 +31,7 @@ class AliPicoTrack: public AliVTrack {
   Double_t Phi()                       const { return fPhi;    }
   Double_t Theta()                     const { return 2*TMath::ATan(TMath::Exp(-fEta));         }
   Double_t E()                         const { Double_t p=P(); return TMath::Sqrt(M()*M()+p*p); }
-  Double_t M()                         const { return 0.13957; }
+  Double_t M()                         const { return fM; }
   Double_t Eta()                       const { return fEta;    }
   Double_t Y()                         const { return 0.5*TMath::Log((E()+Pz())/(E()-Pz()));  }
   Short_t  Charge()                    const { return (char)fQ;}
@@ -69,6 +69,7 @@ class AliPicoTrack: public AliVTrack {
   Double32_t       fPt;       //[0,0,12]   pt at vertex
   Double32_t       fEta;      //[-1,1,12]  eta at vertex
   Double32_t       fPhi;      //[0,6.3,12] phi at vertex
+  Double32_t       fM;        //           mass
   Byte_t           fQ;        //           charge
   Int_t            fLabel;    //           label  
   Byte_t           fTrackType;//           0=global track; 1=w/o SPD, w/ ITS refit; 2=w/o SPD, w/o ITS refit
@@ -79,6 +80,6 @@ class AliPicoTrack: public AliVTrack {
   Short_t          fClusId;   //!          cluster id of matched cluster; -1 if not set
 
 
-  ClassDef(AliPicoTrack, 5) // Pico track class
+  ClassDef(AliPicoTrack, 6) // Pico track class
 };
 #endif