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

[PWGJE] modification of hfj tagging def #9003

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hanseopark
Copy link
Contributor

Core/JetTaggingUtilites.h

Modification of definition about HFJ tagging
-- The original function stopped immediately if a b or c quark was found, but the current function checks all jet constituents before deciding.
Tasks/JetTaggerHFQA.cxx

To fix weighted function
Add validation process function to compare

@github-actions github-actions bot added the pwgje label Dec 16, 2024
@github-actions github-actions bot changed the title modification of hfj tagging def [PWGJE] modification of hfj tagging def Dec 16, 2024
Comment on lines +112 to +124
switch (status) {
case 33:
return 1; // High priority
case 43:
return 2;
case 23:
return 3;
case 63:
return 4;
case 51:
return 5;
default:
return 6;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't use magic numbers. See the coding guidelines.
Define an enumerator with names for these values.

if (origin == 2) {
return JetTaggingSpecies::beauty;
}
if (origin == 2) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't use hard-coded values that are represented by enumerator names.

Comment on lines +377 to +378
adaptAnalysisTask<JetTaggerhfCharged>(cfgc,
SetDefaultProcesses{}, TaskName{"jet-taggerhf-charged"})); // o2-linter: disable=name/o2-task
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't disable linter warnings without a valid reason. Address them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you Vit, but I am sorry that I don't know to fix them. I have already reported for this issue like
Specified task name jet-taggerhf-qa-charged and the struct name JetTaggerhfQaCharged produce the same device name jet-taggerhf-qa-charged. TaskName is redundant. [name/o2-task]
Do you show the solution?

Copy link
Collaborator

Choose a reason for hiding this comment

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

"TaskName is redundant." means you should remove it.

@nzardosh
Copy link
Collaborator

Hi Hanseo can you add some description for booking keeping about what the new definition you have chosen is? Is this the definition that should be taken as default from here on @hahassan7 ?

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

Successfully merging this pull request may close these issues.

3 participants