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

#include <MCBriefPad.h>

Inheritance diagram for evd::MCBriefPad:
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 evd::DrawingPad
 DrawingPad (const char *nm, const char *ti, double x1, double y1, double y2, double x2)
 
 ~DrawingPad ()
 
TPad * Pad ()
 
HeaderDrawerHeaderDraw ()
 
evd_tool::IExperimentDrawerGeometryDraw ()
 
SimulationDrawerSimulationDraw ()
 
RawDataDrawerRawDataDraw ()
 
RecoBaseDrawerRecoBaseDraw ()
 
AnalysisBaseDrawerAnalysisBaseDraw ()
 
HitSelectorHitSelectorGet ()
 

Private Attributes

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

Additional Inherited Members

- Protected Types inherited from evd::DrawingPad
using IExperimentDrawerPtr = std::unique_ptr< evd_tool::IExperimentDrawer >
 
- Protected Attributes inherited from evd::DrawingPad
TPad * fPad
 The ROOT graphics pad. More...
 
HeaderDrawerfHeaderDraw
 Drawer for event header info. More...
 
IExperimentDrawerPtr fGeometryDraw
 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 13 of file MCBriefPad.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file MCBriefPad.cxx.

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

Definition at line 32 of file MCBriefPad.cxx.

33  {
34  if (fView) { delete fView; fView = 0; }
35  }
evdb::View2D * fView
Superimpose scale on 1D histo.
Definition: MCBriefPad.h:22

Member Function Documentation

void evd::MCBriefPad::Draw ( void  )

Definition at line 39 of file MCBriefPad.cxx.

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

Member Data Documentation

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

Superimpose scale on 1D histo.

Definition at line 22 of file MCBriefPad.h.


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