10#include <tracking/trackFindingCDC/display/EventDataPlotter.h>
17 namespace TrackFindingCDC {
29 CDCSVGPlotter(
bool animate =
false,
bool forwardFade =
false);
70 void drawHits(
const std::string& storeArrayName,
71 const std::string& stroke,
72 const std::string& strokeWidth);
81 const std::string& stroke,
82 const std::string& strokeWidth);
91 const std::string& stroke,
92 const std::string& strokeWidth);
101 const std::string& stroke,
102 const std::string& strokeWidth);
111 const std::string& stroke,
112 const std::string& strokeWidth);
121 const std::string& stroke,
122 const std::string& strokeWidth);
131 const std::string& stroke,
132 const std::string& strokeWidth);
141 const std::string& stroke,
142 const std::string& strokeWidth);
151 const std::string& stroke,
152 const std::string& strokeWidth);
160 void drawTracks(
const std::string& storeObjName,
161 const std::string& stroke,
162 const std::string& strokeWidth);
171 const std::string& stroke,
172 const std::string& strokeWidth);
181 const std::string& stroke,
182 const std::string& strokeWidth);
191 const std::string& stroke,
192 const std::string& strokeWidth);
201 const std::string& stroke,
202 const std::string& strokeWidth);
224 template<
class ACDCHitCollection>
235 const std::string& stroke,
236 const std::string& strokeWidth);
250 const std::string& stroke,
251 const std::string& strokeWidth);
265 const std::string& stroke,
266 const std::string& strokeWidth);
280 const std::string& stroke,
281 const std::string& strokeWidth);
288 std::string
saveFile(
const std::string& fileName =
"display.svg");
300 template<
class AItem,
bool a_drawTrajectories = false>
312 template<
class AItem,
bool a_drawTrajectories = false>
321 template <
bool a_drawTrajectory = false,
class AIterable,
class AStyling>
325 template <
bool a_drawTrajectory = false,
class AObject>
326 void draw(
const AObject&
object,
const AttributeMap& attributeMap);
Helper class to generated the svg image from the various tracking objects.
void drawInteractionPoint()
Draws the interaction point.
CDCSVGPlotter * clone()
Make a copy of the current status of the plotter.
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 drawRecoTrackTrajectories(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draw RecoTracks trajectories.
void drawIterable(const AIterable &items, AStyling &styling)
Draw every element of an iterable object.
void drawMCAxialSegmentPairs(const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth)
Draws the Monte Carlo true CDCAxialSegmentPairs.
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 draw(const AObject &object, const AttributeMap &attributeMap)
Draws the object or its trajectory with the given attributes.
void drawHits(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCHits.
void drawWrongRLHits(const std::string &storeObjName)
Draw the CDCRLWireHits in the ACDCHitCollection colored by the match of the right left passage inform...
void drawInnerCDCWall(const std::string &stroke)
Draws the inner CDCWall.
void drawWrongRLHitsInTracks(const std::string &tracksStoreObjName)
Draw the CDCRLWireHits in the CDCTracks colored by the match of the right left passage information.
void drawTrackTrajectories(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws trajectories of the tracks.
void drawOuterCDCWall(const std::string &stroke)
Draws the outer CDCWall.
void drawSuperLayerBoundaries(const std::string &stroke)
Draws the individual super layer boundaries.
void drawMCSegmentTriples(const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth)
Draws the Monte Carlo true CDCSegmentTriples.
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 drawMCSegmentPairs(const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth)
Draws the Monte Carlo true CDCSegmentPairs.
std::string saveFile(const std::string &fileName="display.svg")
Save the current dom object representation to disk.
void drawStoreArray(const std::string &storeArrayName, Styling< AItem > &styling)
Function Template for drawing the elements of a given StoreArray.
void drawWrongRLHitsInSegments(const std::string &segmentsStoreObjName)
Draw the CDCRLWireHits in the CDCSegments colored by the match of the right left passage information.
void drawSegmentTrajectories(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws SegmentTrajectories.
void drawMCParticleTrajectories(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draw MCParticles.
void drawSegmentPairs(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draw the axial to stereo segment pairs.
void drawClusters(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCWireHitClusters.
void drawTracks(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCTracks.
void drawStoreVector(const std::string &storeObjName, Styling< AItem > &styling)
Function Template for drawing the elements of a given StoreVector.
void drawRecoTracks(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draw RecoTracks.
EventDataPlotter m_eventdataPlotter
The plotter instance to translate event data objects to svg expressions.
void drawSegments(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCSegments.
void drawSimHits(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCSimHits.
void drawWires(const CDCWireTopology &cdcWireTopology)
Draws the wires.
Class representing the sense wire arrangement in the whole of the central drift chamber.
A class that can plot event related data types.
Interface for a mapping of object and an index to styling attributes.
Abstract base class for different kinds of events.