View of event showing the XZ and YZ readout planes. More...
Public Member Functions | |
XZYZProjectionsView (TGMainFrame *mf) | |
~XZYZProjectionsView () | |
const char * | Description () const |
const char * | PrintTag () const |
void | Draw (const char *opt="") |
void | RangeChanged () |
void | AspectRatioHandler (int event, int key, int py, TObject *sel) |
void | FixAspectRatio () |
void | SetAspectRatio () |
virtual void | Print (const char *f) |
void | Connect () |
Make signal/slot connections. More... | |
Static Public Member Functions | |
static void | AddToListOfPrintables (const char *name, evdb::Printable *p) |
static void | RemoveFromListOfPrintables (evdb::Printable *p) |
static std::map< std::string, evdb::Printable * > & | GetPrintables () |
Protected Attributes | |
TGCompositeFrame * | fFrame |
Graphics frame. More... | |
TGLayoutHints * | fLayout |
Layout hints for frame. More... | |
TRootEmbeddedCanvas * | fEmbCanvas |
Embedded canvas. More... | |
TCanvas * | fCanvas |
The ROOT drawing canvas. More... | |
unsigned short | fXsize |
Size of the canvas;. More... | |
unsigned short | fYsize |
Size of the canvas;. More... | |
float | fAspectRatio |
fYsize/fXsize More... | |
Private Member Functions | |
std::vector< float > | GetRightAxesRange (int pix, float cm, float min, float max, float boundmin, float boundmax, int tpix, float tcm) |
Private Attributes | |
HeaderPad * | fHeaderPad |
Show header information. More... | |
TQPad * | fRawQ |
Histogram of raw charges. More... | |
TQPad * | fRawT |
Histogram of raw times. More... | |
MCBriefPad * | fMC |
Short summary of MC event. More... | |
SliceButtonBar * | fSliceButtonBar |
Bar with slice controls. More... | |
TZProjPad * | fXview |
X - Z projection of the event. More... | |
TZProjPad * | fYview |
Y - Z projection of the event. More... | |
double | fX0 |
double | fX1 |
double | fX3 |
double | fX2 |
double | fY0 |
double | fY1 |
double | fY2 |
double | fY4 |
double | fY3 |
View of event showing the XZ and YZ readout planes.
Definition at line 21 of file XZYZProjectionsView.h.
evd::XZYZProjectionsView::XZYZProjectionsView | ( | TGMainFrame * | mf | ) |
Definition at line 27 of file XZYZProjectionsView.cxx.
References evd::HeaderPad::Draw(), evd::MCBriefPad::Draw(), evd::TQPad::Draw(), evd::TZProjPad::Draw(), evdb::Canvas::fCanvas, evdb::Canvas::fEmbCanvas, fHeaderPad, evdb::Canvas::fLayout, fMC, fRawQ, fRawT, fSliceButtonBar, fX0, fX1, fX2, fX3, fXview, fY0, fY1, fY2, fY3, fY4, fYview, and evd::DrawingPad::Pad().
evd::XZYZProjectionsView::~XZYZProjectionsView | ( | ) |
Definition at line 90 of file XZYZProjectionsView.cxx.
References fMC, fRawQ, fRawT, fSliceButtonBar, fXview, and fYview.
|
staticinherited |
Definition at line 29 of file Printable.cxx.
References om::cerr, and string.
Referenced by evdb::Canvas::Connect(), evdb::ObjListCanvas::Connect(), evdb::Printable::Description(), and evdb::testCanvas1::testCanvas1().
Definition at line 262 of file XZYZProjectionsView.cxx.
References FixAspectRatio().
Referenced by PrintTag().
|
inherited |
Make signal/slot connections.
Definition at line 68 of file Canvas.cxx.
References evdb::Printable::AddToListOfPrintables(), and evdb::Canvas::Description().
Referenced by evdb::Canvas::Description(), and evdb::DisplayWindow::DisplayWindow().
|
inlinevirtual |
Reimplemented from evdb::Canvas.
Definition at line 28 of file XZYZProjectionsView.h.
|
virtual |
Implements evdb::Canvas.
Definition at line 177 of file XZYZProjectionsView.cxx.
References evd::HeaderPad::Draw(), evd::MCBriefPad::Draw(), evd::TQPad::Draw(), evd::TZProjPad::Draw(), evdb::Canvas::fCanvas, fHeaderPad, FixAspectRatio(), fMC, fRawQ, fRawT, fSliceButtonBar, fXview, fYview, SetAspectRatio(), and evd::SliceButtonBar::Update().
Referenced by PrintTag().
void evd::XZYZProjectionsView::FixAspectRatio | ( | ) |
Definition at line 273 of file XZYZProjectionsView.cxx.
References evdb::Canvas::fCanvas, fXview, fYview, GetRightAxesRange(), evd::TZProjPad::GetWBoundCm(), evd::TZProjPad::GetWrangeCm(), evd::TZProjPad::GetZBoundCm(), evd::TZProjPad::GetZrangeCm(), evd::DrawingPad::Pad(), evd::TZProjPad::SetWrangeCm(), evd::TZProjPad::SetZrangeCm(), xmax, make_mec_shifts_plots::xmin, ymax, ymin, and make_true_q0q3_plots::zmax.
Referenced by AspectRatioHandler(), Draw(), and PrintTag().
|
staticinherited |
Definition at line 61 of file Printable.cxx.
References evdb::gsPrintables.
Referenced by evdb::Printable::Description(), evd::SliceNavigator::postProcessEvent(), evdb::EventDisplay::postProcessEvent(), and evdb::PrintDialog::PrintDialog().
|
private |
A function that calculates the range to zoom out to on an axis.
Definition at line 391 of file XZYZProjectionsView.cxx.
References hi(), lo(), and PandAna.Demos.demo1::range.
Referenced by FixAspectRatio().
|
virtualinherited |
Implements evdb::Printable.
Definition at line 88 of file Canvas.cxx.
References evdb::Canvas::fCanvas.
Referenced by evdb::Canvas::Description().
|
inlinevirtual |
Reimplemented from evdb::Canvas.
Definition at line 29 of file XZYZProjectionsView.h.
References AspectRatioHandler(), Draw(), FixAspectRatio(), findDuplicateFiles::key, MECModelEnuComparisons::opt, RangeChanged(), and SetAspectRatio().
void evd::XZYZProjectionsView::RangeChanged | ( | ) |
Definition at line 219 of file XZYZProjectionsView.cxx.
References fXview, fYview, evd::TZProjPad::GetZrange(), evd::gRefresher, evd::DrawingPad::Pad(), and evd::TZProjPad::SetZrange().
Referenced by PrintTag().
|
staticinherited |
Definition at line 47 of file Printable.cxx.
Referenced by evdb::Printable::Description(), evdb::Printable::~Printable(), and evdb::testCanvas1::~testCanvas1().
void evd::XZYZProjectionsView::SetAspectRatio | ( | ) |
Definition at line 105 of file XZYZProjectionsView.cxx.
References stan::math::fabs(), evd::TZProjPad::fHisto, fX0, fX3, fXview, fY2, fY3, fY4, fYview, and evd::DrawingPad::Pad().
Referenced by Draw(), and PrintTag().
|
protectedinherited |
|
protectedinherited |
The ROOT drawing canvas.
Definition at line 42 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), evd::Display3DView::Display3DView(), evd::Display3DView::Draw(), evd::HardwareView::Draw(), Draw(), evd::PlotView::Draw(), evdb::testCanvas1::Draw(), FixAspectRatio(), evd::HardwareView::HardwareView(), evdb::Canvas::Print(), and XZYZProjectionsView().
|
protectedinherited |
Embedded canvas.
Definition at line 41 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), XZYZProjectionsView(), and evdb::Canvas::~Canvas().
|
protectedinherited |
Graphics frame.
Definition at line 39 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), and evdb::Canvas::~Canvas().
|
private |
Show header information.
Definition at line 38 of file XZYZProjectionsView.h.
Referenced by Draw(), and XZYZProjectionsView().
|
protectedinherited |
Layout hints for frame.
Definition at line 40 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), XZYZProjectionsView(), and evdb::Canvas::~Canvas().
|
private |
Short summary of MC event.
Definition at line 43 of file XZYZProjectionsView.h.
Referenced by Draw(), XZYZProjectionsView(), and ~XZYZProjectionsView().
|
private |
Histogram of raw charges.
Definition at line 39 of file XZYZProjectionsView.h.
Referenced by Draw(), XZYZProjectionsView(), and ~XZYZProjectionsView().
|
private |
Histogram of raw times.
Definition at line 40 of file XZYZProjectionsView.h.
Referenced by Draw(), XZYZProjectionsView(), and ~XZYZProjectionsView().
|
private |
Bar with slice controls.
Definition at line 44 of file XZYZProjectionsView.h.
Referenced by Draw(), XZYZProjectionsView(), and ~XZYZProjectionsView().
|
private |
Definition at line 50 of file XZYZProjectionsView.h.
Referenced by SetAspectRatio(), and XZYZProjectionsView().
|
private |
Definition at line 51 of file XZYZProjectionsView.h.
Referenced by XZYZProjectionsView().
|
private |
Definition at line 53 of file XZYZProjectionsView.h.
Referenced by XZYZProjectionsView().
|
private |
Definition at line 52 of file XZYZProjectionsView.h.
Referenced by SetAspectRatio(), and XZYZProjectionsView().
|
protectedinherited |
|
private |
X - Z projection of the event.
Definition at line 46 of file XZYZProjectionsView.h.
Referenced by Draw(), FixAspectRatio(), RangeChanged(), SetAspectRatio(), XZYZProjectionsView(), and ~XZYZProjectionsView().
|
private |
Definition at line 55 of file XZYZProjectionsView.h.
Referenced by XZYZProjectionsView().
|
private |
Definition at line 56 of file XZYZProjectionsView.h.
Referenced by XZYZProjectionsView().
|
private |
Definition at line 57 of file XZYZProjectionsView.h.
Referenced by SetAspectRatio(), and XZYZProjectionsView().
|
private |
Definition at line 59 of file XZYZProjectionsView.h.
Referenced by SetAspectRatio(), and XZYZProjectionsView().
|
private |
Definition at line 58 of file XZYZProjectionsView.h.
Referenced by SetAspectRatio(), and XZYZProjectionsView().
|
protectedinherited |
|
private |
Y - Z projection of the event.
Definition at line 47 of file XZYZProjectionsView.h.
Referenced by Draw(), FixAspectRatio(), RangeChanged(), SetAspectRatio(), XZYZProjectionsView(), and ~XZYZProjectionsView().