Skip to content

Add GBTS command-line options and config reading#1288

Open
stephenswat wants to merge 1 commit intoacts-project:mainfrom
stephenswat:feat/gbts_config_reading
Open

Add GBTS command-line options and config reading#1288
stephenswat wants to merge 1 commit intoacts-project:mainfrom
stephenswat:feat/gbts_config_reading

Conversation

@stephenswat
Copy link
Copy Markdown
Member

This commit lifts the non-controversial parts out of #1194 so that we can unblock the developments of Fabrice, Mikkel, and Mark.

@stephenswat stephenswat added feature New feature or request gbts Pull requests and issues related to GBTS labels Apr 8, 2026
@stephenswat stephenswat force-pushed the feat/gbts_config_reading branch from b05c833 to 279618e Compare April 8, 2026 13:36
@stephenswat stephenswat force-pushed the feat/gbts_config_reading branch from 279618e to 06674bd Compare April 8, 2026 13:44
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 8, 2026

Copy link
Copy Markdown
Member

@krasznaa krasznaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to have a discussion at one point about how we would handle configuration (files) in the future. This PR can go ahead without that, but I'll be really interested how this is imagined to work in a production system later on. 🤔

Comment on lines +30 to +33
// config info from file
std::vector<std::pair<uint64_t, short>> barcodeBinning;
std::vector<std::pair<int, std::vector<int>>> binTables;
traccc::device::gbts_layerInfo layerInfo;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it not be better to just have a

Suggested change
// config info from file
std::vector<std::pair<uint64_t, short>> barcodeBinning;
std::vector<std::pair<int, std::vector<int>>> binTables;
traccc::device::gbts_layerInfo layerInfo;
/// Configuration object
gbts_seedfinder_config config;

object in there? Then we could easily add more command line options later on, as needed. In case we'd want to override even more options from the command line. 🤔

Though I don't claim to properly understand the code organization at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request gbts Pull requests and issues related to GBTS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants