CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 #ifndef Graphic_PFSimPart_h
00002 #define Graphic_PFSimPart_h
00003 
00009 #include "DataFormats/ParticleFlowReco/interface/PFSimParticle.h"
00010 #include "RecoParticleFlow/PFRootEvent/interface/GPFBase.h" 
00011 
00012 #include "TGraph.h"
00013 #include <string>
00014 
00015 
00016 class GPFSimParticle : public GPFBase, public TGraph {
00017  public:
00018 
00019   GPFSimParticle(DisplayManager *dm,int view, int ident, 
00020                  const reco::PFSimParticle *ptc, 
00021                  int size, double *x, double *y,
00022                  double pt,TAttMarker *attm,TAttLine *attl,
00023                  std::string option);
00024                  
00025   virtual void     draw();
00026   double           getPt() { return pt_;}
00027   void             setColor();
00028   void             setColor(int newcol);
00029   void             setInitialColor();
00030   void             setNewStyle();
00031   void             setNewSize();
00032      
00033   //overridden ROOT method
00034   virtual void     Print();     // *MENU*
00035   virtual void     ExecuteEvent(Int_t event, Int_t px, Int_t py);
00036 
00037     
00038  private:
00039   const reco::PFSimParticle*  part_;
00040   double                      pt_;
00041   //draw option
00042   std::string                 option_;
00043       
00044 };  
00045 #endif