CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoParticleFlow/PFRootEvent/interface/GPFBase.h

Go to the documentation of this file.
00001 #ifndef GPF_Base_h
00002 #define GPF_Base_h
00003 
00008 #include <TAttLine.h>
00009 #include <TAttMarker.h>
00010  
00011 
00012 class DisplayManager;
00013 
00014 class GPFBase {
00015 
00016  protected:
00017   DisplayManager  *display_;
00018   int              viewId_;
00019   int              origId_;
00020   TAttMarker      *markerAttr_;
00021   TAttLine        *lineAttr_;
00022   int              color_;
00023   
00024  public:
00025   GPFBase(DisplayManager *display,int viewType,int ident,TAttMarker *attm,TAttLine *attl);
00026   GPFBase(DisplayManager *display,int viewType,int ident,TAttMarker *attm);
00027   GPFBase(DisplayManager *display,int viewType,int ident, int color);
00028   
00029   virtual ~GPFBase() {;}
00030   int getView()                 { return viewId_;}
00031   int getOrigin()               { return origId_;}
00032 
00033   virtual void draw() {;}
00034   virtual void setColor() = 0;
00035   virtual void setColor(int newcol ) = 0; 
00036   virtual void setInitialColor() = 0;
00037   virtual void setNewStyle() = 0;
00038   virtual void setNewSize() = 0;
00039   virtual double getEnergy()  { return -1;}
00040   virtual double getPt()      { return -1;} 
00041 };
00042 #endif
00043