00001 #ifndef Graphic_PFCluster_h 00002 #define Graphic_PFCluster_h 00003 00009 #include "RecoParticleFlow/PFRootEvent/interface/DisplayManager.h" 00010 #include "DataFormats/ParticleFlowReco/interface/PFCluster.h" 00011 #include "RecoParticleFlow/PFRootEvent/interface/GPFBase.h" 00012 #include "TMarker.h" 00013 00014 00015 class GPFCluster : public GPFBase, public TMarker { 00016 public: 00017 00018 GPFCluster(DisplayManager *dm, int view, int ident, 00019 const reco::PFCluster* clus, 00020 double x,double y,TAttMarker *attm); 00021 virtual ~GPFCluster() {;} 00022 00023 double getEnergy() {return en_;} 00024 virtual void draw(); 00025 void setColor(); 00026 void setColor(int newcol); 00027 void setInitialColor(); 00028 void setNewStyle(); 00029 void setNewSize(); 00030 00031 //overridden ROOT method 00032 virtual void Print(); // *MENU* 00033 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); 00034 00035 const GPFCluster& operator=( const GPFCluster& other ) { 00036 clus_ = other.clus_; 00037 return *this; 00038 } 00039 00040 private: 00041 const reco::PFCluster* clus_; 00042 //energy 00043 double en_; 00044 00045 }; 00046 #endif