Public Member Functions | Private Attributes | List of all members
gar::evd::MCBriefPad Class Reference

#include <MCBriefPad.h>

Inheritance diagram for gar::evd::MCBriefPad:
gar::evd::DrawingPad

Public Member Functions

 MCBriefPad (const char *nm, const char *ti, double x1, double y1, double x2, double y2, const char *opt)
 
 ~MCBriefPad ()
 
void Draw ()
 
- Public Member Functions inherited from gar::evd::DrawingPad
 DrawingPad (const char *nm, const char *ti, double x1, double y1, double y2, double x2)
 
 ~DrawingPad ()
 
TPad * Pad ()
 
HeaderDrawerHeaderDraw ()
 
GeometryDrawerGeometryDraw ()
 
SimulationDrawerSimulationDraw ()
 
RawDataDrawerRawDataDraw ()
 
RecoBaseDrawerRecoBaseDraw ()
 
AnalysisBaseDrawerAnalysisBaseDraw ()
 
HitSelector * HitSelectorGet ()
 

Private Attributes

evdb::View2D * fView
 Superimpose scale on 1D histo. More...
 

Additional Inherited Members

- Protected Attributes inherited from gar::evd::DrawingPad
TPad * fPad
 The ROOT graphics pad. More...
 
HeaderDrawerfHeaderDraw
 Drawer for event header info. More...
 
GeometryDrawerfGeometryDraw
 Drawer for detector geometry. More...
 
SimulationDrawerfSimulationDraw
 Drawer for simulation objects. More...
 
RawDataDrawerfRawDataDraw
 Drawer for raw data. More...
 
RecoBaseDrawerfRecoBaseDraw
 Drawer for recobase objects. More...
 
AnalysisBaseDrawerfAnalysisBaseDraw
 Drawer for analysisbase objects. More...
 

Detailed Description

Definition at line 15 of file MCBriefPad.h.

Constructor & Destructor Documentation

gar::evd::MCBriefPad::MCBriefPad ( const char *  nm,
const char *  ti,
double  x1,
double  y1,
double  x2,
double  y2,
const char *  opt 
)

Definition at line 21 of file MCBriefPad.cxx.

24  :
25  DrawingPad(nm, ti, x1, y1, x2, y2)
26  {
27  this->Pad()->cd();
28 
29  fView = new evdb::View2D();
30  }
evdb::View2D * fView
Superimpose scale on 1D histo.
Definition: MCBriefPad.h:24
DrawingPad(const char *nm, const char *ti, double x1, double y1, double y2, double x2)
Definition: DrawingPad.cxx:38
gar::evd::MCBriefPad::~MCBriefPad ( )

Definition at line 34 of file MCBriefPad.cxx.

35  {
36  if (fView) { delete fView; fView = nullptr; }
37  }
evdb::View2D * fView
Superimpose scale on 1D histo.
Definition: MCBriefPad.h:24

Member Function Documentation

void gar::evd::MCBriefPad::Draw ( void  )

Definition at line 41 of file MCBriefPad.cxx.

42  {
43  fView->Clear();
44  this->Pad()->Clear();
45 
46  const art::Event *evt = evdb::EventHolder::Instance()->GetEvent();
47  if(evt){
48  this->SimulationDraw()->MCTruthShortText(*evt, fView);
49  this->SimulationDraw()->MCTruthLongText (*evt, fView);
50  }
51  fPad->cd();
52  fView->Draw();
53  }
SimulationDrawer * SimulationDraw()
Definition: DrawingPad.cxx:94
TPad * fPad
The ROOT graphics pad.
Definition: DrawingPad.h:42
evdb::View2D * fView
Superimpose scale on 1D histo.
Definition: MCBriefPad.h:24
void MCTruthLongText(const art::Event &evt, evdb::View2D *view)
void MCTruthShortText(const art::Event &evt, evdb::View2D *view)
TCEvent evt
Definition: DataStructs.cxx:7

Member Data Documentation

evdb::View2D* gar::evd::MCBriefPad::fView
private

Superimpose scale on 1D histo.

Definition at line 24 of file MCBriefPad.h.


The documentation for this class was generated from the following files: