![]() |
![]() |
#include <RecoParticleFlow/PFRootEvent/interface/GPFRecHit.h>
Public Member Functions | |
virtual void | draw () |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
double | getEnergy () |
std::string | getOption () |
GPFRecHit (DisplayManager *dm, int view, int ident, reco::PFRecHit *hit, int size, double *x, double *y, int color, std::string option) | |
virtual void | Print () |
void | setColor (int newcolor) |
void | setColor () |
void | setInitialColor () |
void | setNewSize () |
void | setNewStyle () |
virtual | ~GPFRecHit () |
Private Attributes | |
double | en_ |
energy | |
std::string | option_ |
root draw option | |
reco::PFRecHit * | recHit_ |
Definition at line 15 of file GPFRecHit.h.
GPFRecHit::GPFRecHit | ( | DisplayManager * | dm, | |
int | view, | |||
int | ident, | |||
reco::PFRecHit * | hit, | |||
int | size, | |||
double * | x, | |||
double * | y, | |||
int | color, | |||
std::string | option | |||
) |
Definition at line 10 of file GPFRecHit.cc.
References GPFBase::color_, en_, reco::PFRecHit::energy(), and recHit_.
00013 : GPFBase(display,view,ident, color), 00014 TGraph(size,x,y), 00015 recHit_(rechit), option_(option) 00016 { 00017 ResetBit(kCanDelete); 00018 00019 en_=recHit_->energy(); 00020 00021 SetLineColor(color_); 00022 SetFillColor(color_); 00023 00024 }
virtual GPFRecHit::~GPFRecHit | ( | ) | [inline, virtual] |
void GPFRecHit::draw | ( | ) | [virtual] |
Reimplemented from GPFBase.
Definition at line 46 of file GPFRecHit.cc.
References option_.
00047 { 00048 TGraph::Draw(option_.data()); 00049 }
void GPFRecHit::ExecuteEvent | ( | Int_t | event, | |
Int_t | px, | |||
Int_t | py | |||
) | [virtual] |
Definition at line 31 of file GPFRecHit.cc.
References GPFBase::display_, DisplayManager::findAndDraw(), GPFBase::origId_, and Print().
00032 { 00033 // Execute action corresponding to a mouse click 00034 //on a GPFRecHit object in the window 00035 00036 gPad->SetCursor(kHand); 00037 switch (event) { 00038 case kButton1Down: 00039 Print(); 00040 display_->findAndDraw(origId_); 00041 break; 00042 default:break; 00043 } 00044 }
double GPFRecHit::getEnergy | ( | ) | [inline, virtual] |
Reimplemented from GPFBase.
Definition at line 23 of file GPFRecHit.h.
References en_.
00023 { return en_;}
std::string GPFRecHit::getOption | ( | ) | [inline] |
void GPFRecHit::Print | ( | ) | [virtual] |
Definition at line 26 of file GPFRecHit.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and recHit_.
Referenced by ExecuteEvent().
Implements GPFBase.
Definition at line 51 of file GPFRecHit.cc.
References option_.
00052 { 00053 if (option_=="f") SetFillColor(color); 00054 else SetLineColor(color); 00055 }
void GPFRecHit::setColor | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 63 of file GPFRecHit.cc.
References GPFBase::color_, and option_.
void GPFRecHit::setInitialColor | ( | ) | [virtual] |
Implements GPFBase.
Definition at line 57 of file GPFRecHit.cc.
References GPFBase::color_, and option_.
void GPFRecHit::setNewSize | ( | ) | [virtual] |
void GPFRecHit::setNewStyle | ( | ) | [virtual] |
double GPFRecHit::en_ [private] |
std::string GPFRecHit::option_ [private] |
root draw option
Definition at line 42 of file GPFRecHit.h.
Referenced by draw(), getOption(), setColor(), and setInitialColor().
reco::PFRecHit* GPFRecHit::recHit_ [private] |