Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class template edm::IDGeneratorSourceBase<T> needs some refactoring #46814

Open
makortel opened this issue Nov 27, 2024 · 4 comments
Open

Class template edm::IDGeneratorSourceBase<T> needs some refactoring #46814

makortel opened this issue Nov 27, 2024 · 4 comments

Comments

@makortel
Copy link
Contributor

#46790 added a Source (EmptySourceFromEventIDs ) that inherits from edm::IDGeneratorSourceBase<edm::InputSource>, but makes no use of IDGeneratorSourceBase's configuration parameters

desc.addOptionalUntracked<unsigned int>("numberEventsInRun")
->setComment("Number of events to generate in each run.");
desc.addOptionalUntracked<unsigned int>("numberEventsInLuminosityBlock")
->setComment("Number of events to generate in each lumi.");
desc.addUntracked<unsigned long long>("firstTime", 1)->setComment("Time before first event (ns) (for timestamp).");
desc.addUntracked<unsigned long long>("timeBetweenEvents", kNanoSecPerSec / kAveEventPerSec)
->setComment("Time between consecutive events (ns) (for timestamp).");
desc.addUntracked<unsigned int>("eventCreationDelay", 0)
->setComment("Real time delay between generation of consecutive events (ms).");
desc.addNode(edm::ParameterDescription<unsigned int>("firstEvent", 1U, false) xor
edm::ParameterDescription<unsigned long long>("firstEvent", 1ULL, false))
->setComment(
"'firstEvent' is an XOR group because it can have type uint32 or uint64, default:1\n"
"Event number of first event to generate.");
desc.addUntracked<unsigned int>("firstLuminosityBlock", 1)
->setComment("Luminosity block number of first lumi to generate.");
desc.addUntracked<unsigned int>("firstRun", 1)->setComment("Run number of first run to generate.");
desc.addUntracked<std::vector<edm::LuminosityBlockID>>("firstLuminosityBlockForEachRun", {})
->setComment(
"When the source makes a new LuminosityBlock, this list is checked to see what Run number should be used. "
"The LuminosityBlock numbers are required to be in ascending order.");

We should refactor edm::IDGeneratorSourceBase<T> such that the configuration parameters above, and all logic related to them, would be separated from the part that EmptySourceFromEventIDs uses.

@makortel
Copy link
Contributor Author

assign core

@cmsbuild
Copy link
Contributor

New categories assigned: core

@Dr15Jones,@makortel,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

cms-bot internal usage

@cmsbuild
Copy link
Contributor

A new Issue was created by @makortel.

@Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

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

No branches or pull requests

2 participants