]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliJet.h
14-jun-2001 NvE Memberfunction GetRapidity() introduced for AliTrack and AliJet
[u/mrichter/AliRoot.git] / RALICE / AliJet.h
index 7190b3c22ef6e23105022ef64198f99fc5eabb51..a71ec51b73023217f0433b952faf2ae18441a698 100644 (file)
@@ -3,7 +3,7 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/* $Id$ */
+// $Id$
  
 #include <iostream.h>
 #include <math.h>
@@ -21,8 +21,8 @@ class AliJet : public TObject,public Ali4Vector
   AliJet(Int_t n);                   // Create a Jet to hold initially n Tracks
   ~AliJet();                         // Default destructor
   void Reset();                      // Reset all values
-  virtual void Add(AliTrack& t);     // Add a track to the jet
-  virtual void Add(AliTrack* t) { Add(*t); }
+  virtual void AddTrack(AliTrack& t);// Add a track to the jet
+  virtual void AddTrack(AliTrack* t) { AddTrack(*t); }
   void Info(TString f);              // Print jet information in coordinate frame f 
   void List(TString f="car");        // Print jet prim. track information for coord. frame f
   void ListAll(TString f="car");     // Print jet prim. and decay track information for coord. frame f
@@ -33,6 +33,12 @@ class AliJet : public TObject,public Ali4Vector
   Float_t GetCharge();               // Provide the total charge of the jet
   Int_t GetNtracks();                // Return the number of tracks in the jet
   AliTrack* GetTrack(Int_t i);       // Provide i-th track of the jet (1=first track)
+  Double_t GetPt();                  // Provide trans. momentum w.r.t. z-axis
+  Double_t GetPl();                  // Provide long. momentum w.r.t. z-axis
+  Double_t GetEt();                  // Provide trans. energy w.r.t. z-axis
+  Double_t GetEl();                  // Provide long. energy w.r.t. z-axis
+  Double_t GetMt();                  // Provide trans. mass w.r.t. z-axis
+  Double_t GetRapidity();            // Provide rapidity value w.r.t. z-axis
 
  protected:
   void SetNtinit(Int_t n=2); // Set the initial max. number of tracks for this Jet