Belle II Software development
|
Equivalent to. More...
#include <TrackFindingCDCTestWithSimpleSimulation.h>
Public Member Functions | |
void | SetUp () override |
Preparations before the test. | |
void | simulate (const std::initializer_list< Helix > &helices) |
Populate the event with hits generated from the given helices. | |
void | simulate (const std::vector< Helix > &helices) |
Populate the event with hits generated from the given helices. | |
void | simulate (const std::initializer_list< CDCTrajectory3D > &trajectories) |
Populate the event with hits generated from the given trajectories. | |
void | simulate (const std::vector< CDCTrajectory3D > &trajectories) |
Populate the event with hits generated from the given trajectories. | |
void | loadPreparedEvent () |
Populate the event with hits hard codes presimulated hits. | |
void | fillCaches () |
Prepare a set of hits, axial hits, segments, axial segments and track hits. | |
void | plotMCTracks () |
Add the Monte Carlo tracks to the event plot. | |
void | plotMCTrajectories () |
Add the Monte Carlo trajectories to the event plot. | |
void | saveDisplay (const std::string &svgFileName) |
Save content of the plotter to svg file only if running in unrestricted mode –gtest_also_run_disabled_tests. | |
template<class AFunction > | |
TimeItResult | timeIt (size_t nExecutions, bool activateCallgrind, const AFunction &function, const std::function< void()> &setUp=doNothing, const std::function< void()> &tearDown=doNothing) |
Repeat a time critical simulation section a couple of times. | |
template<class... Ts> | |
void | draw (Ts &&... args) |
Forwarding draw class to the plotter instance. | |
void | TearDown () override |
Clean up after test. | |
Static Public Member Functions | |
static void | SetUpTestCase () |
Implementation of hook method to setup the environment for all tests in this test case Unpacks the wire topology from the CDCGeometryPar. | |
static void | TearDownTestCase () |
Implementation of hook method to clean up the environment for all tests in this test case. | |
Protected Attributes | |
LogConfig::ELogLevel | m_savedLogLevel = LogConfig::c_Info |
Memory for the log level that was set before the test. | |
unsigned int | m_savedDebugLogInfo = 100 |
Memory for the log info of debug that was set before the test. | |
const std::array< std::string, 6 > | m_colors {{ "red", "blue", "green", "yellow", "violet", "cyan" }} |
Some colors to cycle for plotting. | |
CDCSimpleSimulation | m_simpleSimulation |
Simple simulation generating the hits. | |
std::vector< CDCTrajectory3D > | m_mcTrajectories |
Memory for the Monte Carlo trajectories of the current event. | |
std::vector< CDCTrack > | m_mcTracks |
Memory for the Monte Carlo tracks of the current event. | |
std::vector< CDCSegment2D > | m_mcSegment2Ds |
Memory for the Monte Carlo segments of the current event. | |
std::vector< const CDCSegment2D * > | m_mcAxialSegment2Ds |
Memory for the axial Monte Carlo segments of the current event. | |
std::vector< const CDCWireHit * > | m_axialWireHits |
Memory for the axial hits of the current event. | |
std::vector< const CDCWireHit * > | m_wireHits |
Memory for the hits of the current event. | |
Private Attributes | |
EventDataPlotter | m_plotter |
Plotter facility to generate visual representations. | |
Equivalent to.
Definition at line 35 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Definition at line 39 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Forwarding draw class to the plotter instance.
Definition at line 203 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Prepare a set of hits, axial hits, segments, axial segments and track hits.
Definition at line 114 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Populate the event with hits hard codes presimulated hits.
Definition at line 102 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Add the Monte Carlo tracks to the event plot.
Definition at line 154 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Add the Monte Carlo trajectories to the event plot.
Definition at line 158 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Save content of the plotter to svg file only if running in unrestricted mode –gtest_also_run_disabled_tests.
Definition at line 166 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inlineoverride |
Preparations before the test.
Definition at line 45 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
staticinherited |
Implementation of hook method to setup the environment for all tests in this test case Unpacks the wire topology from the CDCGeometryPar.
Manually open the database and prepare the cdc geometry parameters.
Definition at line 19 of file TrackFindingCDCTestWithTopology.cc.
|
inline |
Populate the event with hits generated from the given trajectories.
Definition at line 85 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Populate the event with hits generated from the given helices.
Definition at line 66 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Populate the event with hits generated from the given trajectories.
Definition at line 91 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inline |
Populate the event with hits generated from the given helices.
Definition at line 73 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
inlineoverride |
Clean up after test.
Definition at line 209 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
staticinherited |
Implementation of hook method to clean up the environment for all tests in this test case.
Definition at line 28 of file TrackFindingCDCTestWithTopology.cc.
|
inline |
Repeat a time critical simulation section a couple of times.
The repeated execution is only done if the test is run in unrestricted mode. The default is to run it once.
Definition at line 183 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Memory for the axial hits of the current event.
Definition at line 249 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Some colors to cycle for plotting.
Definition at line 231 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Memory for the axial Monte Carlo segments of the current event.
Definition at line 246 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Memory for the Monte Carlo segments of the current event.
Definition at line 243 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Memory for the Monte Carlo tracks of the current event.
Definition at line 240 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Memory for the Monte Carlo trajectories of the current event.
Definition at line 237 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
private |
Plotter facility to generate visual representations.
Definition at line 256 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Memory for the log info of debug that was set before the test.
Definition at line 228 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Memory for the log level that was set before the test.
Definition at line 225 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Simple simulation generating the hits.
Definition at line 234 of file TrackFindingCDCTestWithSimpleSimulation.h.
|
protected |
Memory for the hits of the current event.
Definition at line 252 of file TrackFindingCDCTestWithSimpleSimulation.h.