8#include <tracking/trackFindingCDC/testFixtures/TrackFindingCDCTestWithSimpleSimulation.h>
10#include <tracking/trackFindingCDC/sim/CDCSimpleSimulation.h>
11#include <tracking/trackFindingCDC/display/EventDataPlotter.h>
14using namespace TrackFindingCDC;
18 Helix straightOriginLine(0, 0, 0, 0, 0);
19 simulate({straightOriginLine});
20 saveDisplay(
"straight.svg");
26 Helix lowCurvOriginHelix(0.015, 0, 0, 1, 0);
27 simulate({lowCurvOriginHelix});
34 saveDisplay(
"low.svg");
40 Helix straightOffOriginLine(0, 1, 20, 1, 75);
42 double arcLengthToOuterWall =
43 straightOffOriginLine.arcLength2DToCylindricalR(outerWallR);
45 Vector3D startPoint = straightOffOriginLine.atArcLength2D(-arcLengthToOuterWall);
47 cosmicTrajectory.setLocalOrigin(startPoint);
49 simulate({cosmicTrajectory});
50 saveDisplay(
"cosmic.svg");
56 Helix highCurvOriginHelix(0.02, 1, 0, 0.5, 0);
57 simulate({highCurvOriginHelix});
58 saveDisplay(
"curl.svg");
63 Helix highCurvOffOriginHelix(0.02, 1, -30, 0.2, 0);
64 simulate({highCurvOffOriginHelix});
65 saveDisplay(
"secondary_curl.svg");
79 simulate({electronTrajectory, positronTrajectory});
80 saveDisplay(
"photon_conversion.svg");
85 m_simpleSimulation.activateTOFDelay();
86 m_simpleSimulation.activateInWireSignalDelay();
88 Helix straightOffOriginLine(0, 1, 20, 1, 50);
90 double arcLengthToOuterWall =
91 straightOffOriginLine.arcLength2DToCylindricalR(outerWallR);
93 Vector3D startPoint = straightOffOriginLine.atArcLength2D(-arcLengthToOuterWall);
95 cosmicTrajectory.setLocalOrigin(startPoint);
98 CDCTrack mcTrack = m_simpleSimulation.simulate(cosmicTrajectory);
101 saveDisplay(
"cosmic_with_delay.svg");
107 std::string svgFileName =
"rl_flags_prepared_event.svg";
110 for (
CDCTrack& track : m_mcTracks) {
112 const CDCRLWireHit& rlWireHit = recoHit3D.getRLWireHit();
113 std::string color =
"blue";
114 if (rlWireHit.
getRLInfo() == ERightLeft::c_Right) {
116 }
else if (rlWireHit.
getRLInfo() == ERightLeft::c_Left) {
123 saveDisplay(svgFileName);
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
const CDCWireHit & getWireHit() const
Getter for the wire hit associated with the oriented hit.
ERightLeft getRLInfo() const
Getter for the right left passage information.
Class representing a three dimensional reconstructed hit.
Class representing a sequence of three dimensional reconstructed hits.
Particle full three dimensional trajectory.
static CDCWireTopology & getInstance()
Getter for the singleton instance of the wire topology.
double getOuterCylindricalR() const
Getter for the outer radius of the outer most wire layer.
PrimitivePlotter::AttributeMap AttributeMap
Forward the Attribute map from the primitive plotter.
A three dimensional vector.
Abstract base class for different kinds of events.