Belle II Software development
|
Helper class to generated the svg image from the various tracking objects. More...
#include <CDCSVGPlotter.h>
Public Member Functions | |
CDCSVGPlotter (bool animate=false, bool forwardFade=false) | |
Constructor. | |
CDCSVGPlotter * | clone () |
Make a copy of the current status of the plotter. | |
void | drawWires (const CDCWireTopology &cdcWireTopology) |
Draws the wires. | |
void | drawInteractionPoint () |
Draws the interaction point. | |
void | drawSuperLayerBoundaries (const std::string &stroke) |
Draws the individual super layer boundaries. | |
void | drawOuterCDCWall (const std::string &stroke) |
Draws the outer CDCWall. | |
void | drawInnerCDCWall (const std::string &stroke) |
Draws the inner CDCWall. | |
void | drawHits (const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth) |
Draws CDCHits. | |
void | drawSimHits (const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth) |
Draws CDCSimHits. | |
void | drawClusters (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draws CDCWireHitClusters. | |
void | drawSegments (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draws CDCSegments. | |
void | drawSegmentTrajectories (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draws SegmentTrajectories. | |
void | drawSegmentPairs (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draw the axial to stereo segment pairs. | |
void | drawAxialSegmentPairs (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draw the axial to axial segment pairs. | |
void | drawSegmentTriples (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draw the axial, stereo, axial segment triples. | |
void | drawSegmentTripleTrajectories (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draw the trajectories of the axial, stereo, axial segment triples. | |
void | drawTracks (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draws CDCTracks. | |
void | drawTrackTrajectories (const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth) |
Draws trajectories of the tracks. | |
void | drawRecoTracks (const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth) |
Draw RecoTracks. | |
void | drawRecoTrackTrajectories (const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth) |
Draw RecoTracks trajectories. | |
void | drawMCParticleTrajectories (const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth) |
Draw MCParticles. | |
void | drawWrongRLHitsInSegments (const std::string &segmentsStoreObjName) |
Draw the CDCRLWireHits in the CDCSegments colored by the match of the right left passage information. | |
void | drawWrongRLHitsInTracks (const std::string &tracksStoreObjName) |
Draw the CDCRLWireHits in the CDCTracks colored by the match of the right left passage information. | |
void | drawSimHitsConnectByToF (const std::string &simHitStoreArrayName, const std::string &stroke, const std::string &strokeWidth) |
Draw the CDCSimHits connected in the order of their getFlightTime for each Monte Carlo particle. | |
void | drawMCSegmentPairs (const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth) |
Draws the Monte Carlo true CDCSegmentPairs. | |
void | drawMCAxialSegmentPairs (const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth) |
Draws the Monte Carlo true CDCAxialSegmentPairs. | |
void | drawMCSegmentTriples (const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth) |
Draws the Monte Carlo true CDCSegmentTriples. | |
std::string | saveFile (const std::string &fileName="display.svg") |
Save the current dom object representation to disk. | |
Private Member Functions | |
template<class ACDCHitCollection > | |
void | drawWrongRLHits (const std::string &storeObjName) |
Draw the CDCRLWireHits in the ACDCHitCollection colored by the match of the right left passage information. | |
template<class AItem , bool a_drawTrajectories = false> | |
void | drawStoreArray (const std::string &storeArrayName, Styling< AItem > &styling) |
Function Template for drawing the elements of a given StoreArray. | |
template<class AItem , bool a_drawTrajectories = false> | |
void | drawStoreVector (const std::string &storeObjName, Styling< AItem > &styling) |
Function Template for drawing the elements of a given StoreVector. | |
template<bool a_drawTrajectory = false, class AIterable , class AStyling > | |
void | drawIterable (const AIterable &items, AStyling &styling) |
Draw every element of an iterable object. | |
template<bool a_drawTrajectory = false, class AObject > | |
void | draw (const AObject &object, const AttributeMap &attributeMap) |
Draws the object or its trajectory with the given attributes. | |
Private Attributes | |
EventDataPlotter | m_eventdataPlotter |
The plotter instance to translate event data objects to svg expressions. | |
Helper class to generated the svg image from the various tracking objects.
Definition at line 23 of file CDCSVGPlotter.h.
CDCSVGPlotter | ( | bool | animate = false , |
bool | forwardFade = false |
||
) |
Constructor.
Definition at line 105 of file CDCSVGPlotter.cc.
CDCSVGPlotter * clone | ( | ) |
Make a copy of the current status of the plotter.
Definition at line 122 of file CDCSVGPlotter.cc.
void drawAxialSegmentPairs | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draw the axial to axial segment pairs.
storeObjName | The name of the StoreVector containing the CDCAxialSegmentPairs. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCAxialSegmentPair and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCAxialSegmentPair and its id to a stroke-width. |
Definition at line 225 of file CDCSVGPlotter.cc.
void drawClusters | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws CDCWireHitClusters.
storeObjName | The name of the StoreVector containing the CDCWireHitClusters. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCHit and its id to a stroke-width. |
Definition at line 194 of file CDCSVGPlotter.cc.
void drawHits | ( | const std::string & | storeArrayName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws CDCHits.
storeArrayName | The name of the StoreArray containing the CDCHits. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCHit and its id to a stroke-width. |
Definition at line 158 of file CDCSVGPlotter.cc.
void drawInnerCDCWall | ( | const std::string & | stroke | ) |
Draws the inner CDCWall.
stroke | The color to be used for drawing. |
Definition at line 146 of file CDCSVGPlotter.cc.
void drawInteractionPoint | ( | ) |
Draws the interaction point.
Definition at line 127 of file CDCSVGPlotter.cc.
|
private |
Draw every element of an iterable object.
a_drawTrajectory | Switch to draw the fitted trajectory from the object instead. |
items | An iterable object (StoreArray, std::vector...). |
styling | Styling object from which drawing attributes are constructed |
void drawMCAxialSegmentPairs | ( | const std::string & | segmentsStoreObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws the Monte Carlo true CDCAxialSegmentPairs.
This routine creates the true axial segment pairs from the stored segments to get an overview which cases the segment triple reconstruction should cover.
segmentsStoreObjName | The name of the StoreVector containing the CDCSegment2Ds, from which the pair should be constructed. |
stroke | Color of the lines to be drawn. |
strokeWidth | Width of the lines to be drawn. |
Definition at line 473 of file CDCSVGPlotter.cc.
void drawMCParticleTrajectories | ( | const std::string & | storeArrayName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draw MCParticles.
storeArrayName | The name of the StoreArray containing the RecoTracks. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCHit and its id to a stroke-width. |
Definition at line 308 of file CDCSVGPlotter.cc.
void drawMCSegmentPairs | ( | const std::string & | segmentsStoreObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws the Monte Carlo true CDCSegmentPairs.
This routine creates the true segment pairs from the stored segments to get an overview which cases the segment triple reconstruction should cover.
segmentsStoreObjName | The name of the StoreVector containing the CDCSegment2Ds, from which the pair should be constructed. |
stroke | Color of the lines to be drawn. |
strokeWidth | Width of the lines to be drawn. |
Definition at line 513 of file CDCSVGPlotter.cc.
void drawMCSegmentTriples | ( | const std::string & | segmentsStoreObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws the Monte Carlo true CDCSegmentTriples.
This routine creates the true segment triples from the stored segments to get an overview which cases the segment triple reconstruction should cover.
segmentsStoreObjName | The name of the StoreVector containing the CDCSegment2Ds, from which the pair should be constructed. |
stroke | Color of the lines to be drawn. |
strokeWidth | Width of the lines to be drawn. |
Definition at line 569 of file CDCSVGPlotter.cc.
void drawOuterCDCWall | ( | const std::string & | stroke | ) |
Draws the outer CDCWall.
stroke | The color to be used for drawing. |
Definition at line 139 of file CDCSVGPlotter.cc.
void drawRecoTracks | ( | const std::string & | storeArrayName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draw RecoTracks.
storeArrayName | The name of the StoreArray containing the RecoTracks. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCHit and its id to a stroke-width. |
Definition at line 287 of file CDCSVGPlotter.cc.
void drawRecoTrackTrajectories | ( | const std::string & | storeArrayName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draw RecoTracks trajectories.
storeArrayName | The name of the StoreArray containing the RecoTracks. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCHit and its id to a stroke-width. |
Definition at line 297 of file CDCSVGPlotter.cc.
void drawSegmentPairs | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draw the axial to stereo segment pairs.
storeObjName | The name of the StoreVector containing the CDCSegmentPairs. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCSegmentPair and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCSegmentPair and its id to a stroke-width. |
Definition at line 235 of file CDCSVGPlotter.cc.
void drawSegments | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws CDCSegments.
storeObjName | The name of the StoreVector containing the CDCSegments. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCHit and its id to a stroke-width. |
Definition at line 204 of file CDCSVGPlotter.cc.
void drawSegmentTrajectories | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws SegmentTrajectories.
storeObjName | The name of the StoreVector containing the CDCSegments. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCHit and its id to a stroke-width. |
Definition at line 214 of file CDCSVGPlotter.cc.
void drawSegmentTriples | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draw the axial, stereo, axial segment triples.
storeObjName | The name of the StoreVector containing the CDCSegmentTriples. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCSegmentTriple and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCSegmentTriple and its id to a stroke-width. |
Definition at line 245 of file CDCSVGPlotter.cc.
void drawSegmentTripleTrajectories | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draw the trajectories of the axial, stereo, axial segment triples.
storeObjName | The name of the StoreVector containing the CDCSegmentTriples. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCSegmentTriple and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCSegmentTriple and its id to a stroke-width. |
Definition at line 255 of file CDCSVGPlotter.cc.
void drawSimHits | ( | const std::string & | storeArrayName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws CDCSimHits.
storeArrayName | The name of the StoreArray containing the CDCSimHits. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCSimHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCSimHit and its id to a stroke-width. |
Definition at line 168 of file CDCSVGPlotter.cc.
void drawSimHitsConnectByToF | ( | const std::string & | simHitStoreArrayName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draw the CDCSimHits connected in the order of their getFlightTime for each Monte Carlo particle.
simHitStoreArrayName | The name of the StoreArray containing the CDCSimHits. |
stroke | Color of the lines to be drawn. |
strokeWidth | Width of the lines to be drawn. |
Definition at line 319 of file CDCSVGPlotter.cc.
|
private |
Function Template for drawing the elements of a given StoreArray.
Needs to know the type of the objects in the StoreArray and the right styling for these objects.
a_drawTrajectories | Switch to draw the fitted trajectory from the object instead. |
storeArrayName | The name of the StoreArray containing the objects. |
styling | Functional object to construct attributes for each object to be drawn |
|
private |
Function Template for drawing the elements of a given StoreVector.
Needs to know the type of the objects in the store objects and the right styling for these objects.
a_drawTrajectories | Switch to draw the fitted trajectory from the object instead. |
storeObjName | name of the StoreObject containing the objects. |
styling | Functional object to construct attributes for each object to be drawn |
void drawSuperLayerBoundaries | ( | const std::string & | stroke | ) |
Draws the individual super layer boundaries.
stroke | The color to be used for drawing. |
Definition at line 132 of file CDCSVGPlotter.cc.
void drawTracks | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws CDCTracks.
storeObjName | The name of the StoreVector containing the CDCTracks. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCSegmentTriple and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCSegmentTriple and its id to a stroke-width. |
Definition at line 266 of file CDCSVGPlotter.cc.
void drawTrackTrajectories | ( | const std::string & | storeObjName, |
const std::string & | stroke, | ||
const std::string & | strokeWidth | ||
) |
Draws trajectories of the tracks.
storeObjName | The name of the StoreVector containing the CDCTracks. |
stroke | Either the color to be used for drawing or the name of the method, which maps the CDCHit and its id to a color. |
strokeWidth | Either the stroke-width to be used for drawing or the name of the method, which maps the CDCHit and its id to a stroke-width. |
Definition at line 276 of file CDCSVGPlotter.cc.
void drawWires | ( | const CDCWireTopology & | cdcWireTopology | ) |
Draws the wires.
Definition at line 153 of file CDCSVGPlotter.cc.
|
private |
Draw the CDCRLWireHits in the ACDCHitCollection colored by the match of the right left passage information.
It respects hit collections reconstructed backwards to have the opposite rl information.
void drawWrongRLHitsInSegments | ( | const std::string & | segmentsStoreObjName | ) |
Draw the CDCRLWireHits in the CDCSegments colored by the match of the right left passage information.
It respects segments reconstructed backwards to have the opposite rl information
Definition at line 405 of file CDCSVGPlotter.cc.
void drawWrongRLHitsInTracks | ( | const std::string & | tracksStoreObjName | ) |
Draw the CDCRLWireHits in the CDCTracks colored by the match of the right left passage information.
It respects tracks reconstructed backwards to have the opposite rl information
Definition at line 410 of file CDCSVGPlotter.cc.
std::string saveFile | ( | const std::string & | fileName = "display.svg" | ) |
Save the current dom object representation to disk.
fileName | The Name of the saved file. Defaults to "display.svg". |
Definition at line 616 of file CDCSVGPlotter.cc.
|
private |
The plotter instance to translate event data objects to svg expressions.
Definition at line 330 of file CDCSVGPlotter.h.