CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GPFTrack.cc
Go to the documentation of this file.
4 #include "TPad.h"
5 #include "TObject.h"
6 #include "TGraph.h"
7 #include <string>
8 
9 
10 //________________________________________________________________________
11 GPFTrack::GPFTrack(DisplayManager * display,int view,int ident,
12  reco::PFRecTrack *tra, int size, double *x, double *y,
13  double pt,TAttMarker *attm,TAttLine * attl, std::string option)
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 }
26 //_________________________________________________________________________
28 {
29  if ((origId_>>SHIFTID) != BREMID)
30  std::cout<<*track_<<std::endl;
31 }
32 //_______________________________________________________________________________
33 void GPFTrack::ExecuteEvent(Int_t event, Int_t px, Int_t py)
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 }
49 //______________________________________________________________________________
51 {
52  TGraph::Draw(option_.data());
53 }
54 //______________________________________________________________________________
56 {
57  if (option_=="f") SetFillColor(lineAttr_->GetLineColor());
58  else SetLineColor(lineAttr_->GetLineColor());
59  SetMarkerColor(markerAttr_->GetMarkerColor());
60 }
61 //______________________________________________________________________________
62 void GPFTrack::setColor(int color)
63 {
64  if (option_=="f") SetFillColor(color);
65  else SetLineColor(color);
66  SetMarkerColor(color);
67 }
68 
69 //_____________________________________________________________________________
71  //redondant avec setColor ???? to check
72 {
73  if (option_=="f") SetFillColor(lineAttr_->GetLineColor());
74  else SetLineColor(lineAttr_->GetLineColor());
75  SetMarkerColor(markerAttr_->GetMarkerColor());
76 }
77 //_____________________________________________________________________________
79 {
80  SetMarkerSize(markerAttr_->GetMarkerSize());
81 }
82 //____________________________________________________________________________
84 {
85  SetMarkerStyle(markerAttr_->GetMarkerStyle());
86 }
87 
std::string option_
Definition: GPFTrack.h:45
const unsigned int SHIFTID
Definition: DisplayCommon.h:25
reconstructed track used as an input to particle flow
Definition: PFRecTrack.h:22
TAttLine * lineAttr_
Definition: GPFBase.h:21
void setColor()
Definition: GPFTrack.cc:55
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: GPFTrack.cc:11
virtual void draw()
Definition: GPFTrack.cc:50
void findBlock(int ident)
int origId_
Definition: GPFBase.h:19
virtual void Print()
Definition: GPFTrack.cc:27
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void setInitialColor()
Definition: GPFTrack.cc:70
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
void setNewStyle()
Definition: GPFTrack.cc:83
DisplayManager * display_
Definition: GPFBase.h:17
void findAndDraw(int ident)
tuple cout
Definition: gather_cfg.py:41
reco::PFRecTrack * track_
Definition: GPFTrack.h:43
void setNewSize()
Definition: GPFTrack.cc:78
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Definition: GPFTrack.cc:33
tuple size
Write out results.