#include <RecoParticleFlow/PFRootEvent/interface/GPFGenParticle.h>
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_ |
Definition at line 16 of file GPFGenParticle.h.
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] |
void GPFGenParticle::draw | ( | ) | [virtual] |
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().
00045 { 00046 display_->printGenParticleInfo(name_,barcode_,barcodeMother_); 00047 }
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 }
int GPFGenParticle::barcode_ [private] |
int GPFGenParticle::barcodeMother_ [private] |
double GPFGenParticle::en_ [private] |
TLine* GPFGenParticle::line_ [private] |
std::string GPFGenParticle::name_ [private] |
double GPFGenParticle::pt_ [private] |