Belle II Software
release-08-01-10
|
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. More... | |
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. More... | |
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.
|
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 |
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.