|
GENFIT
Rev:NoNumberAvailable
|
Event display designed to run with Genfit. More...
#include <EventDisplay.h>


Public Member Functions | |
| ~EventDisplay () | |
| void | reset () |
| Drop all events. More... | |
| void | addEvent (std::vector< genfit::Track * > &tracks) |
| Add new event. More... | |
| void | addEvent (std::vector< const genfit::Track * > &tracks) |
| void | addEvent (const Track *tr) |
| Add new event. More... | |
| void | next (unsigned int stp=1) |
| Go to the next event or step a certain number of events ahead. More... | |
| void | prev (unsigned int stp=1) |
| Go to the previous event or step a certain number of events back. More... | |
| void | gotoEvent (unsigned int id) |
| Go to event with index id. More... | |
| int | getNEvents () |
| Get the total number of events stored. More... | |
| void | setOptions (std::string opts) |
| Set the display options. More... | |
| void | setErrScale (double errScale=1.) |
| Set the scaling factor for the visualization of the errors. More... | |
| double | getErrScale () |
| Get the error scaling factor. More... | |
| void | open () |
| Open the event display. More... | |
| void | guiGoto () |
| void | guiGoto2 () |
| void | guiSetDrawParams () |
| void | guiSelectFitterId (int val) |
| void | guiSelectMmHandling (int val) |
Static Public Member Functions | |
| static EventDisplay * | getInstance () |
Private Member Functions | |
| EventDisplay () | |
| void | makeGui () |
| Build the buttons for event navigation. More... | |
| void | drawEvent (unsigned int id, bool resetCam=true) |
| Draw an event. More... | |
| 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 the box object. More... | |
| 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) |
Static Private Attributes | |
| static EventDisplay * | eventDisplay_ = NULL |
Event display designed to run with Genfit.
The EventDisplay class is a singelton used to visualize the events processed with Genfit. The event display uses the EVE event visualization package to visualize Tracks which are bundled in a vector and which form one event. The information about the tracks is supplied in Track objects. To use the event display, the geometry (TGeoManager)and magnetic field (FieldManager) have to be initialized and gApplication and gEve have to exist.
Definition at line 59 of file EventDisplay.h.
|
private |
| genfit::EventDisplay::~EventDisplay | ( | ) |
Definition at line 149 of file EventDisplay.cc.
References reset().
| void genfit::EventDisplay::addEvent | ( | std::vector< genfit::Track * > & | tracks | ) |
Add new event.
Add a new event. An event is a collection of Tracks which are displayed at the the same time. The tracks are copied.
Definition at line 167 of file EventDisplay.cc.
References events_.
| void genfit::EventDisplay::addEvent | ( | std::vector< const genfit::Track * > & | tracks | ) |
| void genfit::EventDisplay::addEvent | ( | const Track * | tr | ) |
Add new event.
Add a new event consisting of one track.
Definition at line 191 of file EventDisplay.cc.
References events_.
|
private |
Create a box around o, oriented along u and v with widths ud, vd and depth and return a pointer to the box object.
Definition at line 936 of file EventDisplay.cc.
Referenced by drawEvent().
|
private |
Draw an event.
Definition at line 274 of file EventDisplay.cc.
References boxCreator(), genfit::Track::checkConsistency(), genfit::DafRef, genfit::DafSimple, dChi2Ref_, debugLvl_, dPVal_, drawAllTracks_, drawAutoScale_, drawBackward_, drawCardinalRep_, drawDetectors_, drawErrors_, drawForward_, drawGeometry_, drawHits_, drawPlanes_, drawRefTrack_, drawScaleMan_, drawTrack_, drawTrackMarkers_, dRelChi2_, errorScale_, events_, genfit::StateOnPlane::extrapolateBy(), fitterId_, genfit::KalmanFitterInfo::getBackwardPrediction(), genfit::KalmanFitterInfo::getBackwardUpdate(), genfit::Track::getCardinalRep(), genfit::StateOnPlane::getCharge(), genfit::MeasuredStateOnPlane::getCov(), genfit::AbsMeasurement::getDim(), genfit::AbsTrackRep::getDim(), genfit::Track::getFitStatus(), genfit::KalmanFitterInfo::getFittedState(), genfit::Track::getFittedState(), genfit::TrackPoint::getFitterInfo(), genfit::KalmanFitterInfo::getForwardPrediction(), genfit::KalmanFitterInfo::getForwardUpdate(), genfit::MeasurementOnPlane::getHMatrix(), genfit::AbsHMatrix::getMatrix(), genfit::KalmanFitterInfo::getMeasurementOnPlane(), genfit::KalmanFitterInfo::getNumMeasurements(), genfit::Track::getNumPointsWithMeasurement(), genfit::TrackPoint::getNumRawMeasurements(), genfit::Track::getNumReps(), genfit::StateOnPlane::getPlane(), genfit::Track::getPointWithMeasurement(), genfit::StateOnPlane::getPos(), genfit::AbsMeasurement::getRawHitCov(), genfit::TrackPoint::getRawMeasurement(), genfit::KalmanFitterInfo::getReferenceState(), genfit::StateOnPlane::getState(), genfit::Track::getTrackRep(), genfit::KalmanFitterInfo::hasBackwardPrediction(), genfit::KalmanFitterInfo::hasBackwardUpdate(), genfit::TrackPoint::hasFitterInfo(), genfit::KalmanFitterInfo::hasForwardPrediction(), genfit::KalmanFitterInfo::hasForwardUpdate(), genfit::KalmanFitterInfo::hasPredictionsAndUpdates(), genfit::TrackPoint::hasRawMeasurements(), genfit::KalmanFitterInfo::hasReferenceState(), genfit::FitStatus::isFitted(), genfit::AbsMeasurement::isLeftRightMeasurement(), makeLines(), mmHandling_, nMaxFailed_, nMaxIter_, nMinIter_, genfit::MeasuredStateOnPlane::Print(), genfit::FitStatus::Print(), genfit::Track::Print(), refit_, genfit::RefKalman, repId_, resort_, genfit::AbsTrackRep::setPropDir(), genfit::SimpleKalman, squareRootFormalism_, trackId_, and genfit::Exception::what().
Referenced by gotoEvent(), and open().
| double genfit::EventDisplay::getErrScale | ( | ) |
Get the error scaling factor.
Definition at line 138 of file EventDisplay.cc.
References errorScale_.
|
static |
Definition at line 140 of file EventDisplay.cc.
References EventDisplay(), and eventDisplay_.
Referenced by makeGui().
| int genfit::EventDisplay::getNEvents | ( | ) |
Get the total number of events stored.
Definition at line 216 of file EventDisplay.cc.
References events_.
Referenced by open().
| void genfit::EventDisplay::gotoEvent | ( | unsigned int | id | ) |
Go to event with index id.
Definition at line 219 of file EventDisplay.cc.
References drawEvent(), errorScale_, eventId_, and events_.
Referenced by guiGoto(), guiGoto2(), guiSelectFitterId(), guiSelectMmHandling(), guiSetDrawParams(), next(), open(), and prev().
| void genfit::EventDisplay::guiGoto | ( | ) |
Definition at line 1585 of file EventDisplay.cc.
References gotoEvent(), guiEvent, and guiEvent2.
| void genfit::EventDisplay::guiGoto2 | ( | ) |
Definition at line 1591 of file EventDisplay.cc.
References gotoEvent(), guiEvent, and guiEvent2.
| void genfit::EventDisplay::guiSelectFitterId | ( | int | val | ) |
Definition at line 1640 of file EventDisplay.cc.
References eventId_, fitterId_, and gotoEvent().
| void genfit::EventDisplay::guiSelectMmHandling | ( | int | val | ) |
Definition at line 1645 of file EventDisplay.cc.
References eventId_, gotoEvent(), and mmHandling_.
| void genfit::EventDisplay::guiSetDrawParams | ( | ) |
Definition at line 1598 of file EventDisplay.cc.
References dChi2Ref_, debugLvl_, dPVal_, drawAllTracks_, drawAutoScale_, drawBackward_, drawCardinalRep_, drawDetectors_, drawErrors_, drawForward_, drawGeometry_, drawHits_, drawPlanes_, drawRefTrack_, drawScaleMan_, drawTrack_, drawTrackMarkers_, dRelChi2_, errorScale_, eventId_, gotoEvent(), guiDChi2Ref_, guiDebugLvl_, guiDPVal_, guiDrawAllTracks_, guiDrawAutoScale_, guiDrawBackward_, guiDrawCardinalRep_, guiDrawDetectors_, guiDrawErrors_, guiDrawForward_, guiDrawGeometry_, guiDrawHits_, guiDrawPlanes_, guiDrawRefTrack_, guiDrawScaleMan_, guiDrawTrack_, guiDrawTrackMarkers_, guiErrorScale_, guiNMaxFailed_, guiNMaxIter_, guiNMinIter_, guiRefit_, guiRelChi2_, guiRepId_, guiResort_, guiSquareRootFormalism_, guiTrackId_, nMaxFailed_, nMaxIter_, nMinIter_, refit_, repId_, resort_, squareRootFormalism_, and trackId_.
|
private |
Build the buttons for event navigation.
Definition at line 1195 of file EventDisplay.cc.
References dChi2Ref_, debugLvl_, dPVal_, drawAllTracks_, drawAutoScale_, drawBackward_, drawCardinalRep_, drawDetectors_, drawErrors_, drawForward_, drawGeometry_, drawHits_, drawPlanes_, drawRefTrack_, drawScaleMan_, drawTrack_, drawTrackMarkers_, dRelChi2_, errorScale_, getInstance(), guiDChi2Ref_, guiDebugLvl_, guiDPVal_, guiDrawAllTracks_, guiDrawAutoScale_, guiDrawBackward_, guiDrawCardinalRep_, guiDrawDetectors_, guiDrawErrors_, guiDrawForward_, guiDrawGeometry_, guiDrawHits_, guiDrawPlanes_, guiDrawRefTrack_, guiDrawScaleMan_, guiDrawTrack_, guiDrawTrackMarkers_, guiErrorScale_, guiEvent, guiEvent2, guiFitterId_, guiMmHandling_, guiNMaxFailed_, guiNMaxIter_, guiNMinIter_, guiRefit_, guiRelChi2_, guiRepId_, guiResort_, guiSquareRootFormalism_, guiTrackId_, nMaxFailed_, nMaxIter_, nMinIter_, refit_, repId_, resort_, squareRootFormalism_, and trackId_.
Referenced by open().
|
private |
Definition at line 986 of file EventDisplay.cc.
References genfit::AbsTrackRep::extrapolateToPlane(), genfit::StateOnPlane::getPlane(), genfit::AbsTrackRep::getPosDir(), genfit::AbsTrackRep::getPosMomCov(), genfit::DetPlane::setO(), and genfit::Exception::what().
Referenced by drawEvent().
| void genfit::EventDisplay::next | ( | unsigned int | stp = 1 | ) |
Go to the next event or step a certain number of events ahead.
Definition at line 199 of file EventDisplay.cc.
References eventId_, and gotoEvent().
| void genfit::EventDisplay::open | ( | ) |
Open the event display.
Definition at line 249 of file EventDisplay.cc.
References drawEvent(), drawSilent_, errorScale_, getNEvents(), gotoEvent(), and makeGui().
| void genfit::EventDisplay::prev | ( | unsigned int | stp = 1 | ) |
Go to the previous event or step a certain number of events back.
Definition at line 205 of file EventDisplay.cc.
References eventId_, events_, and gotoEvent().
| void genfit::EventDisplay::reset | ( | ) |
Drop all events.
Definition at line 151 of file EventDisplay.cc.
References events_.
Referenced by ~EventDisplay().
| void genfit::EventDisplay::setErrScale | ( | double | errScale = 1. | ) |
Set the scaling factor for the visualization of the errors.
Definition at line 136 of file EventDisplay.cc.
References errorScale_.
| void genfit::EventDisplay::setOptions | ( | std::string | opts | ) |
Set the display options.
The option string lets you steer the way the events are displayed. The following
options are available:\n
\n
'A': Autoscale errors. The representation of hits are scaled with the error found
their covariance matrix. This can lead to hits not being displayed beause the
errors are too small. Autoscaling ensures that the errors are scaled up
sufficiently to ensure all hits are displayed. However, this can lead to unwanted
results if there are only a few hits with very small errors, as all hits are scaled
by the same factor to ensure consistency.\n\n
'B': Draw Backward Fit (track segments start at updates and end at predictions)\n\n
'D': Draw detectors. This causes a simple representation for all detectors to be drawn. For
planar detectors, this is a plane with the same position and orientation of the real
detector plane, but with different size. For wires, this is a tube whose diameter
is equal to the value measured by the wire. Spacepoint hits are not affected by this
option.\n\n
'E': Draw Error cones (position and direction uncertainties) around the track.\n\n
'F': Draw Forward Fit (track segments start at updates and end at predictions) 'H': Draw hits. This causes the hits to be visualized. Normally, the size of the hit representation is connected to the covariance matrix of the hit, scaled by the value set in setErrScale which is normally 1. See also option 'A' and 'S'. Normally used in connection with 'D'.
'G': Draw geometry. Draw also the geometry in the gGeoManager. This feature is experimental and may lead to strang things being drawn.
'M': Draw track markers. Draw the intersection points between the track and the virtual (and/or real) detector planes. Can only be used in connection with 'T'.
'P': Draw detector planes. Draws the virtual (and/or real) detector planes.
'S': Scale manually. This leads to the spacepoint hits (and only them up to now!) being drawn as spheres with radius 0.5 scaled with the error scale factor. Can be used if the scaling with errors leads to problems.
'T': Draw Track. Draw the track as lines between the virtual (and/or real) detector planes.
'X': Draw silent. Does not run the TApplication.
Definition at line 115 of file EventDisplay.cc.
References drawAutoScale_, drawBackward_, drawDetectors_, drawErrors_, drawForward_, drawGeometry_, drawHits_, drawPlanes_, drawScaleMan_, drawSilent_, drawTrack_, and drawTrackMarkers_.
|
private |
Definition at line 234 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 221 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 230 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 214 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 201 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 198 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 209 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 180 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 184 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 196 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 178 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 182 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 187 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 194 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 203 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 206 of file EventDisplay.h.
Referenced by open(), and setOptions().
|
private |
Definition at line 192 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 189 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), makeGui(), and setOptions().
|
private |
Definition at line 232 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 170 of file EventDisplay.h.
Referenced by drawEvent(), getErrScale(), gotoEvent(), guiSetDrawParams(), makeGui(), open(), and setErrScale().
|
staticprivate |
Definition at line 168 of file EventDisplay.h.
Referenced by getInstance().
|
private |
Definition at line 169 of file EventDisplay.h.
Referenced by EventDisplay(), gotoEvent(), guiSelectFitterId(), guiSelectMmHandling(), guiSetDrawParams(), next(), and prev().
|
private |
Definition at line 171 of file EventDisplay.h.
Referenced by addEvent(), drawEvent(), getNEvents(), gotoEvent(), prev(), and reset().
|
private |
Definition at line 223 of file EventDisplay.h.
Referenced by drawEvent(), and guiSelectFitterId().
|
private |
Definition at line 233 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 220 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 229 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 213 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 200 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 197 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 208 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 179 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 183 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 195 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 177 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 181 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 186 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 193 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 202 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 191 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 188 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 204 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 174 of file EventDisplay.h.
Referenced by guiGoto(), guiGoto2(), and makeGui().
|
private |
Definition at line 175 of file EventDisplay.h.
Referenced by guiGoto(), guiGoto2(), and makeGui().
|
private |
Definition at line 222 of file EventDisplay.h.
Referenced by makeGui().
|
private |
Definition at line 224 of file EventDisplay.h.
Referenced by makeGui().
|
private |
Definition at line 239 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 237 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 235 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 218 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 231 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 210 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 241 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 227 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 215 of file EventDisplay.h.
Referenced by guiSetDrawParams(), and makeGui().
|
private |
Definition at line 225 of file EventDisplay.h.
Referenced by drawEvent(), and guiSelectMmHandling().
|
private |
Definition at line 240 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 238 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 236 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 219 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 211 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 242 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 228 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
|
private |
Definition at line 216 of file EventDisplay.h.
Referenced by drawEvent(), guiSetDrawParams(), and makeGui().
1.8.5