9 #ifndef EVD_TWIREPROJPAD_H 10 #define EVD_TWIREPROJPAD_H 17 namespace evdb {
class View2D; }
29 bool bZoom2DdrawToRoI =
false;
38 void GetWireRange(
int *i1,
int *i2)
const;
39 void SetWireRange(
int i1,
int i2);
41 void SetZoomRange(
int i1,
int i2,
int y1,
int y2);
50 { fDrawOpts.bZoom2DdrawToRoI = bZoomToRoI; }
53 void SetZoomFromView();
55 void SaveHitList(
double i1,
double i2,
double y1,
double y2,
double distance,
const char*
zoom_opt,
bool good_plane=
true);
57 double SaveSeedList(std::vector < util::PxLine > seedlines,
double distance);
60 void SelectOneHit(
double x,
double y,
const char* zoom_opt);
62 unsigned int GetPlane()
const {
return fPlane; }
64 void ClearandUpdatePad();
66 void DrawLinesinView(std::vector< util::PxLine >
lines,
bool deleting=
false,
const char * zoom_opt=0);
68 void ShowFull(
int override=0);
70 evdb::View2D*
View()
const {
return fView; }
Namespace for general, non-LArSoft-specific utilities.
unsigned int fPlane
Which plane in the detector.
double fXLo
Low value of x axis.
unsigned int GetPlane() const
DrawOptions_t fDrawOpts
set of current draw options
std::vector< double > const & GetCurrentZoom() const
void SetZoomToRoI(bool bZoomToRoI)
Sets the draw option about zooming to the region of interest.
evdb::View2D * View() const
A drawing pad for time vs wire.
int fOri
Orientation of the axes - see RawDrawingOptions for values.
double fXHi
High value of x axis.
DrawOptions_t const & GetDrawOptions() const
Return the current draw options.
Base class for event display drawing pads.
double distance(double x1, double y1, double z1, double x2, double y2, double z2)
double fYLo
Low value of y axis.
void Draw(const char *plot, const char *title)
TH1F * fHisto
Histogram to draw object on.
void SetDrawOptions(DrawOptions_t const &opt)
Receive the full set of draw options.
static const char * zoom_opt
std::vector< double > fCurrentZoom
double fYHi
High value of y axis.
evdb::View2D * fView
Collection of graphics objects to render.