#include <TWQProjectionView.h>
Public Member Functions | |
TWQProjectionView (TGMainFrame *mf) | |
~TWQProjectionView () | |
const char * | Description () const |
const char * | PrintTag () const |
void | Draw (const char *opt="") |
void | ChangeWire (int plane) |
void | SelectTPC () |
select TPC from GUI More... | |
void | SetMouseZoomRegion (int plane) |
void | SelectPoint (int plane) |
void | SelectHit (int plane) |
void | SetPlaneWire () |
void | SetPlane () |
void | SetWire () |
void | SetDistance () |
void | SetThreshold () |
void | SetGreyscale () |
void | SetMCInfo () |
void | SetRawCalib () |
void | SetUpSideBar () |
void | ForceRedraw () |
Forces a redraw of the window. More... | |
void | SetUpZoomButtons () |
void | SetUpClusterButtons () |
void | SetUpDrawingButtons () |
void | SetUpTPCselection () |
void | SetUpPositionFind () |
void | SetZoom (int plane, int wirelow, int wirehi, int timelo, int timehi, bool StoreZoom=true) |
void | ZoomInterest (bool flag=true) |
void | ResetRegionsOfInterest () |
Clear all the regions of interest. More... | |
void | ZoomBack () |
void | SetClusterInterest () |
void | SetClusters (int plane) |
void | SetZoomInterest () |
void | SetZoomFromView () |
void | PrintCharge () |
void | DrawPads (const char *opt="") |
void | FindEndPoint () |
double | FindLineLength (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp) |
void | ClearEndPoints () |
void | ToggleEndPointMarkers () |
void | RadioButtonsDispatch (int parameter) |
void | SaveSelection () |
void | ClearSelection () |
bool | OnNewEvent () |
Returns if a new event is detected; if so, it also resets accordingly. More... | |
void | SetTestFlag (int number=1) |
Static Public Member Functions | |
static void | MouseDispatch (int plane, void *wqpv) |
Protected Attributes | |
TGCompositeFrame * | fVFrame |
needed for the side frame More... | |
Private Member Functions | |
int | DrawLine (int plane, util::PxLine &pline) |
void | SetAutomaticZoomMode (bool bSet=true) |
Records whether we are automatically zooming to the region of interest. More... | |
Static Private Member Functions | |
static std::string | TotalElementsString (unsigned int NElements) |
Returns a string visualizing the total number of elements. More... | |
Private Attributes | |
HeaderPad * | fHeaderPad |
Show header information. More... | |
TQPad * | fWireQ |
Histogram of charge vs time on selected wire. More... | |
MCBriefPad * | fMC |
Short summary of MC event. More... | |
std::vector< TQPad * > | fPlaneQ |
charge on each plane More... | |
std::vector< TWireProjPad * > | fPlanes |
time vs wire projection for each plane More... | |
double | fLastThreshold |
Kludge to prevent double drawing when changing threshold. More... | |
TGCompositeFrame * | fMetaFrame |
needed for the side frame More... | |
TGLabel * | fWireLabel |
TGLabel * | fDistanceLabel |
TGLabel * | fPlaneLabel |
TGLabel * | fThresLabel |
TGNumberEntry * | fWireEntry |
Wire number displayed. More... | |
TGNumberEntry * | fPlaneEntry |
Plane number displayed. More... | |
TGNumberEntry * | fThresEntry |
ADC threshold to display. More... | |
TGNumberEntry * | fDistance |
Distance from line to find hits in cluster. More... | |
TGCheckButton * | fGreyScale |
Display gray or color scale. More... | |
TGCheckButton * | fMCOn |
Display MC truth information. More... | |
TGRadioButton * | fRawDraw |
Draw Raw information only. More... | |
TGRadioButton * | fCalibDraw |
Draw calibrated information only. More... | |
TGRadioButton * | fRawCalibDraw |
Draw raw and calibrated information. More... | |
TGTextButton * | fZoomInterest |
Zoom on iteresting region. More... | |
TGTextButton * | fUnZoomInterest |
Unzoom on iteresting region. More... | |
TGTextButton * | fZoomBack |
Unzoom on iteresting region. More... | |
TGCheckButton * | fToggleAutoZoom |
Toggle the autozoom setting. More... | |
TGRadioButton * | fToggleZoom |
Use zoom setting. More... | |
TGRadioButton * | fToggleClusters |
Use make cluster setting. More... | |
TGTextView * | fAngleInfo |
TGTextButton * | fFindEndpoint |
Calculate XYZ position of two points in wire planes. More... | |
TGTextButton * | fClearPPoints |
Clear current list of End Points. More... | |
TGCheckButton * | fToggleShowMarkers |
Toggle the ShowEndPointMarkersSetting. More... | |
TGTextView * | fXYZPosition |
Display the xyz position. More... | |
TGTextButton * | fCalcAngle |
Calculate the 2D & 3D angles between lines. More... | |
TGTextButton * | fClear |
Clears the selected points in an event. More... | |
TGTextButton * | fRedraw |
Button to force redraw. More... | |
TGNumberEntry * | fCryoInput |
current cryostat More... | |
TGNumberEntry * | fTPCInput |
current TPC More... | |
TGLabel * | fTotalTPCLabel |
total TPCs in the current cryostat More... | |
std::deque< util::PxPoint > | ppoints |
list of points in each WireProjPad used for x,y,z finding More... | |
std::deque< util::PxLine > | pline |
list of lines in each WireProjPad used for calculating 2d and 3d angles, also making seeds (eventually) More... | |
std::vector< util::PxLine > | seedlines |
list of lines in each WireProjPad used for calculating 2d and 3d angles, also making seeds (eventually) More... | |
ZoomOptions | fZoomOpt |
std::vector< ZoomOptions > | fPrevZoomOpt |
bool | isZoomAutomatic |
true if user did not ask for custom zoom More... | |
util::DataProductChangeTracker_t * | fLastEvent |
keeps track of latest event More... | |
Definition at line 55 of file TWQProjectionView.h.
evd::TWQProjectionView::TWQProjectionView | ( | TGMainFrame * | mf | ) |
Definition at line 59 of file TWQProjectionView.cxx.
evd::TWQProjectionView::~TWQProjectionView | ( | ) |
Definition at line 294 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::ChangeWire | ( | int | plane | ) |
Definition at line 567 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::ClearEndPoints | ( | ) |
Definition at line 652 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::ClearSelection | ( | ) |
Definition at line 1001 of file TWQProjectionView.cxx.
|
inline |
Definition at line 64 of file TWQProjectionView.h.
void evd::TWQProjectionView::Draw | ( | const char * | opt = "" | ) |
Definition at line 378 of file TWQProjectionView.cxx.
|
private |
Definition at line 1137 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::DrawPads | ( | const char * | opt = "" | ) |
Definition at line 350 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::FindEndPoint | ( | ) |
Definition at line 805 of file TWQProjectionView.cxx.
double evd::TWQProjectionView::FindLineLength | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp | ||
) |
Definition at line 669 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::ForceRedraw | ( | ) |
Forces a redraw of the window.
Definition at line 1398 of file TWQProjectionView.cxx.
|
static |
Definition at line 535 of file TWQProjectionView.cxx.
bool evd::TWQProjectionView::OnNewEvent | ( | ) |
Returns if a new event is detected; if so, it also resets accordingly.
Definition at line 2030 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::PrintCharge | ( | ) |
Definition at line 508 of file TWQProjectionView.cxx.
|
inline |
Definition at line 69 of file TWQProjectionView.h.
void evd::TWQProjectionView::RadioButtonsDispatch | ( | int | parameter | ) |
Definition at line 1722 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::ResetRegionsOfInterest | ( | ) |
Clear all the regions of interest.
Definition at line 342 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SaveSelection | ( | ) |
Definition at line 928 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SelectHit | ( | int | plane | ) |
Definition at line 1278 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SelectPoint | ( | int | plane | ) |
Definition at line 591 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SelectTPC | ( | ) |
select TPC from GUI
Definition at line 1628 of file TWQProjectionView.cxx.
|
private |
Records whether we are automatically zooming to the region of interest.
Definition at line 369 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetClusterInterest | ( | ) |
Definition at line 1382 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetClusters | ( | int | plane | ) |
Definition at line 1213 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetDistance | ( | ) |
Definition at line 1904 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetGreyscale | ( | ) |
Definition at line 1935 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetMCInfo | ( | ) |
Definition at line 2004 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetMouseZoomRegion | ( | int | plane | ) |
Definition at line 1019 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetPlane | ( | ) |
Definition at line 1883 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetPlaneWire | ( | ) |
Definition at line 1858 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetRawCalib | ( | ) |
Definition at line 1958 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetTestFlag | ( | int | number = 1 | ) |
Definition at line 500 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetThreshold | ( | ) |
Definition at line 1911 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetUpClusterButtons | ( | ) |
< Display the calculated angles
Definition at line 1438 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetUpDrawingButtons | ( | ) |
Definition at line 1506 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetUpPositionFind | ( | ) |
< Display the xyz position
< Toggle the ShowEndPointMarkers Setting
Definition at line 1737 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetUpSideBar | ( | ) |
Definition at line 1354 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetUpTPCselection | ( | ) |
Definition at line 1522 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetUpZoomButtons | ( | ) |
< Toggle the autozoom setting
Definition at line 1410 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetWire | ( | ) |
Definition at line 1892 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetZoom | ( | int | plane, |
int | wirelow, | ||
int | wirehi, | ||
int | timelo, | ||
int | timehi, | ||
bool | StoreZoom = true |
||
) |
Definition at line 1806 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetZoomFromView | ( | ) |
Definition at line 1374 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::SetZoomInterest | ( | ) |
Definition at line 1365 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::ToggleEndPointMarkers | ( | ) |
Definition at line 1390 of file TWQProjectionView.cxx.
|
staticprivate |
Returns a string visualizing the total number of elements.
Definition at line 1516 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::ZoomBack | ( | ) |
Definition at line 1773 of file TWQProjectionView.cxx.
void evd::TWQProjectionView::ZoomInterest | ( | bool | flag = true | ) |
Definition at line 1308 of file TWQProjectionView.cxx.
|
private |
Definition at line 166 of file TWQProjectionView.h.
|
private |
Calculate the 2D & 3D angles between lines.
Definition at line 173 of file TWQProjectionView.h.
|
private |
Draw calibrated information only.
Definition at line 157 of file TWQProjectionView.h.
|
private |
Clears the selected points in an event.
Definition at line 174 of file TWQProjectionView.h.
|
private |
Clear current list of End Points.
Definition at line 169 of file TWQProjectionView.h.
|
private |
current cryostat
Definition at line 178 of file TWQProjectionView.h.
|
private |
Distance from line to find hits in cluster.
Definition at line 153 of file TWQProjectionView.h.
|
private |
Definition at line 146 of file TWQProjectionView.h.
|
private |
Calculate XYZ position of two points in wire planes.
Definition at line 168 of file TWQProjectionView.h.
|
private |
Display gray or color scale.
Definition at line 154 of file TWQProjectionView.h.
|
private |
Show header information.
Definition at line 135 of file TWQProjectionView.h.
|
private |
keeps track of latest event
Definition at line 197 of file TWQProjectionView.h.
|
private |
Kludge to prevent double drawing when changing threshold.
Definition at line 141 of file TWQProjectionView.h.
|
private |
Short summary of MC event.
Definition at line 137 of file TWQProjectionView.h.
|
private |
Display MC truth information.
Definition at line 155 of file TWQProjectionView.h.
|
private |
needed for the side frame
Definition at line 143 of file TWQProjectionView.h.
|
private |
Plane number displayed.
Definition at line 151 of file TWQProjectionView.h.
|
private |
Definition at line 147 of file TWQProjectionView.h.
|
private |
charge on each plane
Definition at line 138 of file TWQProjectionView.h.
|
private |
time vs wire projection for each plane
Definition at line 139 of file TWQProjectionView.h.
|
private |
Definition at line 193 of file TWQProjectionView.h.
|
private |
Draw raw and calibrated information.
Definition at line 158 of file TWQProjectionView.h.
|
private |
Draw Raw information only.
Definition at line 156 of file TWQProjectionView.h.
|
private |
Button to force redraw.
Definition at line 176 of file TWQProjectionView.h.
|
private |
ADC threshold to display.
Definition at line 152 of file TWQProjectionView.h.
|
private |
Definition at line 148 of file TWQProjectionView.h.
|
private |
Toggle the autozoom setting.
Definition at line 163 of file TWQProjectionView.h.
|
private |
Use make cluster setting.
Definition at line 165 of file TWQProjectionView.h.
|
private |
Toggle the ShowEndPointMarkersSetting.
Definition at line 170 of file TWQProjectionView.h.
|
private |
Use zoom setting.
Definition at line 164 of file TWQProjectionView.h.
|
private |
total TPCs in the current cryostat
Definition at line 180 of file TWQProjectionView.h.
|
private |
current TPC
Definition at line 179 of file TWQProjectionView.h.
|
private |
Unzoom on iteresting region.
Definition at line 161 of file TWQProjectionView.h.
|
protected |
needed for the side frame
Definition at line 132 of file TWQProjectionView.h.
|
private |
Wire number displayed.
Definition at line 150 of file TWQProjectionView.h.
|
private |
Definition at line 145 of file TWQProjectionView.h.
|
private |
Histogram of charge vs time on selected wire.
Definition at line 136 of file TWQProjectionView.h.
|
private |
Display the xyz position.
Definition at line 171 of file TWQProjectionView.h.
|
private |
Unzoom on iteresting region.
Definition at line 162 of file TWQProjectionView.h.
|
private |
Zoom on iteresting region.
Definition at line 160 of file TWQProjectionView.h.
|
private |
Definition at line 192 of file TWQProjectionView.h.
|
private |
true if user did not ask for custom zoom
Definition at line 195 of file TWQProjectionView.h.
|
private |
list of lines in each WireProjPad used for calculating 2d and 3d angles, also making seeds (eventually)
Definition at line 187 of file TWQProjectionView.h.
|
private |
list of points in each WireProjPad used for x,y,z finding
Definition at line 185 of file TWQProjectionView.h.
|
private |
list of lines in each WireProjPad used for calculating 2d and 3d angles, also making seeds (eventually)
Definition at line 190 of file TWQProjectionView.h.