71 void addArrow(
const std::string& name,
const TVector3& start,
const TVector3& end,
int color = -1);
77 void addHistogram(
const std::string& name,
const TH1* hist);
80 void addLabel(
const std::string& text,
const TVector3& pos);
87 void addPoint(
const std::string& name,
const TVector3& pos);
97 void select(
const TObject*
object);
109 std::vector<std::pair<std::string, TVector3> >
m_labels;
Add custom information to the display.
void select(const TObject *object)
Select the given object in the display.
void addHistogram(const std::string &name, const TH1 *hist)
Add histogram with the given name.
DisplayData()
Constructor.
ClassDef(DisplayData, 4)
Add custom information to the display.
std::map< std::string, std::vector< TVector3 > > m_pointSets
name -> points map
std::vector< TH1 * > m_histograms
Histograms to be shown in Eve.
void addArrow(const std::string &name, const TVector3 &start, const TVector3 &end, int color=-1)
Add an arrow in the display (for axes, to point out some specific location).
void addPoint(const std::string &name, const TVector3 &pos)
Add a point at the given position, as part of a collection specified by name.
std::vector< Arrow > m_arrows
List of arrows.
std::vector< std::pair< std::string, unsigned int > > m_selectedObjects
List of selected objects (array name, index).
std::vector< std::pair< std::string, TVector3 > > m_labels
text labels (to be shown at a given position).
void addLabel(const std::string &text, const TVector3 &pos)
Add a text label at the given position.
~DisplayData()
Destructor.
Control TEve browser user interface.
Produces visualisation for MCParticles, simhits, genfit::Tracks, geometry and other things.
Abstract base class for different kinds of events.
Stores data associated with an arrow.
TVector3 end
and ends here.
TVector3 start
arrow starts here.