#include <GPFTrack.h>
Public Member Functions | |
virtual void | draw () |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
double | getPt () |
GPFTrack (DisplayManager *dm, int view, int ident, reco::PFRecTrack *tra, int size, double *x, double *y, double pt, TAttMarker *attm, TAttLine *attl, std::string option) | |
const GPFTrack & | operator= (const GPFTrack &other) |
virtual void | Print () |
void | setColor (int newcol) |
void | setColor () |
void | setInitialColor () |
void | setNewSize () |
void | setNewStyle () |
virtual | ~GPFTrack () |
Private Attributes | |
std::string | option_ |
double | pt_ |
reco::PFRecTrack * | track_ |
Definition at line 15 of file GPFTrack.h.
GPFTrack::GPFTrack | ( | DisplayManager * | dm, |
int | view, | ||
int | ident, | ||
reco::PFRecTrack * | tra, | ||
int | size, | ||
double * | x, | ||
double * | y, | ||
double | pt, | ||
TAttMarker * | attm, | ||
TAttLine * | attl, | ||
std::string | option | ||
) |
Definition at line 11 of file GPFTrack.cc.
References GPFBase::lineAttr_, and GPFBase::markerAttr_.
: GPFBase(display,view,ident,attm,attl ), TGraph(size,x,y), track_(tra),pt_(pt), option_(option) { ResetBit(kCanDelete); SetLineColor(lineAttr_->GetLineColor()); SetLineStyle(lineAttr_->GetLineStyle()); SetMarkerStyle(markerAttr_->GetMarkerStyle()); SetMarkerSize(markerAttr_->GetMarkerSize()); SetMarkerColor(markerAttr_->GetMarkerColor()); }
virtual GPFTrack::~GPFTrack | ( | ) | [inline, virtual] |
Definition at line 21 of file GPFTrack.h.
{;}
void GPFTrack::draw | ( | ) | [virtual] |
Reimplemented from GPFBase.
Definition at line 50 of file GPFTrack.cc.
References option_.
{ TGraph::Draw(option_.data()); }
void GPFTrack::ExecuteEvent | ( | Int_t | event, |
Int_t | px, | ||
Int_t | py | ||
) | [virtual] |
Definition at line 33 of file GPFTrack.cc.
References GPFBase::display_, DisplayManager::findAndDraw(), DisplayManager::findBlock(), GPFBase::origId_, and Print().
double GPFTrack::getPt | ( | ) | [inline, virtual] |
Reimplemented from GPFBase.
Definition at line 24 of file GPFTrack.h.
References pt_.
{ return pt_;}
Definition at line 36 of file GPFTrack.h.
References track_.
void GPFTrack::Print | ( | void | ) | [virtual] |
Definition at line 27 of file GPFTrack.cc.
References BREMID, gather_cfg::cout, GPFBase::origId_, SHIFTID, and track_.
Referenced by ExecuteEvent().
void GPFTrack::setColor | ( | int | newcol | ) | [virtual] |
void GPFTrack::setColor | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 55 of file GPFTrack.cc.
References GPFBase::lineAttr_, GPFBase::markerAttr_, and option_.
{ if (option_=="f") SetFillColor(lineAttr_->GetLineColor()); else SetLineColor(lineAttr_->GetLineColor()); SetMarkerColor(markerAttr_->GetMarkerColor()); }
void GPFTrack::setInitialColor | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 70 of file GPFTrack.cc.
References GPFBase::lineAttr_, GPFBase::markerAttr_, and option_.
{ if (option_=="f") SetFillColor(lineAttr_->GetLineColor()); else SetLineColor(lineAttr_->GetLineColor()); SetMarkerColor(markerAttr_->GetMarkerColor()); }
void GPFTrack::setNewSize | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 78 of file GPFTrack.cc.
References GPFBase::markerAttr_.
{ SetMarkerSize(markerAttr_->GetMarkerSize()); }
void GPFTrack::setNewStyle | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 83 of file GPFTrack.cc.
References GPFBase::markerAttr_.
{ SetMarkerStyle(markerAttr_->GetMarkerStyle()); }
std::string GPFTrack::option_ [private] |
Definition at line 45 of file GPFTrack.h.
Referenced by draw(), setColor(), and setInitialColor().
double GPFTrack::pt_ [private] |
Definition at line 44 of file GPFTrack.h.
Referenced by getPt().
reco::PFRecTrack* GPFTrack::track_ [private] |
Definition at line 43 of file GPFTrack.h.
Referenced by operator=(), and Print().