CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GPFCluster.cc
Go to the documentation of this file.
4 #include "TObject.h"
5 #include "TPad.h"
6 #include "TMarker.h"
7 
8 
9 //_________________________________________________________________
11  int view,int ident,
12  const reco::PFCluster* clus,
13  double x,double y,TAttMarker *attm)
14  : GPFBase(display,view,ident, attm ),
15  TMarker(x,y,1),clus_(clus) {
16 
17  ResetBit(kCanDelete);
18  en_=clus_->energy();
19  SetMarkerColor(markerAttr_->GetMarkerColor());
20  SetMarkerStyle(markerAttr_->GetMarkerStyle());
21  SetMarkerSize(markerAttr_->GetMarkerSize());
22 }
23 
24 //_________________________________________________________________
26 {
27  std::cout<<*clus_<<std::endl;
28 }
29 //_________________________________________________________________
30 void GPFCluster::ExecuteEvent(Int_t event, Int_t px, Int_t py)
31 {
32  // Execute action corresponding to a mouse click
33  //on a GPFRecHit object in the window
34 
35  gPad->SetCursor(kHand);
36  switch (event) {
37  case kButton1Down:
38  Print();
41  break;
42  default:break;
43  }
44 }
45 //_________________________________________________________________
47 {
48  TMarker::Draw();
49 }
50 //_________________________________________________________________
52 {
53  SetMarkerColor(markerAttr_->GetMarkerColor());
54 }
55 //_________________________________________________________________
56 void GPFCluster::setColor(int newcol)
57 {
58  SetMarkerColor(newcol);
59 }
60 //_________________________________________________________________
62 {
63  SetMarkerColor(markerAttr_->GetMarkerColor());
64 }
65 //_________________________________________________________________
67 {
68  SetMarkerStyle(markerAttr_->GetMarkerStyle());
69 }
70 //_________________________________________________________________
72 {
73  SetMarkerSize(markerAttr_->GetMarkerSize());
74 }
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition: PFCluster.h:43
void findBlock(int ident)
void setNewSize()
Definition: GPFCluster.cc:71
int origId_
Definition: GPFBase.h:19
double en_
Definition: GPFCluster.h:42
TAttMarker * markerAttr_
Definition: GPFBase.h:20
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Definition: GPFCluster.cc:30
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
double energy() const
cluster energy
Definition: PFCluster.h:72
void setNewStyle()
Definition: GPFCluster.cc:66
virtual void draw()
Definition: GPFCluster.cc:46
virtual void Print()
Definition: GPFCluster.cc:25
DisplayManager * display_
Definition: GPFBase.h:17
void findAndDraw(int ident)
tuple cout
Definition: gather_cfg.py:121
GPFCluster(DisplayManager *dm, int view, int ident, const reco::PFCluster *clus, double x, double y, TAttMarker *attm)
Definition: GPFCluster.cc:10
void setColor()
Definition: GPFCluster.cc:51
void setInitialColor()
Definition: GPFCluster.cc:61
Definition: DDAxes.h:10
const reco::PFCluster * clus_
Definition: GPFCluster.h:40