Index: classes/SortableObject.h
===================================================================
--- classes/SortableObject.h	(revision 3c46e17995946e28893ead2017cf96c947dc52ae)
+++ classes/SortableObject.h	(revision 341014c3f3bd3259d845de52bde54ba6c3b4ed08)
@@ -26,6 +26,6 @@
  */
 
+#include "TObject.h"
 #include "TRef.h"
-#include "TObject.h"
 #include "TRefArray.h"
 
@@ -37,5 +37,5 @@
 {
 public:
-  virtual ~CompBase() { }
+  virtual ~CompBase() {}
   virtual Bool_t IsSortable(const TObject *) const { return kTRUE; }
   virtual Int_t Compare(const TObject *obj1, const TObject *obj2) const = 0;
@@ -47,5 +47,4 @@
 {
 public:
-
   Bool_t IsSortable() const { return GetCompare() ? GetCompare()->IsSortable(this) : kFALSE; }
   Int_t Compare(const TObject *obj) const { return GetCompare()->Compare(this, obj); }
@@ -64,4 +63,5 @@
 {
   CompE() {}
+
 public:
   static CompE *Instance()
@@ -73,6 +73,6 @@
   Int_t Compare(const TObject *obj1, const TObject *obj2) const
   {
-    const T *t1 = static_cast<const T*>(obj1);
-    const T *t2 = static_cast<const T*>(obj2);
+    const T *t1 = static_cast<const T *>(obj1);
+    const T *t2 = static_cast<const T *>(obj2);
     if(t1->E > t2->E)
       return -1;
@@ -90,4 +90,5 @@
 {
   CompPT() {}
+
 public:
   static CompPT *Instance()
@@ -99,6 +100,6 @@
   Int_t Compare(const TObject *obj1, const TObject *obj2) const
   {
-    const T *t1 = static_cast<const T*>(obj1);
-    const T *t2 = static_cast<const T*>(obj2);
+    const T *t1 = static_cast<const T *>(obj1);
+    const T *t2 = static_cast<const T *>(obj2);
     if(t1->PT > t2->PT)
       return -1;
@@ -116,4 +117,5 @@
 {
   CompMomentumPt() {}
+
 public:
   static CompMomentumPt *Instance()
@@ -125,6 +127,6 @@
   Int_t Compare(const TObject *obj1, const TObject *obj2) const
   {
-    const T *t1 = static_cast<const T*>(obj1);
-    const T *t2 = static_cast<const T*>(obj2);
+    const T *t1 = static_cast<const T *>(obj1);
+    const T *t2 = static_cast<const T *>(obj2);
     if(t1->Momentum.Pt() > t2->Momentum.Pt())
       return -1;
@@ -142,4 +144,5 @@
 {
   CompET() {}
+
 public:
   static CompET *Instance()
@@ -151,6 +154,6 @@
   Int_t Compare(const TObject *obj1, const TObject *obj2) const
   {
-    const T *t1 = static_cast<const T*>(obj1);
-    const T *t2 = static_cast<const T*>(obj2);
+    const T *t1 = static_cast<const T *>(obj1);
+    const T *t2 = static_cast<const T *>(obj2);
     if(t1->ET > t2->ET)
       return -1;
@@ -168,4 +171,5 @@
 {
   CompSumPT2() {}
+
 public:
   static CompSumPT2 *Instance()
@@ -177,6 +181,6 @@
   Int_t Compare(const TObject *obj1, const TObject *obj2) const
   {
-    const T *t1 = static_cast<const T*>(obj1);
-    const T *t2 = static_cast<const T*>(obj2);
+    const T *t1 = static_cast<const T *>(obj1);
+    const T *t2 = static_cast<const T *>(obj2);
     if(t1->SumPT2 > t2->SumPT2)
       return -1;
@@ -193,13 +197,14 @@
 class CompDeltaR: public CompBase
 {
-  CompDeltaR(const T2 *obj = 0) : fObj(obj) {}
+  CompDeltaR(const T2 *obj = 0) :
+    fObj(obj) {}
 
   Double_t DeltaPhi(Double_t phi1, Double_t phi2)
   {
     Double_t phi = TMath::Abs(phi1 - phi2);
-    return (phi <= TMath::Pi()) ? phi : (2.0*TMath::Pi()) - phi;
-  }
-
-  Double_t Sqr(Double_t x) { return x*x; }
+    return (phi <= TMath::Pi()) ? phi : (2.0 * TMath::Pi()) - phi;
+  }
+
+  Double_t Sqr(Double_t x) { return x * x; }
 
   Double_t SumSqr(Double_t a, Double_t b)
@@ -207,6 +212,8 @@
     Double_t aAbs = TMath::Abs(a);
     Double_t bAbs = TMath::Abs(b);
-    if(aAbs > bAbs) return aAbs * TMath::Sqrt(1.0 + Sqr(bAbs / aAbs));
-    else return (bAbs == 0) ? 0.0 : bAbs * TMath::Sqrt(1.0 + Sqr(aAbs / bAbs));
+    if(aAbs > bAbs)
+      return aAbs * TMath::Sqrt(1.0 + Sqr(bAbs / aAbs));
+    else
+      return (bAbs == 0) ? 0.0 : bAbs * TMath::Sqrt(1.0 + Sqr(aAbs / bAbs));
   };
 
@@ -214,8 +221,8 @@
 
 public:
-    static CompDeltaR *Instance(const T2 *obj = 0)
-  {
-      static CompDeltaR single(obj);
-      return &single;
+  static CompDeltaR *Instance(const T2 *obj = 0)
+  {
+    static CompDeltaR single(obj);
+    return &single;
   }
 
@@ -225,6 +232,6 @@
   {
     Double_t eta[3], phi[3], deltaR[2];
-    const T1 *t1 = static_cast<const T1*>(obj1);
-    const T1 *t2 = static_cast<const T1*>(obj2);
+    const T1 *t1 = static_cast<const T1 *>(obj1);
+    const T1 *t2 = static_cast<const T1 *>(obj2);
 
     eta[0] = fObj->Eta;
@@ -250,4 +257,2 @@
 
 #endif // SortableObject_h
-
-
