#include <GPFSimParticle.h>
Public Member Functions | |
virtual void | draw () |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
double | getPt () |
GPFSimParticle (DisplayManager *dm, int view, int ident, const reco::PFSimParticle *ptc, int size, double *x, double *y, double pt, TAttMarker *attm, TAttLine *attl, std::string option) | |
virtual void | Print () |
void | setColor (int newcol) |
void | setColor () |
void | setInitialColor () |
void | setNewSize () |
void | setNewStyle () |
Private Attributes | |
std::string | option_ |
const reco::PFSimParticle * | part_ |
double | pt_ |
Definition at line 16 of file GPFSimParticle.h.
GPFSimParticle::GPFSimParticle | ( | DisplayManager * | dm, |
int | view, | ||
int | ident, | ||
const reco::PFSimParticle * | ptc, | ||
int | size, | ||
double * | x, | ||
double * | y, | ||
double | pt, | ||
TAttMarker * | attm, | ||
TAttLine * | attl, | ||
std::string | option | ||
) |
Definition at line 11 of file GPFSimParticle.cc.
References GPFBase::lineAttr_, and GPFBase::markerAttr_.
: GPFBase(display,view,ident,attm,attl), TGraph(size,x,y), part_(ptc), pt_(pt), option_(option) { ResetBit(kCanDelete); SetLineColor(lineAttr_->GetLineColor()); SetLineStyle(lineAttr_->GetLineStyle()); SetMarkerStyle(markerAttr_->GetMarkerStyle()); SetMarkerSize(markerAttr_->GetMarkerSize()); SetMarkerColor(markerAttr_->GetMarkerColor()); }
void GPFSimParticle::draw | ( | ) | [virtual] |
Reimplemented from GPFBase.
Definition at line 48 of file GPFSimParticle.cc.
References option_.
{ TGraph::Draw(option_.data()); }
void GPFSimParticle::ExecuteEvent | ( | Int_t | event, |
Int_t | px, | ||
Int_t | py | ||
) | [virtual] |
Definition at line 33 of file GPFSimParticle.cc.
References GPFBase::display_, DisplayManager::findAndDraw(), GPFBase::origId_, and Print().
{ // Execute action corresponding to a left mouse button click //on a GPFSimParticle object in the window gPad->SetCursor(kHand); switch (event) { case kButton1Down: Print(); display_->findAndDraw(origId_); break; default:break; } }
double GPFSimParticle::getPt | ( | ) | [inline, virtual] |
Reimplemented from GPFBase.
Definition at line 26 of file GPFSimParticle.h.
References pt_.
{ return pt_;}
void GPFSimParticle::Print | ( | void | ) | [virtual] |
Definition at line 28 of file GPFSimParticle.cc.
References gather_cfg::cout, and part_.
Referenced by ExecuteEvent().
void GPFSimParticle::setColor | ( | int | newcol | ) | [virtual] |
Implements GPFBase.
Definition at line 60 of file GPFSimParticle.cc.
References option_.
{ if (option_=="f") SetFillColor(newcol); else SetLineColor(newcol); SetMarkerColor(newcol); }
void GPFSimParticle::setColor | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 53 of file GPFSimParticle.cc.
References GPFBase::lineAttr_, GPFBase::markerAttr_, and option_.
{ if (option_=="f") SetFillColor(lineAttr_->GetLineColor()); else SetLineColor(lineAttr_->GetLineColor()); SetMarkerColor(markerAttr_->GetMarkerColor()); }
void GPFSimParticle::setInitialColor | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 67 of file GPFSimParticle.cc.
References GPFBase::lineAttr_, GPFBase::markerAttr_, and option_.
{ if (option_=="f") SetFillColor(lineAttr_->GetLineColor()); else SetLineColor(lineAttr_->GetLineColor()); SetMarkerColor(markerAttr_->GetMarkerColor()); }
void GPFSimParticle::setNewSize | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 74 of file GPFSimParticle.cc.
References GPFBase::markerAttr_.
{ SetMarkerSize(markerAttr_->GetMarkerSize()); }
void GPFSimParticle::setNewStyle | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 79 of file GPFSimParticle.cc.
References GPFBase::markerAttr_.
{ SetMarkerStyle(markerAttr_->GetMarkerStyle()); }
std::string GPFSimParticle::option_ [private] |
Definition at line 42 of file GPFSimParticle.h.
Referenced by draw(), setColor(), and setInitialColor().
const reco::PFSimParticle* GPFSimParticle::part_ [private] |
Definition at line 39 of file GPFSimParticle.h.
Referenced by Print().
double GPFSimParticle::pt_ [private] |
Definition at line 40 of file GPFSimParticle.h.
Referenced by getPt().