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

#include <GPFGenParticle.h>

Inheritance diagram for GPFGenParticle:
GPFBase

Public Member Functions

virtual void draw ()
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
double getEnergy ()
 
double getPt ()
 
 GPFGenParticle (DisplayManager *dm, int view, int ident, double eta, double phi, double en, double pt, int barcode, TAttMarker *attm, std::string name, std::string latexName)
 
 GPFGenParticle (DisplayManager *dm, int view, int ident, double *eta, double *phi, double en, double pt, int barcode, int barcodeMother, TAttMarker *attm, std::string name, std::string latexName)
 
virtual void Print ()
 
void setColor ()
 
void setColor (int newcol)
 
void setInitialColor ()
 
void setNewSize ()
 
void setNewStyle ()
 
virtual ~GPFGenParticle ()
 
- Public Member Functions inherited from GPFBase
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

int barcode_
 
int barcodeMother_
 
double en_
 
TLine * line_
 
std::string name_
 
double pt_
 

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

Constructor & Destructor Documentation

GPFGenParticle::GPFGenParticle ( DisplayManager dm,
int  view,
int  ident,
double  eta,
double  phi,
double  en,
double  pt,
int  barcode,
TAttMarker *  attm,
std::string  name,
std::string  latexName 
)

Definition at line 7 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

11  : GPFBase(display,view,ident, attm ),
12  TMarker(x,y,1),
13  TLatex(x,y,latexName.c_str()),
14  en_(e),pt_(pt),name_(name),barcode_(barcode),
15  barcodeMother_(0),
16  line_(0) {
17 
18  //ResetBit(kCanDelete);
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
std::string name_
TAttMarker * markerAttr_
Definition: GPFBase.h:20
Definition: DDAxes.h:10
GPFGenParticle::GPFGenParticle ( DisplayManager dm,
int  view,
int  ident,
double *  eta,
double *  phi,
double  en,
double  pt,
int  barcode,
int  barcodeMother,
TAttMarker *  attm,
std::string  name,
std::string  latexName 
)

Definition at line 24 of file GPFGenParticle.cc.

References line_, and GPFBase::markerAttr_.

29  : GPFBase(display,view,ident, attm ),
30  TMarker(x[1],y[1],1),
31  TLatex(x[1],y[1],latexName.c_str()),
32  en_(e),pt_(pt),name_(name),barcode_(barcode),
33  barcodeMother_(barcodeMother),
34  line_(0) {
35 
36  //ResetBit(kCanDelete);
37  SetMarkerColor(markerAttr_->GetMarkerColor());
38  SetMarkerStyle(markerAttr_->GetMarkerStyle());
39  SetMarkerSize(markerAttr_->GetMarkerSize());
40  line_ = new TLine(x[0],y[0],x[1],y[1]);
41  line_->SetLineColor(markerAttr_->GetMarkerColor());
42 }
GPFBase(DisplayManager *display, int viewType, int ident, TAttMarker *attm, TAttLine *attl)
Definition: GPFBase.cc:15
std::string name_
TAttMarker * markerAttr_
Definition: GPFBase.h:20
Definition: DDAxes.h:10
virtual GPFGenParticle::~GPFGenParticle ( )
inlinevirtual

Definition at line 27 of file GPFGenParticle.h.

27 {;}

Member Function Documentation

void GPFGenParticle::draw ( )
virtual

Reimplemented from GPFBase.

Definition at line 63 of file GPFGenParticle.cc.

References line_.

64 {
65  TMarker::Draw();
66  SetTextFont(42);
67  SetTextSize(0.05);
68  TLatex::Draw();
69  if(line_) line_->Draw();
70 }
void GPFGenParticle::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
virtual

Definition at line 50 of file GPFGenParticle.cc.

References Print().

51 {
52  // Execute action corresponding to a mouse click
53 
54  gPad->SetCursor(kHand);
55  switch (event) {
56  case kButton1Down:
57  Print();
58  break;
59  default:break;
60  }
61 }
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()
double GPFGenParticle::getEnergy ( )
inlinevirtual

Reimplemented from GPFBase.

Definition at line 29 of file GPFGenParticle.h.

References en_.

29 { return en_;}
double GPFGenParticle::getPt ( )
inlinevirtual

Reimplemented from GPFBase.

Definition at line 30 of file GPFGenParticle.h.

References pt_.

30 { return pt_;}
void GPFGenParticle::Print ( void  )
virtual

Definition at line 45 of file GPFGenParticle.cc.

References barcode_, barcodeMother_, GPFBase::display_, name_, and DisplayManager::printGenParticleInfo().

Referenced by ExecuteEvent().

46 {
48 }
void printGenParticleInfo(std::string name, int barcode, int barcodeMother)
std::string name_
DisplayManager * display_
Definition: GPFBase.h:17
void GPFGenParticle::setColor ( )
virtual

Implements GPFBase.

Definition at line 72 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

73 {
74  SetMarkerColor(markerAttr_->GetMarkerColor());
75 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFGenParticle::setColor ( int  newcol)
virtual

Implements GPFBase.

Definition at line 77 of file GPFGenParticle.cc.

78 {
79  SetMarkerColor(newcol);
80 }
void GPFGenParticle::setInitialColor ( )
virtual

Implements GPFBase.

Definition at line 82 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

83 {
84  SetMarkerColor(markerAttr_->GetMarkerColor());
85 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFGenParticle::setNewSize ( )
virtual

Implements GPFBase.

Definition at line 92 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

93 {
94  SetMarkerSize(markerAttr_->GetMarkerSize());
95 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20
void GPFGenParticle::setNewStyle ( )
virtual

Implements GPFBase.

Definition at line 87 of file GPFGenParticle.cc.

References GPFBase::markerAttr_.

88 {
89  SetMarkerStyle(markerAttr_->GetMarkerStyle());
90 }
TAttMarker * markerAttr_
Definition: GPFBase.h:20

Member Data Documentation

int GPFGenParticle::barcode_
private

Definition at line 48 of file GPFGenParticle.h.

Referenced by Print().

int GPFGenParticle::barcodeMother_
private

Definition at line 49 of file GPFGenParticle.h.

Referenced by Print().

double GPFGenParticle::en_
private

Definition at line 45 of file GPFGenParticle.h.

Referenced by getEnergy().

TLine* GPFGenParticle::line_
private

Definition at line 50 of file GPFGenParticle.h.

Referenced by draw(), and GPFGenParticle().

std::string GPFGenParticle::name_
private

Definition at line 47 of file GPFGenParticle.h.

Referenced by Print().

double GPFGenParticle::pt_
private

Definition at line 46 of file GPFGenParticle.h.

Referenced by getPt().