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 * guiNMaxIter_
TGCheckButton * guiDrawRefTrack_
void open()
Open the event display.
TGNumberEntry * guiEvent2
TGNumberEntry * guiDebugLvl_
TGNumberEntry * guiRelChi2_
int getNEvents()
Get the total number of events stored.
static EventDisplay * eventDisplay_
void drawEvent(unsigned int id, bool resetCam=true)
Draw an event.
void setOptions(std::string opts)
Set the display options.
TGCheckButton * guiDrawDetectors_
eMultipleMeasurementHandling
std::vector< std::vector< genfit::Track * > * > events_
TGCheckButton * guiDrawTrackMarkers_
void prev(unsigned int stp=1)
Go to the previous event or step a certain number of events back.
TGCheckButton * guiDrawAutoScale_
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)
TGCheckButton * guiDrawHits_
void reset()
Drop all events.
void setErrScale(double errScale=1.)
Set the scaling factor for the visualization of the errors.
TGCheckButton * guiDrawBackward_
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...
eMultipleMeasurementHandling mmHandling_
void gotoEvent(unsigned int id)
Go to event with index id.
bool squareRootFormalism_
TGCheckButton * guiDrawTrack_
TGCheckButton * guiDrawCardinalRep_
TGCheckButton * guiDrawPlanes_
Abstract base class for a track representation.
void next(unsigned int stp=1)
Go to the next event or step a certain number of events ahead.
TGCheckButton * guiDrawAllTracks_
TGNumberEntry * guiRepId_
void makeGui()
Build the buttons for event navigation.
TGCheckButton * guiResort_
TGCheckButton * guiDrawForward_
void guiSelectMmHandling(int val)
TGCheckButton * guiRefit_
static EventDisplay * getInstance()
Event display designed to run with Genfit.
A state with arbitrary dimension defined in a DetPlane.
TGButtonGroup * guiMmHandling_
TGNumberEntry * guiNMinIter_
TGNumberEntry * guiDPVal_
TGCheckButton * guiSquareRootFormalism_
void guiSelectFitterId(int val)
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
void addEvent(std::vector< genfit::Track * > &tracks)
Add new event.
TGCheckButton * guiDrawScaleMan_
TGNumberEntry * guiErrorScale_
TGNumberEntry * guiDChi2Ref_
Defines for I/O streams used for error and debug printing.
TGButtonGroup * guiFitterId_
TGNumberEntry * guiNMaxFailed_
TGCheckButton * guiDrawGeometry_
double getErrScale()
Get the error scaling factor.
TGNumberEntry * guiTrackId_