LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
MCBriefPad.cxx
Go to the documentation of this file.
1 #include "TBox.h"
7 #include "TH1F.h"
8 #include "TPad.h"
9 
14 
15 namespace evd{
16 
17  //......................................................................
18 
19  MCBriefPad::MCBriefPad(const char* nm, const char* ti,
20  double x1, double y1,
21  double x2, double y2,
22  const char* /*opt*/) :
23  DrawingPad(nm, ti, x1, y1, x2, y2)
24  {
25  this->Pad()->cd();
26 
27  fView = new evdb::View2D();
28  }
29 
30  //......................................................................
31 
33  {
34  if (fView) { delete fView; fView = 0; }
35  }
36 
37  //......................................................................
38 
40  {
41  fView->Clear();
42  this->Pad()->Clear();
43 
45  if(evt){
46  this->SimulationDraw()->MCTruthShortText(*evt, fView);
47  this->SimulationDraw()->MCTruthLongText (*evt, fView);
48  }
49  fPad->cd();
50  fView->Draw();
51  }
52 }//namespace
const art::Event * GetEvent() const
Definition: EventHolder.cxx:45
void MCTruthLongText(const art::Event &evt, evdb::View2D *view)
Float_t y1[n_points_granero]
Definition: compare.C:5
Drawing pad for short summary of an MC event.
Float_t x1[n_points_granero]
Definition: compare.C:5
evdb::View2D * fView
Superimpose scale on 1D histo.
Definition: MCBriefPad.h:22
A collection of drawable 2-D objects.
void Clear()
Definition: View2D.cxx:109
Singleton to hold the current art::Event for the event display.
Float_t y2[n_points_geant4]
Definition: compare.C:26
LArSoft includes.
MCBriefPad(const char *nm, const char *ti, double x1, double y1, double x2, double y2, const char *opt)
Definition: MCBriefPad.cxx:19
void Draw()
Definition: View2D.cxx:89
static EventHolder * Instance()
Definition: EventHolder.cxx:15
Base class for event display drawing pads.
Definition: DrawingPad.h:29
TPad * Pad()
Definition: DrawingPad.h:37
SimulationDrawer * SimulationDraw()
Definition: DrawingPad.cxx:99
void MCTruthShortText(const art::Event &evt, evdb::View2D *view)
Render the objects from the Simulation package.
TPad * fPad
The ROOT graphics pad.
Definition: DrawingPad.h:53
Float_t x2[n_points_geant4]
Definition: compare.C:26