LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#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) |
virtual void | Print (const char *f) |
void | Connect () |
Make signal/slot connections. More... | |
Static Public Member Functions | |
static void | MouseDispatch (int plane, void *wqpv) |
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 * | fVFrame |
needed for the side frame More... | |
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 | |
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.
References evd::HeaderPad::Draw(), evd::MCBriefPad::Draw(), evd::TQPad::Draw(), fAngleInfo, fCalibDraw, evdb::Canvas::fCanvas, evd::RawDrawingOptions::fDrawRawDataOrCalibWires, evdb::Canvas::fEmbCanvas, evd::EvdLayoutOptions::fEnableMCTruthCheckBox, evdb::Canvas::fFrame, fGreyScale, fHeaderPad, fLastThreshold, evdb::Canvas::fLayout, fMC, fMCOn, fMetaFrame, evd::RawDrawingOptions::fMinSignal, fPlaneEntry, fPlaneLabel, fPlaneQ, fPlanes, fRawCalibDraw, fRawDraw, evd::EvdLayoutOptions::fShowEndPointSection, evd::SimulationDrawingOptions::fShowMCTruthText, evd::EvdLayoutOptions::fShowSideBar, fThresEntry, fThresLabel, fVFrame, fWireEntry, fWireLabel, fWireQ, evdb::Canvas::fXsize, fXYZPosition, evdb::Canvas::fYsize, isZoomAutomatic, geo::GeometryCore::Iterate(), geo::GeometryCore::Nplanes(), geo::GeometryCore::Nwires(), evd::DrawingPad::Pad(), pline, ppoints, SetAutomaticZoomMode(), evd::TQPad::SetPlaneWire(), and SetUpSideBar().
evd::TWQProjectionView::~TWQProjectionView | ( | ) |
Definition at line 296 of file TWQProjectionView.cxx.
References fHeaderPad, fLastEvent, fMC, fPlaneEntry, fPlaneLabel, fPlaneQ, fPlanes, fWireEntry, fWireLabel, and fWireQ.
|
staticinherited |
Definition at line 29 of file Printable.cxx.
Referenced by evdb::Canvas::Connect(), evdb::ObjListCanvas::Connect(), evdb::Printable::Description(), and evdb::testCanvas1::testCanvas1().
void evd::TWQProjectionView::ChangeWire | ( | int | plane | ) |
Definition at line 561 of file TWQProjectionView.cxx.
References SetPlaneWire(), x, and xx.
Referenced by MouseDispatch().
void evd::TWQProjectionView::ClearEndPoints | ( | ) |
Definition at line 644 of file TWQProjectionView.cxx.
References fPlanes, ppoints, and x.
void evd::TWQProjectionView::ClearSelection | ( | ) |
Definition at line 988 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fMakeClusters, fPlanes, pline, and ppoints.
|
inherited |
Make signal/slot connections.
Definition at line 68 of file Canvas.cxx.
References evdb::Printable::AddToListOfPrintables(), and evdb::Canvas::Description().
Referenced by evd::CalorView::CalorView(), evdb::Canvas::Description(), evd::Display3DView::Display3DView(), and evdb::DisplayWindow::DisplayWindow().
|
inlinevirtual |
Reimplemented from evdb::Canvas.
Definition at line 63 of file TWQProjectionView.h.
|
virtual |
Implements evdb::Canvas.
Definition at line 376 of file TWQProjectionView.cxx.
References evd::HeaderPad::Draw(), evd::MCBriefPad::Draw(), evd::TQPad::Draw(), evd::TWireProjPad::Draw(), fAngleInfo, evdb::Canvas::fCanvas, fHeaderPad, fMC, fPlaneQ, fPlanes, fPrevZoomOpt, evd::EvdLayoutOptions::fPrintTotalCharge, fWireQ, fXYZPosition, fZoomOpt, evd::TWireProjPad::GetCurrentZoom(), MF_LOG_DEBUG, OnNewEvent(), evd::DrawingPad::Pad(), pline, ppoints, PrintCharge(), evd::ZoomOptions::tmax, evd::ZoomOptions::tmin, evd::ZoomOptions::wmax, and evd::ZoomOptions::wmin.
|
private |
Definition at line 1122 of file TWQProjectionView.cxx.
References t1.
Referenced by SetClusters().
void evd::TWQProjectionView::DrawPads | ( | const char * | opt = "" | ) |
Definition at line 350 of file TWQProjectionView.cxx.
References fPlaneQ, fPlanes, and OnNewEvent().
Referenced by ForceRedraw(), SelectTPC(), SetGreyscale(), SetRawCalib(), and SetThreshold().
void evd::TWQProjectionView::FindEndPoint | ( | ) |
Definition at line 794 of file TWQProjectionView.cxx.
References util::abs(), evd::RawDrawingOptions::fCryostat, fPlanes, evd::EvdLayoutOptions::fShowEndPointMarkers, evd::RawDrawingOptions::fTPC, fXYZPosition, evdb::EventHolder::GetEvent(), evdb::EventHolder::Instance(), geo::GeometryCore::NearestWireID(), geo::origin(), geo::GeometryCore::Plane(), ppoints, geo::PlaneGeo::toWorldCoords(), geo::WireID::Wire, geo::GeometryCore::WireIDsIntersect(), xx, y, geo::WireIDIntersection::y, z, and geo::WireIDIntersection::z.
double evd::TWQProjectionView::FindLineLength | ( | detinfo::DetectorClocksData const & | clockData, |
detinfo::DetectorPropertiesData const & | detProp | ||
) |
Definition at line 660 of file TWQProjectionView.cxx.
References util::abs(), detinfo::DetectorPropertiesData::DriftVelocity(), detinfo::DetectorPropertiesData::Efield(), evd::RawDrawingOptions::fCryostat, evd::RawDrawingOptions::fTPC, fXYZPosition, geo::PlaneGeo::GetBoxCenter(), geo::GeometryCore::Plane(), pline, detinfo::sampling_rate(), t1, detinfo::DetectorPropertiesData::Temperature(), detinfo::trigger_offset(), geo::WireID::Wire, geo::GeometryCore::WireIDsIntersect(), y, geo::WireIDIntersection::y, z, and geo::WireIDIntersection::z.
Referenced by SaveSelection().
void evd::TWQProjectionView::ForceRedraw | ( | ) |
Forces a redraw of the window.
Definition at line 1375 of file TWQProjectionView.cxx.
References DrawPads(), MF_LOG_DEBUG, and SetZoomFromView().
|
staticinherited |
Definition at line 61 of file Printable.cxx.
References evdb::gsPrintables.
Referenced by evdb::Printable::Description(), evdb::EventDisplay::postProcessEvent(), and evdb::PrintDialog::PrintDialog().
|
static |
Definition at line 530 of file TWQProjectionView.cxx.
References ChangeWire(), evd::EvdLayoutOptions::fChangeWire, evd::EvdLayoutOptions::fMakeClusters, SelectHit(), SelectPoint(), SetClusters(), and SetMouseZoomRegion().
bool evd::TWQProjectionView::OnNewEvent | ( | ) |
Returns if a new event is detected; if so, it also resets accordingly.
Definition at line 1989 of file TWQProjectionView.cxx.
References util::DataProductChangeTracker_t::clear(), evd::EvdLayoutOptions::fAutoZoomInterest, fLastEvent, evdb::EventHolder::GetEvent(), evdb::EventHolder::Instance(), util::DataProductChangeTracker_t::isValid(), MF_LOG_DEBUG, SetAutomaticZoomMode(), and util::DataProductChangeTracker_t::update().
Referenced by Draw(), and DrawPads().
|
virtualinherited |
Implements evdb::Printable.
Definition at line 88 of file Canvas.cxx.
References evdb::Canvas::fCanvas.
Referenced by evdb::Canvas::Description().
void evd::TWQProjectionView::PrintCharge | ( | ) |
Definition at line 504 of file TWQProjectionView.cxx.
References evd::RawDrawingOptions::CurrentTPC(), evd::RawDrawingOptions::fDrawRawDataOrCalibWires, fPlanes, geo::kCollection, and geo::GeometryCore::SignalType().
Referenced by Draw().
|
inlinevirtual |
Reimplemented from evdb::Canvas.
Definition at line 64 of file TWQProjectionView.h.
References Draw().
void evd::TWQProjectionView::RadioButtonsDispatch | ( | int | parameter | ) |
Definition at line 1692 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fMakeClusters, fToggleClusters, and fToggleZoom.
|
staticinherited |
Definition at line 47 of file Printable.cxx.
Referenced by evdb::Printable::Description(), evdb::Printable::~Printable(), and evdb::testCanvas1::~testCanvas1().
void evd::TWQProjectionView::ResetRegionsOfInterest | ( | ) |
Clear all the regions of interest.
Definition at line 343 of file TWQProjectionView.cxx.
References fPlanes.
Referenced by SelectTPC().
void evd::TWQProjectionView::SaveSelection | ( | ) |
Definition at line 915 of file TWQProjectionView.cxx.
References fAngleInfo, FindLineLength(), evd::EvdLayoutOptions::fMakeClusters, fPlanes, evdb::EventHolder::GetEvent(), evdb::EventHolder::Instance(), util::PxPoint::plane, pline, util::PxPoint::t, t1, and util::PxPoint::w.
void evd::TWQProjectionView::SelectHit | ( | int | plane | ) |
Definition at line 1261 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fMakeClusters, fPlanes, evd::RecoDrawingOptions::fUseHitSelector, x, and y.
Referenced by MouseDispatch().
void evd::TWQProjectionView::SelectPoint | ( | int | plane | ) |
Definition at line 584 of file TWQProjectionView.cxx.
References fPlanes, evd::EvdLayoutOptions::fShowEndPointMarkers, evd::EvdLayoutOptions::fShowEndPointSection, util::PxPoint::plane, ppoints, util::PxPoint::t, util::PxPoint::w, x, and y.
Referenced by MouseDispatch().
void evd::TWQProjectionView::SelectTPC | ( | ) |
select TPC from GUI
Definition at line 1599 of file TWQProjectionView.cxx.
References DrawPads(), fCryoInput, evd::RawDrawingOptions::fCryostat, fTotalTPCLabel, evd::RawDrawingOptions::fTPC, fTPCInput, geo::GeometryCore::HasTPC(), MF_LOG_DEBUG, MF_LOG_ERROR, geo::GeometryCore::Ncryostats(), geo::GeometryCore::NTPC(), ResetRegionsOfInterest(), and TotalElementsString().
|
private |
Records whether we are automatically zooming to the region of interest.
Definition at line 368 of file TWQProjectionView.cxx.
References fPlanes, and isZoomAutomatic.
Referenced by OnNewEvent(), SetMouseZoomRegion(), SetZoomInterest(), and TWQProjectionView().
void evd::TWQProjectionView::SetClusterInterest | ( | ) |
Definition at line 1361 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fMakeClusters, and fToggleClusters.
void evd::TWQProjectionView::SetClusters | ( | int | plane | ) |
Definition at line 1197 of file TWQProjectionView.cxx.
References DrawLine(), fPlanes, evd::Style::FromPDG(), util::PxLine::plane, pline, util::size(), and t1.
Referenced by MouseDispatch().
void evd::TWQProjectionView::SetDistance | ( | ) |
Definition at line 1868 of file TWQProjectionView.cxx.
References fDistance.
void evd::TWQProjectionView::SetGreyscale | ( | ) |
Definition at line 1897 of file TWQProjectionView.cxx.
References DrawPads(), evdb::Canvas::fCanvas, and evd::ColorDrawingOptions::fColorOrGray.
void evd::TWQProjectionView::SetMCInfo | ( | ) |
Definition at line 1964 of file TWQProjectionView.cxx.
References evd::MCBriefPad::Draw(), evdb::Canvas::fCanvas, fMC, evd::SimulationDrawingOptions::fShowMCTruthText, and evd::SimulationDrawingOptions::fShowMCTruthVectors.
void evd::TWQProjectionView::SetMouseZoomRegion | ( | int | plane | ) |
Definition at line 1005 of file TWQProjectionView.cxx.
References util::abs(), SetAutomaticZoomMode(), SetZoom(), t1, and x.
Referenced by MouseDispatch().
void evd::TWQProjectionView::SetPlane | ( | ) |
Definition at line 1848 of file TWQProjectionView.cxx.
References fPlaneEntry, and SetPlaneWire().
void evd::TWQProjectionView::SetPlaneWire | ( | ) |
Definition at line 1824 of file TWQProjectionView.cxx.
References evd::TQPad::Draw(), evdb::Canvas::fCanvas, fPlaneEntry, fWireEntry, fWireQ, evd::DrawingPad::Pad(), and evd::TQPad::SetPlaneWire().
Referenced by ChangeWire(), SetPlane(), and SetWire().
void evd::TWQProjectionView::SetRawCalib | ( | ) |
Definition at line 1919 of file TWQProjectionView.cxx.
References evd::TQPad::Draw(), DrawPads(), fCalibDraw, evdb::Canvas::fCanvas, evd::RawDrawingOptions::fDrawRawDataOrCalibWires, fRawCalibDraw, fRawDraw, fWireQ, and evd::DrawingPad::Pad().
void evd::TWQProjectionView::SetTestFlag | ( | int | number = 1 | ) |
Definition at line 497 of file TWQProjectionView.cxx.
References evd::InfoTransfer::SetTestFlag().
void evd::TWQProjectionView::SetThreshold | ( | ) |
Definition at line 1874 of file TWQProjectionView.cxx.
References DrawPads(), evdb::Canvas::fCanvas, fLastThreshold, evd::RawDrawingOptions::fMinSignal, and fThresEntry.
void evd::TWQProjectionView::SetUpClusterButtons | ( | ) |
< Display the calculated angles
Definition at line 1413 of file TWQProjectionView.cxx.
References fAngleInfo, fCalcAngle, fClear, fDistance, fDistanceLabel, evd::EvdLayoutOptions::fMakeClusters, evd::EvdLayoutOptions::fShowClusterSection, fToggleClusters, fToggleZoom, and fVFrame.
Referenced by SetUpSideBar().
void evd::TWQProjectionView::SetUpDrawingButtons | ( | ) |
Definition at line 1480 of file TWQProjectionView.cxx.
References fRedraw, and fVFrame.
Referenced by SetUpSideBar().
void evd::TWQProjectionView::SetUpPositionFind | ( | ) |
< Display the xyz position
< Toggle the ShowEndPointMarkers Setting
Definition at line 1706 of file TWQProjectionView.cxx.
References fClearPPoints, fFindEndpoint, evd::EvdLayoutOptions::fShowEndPointMarkers, evd::EvdLayoutOptions::fShowEndPointSection, fToggleShowMarkers, fVFrame, and fXYZPosition.
Referenced by SetUpSideBar().
void evd::TWQProjectionView::SetUpSideBar | ( | ) |
Definition at line 1336 of file TWQProjectionView.cxx.
References SetUpClusterButtons(), SetUpDrawingButtons(), SetUpPositionFind(), SetUpTPCselection(), and SetUpZoomButtons().
Referenced by TWQProjectionView().
void evd::TWQProjectionView::SetUpTPCselection | ( | ) |
Definition at line 1494 of file TWQProjectionView.cxx.
References fCryoInput, evd::RawDrawingOptions::fCryostat, fTotalTPCLabel, evd::RawDrawingOptions::fTPC, fTPCInput, fVFrame, geo::GeometryCore::MaxTPCs(), geo::GeometryCore::Ncryostats(), geo::GeometryCore::NTPC(), util::to_string(), and TotalElementsString().
Referenced by SetUpSideBar().
void evd::TWQProjectionView::SetUpZoomButtons | ( | ) |
< Toggle the autozoom setting
Definition at line 1386 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fAutoZoomInterest, fToggleAutoZoom, fUnZoomInterest, fVFrame, fZoomBack, and fZoomInterest.
Referenced by SetUpSideBar().
void evd::TWQProjectionView::SetWire | ( | ) |
Definition at line 1856 of file TWQProjectionView.cxx.
References fWireEntry, geo::GeometryCore::Nwires(), and SetPlaneWire().
void evd::TWQProjectionView::SetZoom | ( | int | plane, |
int | wirelow, | ||
int | wirehi, | ||
int | timelo, | ||
int | timehi, | ||
bool | StoreZoom = true |
||
) |
Definition at line 1773 of file TWQProjectionView.cxx.
References evdb::Canvas::fCanvas, fPlanes, fPrevZoomOpt, fZoomOpt, evd::ZoomOptions::OnlyPlaneChanged, evd::ZoomOptions::tmax, evd::ZoomOptions::tmin, evd::ZoomOptions::wmax, and evd::ZoomOptions::wmin.
Referenced by SetMouseZoomRegion(), ZoomBack(), and ZoomInterest().
void evd::TWQProjectionView::SetZoomFromView | ( | ) |
Definition at line 1354 of file TWQProjectionView.cxx.
References fPlanes.
Referenced by ForceRedraw().
void evd::TWQProjectionView::SetZoomInterest | ( | ) |
Definition at line 1346 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fAutoZoomInterest, fToggleAutoZoom, and SetAutomaticZoomMode().
void evd::TWQProjectionView::ToggleEndPointMarkers | ( | ) |
Definition at line 1368 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fShowEndPointMarkers, and fToggleShowMarkers.
|
staticprivate |
Returns a string visualizing the total number of elements.
Definition at line 1489 of file TWQProjectionView.cxx.
References util::to_string().
Referenced by SelectTPC(), and SetUpTPCselection().
void evd::TWQProjectionView::ZoomBack | ( | ) |
Definition at line 1741 of file TWQProjectionView.cxx.
References fPlanes, fPrevZoomOpt, fZoomOpt, evd::ZoomOptions::OnlyPlaneChanged, SetZoom(), evd::ZoomOptions::tmax, evd::ZoomOptions::tmin, evd::ZoomOptions::wmax, and evd::ZoomOptions::wmin.
void evd::TWQProjectionView::ZoomInterest | ( | bool | flag = true | ) |
Definition at line 1290 of file TWQProjectionView.cxx.
References evd::RawDrawingOptions::fDrawRawDataOrCalibWires, fPlanes, fPrevZoomOpt, fZoomOpt, geo::GeometryCore::Nwires(), evd::ZoomOptions::OnlyPlaneChanged, SetZoom(), evd::ZoomOptions::tmax, evd::ZoomOptions::tmin, evd::ZoomOptions::wmax, and evd::ZoomOptions::wmin.
|
private |
Definition at line 158 of file TWQProjectionView.h.
Referenced by Draw(), SaveSelection(), SetUpClusterButtons(), and TWQProjectionView().
|
protectedinherited |
|
private |
Calculate the 2D & 3D angles between lines.
Definition at line 165 of file TWQProjectionView.h.
Referenced by SetUpClusterButtons().
|
private |
Draw calibrated information only.
Definition at line 149 of file TWQProjectionView.h.
Referenced by SetRawCalib(), and TWQProjectionView().
|
protectedinherited |
The ROOT drawing canvas.
Definition at line 42 of file Canvas.h.
Referenced by evd::CalorView::CalorView(), evdb::Canvas::Canvas(), evd::Display3DView::Display3DView(), evd::Display3DView::Draw(), evd::CalorView::Draw(), evdb::testCanvas1::Draw(), Draw(), evd::TWQMultiTPCProjectionView::Draw(), evd::Ortho3DView::Ortho3DView(), evdb::Canvas::Print(), SetGreyscale(), evd::TWQMultiTPCProjectionView::SetGreyscale(), SetMCInfo(), evd::TWQMultiTPCProjectionView::SetMCInfo(), SetPlaneWire(), evd::TWQMultiTPCProjectionView::SetPlaneWire(), SetRawCalib(), evd::TWQMultiTPCProjectionView::SetRawCalib(), SetThreshold(), evd::TWQMultiTPCProjectionView::SetThreshold(), evd::TWQMultiTPCProjectionView::SetZoom(), SetZoom(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), and TWQProjectionView().
|
private |
Clears the selected points in an event.
Definition at line 166 of file TWQProjectionView.h.
Referenced by SetUpClusterButtons().
|
private |
Clear current list of End Points.
Definition at line 161 of file TWQProjectionView.h.
Referenced by SetUpPositionFind().
|
private |
current cryostat
Definition at line 170 of file TWQProjectionView.h.
Referenced by SelectTPC(), and SetUpTPCselection().
|
private |
Distance from line to find hits in cluster.
Definition at line 145 of file TWQProjectionView.h.
Referenced by SetDistance(), and SetUpClusterButtons().
|
private |
Definition at line 138 of file TWQProjectionView.h.
Referenced by SetUpClusterButtons().
|
protectedinherited |
Embedded canvas.
Definition at line 41 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), evd::Ortho3DView::Ortho3DView(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), TWQProjectionView(), and evdb::Canvas::~Canvas().
|
private |
Calculate XYZ position of two points in wire planes.
Definition at line 160 of file TWQProjectionView.h.
Referenced by SetUpPositionFind().
|
protectedinherited |
Graphics frame.
Definition at line 39 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), evd::Ortho3DView::Ortho3DView(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), TWQProjectionView(), and evdb::Canvas::~Canvas().
|
private |
Display gray or color scale.
Definition at line 146 of file TWQProjectionView.h.
Referenced by TWQProjectionView().
|
private |
Show header information.
Definition at line 127 of file TWQProjectionView.h.
Referenced by Draw(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
keeps track of latest event
Definition at line 189 of file TWQProjectionView.h.
Referenced by OnNewEvent(), and ~TWQProjectionView().
|
private |
Kludge to prevent double drawing when changing threshold.
Definition at line 133 of file TWQProjectionView.h.
Referenced by SetThreshold(), and TWQProjectionView().
|
protectedinherited |
Layout hints for frame.
Definition at line 40 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), evd::Ortho3DView::Ortho3DView(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), TWQProjectionView(), and evdb::Canvas::~Canvas().
|
private |
Short summary of MC event.
Definition at line 129 of file TWQProjectionView.h.
Referenced by Draw(), SetMCInfo(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
Display MC truth information.
Definition at line 147 of file TWQProjectionView.h.
Referenced by TWQProjectionView().
|
private |
needed for the side frame
Definition at line 135 of file TWQProjectionView.h.
Referenced by TWQProjectionView().
|
private |
Plane number displayed.
Definition at line 143 of file TWQProjectionView.h.
Referenced by SetPlane(), SetPlaneWire(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
Definition at line 139 of file TWQProjectionView.h.
Referenced by TWQProjectionView(), and ~TWQProjectionView().
|
private |
charge on each plane
Definition at line 130 of file TWQProjectionView.h.
Referenced by Draw(), DrawPads(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
time vs wire projection for each plane
Definition at line 131 of file TWQProjectionView.h.
Referenced by ClearEndPoints(), ClearSelection(), Draw(), DrawPads(), FindEndPoint(), PrintCharge(), ResetRegionsOfInterest(), SaveSelection(), SelectHit(), SelectPoint(), SetAutomaticZoomMode(), SetClusters(), SetZoom(), SetZoomFromView(), TWQProjectionView(), ZoomBack(), ZoomInterest(), and ~TWQProjectionView().
|
private |
Definition at line 185 of file TWQProjectionView.h.
Referenced by Draw(), SetZoom(), ZoomBack(), and ZoomInterest().
|
private |
Draw raw and calibrated information.
Definition at line 150 of file TWQProjectionView.h.
Referenced by SetRawCalib(), and TWQProjectionView().
|
private |
Draw Raw information only.
Definition at line 148 of file TWQProjectionView.h.
Referenced by SetRawCalib(), and TWQProjectionView().
|
private |
Button to force redraw.
Definition at line 168 of file TWQProjectionView.h.
Referenced by SetUpDrawingButtons().
|
private |
ADC threshold to display.
Definition at line 144 of file TWQProjectionView.h.
Referenced by SetThreshold(), and TWQProjectionView().
|
private |
Definition at line 140 of file TWQProjectionView.h.
Referenced by TWQProjectionView().
|
private |
Toggle the autozoom setting.
Definition at line 155 of file TWQProjectionView.h.
Referenced by SetUpZoomButtons(), and SetZoomInterest().
|
private |
Use make cluster setting.
Definition at line 157 of file TWQProjectionView.h.
Referenced by RadioButtonsDispatch(), SetClusterInterest(), and SetUpClusterButtons().
|
private |
Toggle the ShowEndPointMarkersSetting.
Definition at line 162 of file TWQProjectionView.h.
Referenced by SetUpPositionFind(), and ToggleEndPointMarkers().
|
private |
Use zoom setting.
Definition at line 156 of file TWQProjectionView.h.
Referenced by RadioButtonsDispatch(), and SetUpClusterButtons().
|
private |
total TPCs in the current cryostat
Definition at line 172 of file TWQProjectionView.h.
Referenced by SelectTPC(), and SetUpTPCselection().
|
private |
current TPC
Definition at line 171 of file TWQProjectionView.h.
Referenced by SelectTPC(), and SetUpTPCselection().
|
private |
Unzoom on iteresting region.
Definition at line 153 of file TWQProjectionView.h.
Referenced by SetUpZoomButtons().
|
protected |
needed for the side frame
Definition at line 124 of file TWQProjectionView.h.
Referenced by SetUpClusterButtons(), SetUpDrawingButtons(), SetUpPositionFind(), SetUpTPCselection(), SetUpZoomButtons(), and TWQProjectionView().
|
private |
Wire number displayed.
Definition at line 142 of file TWQProjectionView.h.
Referenced by SetPlaneWire(), SetWire(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
Definition at line 137 of file TWQProjectionView.h.
Referenced by TWQProjectionView(), and ~TWQProjectionView().
|
private |
Histogram of charge vs time on selected wire.
Definition at line 128 of file TWQProjectionView.h.
Referenced by Draw(), SetPlaneWire(), SetRawCalib(), TWQProjectionView(), and ~TWQProjectionView().
|
protectedinherited |
Size of the canvas;.
Definition at line 44 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), and TWQProjectionView().
|
private |
Display the xyz position.
Definition at line 163 of file TWQProjectionView.h.
Referenced by Draw(), FindEndPoint(), FindLineLength(), SetUpPositionFind(), and TWQProjectionView().
|
protectedinherited |
Size of the canvas;.
Definition at line 45 of file Canvas.h.
Referenced by evdb::Canvas::Canvas(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), and TWQProjectionView().
|
private |
Unzoom on iteresting region.
Definition at line 154 of file TWQProjectionView.h.
Referenced by SetUpZoomButtons().
|
private |
Zoom on iteresting region.
Definition at line 152 of file TWQProjectionView.h.
Referenced by SetUpZoomButtons().
|
private |
Definition at line 184 of file TWQProjectionView.h.
Referenced by Draw(), SetZoom(), ZoomBack(), and ZoomInterest().
|
private |
true if user did not ask for custom zoom
Definition at line 187 of file TWQProjectionView.h.
Referenced by SetAutomaticZoomMode(), and TWQProjectionView().
|
private |
list of lines in each WireProjPad used for calculating 2d and 3d angles, also making seeds (eventually)
Definition at line 179 of file TWQProjectionView.h.
Referenced by ClearSelection(), Draw(), FindLineLength(), SaveSelection(), SetClusters(), and TWQProjectionView().
|
private |
list of points in each WireProjPad used for x,y,z finding
Definition at line 177 of file TWQProjectionView.h.
Referenced by ClearEndPoints(), ClearSelection(), Draw(), FindEndPoint(), SelectPoint(), and TWQProjectionView().
|
private |
list of lines in each WireProjPad used for calculating 2d and 3d angles, also making seeds (eventually)
Definition at line 182 of file TWQProjectionView.h.