Repository navigation
[PWGDQ] Add some code for the energy correlator study - #18600
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/code-check for 3ade723 at 2026-11-05 09:25: Full log here. |
|
Error while checking build/O2Physics/code-check for ca5c068 at 2026-11-05 09:48: Full log here. |
|
Error while checking build/O2Physics/o2 for ca5c068 at 2026-11-05 10:17: Full log here. |
|
Error while checking build/O2Physics/staging for ca5c068 at 2026-11-05 10:21: Full log here. |
|
Error while checking build/O2Physics/o2 for 3ade723 at 2026-11-05 10:38: Full log here. |
| template <typename TEvent> | ||
| int getBootstrapSample(TEvent const& event) | ||
| { | ||
| const BootstrapEventKey key{ | ||
| static_cast<uint64_t>(event.timestamp()), | ||
| static_cast<uint64_t>(event.globalIndex())}; | ||
|
|
||
| if (auto it = fBootstrapSampleMap.find(key); | ||
| it != fBootstrapSampleMap.end()) { | ||
| return it->second; | ||
| } | ||
|
|
||
| const int sample = static_cast<int>(fRndm.Rndm() * fConfigbootstrapRN.value); | ||
| fBootstrapSampleMap.emplace(key, sample); | ||
|
|
||
| return sample; | ||
| } | ||
|
|
There was a problem hiding this comment.
I don't think that all this code is needed. In the VarManager we have a kCollisionRandom variable which is filled once per event. You can create a new variable there based on the number of samples you want. So this can stay all in the VarManager. Why do you need the map?
|
Error while checking build/O2Physics/staging for 3ade723 at 2026-11-05 11:19: Full log here. |
No description provided.