Repository navigation
Conversation
7576216 to
ca097f4
Compare
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/code-check for 1c4ae63 at 2026-12-04 17:02: Full log here. |
| TRandom3 trackingEfficiencyRandomNumber; | ||
|
|
||
| template <soa::is_iterator BC> | ||
| float getHadronicRate(BC bc) |
There was a problem hiding this comment.
so this seems safe but could it also just be done in the init? I guess for any dataset we run over we would only need to establish the collision type once?
There was a problem hiding this comment.
Ideally yes but I couldn't find any way to get the run number out of the metadata directly; it needs to be done on a BC. So it has to be in a processing function somehow because the init won't have access to any tables
| hadronicRate = rateFetcher.fetch(ccdb.service, bc.timestamp(), runNumber, config.irSource) * 0.001; | ||
| } | ||
| } | ||
| hadronicRate = getHadronicRate(bc); |
There was a problem hiding this comment.
why not use the bcHadronicRateMapping here instead of the getHadronicRate function?
There was a problem hiding this comment.
So currently (as in the current master), processMcCollisions* strictly requires processBunchCrossings on as well, since it fills the RCT and selection mappings that processMcCollisions* use, and workflows that run over MC collisions will already have processBunchCrossings = true. But processCollisions* don't use these mappings, so workflows that don't specifically need the JBCs table could previously have processBunchCrossings off with no effect. If we tried to use the hadronic rate mapping here, then processBunchCrossings would become a strict dependency for processCollisions*, and I wanted to avoid creating a new dependency if it could be avoided and minimize the changes needed to existing workflows.
Implements some improvements/additions relating to IR.
JCollisionsfrom centrality/multiplicity/cross-section.includeHadronicRate = truenow always includes the IR inJCollisions, regardless of whichprocessCollisions*variant is used.JMcCollisionstable and fills it; it should also properly account for MCGEN datasets that don't have a BC tablegetHadronicRatefunction in the JE derived data producers (regular and embedded) that updates the hadronic rate whenincludeHadronicRateis on and the run number has changed (i.e. it doesn't query the CCDB every BC, but at every run number change)