Skip to content

[PWGHF] Add UPC event selection#11518

Merged
fgrosa merged 22 commits intoAliceO2Group:masterfrom
zhangbiao-phy:master
Jun 27, 2025
Merged

[PWGHF] Add UPC event selection#11518
fgrosa merged 22 commits intoAliceO2Group:masterfrom
zhangbiao-phy:master

Conversation

@zhangbiao-phy
Copy link
Collaborator

@zhangbiao-phy zhangbiao-phy commented Jun 9, 2025

Add UPC event selection into the HF framework, the preselection used taken from UD group, further selection (ZDC or ITs UPC mode) can be easily added into specific task:

  • Implement SGSelector cut from PWGUD
  • Add rejection bit into rejection mask
  • Add QA plot for the type of single gap A/C, double gap trigger event

Main changes are in trackIndexSkimCreator.cxx and utilsEvSelHf.h

image

@github-actions github-actions bot added the pwghf PWG-HF label Jun 9, 2025
@github-actions
Copy link

github-actions bot commented Jun 9, 2025

O2 linter results: ❌ 20 errors, ⚠️ 0 warnings, 🔕 47 disabled

zhangbiao-phy added a commit to zhangbiao-phy/O2Physics that referenced this pull request Jun 9, 2025
[PWGHF] Please consider the following formatting changes to AliceO2Group#11518
zhangbiao-phy added a commit to zhangbiao-phy/O2Physics that referenced this pull request Jun 9, 2025
Please consider the following formatting changes to AliceO2Group#11518
zhangbiao-phy added a commit to zhangbiao-phy/O2Physics that referenced this pull request Jun 9, 2025
[PWGHF] Please consider the following formatting changes to AliceO2Group#11518
@zhangbiao-phy zhangbiao-phy marked this pull request as ready for review June 9, 2025 11:58
@alibuild
Copy link
Collaborator

alibuild commented Jun 9, 2025

Error while checking build/O2Physics/o2 for 71fc7b5 at 2025-06-09 17:20:

## sw/BUILD/O2Physics-latest/log
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Full log here.

zhangbiao-phy added a commit to zhangbiao-phy/O2Physics that referenced this pull request Jun 9, 2025
[PWGHF] Please consider the following formatting changes to AliceO2Group#11518
o2::framework::Configurable<float> centralityMin{"centralityMin", 0., "Minimum centrality"};
o2::framework::Configurable<float> centralityMax{"centralityMax", 100., "Maximum centrality"};
o2::framework::Configurable<bool> useSel8Trigger{"useSel8Trigger", true, "Apply the sel8 event selection"};
o2::framework::Configurable<bool> useUpcTrigger{"useUpcTrigger", true, "Apply the upc event selection"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
o2::framework::Configurable<bool> useUpcTrigger{"useUpcTrigger", true, "Apply the upc event selection"};
o2::framework::Configurable<bool> useUpcTrigger{"useUpcTrigger", false, "Apply the upc event selection"};

I'd not enable it by default

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for spoting this

aod::McParticles const& mcParticles,
aod::McCollisions const& mcCollisions,
aod::BCsWithTimestamps const& bcs,
BCsInfo const& bcs,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd call the BCsInfo data type if and only if UPC selections are enabled. This means that in the process functions that do not apply UPC selections I'd not use at all the data type BCsInfo, but I'd keep the data type aod::BCsWithTimestamps

zhangbiao-phy added a commit to zhangbiao-phy/O2Physics that referenced this pull request Jun 24, 2025
[PWGHF] Please consider the following formatting changes to AliceO2Group#11518
zhangbiao-phy added a commit to zhangbiao-phy/O2Physics that referenced this pull request Jun 24, 2025
Please consider the following formatting changes to AliceO2Group#11518
@zhangbiao-phy
Copy link
Collaborator Author

hi @vkucera, thanks for the comments! I fixed all of them. Could you take a look? Thanks!

You still use useUpcSel and applyUpcSel.

I didn't get your point before, I fixed it now

@zhangbiao-phy zhangbiao-phy requested a review from vkucera June 25, 2025 06:57
zhangbiao-phy added a commit to zhangbiao-phy/O2Physics that referenced this pull request Jun 25, 2025
[PWGHF] Please consider the following formatting changes to AliceO2Group#11518
@vkucera
Copy link
Collaborator

vkucera commented Jun 26, 2025

@mfaggin @fgrosa Can you also check if it looks good to you?

@fgrosa
Copy link
Collaborator

fgrosa commented Jun 27, 2025

@mfaggin @fgrosa Can you also check if it looks good to you?

Good for me! I would suggest to move on and merge

@zhangbiao-phy
Copy link
Collaborator Author

@mfaggin @fgrosa Can you also check if it looks good to you?

Good for me! I would suggest to move on and merge

Thanks all!

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.

5 participants