ROOT logo
#ifndef THPRPOLYLINE
#define THPRPOLYLINE
#include "HprElement.h"
#include "TPolyLine.h"

class THprPolyLine : public TPolyLine, public HprElement
{
public:
   THprPolyLine(){ SetDaughter(this);};
   THprPolyLine(Int_t np, Option_t* option = "");
   THprPolyLine(Int_t np, Double_t *x, Double_t* y, Option_t* option = "");
   ~THprPolyLine(){};
   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(THprPolyLine,1)
};
#endif
 THprPolyLine.h:1
 THprPolyLine.h:2
 THprPolyLine.h:3
 THprPolyLine.h:4
 THprPolyLine.h:5
 THprPolyLine.h:6
 THprPolyLine.h:7
 THprPolyLine.h:8
 THprPolyLine.h:9
 THprPolyLine.h:10
 THprPolyLine.h:11
 THprPolyLine.h:12
 THprPolyLine.h:13
 THprPolyLine.h:14
 THprPolyLine.h:15
 THprPolyLine.h:16
 THprPolyLine.h:17
 THprPolyLine.h:18
 THprPolyLine.h:19
 THprPolyLine.h:20
 THprPolyLine.h:21
 THprPolyLine.h:22
 THprPolyLine.h:23
 THprPolyLine.h:24
 THprPolyLine.h:25
 THprPolyLine.h:26
 THprPolyLine.h:27
 THprPolyLine.h:28