]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODJet.h
Making online tracklets usable in offline reconstruction
[u/mrichter/AliRoot.git] / STEER / AliAODJet.h
index c1b404d0ab41cb2ac7e4341745ee3eefe428fbdd..4c91a5540ec6022e65106c4b8f148592cf4d384f 100644 (file)
@@ -71,8 +71,21 @@ class AliAODJet : public AliVParticle {
     virtual const Double_t* PID() const { return NULL;}
     virtual Int_t   GetLabel()    const { return -1;}
 //
+
+    /** Compare this class with an other instance of this class
+     *  used in a TClonesArray::Sort()
+     *  @param   obj  ptr to other instance
+     *  @return  Returns 0 when equal, 1 when this is smaller
+     *  and -1 when bigger -- sorts descending
+     */
+    Int_t Compare( const TObject* obj) const;
     
     
+    /** Defines this class as being sortable in a TClonesArray
+     *  @return     always kTRUE;
+     */
+    Bool_t IsSortable() const  { return kTRUE; }
+
  private:
     Double32_t      fBackgEnergy[2];     // Subtracted background energy
     Double32_t      fEffectiveArea[2];   // Effective jet area used for background subtraction