CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GPFRecHit.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 GPFRecHit::GPFRecHit(DisplayManager * display,int view,int ident,
12  reco::PFRecHit *rechit,int size,
13  double *x, double *y, int color, std::string option)
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 }
26 //__________________________________________________________________________
28 {
29  std::cout<<*recHit_<<std::endl;
30 }
31 //___________________________________________________________________________
32 void GPFRecHit::ExecuteEvent(Int_t event, Int_t px, Int_t py)
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 }
46 //__________________________________________________________________________
48 {
49  TGraph::Draw(option_.data());
50 }
51 //__________________________________________________________________________
53 {
54  if (option_=="f") SetFillColor(color);
55  else SetLineColor(color);
56 }
57 //_________________________________________________________________________
59 {
60  if (option_=="f") SetFillColor(color_);
61  else SetLineColor(color_);
62 }
63 //_________________________________________________________________________
65 {
66  if (option_=="f") SetFillColor(color_);
67  else SetLineColor(color_);
68 }
69 
70 //_________________________________________________________________________
72 {
73  //not implemented
74 }
75 //_________________________________________________________________________
77 {
78  //not implemented
79 }
std::string option_
root draw option
Definition: GPFRecHit.h:41
int color_
Definition: GPFBase.h:22
reco::PFRecHit * recHit_
Definition: GPFRecHit.h:35
int origId_
Definition: GPFBase.h:19
double en_
energy
Definition: GPFRecHit.h:38
void setNewSize()
Definition: GPFRecHit.cc:71
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
Definition: PFRecHit.h:31
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
void setInitialColor()
Definition: GPFRecHit.cc:58
void setColor()
Definition: GPFRecHit.cc:64
void setNewStyle()
Definition: GPFRecHit.cc:76
DisplayManager * display_
Definition: GPFBase.h:17
double energy() const
rechit energy
Definition: PFRecHit.h:105
GPFRecHit(DisplayManager *dm, int view, int ident, reco::PFRecHit *hit, int size, double *x, double *y, int color, std::string option)
Definition: GPFRecHit.cc:11
void findAndDraw(int ident)
virtual void draw()
Definition: GPFRecHit.cc:47
tuple cout
Definition: gather_cfg.py:121
Definition: DDAxes.h:10
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Definition: GPFRecHit.cc:32
tuple size
Write out results.