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

#include <GPFCluster.h>

Inheritance diagram for GPFCluster:
GPFBase

Public Member Functions

virtual void draw ()
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
double getEnergy ()
 
 GPFCluster (DisplayManager *dm, int view, int ident, const reco::PFCluster *clus, double x, double y, TAttMarker *attm)
 
const GPFClusteroperator= (const GPFCluster &other)
 
virtual void Print ()
 
void setColor ()
 
void setColor (int newcol)
 
void setInitialColor ()
 
void setNewSize ()
 
void setNewStyle ()
 
virtual ~GPFCluster ()
 
- 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

const reco::PFClusterclus_
 
double en_
 

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 GPFCluster.h.

Constructor & Destructor Documentation

GPFCluster::GPFCluster ( DisplayManager dm,
int  view,
int  ident,
const reco::PFCluster clus,
double  x,
double  y,
TAttMarker *  attm 
)

Definition at line 10 of file GPFCluster.cc.

References clus_, en_, reco::PFCluster::energy(), and GPFBase::markerAttr_.

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 }
GPFBase(DisplayManager *display, int viewType, int ident, TAttMarker *attm, TAttLine *attl)
Definition: GPFBase.cc:15
double en_
Definition: GPFCluster.h:42
TAttMarker * markerAttr_
Definition: GPFBase.h:20
double energy() const
cluster energy
Definition: PFCluster.h:73
Definition: DDAxes.h:10
const reco::PFCluster * clus_
Definition: GPFCluster.h:40
virtual GPFCluster::~GPFCluster ( )
inlinevirtual

Definition at line 20 of file GPFCluster.h.

20 {;}

Member Function Documentation

void GPFCluster::draw ( )
virtual

Reimplemented from GPFBase.

Definition at line 46 of file GPFCluster.cc.

47 {
48  TMarker::Draw();
49 }
void GPFCluster::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
virtual

Definition at line 30 of file GPFCluster.cc.

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

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 }
void findBlock(int ident)
int origId_
Definition: GPFBase.h:19
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
virtual void Print()
Definition: GPFCluster.cc:25
DisplayManager * display_
Definition: GPFBase.h:17
void findAndDraw(int ident)
double GPFCluster::getEnergy ( )
inlinevirtual

Reimplemented from GPFBase.

Definition at line 22 of file GPFCluster.h.

References en_.

22 {return en_;}
double en_
Definition: GPFCluster.h:42
const GPFCluster& GPFCluster::operator= ( const GPFCluster other)
inline

Definition at line 34 of file GPFCluster.h.

References clus_.

34  {
35  clus_ = other.clus_;
36  return *this;
37  }
const reco::PFCluster * clus_
Definition: GPFCluster.h:40
void GPFCluster::Print ( void  )
virtual

Definition at line 25 of file GPFCluster.cc.

References clus_, and gather_cfg::cout.

Referenced by ExecuteEvent().

26 {
27  std::cout<<*clus_<<std::endl;
28 }
tuple cout
Definition: gather_cfg.py:121
const reco::PFCluster * clus_
Definition: GPFCluster.h:40
void GPFCluster::setColor ( )
virtual

Implements GPFBase.

Definition at line 51 of file GPFCluster.cc.

References GPFBase::markerAttr_.

52 {
53  SetMarkerColor(markerAttr_->GetMarkerColor());
54 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFCluster::setColor ( int  newcol)
virtual

Implements GPFBase.

Definition at line 56 of file GPFCluster.cc.

57 {
58  SetMarkerColor(newcol);
59 }
void GPFCluster::setInitialColor ( )
virtual

Implements GPFBase.

Definition at line 61 of file GPFCluster.cc.

References GPFBase::markerAttr_.

62 {
63  SetMarkerColor(markerAttr_->GetMarkerColor());
64 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFCluster::setNewSize ( )
virtual

Implements GPFBase.

Definition at line 71 of file GPFCluster.cc.

References GPFBase::markerAttr_.

72 {
73  SetMarkerSize(markerAttr_->GetMarkerSize());
74 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFCluster::setNewStyle ( )
virtual

Implements GPFBase.

Definition at line 66 of file GPFCluster.cc.

References GPFBase::markerAttr_.

67 {
68  SetMarkerStyle(markerAttr_->GetMarkerStyle());
69 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20

Member Data Documentation

const reco::PFCluster* GPFCluster::clus_
private

Definition at line 40 of file GPFCluster.h.

Referenced by GPFCluster(), operator=(), and Print().

double GPFCluster::en_
private

Definition at line 42 of file GPFCluster.h.

Referenced by getEnergy(), and GPFCluster().