CMS 3D CMS Logo

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

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