CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/RecoParticleFlow/PFRootEvent/interface/GPFTrack.h

Go to the documentation of this file.
00001 #ifndef Graphic_PFTrack_h
00002 #define Graphic_PFTrack_h
00003 
00009 #include "RecoParticleFlow/PFRootEvent/interface/GPFBase.h" 
00010 #include "DataFormats/ParticleFlowReco/interface/PFRecTrack.h"
00011 #include "TGraph.h"
00012 #include <string>
00013 
00014 
00015 class GPFTrack : public GPFBase, public TGraph {
00016  public:
00017   GPFTrack(DisplayManager *dm,int view, int ident, 
00018            reco::PFRecTrack *tra, int size, double *x, double *y,
00019            double pt,TAttMarker *attm,TAttLine *attl, std::string option);      
00020 
00021   virtual ~GPFTrack() {;}
00022     
00023   virtual void     draw();
00024   double           getPt() { return pt_;}
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     
00036   const GPFTrack& operator=( const GPFTrack& other ) {
00037     track_ = other.track_;
00038     return *this;
00039   }
00040     
00041  private:
00042   //draw option
00043   reco::PFRecTrack*  track_;
00044   double             pt_;
00045   std::string        option_;
00046 
00047     
00048       
00049 };  
00050 #endif