ROOT logo
#ifndef THPRLINE
#define THPRLINE
#include "HprElement.h"
#include "TLine.h"

class THprLine : public TLine, public HprElement
{
public:
   THprLine(){ SetDaughter(this);};
   THprLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
   ~THprLine(){};
   void Paint(const Option_t *opt);

   Int_t Compare( const TObject *obj) const
   {
      const HprElement* hpre = dynamic_cast<const HprElement*>(obj);
      std::cout << ClassName() <<GetPlane() << " " << hpre->GetPlane()<< std::endl;
      if (GetPlane()== hpre->GetPlane())
         return 0;
      if (GetPlane() > hpre->GetPlane())
         return 1;
      else
         return -1;
   }
ClassDef(THprLine,1)
};
#endif
 THprLine.h:1
 THprLine.h:2
 THprLine.h:3
 THprLine.h:4
 THprLine.h:5
 THprLine.h:6
 THprLine.h:7
 THprLine.h:8
 THprLine.h:9
 THprLine.h:10
 THprLine.h:11
 THprLine.h:12
 THprLine.h:13
 THprLine.h:14
 THprLine.h:15
 THprLine.h:16
 THprLine.h:17
 THprLine.h:18
 THprLine.h:19
 THprLine.h:20
 THprLine.h:21
 THprLine.h:22
 THprLine.h:23
 THprLine.h:24
 THprLine.h:25
 THprLine.h:26
 THprLine.h:27