CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
GPFRecHit Class Reference

#include <GPFRecHit.h>

Inheritance diagram for GPFRecHit:
GPFBase

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 ()
 
void setColor (int newcolor)
 
void setInitialColor ()
 
void setNewSize ()
 
void setNewStyle ()
 
virtual ~GPFRecHit ()
 
- Public Member Functions inherited from GPFBase
int getOrigin ()
 
virtual double getPt ()
 
int getView ()
 
 GPFBase (DisplayManager *display, int viewType, int ident, TAttMarker *attm, TAttLine *attl)
 
 GPFBase (DisplayManager *display, int viewType, int ident, TAttMarker *attm)
 
 GPFBase (DisplayManager *display, int viewType, int ident, int color)
 
virtual ~GPFBase ()
 

Private Attributes

double en_
 energy More...
 
std::string option_
 root draw option More...
 
reco::PFRecHitrecHit_
 

Additional Inherited Members

- Protected Attributes inherited from GPFBase
int color_
 
DisplayManagerdisplay_
 
TAttLine * lineAttr_
 
TAttMarker * markerAttr_
 
int origId_
 
int viewId_
 

Detailed Description

Definition at line 14 of file GPFRecHit.h.

Constructor & Destructor Documentation

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 11 of file GPFRecHit.cc.

References GPFBase::color_, en_, reco::PFRecHit::energy(), and recHit_.

14  : GPFBase(display,view,ident, color),
15  TGraph(size,x,y),
16  recHit_(rechit), option_(option)
17 {
18  ResetBit(kCanDelete);
19 
20  en_=recHit_->energy();
21 
22  SetLineColor(color_);
23  SetFillColor(color_);
24 
25 }
GPFBase(DisplayManager *display, int viewType, int ident, TAttMarker *attm, TAttLine *attl)
Definition: GPFBase.cc:15
std::string option_
root draw option
Definition: GPFRecHit.h:41
int color_
Definition: GPFBase.h:22
reco::PFRecHit * recHit_
Definition: GPFRecHit.h:35
double en_
energy
Definition: GPFRecHit.h:38
double energy() const
rechit energy
Definition: PFRecHit.h:105
x
Definition: VDTMath.h:216
tuple size
Write out results.
virtual GPFRecHit::~GPFRecHit ( )
inlinevirtual

Definition at line 19 of file GPFRecHit.h.

19 {}

Member Function Documentation

void GPFRecHit::draw ( )
virtual

Reimplemented from GPFBase.

Definition at line 47 of file GPFRecHit.cc.

References option_.

48 {
49  TGraph::Draw(option_.data());
50 }
std::string option_
root draw option
Definition: GPFRecHit.h:41
void GPFRecHit::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
virtual

Definition at line 32 of file GPFRecHit.cc.

References GPFBase::display_, DisplayManager::findAndDraw(), GPFBase::origId_, and Print().

33 {
34  // Execute action corresponding to a mouse click
35  //on a GPFRecHit object in the window
36 
37  gPad->SetCursor(kHand);
38  switch (event) {
39  case kButton1Down:
40  Print();
42  break;
43  default:break;
44  }
45 }
int origId_
Definition: GPFBase.h:19
virtual void Print()
Definition: GPFRecHit.cc:27
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
DisplayManager * display_
Definition: GPFBase.h:17
void findAndDraw(int ident)
double GPFRecHit::getEnergy ( )
inlinevirtual

Reimplemented from GPFBase.

Definition at line 22 of file GPFRecHit.h.

References en_.

22 { return en_;}
double en_
energy
Definition: GPFRecHit.h:38
std::string GPFRecHit::getOption ( )
inline

Definition at line 23 of file GPFRecHit.h.

References option_.

23 { return option_;}
std::string option_
root draw option
Definition: GPFRecHit.h:41
void GPFRecHit::Print ( void  )
virtual

Definition at line 27 of file GPFRecHit.cc.

References gather_cfg::cout, and recHit_.

Referenced by ExecuteEvent().

28 {
29  std::cout<<*recHit_<<std::endl;
30 }
reco::PFRecHit * recHit_
Definition: GPFRecHit.h:35
tuple cout
Definition: gather_cfg.py:121
void GPFRecHit::setColor ( )
virtual

Implements GPFBase.

Definition at line 64 of file GPFRecHit.cc.

References GPFBase::color_, and option_.

65 {
66  if (option_=="f") SetFillColor(color_);
67  else SetLineColor(color_);
68 }
std::string option_
root draw option
Definition: GPFRecHit.h:41
int color_
Definition: GPFBase.h:22
void GPFRecHit::setColor ( int  newcolor)
virtual

Implements GPFBase.

Definition at line 52 of file GPFRecHit.cc.

References option_.

53 {
54  if (option_=="f") SetFillColor(color);
55  else SetLineColor(color);
56 }
std::string option_
root draw option
Definition: GPFRecHit.h:41
void GPFRecHit::setInitialColor ( )
virtual

Implements GPFBase.

Definition at line 58 of file GPFRecHit.cc.

References GPFBase::color_, and option_.

59 {
60  if (option_=="f") SetFillColor(color_);
61  else SetLineColor(color_);
62 }
std::string option_
root draw option
Definition: GPFRecHit.h:41
int color_
Definition: GPFBase.h:22
void GPFRecHit::setNewSize ( )
virtual

Implements GPFBase.

Definition at line 71 of file GPFRecHit.cc.

72 {
73  //not implemented
74 }
void GPFRecHit::setNewStyle ( )
virtual

Implements GPFBase.

Definition at line 76 of file GPFRecHit.cc.

77 {
78  //not implemented
79 }

Member Data Documentation

double GPFRecHit::en_
private

energy

Definition at line 38 of file GPFRecHit.h.

Referenced by getEnergy(), and GPFRecHit().

std::string GPFRecHit::option_
private

root draw option

Definition at line 41 of file GPFRecHit.h.

Referenced by draw(), getOption(), setColor(), and setInitialColor().

reco::PFRecHit* GPFRecHit::recHit_
private

Definition at line 35 of file GPFRecHit.h.

Referenced by GPFRecHit(), and Print().