00001 #ifndef Graphic_PFTrack_h
00002 #define Graphic_PFTrack_h
00003
00009 #include "RecoParticleFlow/PFRootEvent/interface/DisplayManager.h"
00010 #include "RecoParticleFlow/PFRootEvent/interface/GPFBase.h"
00011 #include "DataFormats/ParticleFlowReco/interface/PFRecTrack.h"
00012 #include "TGraph.h"
00013 #include <string>
00014
00015
00016 class GPFTrack : public GPFBase, public TGraph {
00017 public:
00018 GPFTrack(DisplayManager *dm,int view, int ident,
00019 reco::PFRecTrack *tra, int size, double *x, double *y,
00020 double pt,TAttMarker *attm,TAttLine *attl, std::string option);
00021
00022 virtual ~GPFTrack() {;}
00023
00024 virtual void draw();
00025 double getPt() { return pt_;}
00026 void setColor();
00027 void setColor(int newcol);
00028 void setInitialColor();
00029 void setNewStyle();
00030 void setNewSize();
00031
00032
00033 virtual void Print();
00034 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
00035
00036
00037 const GPFTrack& operator=( const GPFTrack& other ) {
00038 track_ = other.track_;
00039 return *this;
00040 }
00041
00042 private:
00043
00044 reco::PFRecTrack* track_;
00045 double pt_;
00046 std::string option_;
00047
00048
00049
00050 };
00051 #endif