00001 #ifndef Graphic_PFRecHit_h
00002 #define Graphic_PFRecHit_h
00003
00008 #include "RecoParticleFlow/PFRootEvent/interface/DisplayManager.h"
00009 #include "DataFormats/ParticleFlowReco/interface/PFRecHit.h"
00010 #include "RecoParticleFlow/PFRootEvent/interface/GPFBase.h"
00011 #include "TGraph.h"
00012 #include <string>
00013
00014
00015 class GPFRecHit : public GPFBase, public TGraph {
00016 public:
00017 GPFRecHit(DisplayManager *dm,int view, int ident,
00018 reco::PFRecHit *hit,int size,
00019 double *x,double *y , int color, std::string option);
00020 virtual ~GPFRecHit() {}
00021
00022 virtual void draw();
00023 double getEnergy() { return en_;}
00024 std::string getOption() { return option_;}
00025 void setColor();
00026 void setColor(int newcolor);
00027 void setInitialColor();
00028 void setNewStyle();
00029 void setNewSize();
00030
00031
00032 virtual void Print();
00033 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
00034
00035 private:
00036 reco::PFRecHit *recHit_;
00037
00039 double en_;
00040
00042 std::string option_;
00043
00044 };
00045 #endif