LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 | SetSeedInterest () |
void | ClearLastSeed () |
void | ClearAllSeeds () |
void | SetSeeds (int plane) |
void | RefitSeeds () |
void | SetClusters (int plane) |
void | SetZoomInterest () |
void | SetZoomFromView () |
void | PrintCharge () |
void | DrawPads (const char *opt="") |
void | FindEndPoint () |
double | FindLineLength () |
void | ClearEndPoints () |
void | ToggleEndPointMarkers () |
void | RadioButtonsDispatch (int parameter) |
void | SaveSelection () |
void | ClearSelection () |
double | UpdateSeedCurve () |
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... | |
TGRadioButton * | fToggleSeeds |
Use the make seed 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 * | fClearLastSeed |
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 58 of file TWQProjectionView.h.
evd::TWQProjectionView::TWQProjectionView | ( | TGMainFrame * | mf | ) |
Definition at line 63 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, fThresEntry, fThresLabel, fVFrame, fWireEntry, fWireLabel, fWireQ, evdb::Canvas::fXsize, fXYZPosition, evdb::Canvas::fYsize, isZoomAutomatic, geo::GeometryCore::Nplanes(), geo::GeometryCore::Nwires(), evd::DrawingPad::Pad(), pline, ppoints, seedlines, SetAutomaticZoomMode(), evd::TQPad::SetPlaneWire(), and SetUpSideBar().
evd::TWQProjectionView::~TWQProjectionView | ( | ) |
Definition at line 288 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.
References s.
Referenced by evdb::Canvas::Connect(), evdb::ObjListCanvas::Connect(), evdb::Printable::Description(), and evdb::testCanvas1::testCanvas1().
void evd::TWQProjectionView::ChangeWire | ( | int | plane | ) |
Definition at line 536 of file TWQProjectionView.cxx.
References SetPlaneWire(), x, and xx.
Referenced by MouseDispatch().
void evd::TWQProjectionView::ClearAllSeeds | ( | ) |
Definition at line 1041 of file TWQProjectionView.cxx.
References fPlanes, evd::RecoDrawingOptions::fUseHitSelector, and seedlines.
Referenced by ClearSelection(), and Draw().
void evd::TWQProjectionView::ClearEndPoints | ( | ) |
Definition at line 624 of file TWQProjectionView.cxx.
References fPlanes, ppoints, and x.
void evd::TWQProjectionView::ClearLastSeed | ( | ) |
Definition at line 1065 of file TWQProjectionView.cxx.
References fPlanes, evd::RecoDrawingOptions::fUseHitSelector, and seedlines.
Referenced by DrawLine().
void evd::TWQProjectionView::ClearSelection | ( | ) |
Definition at line 1021 of file TWQProjectionView.cxx.
References ClearAllSeeds(), evd::EvdLayoutOptions::fMakeClusters, evd::EvdLayoutOptions::fMakeSeeds, 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 68 of file TWQProjectionView.h.
|
virtual |
Implements evdb::Canvas.
Definition at line 341 of file TWQProjectionView.cxx.
References ClearAllSeeds(), evd::MCBriefPad::Draw(), evd::HeaderPad::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(), LOG_DEBUG, OnNewEvent(), evd::DrawingPad::Pad(), pline, ppoints, PrintCharge(), seedlines, evd::ZoomOptions::tmax, evd::ZoomOptions::tmin, evd::ZoomOptions::wmax, and evd::ZoomOptions::wmin.
|
private |
Definition at line 1221 of file TWQProjectionView.cxx.
References ClearLastSeed(), detinfo::DetectorProperties::ConvertTicksToX(), detinfo::DetectorProperties::ConvertXToTicks(), evd::EvdLayoutOptions::fMakeSeeds, seedlines, and t1.
Referenced by SetClusters(), and SetSeeds().
void evd::TWQProjectionView::DrawPads | ( | const char * | opt = "" | ) |
Definition at line 314 of file TWQProjectionView.cxx.
References fPlaneQ, fPlanes, and OnNewEvent().
Referenced by ForceRedraw(), SelectTPC(), SetGreyscale(), SetRawCalib(), and SetThreshold().
void evd::TWQProjectionView::FindEndPoint | ( | ) |
Definition at line 786 of file TWQProjectionView.cxx.
References detinfo::DetectorProperties::ConvertTicksToX(), detinfo::DetectorProperties::ConvertXToTicks(), fPlanes, evd::EvdLayoutOptions::fShowEndPointMarkers, fXYZPosition, geo::PlaneGeo::LocalToWorld(), geo::GeometryCore::NearestWire(), geo::origin(), geo::GeometryCore::Plane(), ppoints, geo::GeometryCore::WireIDsIntersect(), xx, y, geo::WireIDIntersection::y, z, and geo::WireIDIntersection::z.
double evd::TWQProjectionView::FindLineLength | ( | ) |
Definition at line 642 of file TWQProjectionView.cxx.
References detinfo::DetectorProperties::DriftVelocity(), detinfo::DetectorProperties::Efield(), fXYZPosition, geo::PlaneGeo::LocalToWorld(), geo::origin(), geo::GeometryCore::Plane(), pline, detinfo::DetectorProperties::SamplingRate(), t1, detinfo::DetectorProperties::Temperature(), detinfo::DetectorProperties::TriggerOffset(), 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 1780 of file TWQProjectionView.cxx.
References DrawPads(), 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 507 of file TWQProjectionView.cxx.
References ChangeWire(), evd::EvdLayoutOptions::fMakeClusters, evd::EvdLayoutOptions::fMakeSeeds, SelectHit(), SelectPoint(), SetClusters(), SetMouseZoomRegion(), and SetSeeds().
bool evd::TWQProjectionView::OnNewEvent | ( | ) |
Returns if a new event is detected; if so, it also resets accordingly.
Definition at line 2451 of file TWQProjectionView.cxx.
References util::DataProductChangeTracker_t::clear(), evd::EvdLayoutOptions::fAutoZoomInterest, fLastEvent, evdb::EventHolder::GetEvent(), evdb::EventHolder::Instance(), util::DataProductChangeTracker_t::isValid(), 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 479 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 69 of file TWQProjectionView.h.
References Draw().
void evd::TWQProjectionView::RadioButtonsDispatch | ( | int | parameter | ) |
Definition at line 2114 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fMakeClusters, evd::EvdLayoutOptions::fMakeSeeds, fToggleClusters, fToggleSeeds, and fToggleZoom.
void evd::TWQProjectionView::RefitSeeds | ( | ) |
Definition at line 921 of file TWQProjectionView.cxx.
|
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 308 of file TWQProjectionView.cxx.
References fPlanes.
Referenced by SelectTPC().
void evd::TWQProjectionView::SaveSelection | ( | ) |
Definition at line 928 of file TWQProjectionView.cxx.
References fAngleInfo, FindLineLength(), evd::EvdLayoutOptions::fMakeClusters, evd::EvdLayoutOptions::fMakeSeeds, fPlanes, util::GeometryUtilities::Get2Dangle(), util::GeometryUtilities::Get3DaxisN(), util::GeometryUtilities::GetProjectedPoint(), util::PxPoint::plane, pline, seedlines, ss, util::PxPoint::t, t1, and util::PxPoint::w.
void evd::TWQProjectionView::SelectHit | ( | int | plane | ) |
Definition at line 1652 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 561 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 2017 of file TWQProjectionView.cxx.
References DrawPads(), fCryoInput, evd::RawDrawingOptions::fCryostat, fTotalTPCLabel, evd::RawDrawingOptions::fTPC, fTPCInput, geo::GeometryCore::HasTPC(), LOG_DEBUG, 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 333 of file TWQProjectionView.cxx.
References fPlanes, and isZoomAutomatic.
Referenced by OnNewEvent(), SetMouseZoomRegion(), SetZoomInterest(), and TWQProjectionView().
void evd::TWQProjectionView::SetClusterInterest | ( | ) |
Definition at line 1754 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fMakeClusters, and fToggleClusters.
void evd::TWQProjectionView::SetClusters | ( | int | plane | ) |
Definition at line 1378 of file TWQProjectionView.cxx.
References DrawLine(), fPlanes, evd::Style::FromPDG(), util::PxLine::plane, pline, and t1.
Referenced by MouseDispatch().
void evd::TWQProjectionView::SetDistance | ( | ) |
Definition at line 2302 of file TWQProjectionView.cxx.
References fDistance.
void evd::TWQProjectionView::SetGreyscale | ( | ) |
Definition at line 2332 of file TWQProjectionView.cxx.
References DrawPads(), evdb::Canvas::fCanvas, and evd::ColorDrawingOptions::fColorOrGray.
void evd::TWQProjectionView::SetMCInfo | ( | ) |
Definition at line 2401 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 1099 of file TWQProjectionView.cxx.
References SetAutomaticZoomMode(), SetZoom(), t1, and x.
Referenced by MouseDispatch().
void evd::TWQProjectionView::SetPlane | ( | ) |
Definition at line 2285 of file TWQProjectionView.cxx.
References fPlaneEntry, and SetPlaneWire().
void evd::TWQProjectionView::SetPlaneWire | ( | ) |
Definition at line 2259 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 2356 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::SetSeedInterest | ( | ) |
Definition at line 1762 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fMakeClusters, evd::EvdLayoutOptions::fMakeSeeds, fToggleClusters, and fToggleSeeds.
void evd::TWQProjectionView::SetSeeds | ( | int | plane | ) |
Definition at line 1451 of file TWQProjectionView.cxx.
References detinfo::DetectorProperties::ConvertTicksToX(), detinfo::DetectorProperties::ConvertXToTicks(), geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), DrawLine(), fAngleInfo, fPlanes, evd::RecoDrawingOptions::fUseHitSelector, fXYZPosition, util::GeometryUtilities::GetProjectedPoint(), util::GeometryUtilities::GetYZ(), util::PxPoint::plane, util::PxLine::plane, util::PxLine::pt0(), util::PxLine::pt1(), seedlines, ss, util::PxPoint::t, util::PxLine::t0, util::PxLine::t1, UpdateSeedCurve(), util::PxPoint::w, util::PxLine::w0, util::PxLine::w1, and x1.
Referenced by MouseDispatch().
void evd::TWQProjectionView::SetTestFlag | ( | int | number = 1 | ) |
Definition at line 471 of file TWQProjectionView.cxx.
References evd::InfoTransfer::SetTestFlag().
void evd::TWQProjectionView::SetThreshold | ( | ) |
Definition at line 2308 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 1821 of file TWQProjectionView.cxx.
References fAngleInfo, fCalcAngle, fClear, fClearLastSeed, fDistance, fDistanceLabel, evd::EvdLayoutOptions::fMakeClusters, evd::EvdLayoutOptions::fMakeSeeds, evd::EvdLayoutOptions::fShowClusterSection, fToggleClusters, fToggleSeeds, fToggleZoom, and fVFrame.
Referenced by SetUpSideBar().
void evd::TWQProjectionView::SetUpDrawingButtons | ( | ) |
Definition at line 1907 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 2138 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 1729 of file TWQProjectionView.cxx.
References SetUpClusterButtons(), SetUpDrawingButtons(), SetUpPositionFind(), SetUpTPCselection(), and SetUpZoomButtons().
Referenced by TWQProjectionView().
void evd::TWQProjectionView::SetUpTPCselection | ( | ) |
Definition at line 1924 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::flags::to_string(), and TotalElementsString().
Referenced by SetUpSideBar().
void evd::TWQProjectionView::SetUpZoomButtons | ( | ) |
< Toggle the autozoom setting
Definition at line 1790 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fAutoZoomInterest, fToggleAutoZoom, fUnZoomInterest, fVFrame, fZoomBack, and fZoomInterest.
Referenced by SetUpSideBar().
void evd::TWQProjectionView::SetWire | ( | ) |
Definition at line 2293 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 2205 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 1747 of file TWQProjectionView.cxx.
References fPlanes.
Referenced by ForceRedraw().
void evd::TWQProjectionView::SetZoomInterest | ( | ) |
Definition at line 1739 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fAutoZoomInterest, fToggleAutoZoom, and SetAutomaticZoomMode().
void evd::TWQProjectionView::ToggleEndPointMarkers | ( | ) |
Definition at line 1773 of file TWQProjectionView.cxx.
References evd::EvdLayoutOptions::fShowEndPointMarkers, and fToggleShowMarkers.
|
staticprivate |
Returns a string visualizing the total number of elements.
Definition at line 1921 of file TWQProjectionView.cxx.
References util::flags::to_string().
Referenced by SelectTPC(), and SetUpTPCselection().
double evd::TWQProjectionView::UpdateSeedCurve | ( | ) |
Definition at line 2426 of file TWQProjectionView.cxx.
References fPlanes, evd::RecoDrawingOptions::fUseHitSelector, util::kBogusD, and seedlines.
Referenced by SetSeeds().
void evd::TWQProjectionView::ZoomBack | ( | ) |
Definition at line 2173 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 1683 of file TWQProjectionView.cxx.
References evd::RawDrawingOptions::fDrawRawDataOrCalibWires, fPlanes, fPrevZoomOpt, fZoomOpt, geo::GeometryCore::Nwires(), evd::ZoomOptions::OnlyPlaneChanged, SetZoom(), fhicl::has_insertion_operator_impl::test(), evd::ZoomOptions::tmax, evd::ZoomOptions::tmin, evd::ZoomOptions::wmax, and evd::ZoomOptions::wmin.
|
private |
Definition at line 176 of file TWQProjectionView.h.
Referenced by Draw(), SaveSelection(), SetSeeds(), SetUpClusterButtons(), and TWQProjectionView().
|
protectedinherited |
|
private |
Calculate the 2D & 3D angles between lines.
Definition at line 183 of file TWQProjectionView.h.
Referenced by SetUpClusterButtons().
|
private |
Draw calibrated information only.
Definition at line 166 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(), evd::TWQMultiTPCProjectionView::Draw(), Draw(), evd::Ortho3DView::Ortho3DView(), evdb::Canvas::Print(), evd::TWQMultiTPCProjectionView::SetGreyscale(), SetGreyscale(), evd::TWQMultiTPCProjectionView::SetMCInfo(), SetMCInfo(), evd::TWQMultiTPCProjectionView::SetPlaneWire(), SetPlaneWire(), evd::TWQMultiTPCProjectionView::SetRawCalib(), SetRawCalib(), evd::TWQMultiTPCProjectionView::SetThreshold(), SetThreshold(), evd::TWQMultiTPCProjectionView::SetZoom(), SetZoom(), evd::TWQMultiTPCProjectionView::TWQMultiTPCProjectionView(), and TWQProjectionView().
|
private |
Clears the selected points in an event.
Definition at line 184 of file TWQProjectionView.h.
Referenced by SetUpClusterButtons().
|
private |
Clears the selected points in an event.
Definition at line 187 of file TWQProjectionView.h.
Referenced by SetUpClusterButtons().
|
private |
Clear current list of End Points.
Definition at line 179 of file TWQProjectionView.h.
Referenced by SetUpPositionFind().
|
private |
current cryostat
Definition at line 193 of file TWQProjectionView.h.
Referenced by SelectTPC(), and SetUpTPCselection().
|
private |
Distance from line to find hits in cluster.
Definition at line 162 of file TWQProjectionView.h.
Referenced by SetDistance(), and SetUpClusterButtons().
|
private |
Definition at line 154 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 178 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 163 of file TWQProjectionView.h.
Referenced by TWQProjectionView().
|
private |
Show header information.
Definition at line 142 of file TWQProjectionView.h.
Referenced by Draw(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
keeps track of latest event
Definition at line 209 of file TWQProjectionView.h.
Referenced by OnNewEvent(), and ~TWQProjectionView().
|
private |
Kludge to prevent double drawing when changing threshold.
Definition at line 148 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 144 of file TWQProjectionView.h.
Referenced by Draw(), SetMCInfo(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
Display MC truth information.
Definition at line 164 of file TWQProjectionView.h.
Referenced by TWQProjectionView().
|
private |
needed for the side frame
Definition at line 151 of file TWQProjectionView.h.
Referenced by TWQProjectionView().
|
private |
Plane number displayed.
Definition at line 160 of file TWQProjectionView.h.
Referenced by SetPlane(), SetPlaneWire(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
Definition at line 155 of file TWQProjectionView.h.
Referenced by TWQProjectionView(), and ~TWQProjectionView().
|
private |
charge on each plane
Definition at line 145 of file TWQProjectionView.h.
Referenced by Draw(), DrawPads(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
time vs wire projection for each plane
Definition at line 146 of file TWQProjectionView.h.
Referenced by ClearAllSeeds(), ClearEndPoints(), ClearLastSeed(), ClearSelection(), Draw(), DrawPads(), FindEndPoint(), PrintCharge(), ResetRegionsOfInterest(), SaveSelection(), SelectHit(), SelectPoint(), SetAutomaticZoomMode(), SetClusters(), SetSeeds(), SetZoom(), SetZoomFromView(), TWQProjectionView(), UpdateSeedCurve(), ZoomBack(), ZoomInterest(), and ~TWQProjectionView().
|
private |
Definition at line 205 of file TWQProjectionView.h.
Referenced by Draw(), SetZoom(), ZoomBack(), and ZoomInterest().
|
private |
Draw raw and calibrated information.
Definition at line 167 of file TWQProjectionView.h.
Referenced by SetRawCalib(), and TWQProjectionView().
|
private |
Draw Raw information only.
Definition at line 165 of file TWQProjectionView.h.
Referenced by SetRawCalib(), and TWQProjectionView().
|
private |
Button to force redraw.
Definition at line 191 of file TWQProjectionView.h.
Referenced by SetUpDrawingButtons().
|
private |
ADC threshold to display.
Definition at line 161 of file TWQProjectionView.h.
Referenced by SetThreshold(), and TWQProjectionView().
|
private |
Definition at line 156 of file TWQProjectionView.h.
Referenced by TWQProjectionView().
|
private |
Toggle the autozoom setting.
Definition at line 172 of file TWQProjectionView.h.
Referenced by SetUpZoomButtons(), and SetZoomInterest().
|
private |
Use make cluster setting.
Definition at line 174 of file TWQProjectionView.h.
Referenced by RadioButtonsDispatch(), SetClusterInterest(), SetSeedInterest(), and SetUpClusterButtons().
|
private |
Use the make seed setting.
Definition at line 175 of file TWQProjectionView.h.
Referenced by RadioButtonsDispatch(), SetSeedInterest(), and SetUpClusterButtons().
|
private |
Toggle the ShowEndPointMarkersSetting.
Definition at line 180 of file TWQProjectionView.h.
Referenced by SetUpPositionFind(), and ToggleEndPointMarkers().
|
private |
Use zoom setting.
Definition at line 173 of file TWQProjectionView.h.
Referenced by RadioButtonsDispatch(), and SetUpClusterButtons().
|
private |
total TPCs in the current cryostat
Definition at line 195 of file TWQProjectionView.h.
Referenced by SelectTPC(), and SetUpTPCselection().
|
private |
current TPC
Definition at line 194 of file TWQProjectionView.h.
Referenced by SelectTPC(), and SetUpTPCselection().
|
private |
Unzoom on iteresting region.
Definition at line 170 of file TWQProjectionView.h.
Referenced by SetUpZoomButtons().
|
protected |
needed for the side frame
Definition at line 137 of file TWQProjectionView.h.
Referenced by SetUpClusterButtons(), SetUpDrawingButtons(), SetUpPositionFind(), SetUpTPCselection(), SetUpZoomButtons(), and TWQProjectionView().
|
private |
Wire number displayed.
Definition at line 159 of file TWQProjectionView.h.
Referenced by SetPlaneWire(), SetWire(), TWQProjectionView(), and ~TWQProjectionView().
|
private |
Definition at line 153 of file TWQProjectionView.h.
Referenced by TWQProjectionView(), and ~TWQProjectionView().
|
private |
Histogram of charge vs time on selected wire.
Definition at line 143 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 181 of file TWQProjectionView.h.
Referenced by Draw(), FindEndPoint(), FindLineLength(), SetSeeds(), 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 171 of file TWQProjectionView.h.
Referenced by SetUpZoomButtons().
|
private |
Zoom on iteresting region.
Definition at line 169 of file TWQProjectionView.h.
Referenced by SetUpZoomButtons().
|
private |
Definition at line 204 of file TWQProjectionView.h.
Referenced by Draw(), SetZoom(), ZoomBack(), and ZoomInterest().
|
private |
true if user did not ask for custom zoom
Definition at line 207 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 200 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 199 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 202 of file TWQProjectionView.h.
Referenced by ClearAllSeeds(), ClearLastSeed(), Draw(), DrawLine(), SaveSelection(), SetSeeds(), TWQProjectionView(), and UpdateSeedCurve().