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

[QC-1227] Get beam type from PDP parameter #2461

Merged
merged 4 commits into from
Oct 28, 2024
Merged

Conversation

Barthelemy
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@justonedev1 justonedev1 left a comment

Choose a reason for hiding this comment

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

Are the string values from pdp_beam_type defined somewhere? I saw them mentioned by Andrea but without any link

@Barthelemy
Copy link
Collaborator Author

short answer: I don't know.
@aferrero2707 do you know where they are defined ?
or perhaps @ktf knows ?

@ktf
Copy link
Member

ktf commented Oct 28, 2024

No idea. @shahor02 maybe?

@shahor02
Copy link
Contributor

pdp_beam_type are defined in the ECS interface and converted by the ODC to BEAMTYPE env.var, but I don't know its source code.

@Barthelemy
Copy link
Collaborator Author

Ok, thank you for the info. I conclude that the format of these values is defined somewhere in ODC.

} else if (pdpBeamType == "pPb") {
return "Pb-PROTON";
} else {
return "";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add some warning, that we met value that we did not expect?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done, I let you have a look

Warn if we can't convert
@Barthelemy Barthelemy enabled auto-merge (squash) October 28, 2024 14:48
@Barthelemy Barthelemy merged commit fb8ccce into master Oct 28, 2024
7 checks passed
Barthelemy added a commit that referenced this pull request Oct 29, 2024
* [QC-1227] Get beam type from PDP parameter

* remove useless line

* Update runnerUtils.cxx

Warn if we can't convert

* Update runnerUtils.cxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants