Event display designed to run with Genfit.
More...
#include <EventDisplay.h>
Event display designed to run with Genfit.
- Author
- Karl Bicker (Technische Universität München, original author)
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 53 of file EventDisplay.h.
◆ ~EventDisplay()
genfit::EventDisplay::~EventDisplay |
( |
| ) |
|
◆ addEvent() [1/3]
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.
◆ addEvent() [2/3]
void genfit::EventDisplay::addEvent |
( |
std::vector< const genfit::Track *> & |
tracks | ) |
|
◆ addEvent() [3/3]
void genfit::EventDisplay::addEvent |
( |
const Track * |
tr | ) |
|
Add new event.
Add a new event consisting of one track.
◆ getErrScale()
double genfit::EventDisplay::getErrScale |
( |
| ) |
|
Get the error scaling factor.
◆ getInstance()
◆ getNEvents()
int genfit::EventDisplay::getNEvents |
( |
| ) |
|
Get the total number of events stored.
◆ gotoEvent()
void genfit::EventDisplay::gotoEvent |
( |
unsigned int |
id | ) |
|
Go to event with index id.
◆ guiGoto()
void genfit::EventDisplay::guiGoto |
( |
| ) |
|
◆ guiGoto2()
void genfit::EventDisplay::guiGoto2 |
( |
| ) |
|
◆ guiSelectFitterId()
void genfit::EventDisplay::guiSelectFitterId |
( |
int |
val | ) |
|
◆ guiSelectMmHandling()
void genfit::EventDisplay::guiSelectMmHandling |
( |
int |
val | ) |
|
◆ guiSetDrawParams()
void genfit::EventDisplay::guiSetDrawParams |
( |
| ) |
|
◆ next()
void genfit::EventDisplay::next |
( |
unsigned int |
stp = 1 | ) |
|
Go to the next event or step a certain number of events ahead.
◆ open()
void genfit::EventDisplay::open |
( |
| ) |
|
◆ prev()
void genfit::EventDisplay::prev |
( |
unsigned int |
stp = 1 | ) |
|
Go to the previous event or step a certain number of events back.
◆ reset()
void genfit::EventDisplay::reset |
( |
| ) |
|
◆ setErrScale()
void genfit::EventDisplay::setErrScale |
( |
double |
errScale = 1. | ) |
|
Set the scaling factor for the visualization of the errors.
◆ setOptions()
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:
'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.
'B': Draw Backward Fit (track segments start at updates and end at predictions)
'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.
'E': Draw Error cones (position and direction uncertainties) around the track.
'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.
The documentation for this class was generated from the following file: