Double_t dR = TMath::Sqrt(dPhi*dPhi+dEta*dEta);
return dR;
}
+
+
+Int_t AliAODJet::Compare( const TObject* obj) const {
+
+ //
+ // see header file for class documentation
+ //
+
+ if (this == obj)
+ return 0;
+ // check type
+ if ( Pt() < ((AliAODJet*)(obj))->Pt())
+ return 1;
+ else
+ return -1;
+}
+
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