#ifndef DEDX_HH #define DEDX_HH #include "TObject.h" class DEDx : public TObject { public: DEDx(); virtual ~DEDx(); // ~DEDx(); friend bool operator< (const DEDx &s1, const DEDx &s2) { if(s1.fDx && s2.fDx) { return s1.fDE/s1.fDx <= s2.fDE/s2.fDx; } else { return s1.fDE <= s2.fDE; } } Double_t fDE; Double_t fDx; public: ClassDef(DEDx,1) }; #endif