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
GPFTrack Class Reference

#include <GPFTrack.h>

Inheritance diagram for GPFTrack:
GPFBase

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 GPFTrackoperator= (const GPFTrack &other)
 
virtual void Print ()
 
void setColor ()
 
void setColor (int newcol)
 
void setInitialColor ()
 
void setNewSize ()
 
void setNewStyle ()
 
virtual ~GPFTrack ()
 
- Public Member Functions inherited from GPFBase
virtual double getEnergy ()
 
int getOrigin ()
 
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

std::string option_
 
double pt_
 
reco::PFRecTracktrack_
 

Additional Inherited Members

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

Detailed Description

Definition at line 15 of file GPFTrack.h.

Constructor & Destructor Documentation

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_.

14  : GPFBase(display,view,ident,attm,attl ),
15  TGraph(size,x,y), track_(tra),pt_(pt), option_(option)
16 {
17  ResetBit(kCanDelete);
18 
19  SetLineColor(lineAttr_->GetLineColor());
20  SetLineStyle(lineAttr_->GetLineStyle());
21  SetMarkerStyle(markerAttr_->GetMarkerStyle());
22  SetMarkerSize(markerAttr_->GetMarkerSize());
23  SetMarkerColor(markerAttr_->GetMarkerColor());
24 
25 }
std::string option_
Definition: GPFTrack.h:45
GPFBase(DisplayManager *display, int viewType, int ident, TAttMarker *attm, TAttLine *attl)
Definition: GPFBase.cc:15
TAttLine * lineAttr_
Definition: GPFBase.h:21
double pt_
Definition: GPFTrack.h:44
TAttMarker * markerAttr_
Definition: GPFBase.h:20
reco::PFRecTrack * track_
Definition: GPFTrack.h:43
Definition: DDAxes.h:10
tuple size
Write out results.
virtual GPFTrack::~GPFTrack ( )
inlinevirtual

Definition at line 21 of file GPFTrack.h.

21 {;}

Member Function Documentation

void GPFTrack::draw ( )
virtual

Reimplemented from GPFBase.

Definition at line 50 of file GPFTrack.cc.

References option_.

51 {
52  TGraph::Draw(option_.data());
53 }
std::string option_
Definition: GPFTrack.h:45
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().

34 {
35  // Execute action corresponding to a left mouse button click
36  //on a GPFTrack object in the window
37 
38  gPad->SetCursor(kHand);
39  switch (event) {
40  case kButton1Down:
41  Print();
44  break;
45  default:break;
46  }
47 
48 }
void findBlock(int ident)
int origId_
Definition: GPFBase.h:19
virtual void Print()
Definition: GPFTrack.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 GPFTrack::getPt ( )
inlinevirtual

Reimplemented from GPFBase.

Definition at line 24 of file GPFTrack.h.

References pt_.

24 { return pt_;}
double pt_
Definition: GPFTrack.h:44
const GPFTrack& GPFTrack::operator= ( const GPFTrack other)
inline

Definition at line 36 of file GPFTrack.h.

References track_.

36  {
37  track_ = other.track_;
38  return *this;
39  }
reco::PFRecTrack * track_
Definition: GPFTrack.h:43
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().

28 {
29  if ((origId_>>SHIFTID) != BREMID)
30  std::cout<<*track_<<std::endl;
31 }
const unsigned int SHIFTID
Definition: DisplayCommon.h:27
int origId_
Definition: GPFBase.h:19
tuple cout
Definition: gather_cfg.py:121
reco::PFRecTrack * track_
Definition: GPFTrack.h:43
void GPFTrack::setColor ( )
virtual

Implements GPFBase.

Definition at line 55 of file GPFTrack.cc.

References GPFBase::lineAttr_, GPFBase::markerAttr_, and option_.

56 {
57  if (option_=="f") SetFillColor(lineAttr_->GetLineColor());
58  else SetLineColor(lineAttr_->GetLineColor());
59  SetMarkerColor(markerAttr_->GetMarkerColor());
60 }
std::string option_
Definition: GPFTrack.h:45
TAttLine * lineAttr_
Definition: GPFBase.h:21
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFTrack::setColor ( int  newcol)
virtual

Implements GPFBase.

Definition at line 62 of file GPFTrack.cc.

References option_.

63 {
64  if (option_=="f") SetFillColor(color);
65  else SetLineColor(color);
66  SetMarkerColor(color);
67 }
std::string option_
Definition: GPFTrack.h:45
void GPFTrack::setInitialColor ( )
virtual

Implements GPFBase.

Definition at line 70 of file GPFTrack.cc.

References GPFBase::lineAttr_, GPFBase::markerAttr_, and option_.

72 {
73  if (option_=="f") SetFillColor(lineAttr_->GetLineColor());
74  else SetLineColor(lineAttr_->GetLineColor());
75  SetMarkerColor(markerAttr_->GetMarkerColor());
76 }
std::string option_
Definition: GPFTrack.h:45
TAttLine * lineAttr_
Definition: GPFBase.h:21
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFTrack::setNewSize ( )
virtual

Implements GPFBase.

Definition at line 78 of file GPFTrack.cc.

References GPFBase::markerAttr_.

79 {
80  SetMarkerSize(markerAttr_->GetMarkerSize());
81 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFTrack::setNewStyle ( )
virtual

Implements GPFBase.

Definition at line 83 of file GPFTrack.cc.

References GPFBase::markerAttr_.

84 {
85  SetMarkerStyle(markerAttr_->GetMarkerStyle());
86 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20

Member Data Documentation

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().