CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/RecoParticleFlow/PFRootEvent/interface/GPFGenParticle.h

Go to the documentation of this file.
00001 #ifndef Graphic_GenParticle_h
00002 #define Graphic_GenParticle_h
00003 
00009 #include <string> 
00010 #include "RecoParticleFlow/PFRootEvent/interface/GPFBase.h" 
00011 #include "TMarker.h"
00012 #include "TLatex.h"
00013 #include "TLine.h"
00014 
00015 class GPFGenParticle : public GPFBase, public TMarker, public TLatex {
00016  public:
00017   GPFGenParticle(DisplayManager *dm, int view, int ident,
00018                  double eta, double phi, double en, double pt,int barcode,
00019                  TAttMarker *attm, std::string name,std::string latexName);
00020   GPFGenParticle(DisplayManager *dm, int view, int ident,
00021                  double *eta, double *phi, double en, double pt,
00022                  int barcode, int barcodeMother,
00023                  TAttMarker *attm, std::string name,std::string latexName);
00024                    
00025                    
00026                    
00027   virtual ~GPFGenParticle() {;}
00028     
00029   double   getEnergy() { return en_;}
00030   double   getPt()     { return pt_;}
00031   virtual void     draw();
00032   void             setColor();
00033   void             setColor(int newcol);
00034   void             setInitialColor();
00035   void             setNewStyle();
00036   void             setNewSize(); 
00037     
00038   //overridden ROOT method 
00039   virtual void     Print();     // *MENU*
00040   virtual void     ExecuteEvent(Int_t event, Int_t px, Int_t py);
00041     
00042     
00043  private:
00044   //energy
00045   double                   en_;
00046   double                   pt_;
00047   std::string              name_;
00048   int                      barcode_;
00049   int                      barcodeMother_;
00050   TLine *                  line_;
00051   
00052     
00053 };  
00054 #endif
00055