CMS 3D CMS Logo

GPFGenParticle Class Reference

#include <RecoParticleFlow/PFRootEvent/interface/GPFGenParticle.h>

Inheritance diagram for GPFGenParticle:

GPFBase

List of all members.

Public Member Functions

virtual void draw ()
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
double getEnergy ()
double getPt ()
 GPFGenParticle (DisplayManager *dm, int view, int ident, double *eta, double *phi, double en, double pt, int barcode, int barcodeMother, TAttMarker *attm, std::string name, std::string latexName)
 GPFGenParticle (DisplayManager *dm, int view, int ident, double eta, double phi, double en, double pt, int barcode, TAttMarker *attm, std::string name, std::string latexName)
virtual void Print ()
void setColor (int newcol)
void setColor ()
void setInitialColor ()
void setNewSize ()
void setNewStyle ()
virtual ~GPFGenParticle ()

Private Attributes

int barcode_
int barcodeMother_
double en_
TLine * line_
std::string name_
double pt_


Detailed Description

Definition at line 16 of file GPFGenParticle.h.


Constructor & Destructor Documentation

GPFGenParticle::GPFGenParticle ( DisplayManager dm,
int  view,
int  ident,
double  eta,
double  phi,
double  en,
double  pt,
int  barcode,
TAttMarker *  attm,
std::string  name,
std::string  latexName 
)

Definition at line 6 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

00010   :  GPFBase(display,view,ident, attm ),
00011      TMarker(x,y,1),
00012      TLatex(x,y,latexName.c_str()),
00013      en_(e),pt_(pt),name_(name),barcode_(barcode),
00014      barcodeMother_(0),
00015      line_(0) {
00016     
00017   //ResetBit(kCanDelete);
00018   SetMarkerColor(markerAttr_->GetMarkerColor());
00019   SetMarkerStyle(markerAttr_->GetMarkerStyle());
00020   SetMarkerSize(markerAttr_->GetMarkerSize());
00021 }   

GPFGenParticle::GPFGenParticle ( DisplayManager dm,
int  view,
int  ident,
double *  eta,
double *  phi,
double  en,
double  pt,
int  barcode,
int  barcodeMother,
TAttMarker *  attm,
std::string  name,
std::string  latexName 
)

Definition at line 23 of file GPFGenParticle.cc.

References line_, and GPFBase::markerAttr_.

00028   :  GPFBase(display,view,ident, attm ),
00029      TMarker(x[1],y[1],1),
00030      TLatex(x[1],y[1],latexName.c_str()),
00031      en_(e),pt_(pt),name_(name),barcode_(barcode),
00032      barcodeMother_(barcodeMother),
00033      line_(0) {
00034     
00035   //ResetBit(kCanDelete);
00036   SetMarkerColor(markerAttr_->GetMarkerColor());
00037   SetMarkerStyle(markerAttr_->GetMarkerStyle());
00038   SetMarkerSize(markerAttr_->GetMarkerSize());
00039   line_ = new TLine(x[0],y[0],x[1],y[1]);
00040   line_->SetLineColor(markerAttr_->GetMarkerColor());
00041 }

virtual GPFGenParticle::~GPFGenParticle (  )  [inline, virtual]

Definition at line 28 of file GPFGenParticle.h.

00028 {;}


Member Function Documentation

void GPFGenParticle::draw (  )  [virtual]

Reimplemented from GPFBase.

Definition at line 62 of file GPFGenParticle.cc.

References line_.

00063 {
00064   TMarker::Draw();
00065   SetTextFont(42);
00066   SetTextSize(0.05);
00067   TLatex::Draw();
00068   if(line_) line_->Draw();
00069 }  

void GPFGenParticle::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Definition at line 49 of file GPFGenParticle.cc.

References Print().

00050 {
00051   // Execute action corresponding to a mouse click 
00052 
00053   gPad->SetCursor(kHand);
00054   switch (event) {
00055   case kButton1Down:
00056     Print();
00057     break;
00058   default:break;
00059   }    
00060 }

double GPFGenParticle::getEnergy (  )  [inline, virtual]

Reimplemented from GPFBase.

Definition at line 30 of file GPFGenParticle.h.

References en_.

00030 { return en_;}

double GPFGenParticle::getPt (  )  [inline, virtual]

Reimplemented from GPFBase.

Definition at line 31 of file GPFGenParticle.h.

References pt_.

00031 { return pt_;}

void GPFGenParticle::Print (  )  [virtual]

Definition at line 44 of file GPFGenParticle.cc.

References barcode_, barcodeMother_, GPFBase::display_, name_, and DisplayManager::printGenParticleInfo().

Referenced by ExecuteEvent().

void GPFGenParticle::setColor ( int  newcol  )  [virtual]

Implements GPFBase.

Definition at line 76 of file GPFGenParticle.cc.

00077 {
00078   SetMarkerColor(newcol);
00079 }

void GPFGenParticle::setColor (  )  [virtual]

Implements GPFBase.

Definition at line 71 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

00072 {
00073   SetMarkerColor(markerAttr_->GetMarkerColor());
00074 }

void GPFGenParticle::setInitialColor (  )  [virtual]

Implements GPFBase.

Definition at line 81 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

00082 {
00083   SetMarkerColor(markerAttr_->GetMarkerColor());
00084 }

void GPFGenParticle::setNewSize (  )  [virtual]

Implements GPFBase.

Definition at line 91 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

00092 {
00093   SetMarkerSize(markerAttr_->GetMarkerSize());
00094 }

void GPFGenParticle::setNewStyle (  )  [virtual]

Implements GPFBase.

Definition at line 86 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

00087 {
00088   SetMarkerStyle(markerAttr_->GetMarkerStyle());
00089 }


Member Data Documentation

int GPFGenParticle::barcode_ [private]

Definition at line 49 of file GPFGenParticle.h.

Referenced by Print().

int GPFGenParticle::barcodeMother_ [private]

Definition at line 50 of file GPFGenParticle.h.

Referenced by Print().

double GPFGenParticle::en_ [private]

Definition at line 46 of file GPFGenParticle.h.

Referenced by getEnergy().

TLine* GPFGenParticle::line_ [private]

Definition at line 51 of file GPFGenParticle.h.

Referenced by draw(), and GPFGenParticle().

std::string GPFGenParticle::name_ [private]

Definition at line 48 of file GPFGenParticle.h.

Referenced by Print().

double GPFGenParticle::pt_ [private]

Definition at line 47 of file GPFGenParticle.h.

Referenced by getPt().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:21:51 2009 for CMSSW by  doxygen 1.5.4