23 #ifndef genfit_EventDisplay_h
24 #define genfit_EventDisplay_h
35 #include <TGNumberEntry.h>
36 #include <TGButtonGroup.h>
77 void addEvent(std::vector<genfit::Track*>& tracks);
78 void addEvent(std::vector<const genfit::Track*>& tracks);
88 void next(
unsigned int stp = 1);
91 void prev(
unsigned int stp = 1);
157 void drawEvent(
unsigned int id,
bool resetCam =
true);
162 TEveBox*
boxCreator(TVector3 o, TVector3 u, TVector3
v,
float ud,
float vd,
float depth);
165 const Color_t& color,
const Style_t&
style,
bool drawMarkers,
bool drawErrors,
double lineWidth = 2,
int markerPos = 1);
171 std::vector< std::vector<genfit::Track*>* >
events_;
253 #endif // genfit_EventDisplay_h
TGNumberEntry * guiEvent2
double getErrScale()
Get the error scaling factor.
void open()
Open the event display.
static EventDisplay * eventDisplay_
void drawEvent(unsigned int id, bool resetCam=true)
Draw an event.
TGCheckButton * guiDrawAutoScale_
TGCheckButton * guiDrawDetectors_
void guiSelectFitterId(int val)
Event display designed to run with Genfit.
Double_t val[nBoxes][nFEBox]
TGCheckButton * guiDrawRefTrack_
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
int getNEvents()
Get the total number of events stored.
Abstract base class for a track representation.
TGCheckButton * guiRefit_
void makeLines(const StateOnPlane *prevState, const StateOnPlane *state, const AbsTrackRep *rep, const Color_t &color, const Style_t &style, bool drawMarkers, bool drawErrors, double lineWidth=2, int markerPos=1)
bool squareRootFormalism_
TGCheckButton * guiDrawForward_
eMultipleMeasurementHandling mmHandling_
void setOptions(std::string opts)
Set the display options.
void setErrScale(double errScale=1.)
Set the scaling factor for the visualization of the errors.
TGNumberEntry * guiDPVal_
TGNumberEntry * guiNMaxIter_
TGNumberEntry * guiRepId_
A state with arbitrary dimension defined in a DetPlane.
void gotoEvent(unsigned int id)
Go to event with index id.
TGCheckButton * guiDrawTrack_
TGCheckButton * guiDrawHits_
TGCheckButton * guiDrawErrors_
TEveBox * boxCreator(TVector3 o, TVector3 u, TVector3 v, float ud, float vd, float depth)
Create a box around o, oriented along u and v with widths ud, vd and depth and return a pointer to th...
std::vector< std::vector< genfit::Track * > * > events_
TGNumberEntry * guiDChi2Ref_
void reset()
Drop all events.
TGNumberEntry * guiErrorScale_
void addEvent(std::vector< genfit::Track * > &tracks)
Add new event.
void guiSelectMmHandling(int val)
TGCheckButton * guiDrawBackward_
TGCheckButton * guiDrawAllTracks_
TGCheckButton * guiDrawCardinalRep_
void makeGui()
Build the buttons for event navigation.
TGCheckButton * guiDrawTrackMarkers_
TGNumberEntry * guiTrackId_
TGNumberEntry * guiNMaxFailed_
TGCheckButton * guiDrawPlanes_
TGCheckButton * guiSquareRootFormalism_
TGCheckButton * guiResort_
TGButtonGroup * guiMmHandling_
static EventDisplay * getInstance()
TGNumberEntry * guiNMinIter_
TGNumberEntry * guiRelChi2_
void next(unsigned int stp=1)
Go to the next event or step a certain number of events ahead.
TGButtonGroup * guiFitterId_
void prev(unsigned int stp=1)
Go to the previous event or step a certain number of events back.
TGCheckButton * guiDrawScaleMan_
TGCheckButton * guiDrawGeometry_
eMultipleMeasurementHandling
TGNumberEntry * guiDebugLvl_