-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Command Line Options Rewrite, main branch (2024.04.09.) (#533)
* Renamed traccc::Reals to traccc::opts::value_array. * Re-organized the command line option code. Making sure that there wouldn't be duplications between the classes, and that they would be implemented in a slightly more pleasing way. * Updated the applications for the CMDL option changes. * Introduced a common base class for the program options. * Introduced traccc::opts::program_options. And with it, re-designed how the "option groups" would be used by the executables exactly. * Made the code use float constants. At the same time tried to make it a bit clearer in the code that "theta_range" is not configured directly, but rather comes from "eta_range". * Made value_array normalization easier. At the same time made sure that traccc::opts::generation would set/print all its values correctly.
- Loading branch information
Showing
75 changed files
with
2,608 additions
and
2,323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** TRACCC library, part of the ACTS project (R&D line) | ||
* | ||
* (c) 2024 CERN for the benefit of the ACTS project | ||
* | ||
* Mozilla Public License Version 2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
// Local include(s). | ||
#include "traccc/options/details/interface.hpp" | ||
|
||
namespace traccc::opts { | ||
|
||
/// Option(s) for accelerator usage | ||
class accelerator : public interface { | ||
|
||
public: | ||
/// @name Options | ||
/// @{ | ||
|
||
/// Whether to compare the accelerator code's output with that of the CPU | ||
bool compare_with_cpu = false; | ||
|
||
/// @} | ||
|
||
/// Constructor | ||
accelerator(); | ||
|
||
private: | ||
/// Print the specific options of this class | ||
std::ostream& print_impl(std::ostream& out) const override; | ||
|
||
}; // struct accelerator | ||
|
||
} // namespace traccc::opts |
36 changes: 36 additions & 0 deletions
36
examples/options/include/traccc/options/clusterization.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** TRACCC library, part of the ACTS project (R&D line) | ||
* | ||
* (c) 2024 CERN for the benefit of the ACTS project | ||
* | ||
* Mozilla Public License Version 2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
// Local include(s). | ||
#include "traccc/options/details/interface.hpp" | ||
|
||
namespace traccc::opts { | ||
|
||
/// Options for the cell clusterization algorithm(s) | ||
class clusterization : public interface { | ||
|
||
public: | ||
/// @name Options | ||
/// @{ | ||
|
||
/// The number of cells to merge in a partition | ||
unsigned short target_cells_per_partition = 1024; | ||
|
||
/// @} | ||
|
||
/// Constructor | ||
clusterization(); | ||
|
||
private: | ||
/// Print the specific options of this class | ||
std::ostream& print_impl(std::ostream& out) const override; | ||
|
||
}; // class clusterization | ||
|
||
} // namespace traccc::opts |
55 changes: 0 additions & 55 deletions
55
examples/options/include/traccc/options/common_options.hpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.