A drawing pad for time vs wire. More...
#include <TWireProjPad.h>
Classes | |
struct | DrawOptions_t |
Public Member Functions | |
TWireProjPad (const char *nm, const char *ti, double x1, double y1, double x2, double y2, unsigned int plane) | |
~TWireProjPad () | |
void | Draw (const char *opt=0) |
void | GetWireRange (int *i1, int *i2) const |
void | SetWireRange (int i1, int i2) |
void | SetZoomRange (int i1, int i2, int y1, int y2) |
DrawOptions_t const & | GetDrawOptions () const |
Return the current draw options. More... | |
void | SetDrawOptions (DrawOptions_t const &opt) |
Receive the full set of draw options. More... | |
void | SetZoomToRoI (bool bZoomToRoI) |
Sets the draw option about zooming to the region of interest. More... | |
void | SetZoomFromView () |
Sets the zoom parameters from the current histogram view. More... | |
void | SaveHitList (double i1, double i2, double y1, double y2, double distance, const char *zoom_opt, bool good_plane=true) |
double | SaveSeedList (std::vector< util::PxLine > seedlines, double distance) |
void | ClearHitList () |
void | SelectOneHit (double x, double y, const char *zoom_opt) |
unsigned int | GetPlane () const |
void | ClearandUpdatePad () |
void | UpdatePad () |
void | DrawLinesinView (std::vector< util::PxLine > lines, bool deleting=false, const char *zoom_opt=0) |
void | ShowFull (int override=0) |
evdb::View2D * | View () const |
std::vector< double > const & | GetCurrentZoom () const |
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 () |
HeaderDrawer * | HeaderDraw () |
evd_tool::IExperimentDrawer * | GeometryDraw () |
SimulationDrawer * | SimulationDraw () |
RawDataDrawer * | RawDataDraw () |
RecoBaseDrawer * | RecoBaseDraw () |
AnalysisBaseDrawer * | AnalysisBaseDraw () |
HitSelector * | HitSelectorGet () |
Private Attributes | |
std::vector< double > | fCurrentZoom |
DrawOptions_t | fDrawOpts |
set of current draw options More... | |
unsigned int | fPlane |
Which plane in the detector. More... | |
TH1F * | fHisto |
Histogram to draw object on. More... | |
evdb::View2D * | fView |
Collection of graphics objects to render. More... | |
double | fXLo |
Low value of x axis. More... | |
double | fXHi |
High value of x axis. More... | |
double | fYLo |
Low value of y axis. More... | |
double | fYHi |
High value of y axis. More... | |
int | fOri |
Orientation of the axes - see RawDrawingOptions for values. 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... | |
HeaderDrawer * | fHeaderDraw |
Drawer for event header info. More... | |
IExperimentDrawerPtr | fGeometryDraw |
Drawer for detector geometry. More... | |
SimulationDrawer * | fSimulationDraw |
Drawer for simulation objects. More... | |
RawDataDrawer * | fRawDataDraw |
Drawer for raw data. More... | |
RecoBaseDrawer * | fRecoBaseDraw |
Drawer for recobase objects. More... | |
AnalysisBaseDrawer * | fAnalysisBaseDraw |
Drawer for analysisbase objects. More... | |
A drawing pad for time vs wire.
Definition at line 26 of file TWireProjPad.h.
evd::TWireProjPad::TWireProjPad | ( | const char * | nm, |
const char * | ti, | ||
double | x1, | ||
double | x2, | ||
double | y1, | ||
double | y2, | ||
unsigned int | plane | ||
) |
Create a pad showing a single X-Z or Y-Z projection of the detector
nm | : Name of the pad |
ti | : Title of the pad |
x1 | : Location of left edge of pad (0-1) |
x2 | : Location of right edge of pad (0-1) |
y1 | : Location of bottom edge of pad (0-1) |
y2 | : Location of top edge of pad (0-1) |
plane | : plane number of view |
Definition at line 106 of file TWireProjPad.cxx.
evd::TWireProjPad::~TWireProjPad | ( | ) |
Definition at line 198 of file TWireProjPad.cxx.
void evd::TWireProjPad::ClearandUpdatePad | ( | ) |
Definition at line 449 of file TWireProjPad.cxx.
void evd::TWireProjPad::ClearHitList | ( | ) |
Definition at line 298 of file TWireProjPad.cxx.
void evd::TWireProjPad::Draw | ( | const char * | opt = 0 | ) |
Definition at line 212 of file TWireProjPad.cxx.
void evd::TWireProjPad::DrawLinesinView | ( | std::vector< util::PxLine > | lines, |
bool | deleting = false , |
||
const char * | zoom_opt = 0 |
||
) |
Definition at line 472 of file TWireProjPad.cxx.
|
inline |
Definition at line 72 of file TWireProjPad.h.
|
inline |
Return the current draw options.
Definition at line 44 of file TWireProjPad.h.
|
inline |
Definition at line 62 of file TWireProjPad.h.
void evd::TWireProjPad::GetWireRange | ( | int * | i1, |
int * | i2 | ||
) | const |
Definition at line 337 of file TWireProjPad.cxx.
void evd::TWireProjPad::SaveHitList | ( | double | i1, |
double | i2, | ||
double | y1, | ||
double | y2, | ||
double | distance, | ||
const char * | zoom_opt, | ||
bool | good_plane = true |
||
) |
Definition at line 397 of file TWireProjPad.cxx.
double evd::TWireProjPad::SaveSeedList | ( | std::vector< util::PxLine > | seedlines, |
double | distance | ||
) |
Definition at line 420 of file TWireProjPad.cxx.
void evd::TWireProjPad::SelectOneHit | ( | double | x, |
double | y, | ||
const char * | zoom_opt | ||
) |
Definition at line 434 of file TWireProjPad.cxx.
|
inline |
Receive the full set of draw options.
Definition at line 46 of file TWireProjPad.h.
void evd::TWireProjPad::SetWireRange | ( | int | i1, |
int | i2 | ||
) |
Definition at line 353 of file TWireProjPad.cxx.
void evd::TWireProjPad::SetZoomFromView | ( | ) |
Sets the zoom parameters from the current histogram view.
Definition at line 384 of file TWireProjPad.cxx.
void evd::TWireProjPad::SetZoomRange | ( | int | i1, |
int | i2, | ||
int | y1, | ||
int | y2 | ||
) |
Definition at line 367 of file TWireProjPad.cxx.
|
inline |
Sets the draw option about zooming to the region of interest.
Definition at line 49 of file TWireProjPad.h.
void evd::TWireProjPad::ShowFull | ( | int | override = 0 | ) |
Definition at line 311 of file TWireProjPad.cxx.
void evd::TWireProjPad::UpdatePad | ( | ) |
Definition at line 459 of file TWireProjPad.cxx.
|
inline |
Definition at line 70 of file TWireProjPad.h.
|
private |
Definition at line 80 of file TWireProjPad.h.
|
private |
set of current draw options
Definition at line 81 of file TWireProjPad.h.
|
private |
Histogram to draw object on.
Definition at line 85 of file TWireProjPad.h.
|
private |
Orientation of the axes - see RawDrawingOptions for values.
Definition at line 92 of file TWireProjPad.h.
|
private |
Which plane in the detector.
Definition at line 84 of file TWireProjPad.h.
|
private |
Collection of graphics objects to render.
Definition at line 86 of file TWireProjPad.h.
|
private |
High value of x axis.
Definition at line 89 of file TWireProjPad.h.
|
private |
Low value of x axis.
Definition at line 88 of file TWireProjPad.h.
|
private |
High value of y axis.
Definition at line 91 of file TWireProjPad.h.
|
private |
Low value of y axis.
Definition at line 90 of file TWireProjPad.h.