]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODJet.h
Added another recoParam to the TOF recoParam object, i.e. time window to discriminate...
[u/mrichter/AliRoot.git] / STEER / AliAODJet.h
index 3adf1c1c99e4b11fa34e143db73576fb7fd461e2..4c91a5540ec6022e65106c4b8f148592cf4d384f 100644 (file)
@@ -51,7 +51,8 @@ class AliAODJet : public AliVParticle {
        {fBackgEnergy[0] = bgEnCh; fBackgEnergy[1] = bgEnNe;}
     virtual void     SetEffArea(Double_t effACh, Double_t effANe)
        {fEffectiveArea[0] = effACh; fEffectiveArea[1] = effANe;}
-    
+    virtual void     SetPxPyPzE(Double_t px, Double_t py, Double_t pz, Double_t e);
+
     virtual TRefArray* GetRefTracks()           const { return  fRefTracks;}
     virtual Double_t   ChargedBgEnergy()        const { return  fBackgEnergy[0];}
     virtual Double_t   NeutralBgEnergy()        const { return  fBackgEnergy[1];}
@@ -59,15 +60,32 @@ class AliAODJet : public AliVParticle {
 
     virtual Double_t   EffectiveAreaCharged()   const { return  fEffectiveArea[0];}
     virtual Double_t   EffectiveAreaNeutral()   const { return  fEffectiveArea[1];}
+    virtual Double_t   DeltaR(const AliVParticle* part);
 
-    virtual void     Print(Option_t* /*option*/) const;
+    
+    TLorentzVector*    MomentumVector()         const {return fMomentum;}
+    virtual void       Print(Option_t* /*option*/) const;
     
 // Dummy  
     virtual Short_t Charge()      const { return 0;}
     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
@@ -75,7 +93,7 @@ class AliAODJet : public AliVParticle {
     TLorentzVector* fMomentum;           // Jet 4-momentum vector
     TRefArray*      fRefTracks;          // array of references to the tracks belonging to the jet
 
-    ClassDef(AliAODJet,3);
+    ClassDef(AliAODJet,4);
 
 };