Skip to content

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

Merged
Barthelemy merged 4 commits into
masterfrom
beam-type-from-pdp
Oct 28, 2024
Merged

[QC-1227] Get beam type from PDP parameter#2461
Barthelemy merged 4 commits into
masterfrom
beam-type-from-pdp

Conversation

@Barthelemy
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

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

@ktf
Copy link
Copy Markdown
Member

ktf commented Oct 28, 2024

No idea. @shahor02 maybe?

@shahor02
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

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

Comment thread Framework/src/runnerUtils.cxx Outdated
} else if (pdpBeamType == "pPb") {
return "Pb-PROTON";
} else {
return "";
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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