Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BFLPolyg.h

Go to the documentation of this file.
00001 #ifndef BFLPOLYG_H
00002 #define BFLPOLYG_H
00003 
00004 class BFLPolyg : public TObject {
00005 
00006 public:
00007   BFLPolyg(Int_t polyg): fPolygID(polyg) { /*cout << "POLYG CREATED" <<endl;*/ }
00008   BFLPolyg(Int_t polyg, Int_t EdgeAround):
00009           fPolygID(polyg), fEdgeAroundPolyg(EdgeAround) { /*cout << endl;*/ }        
00010   virtual ~BFLPolyg() { /*cout << "POLYG DELETED" << endl;*/ }
00011         
00012   virtual Int_t GetPolygID() const {return fPolygID;}
00013   virtual Int_t GetEdgeAroundPolyg() const {return fEdgeAroundPolyg;}
00014 
00015   virtual void SetPolygID(Int_t polygid) {fPolygID = polygid;}
00016   virtual void SetEdgeAroundPolyg(Int_t ed) {fEdgeAroundPolyg = ed;}
00017 
00018   void  Print(Option_t * /* option */ ="") const { 
00019     cout << endl;  
00020     cout << "\n@@@ Polygon ID = " << fPolygID;
00021     cout << "\nEdge Around Polygon..........." << fEdgeAroundPolyg;
00022     cout << std::flush;
00023   }
00024 
00025   Bool_t IsEqual(const TObject *obj) const { 
00026     return fPolygID == ((BFLPolyg *)obj)->GetPolygID(); 
00027   }
00028   Bool_t IsSortable() const { return kTRUE; }
00029   Int_t Compare(const TObject *obj) const {
00030     if ( fPolygID == ((BFLPolyg *)obj)->GetPolygID() )
00031       return 0;
00032     else if (fPolygID < ((BFLPolyg *)obj)->GetPolygID() )
00033       return -1;
00034     else
00035       return 1; 
00036   }
00037 
00038 private:
00039   Int_t fPolygID;
00040   Int_t fEdgeAroundPolyg;
00041 
00042   ClassDef(BFLPolyg,0)  // Voronoi Polygon class
00043 };
00044 
00045 #endif

Generated on Mon Feb 15 11:06:26 2010 for loon by  doxygen 1.3.9.1