Repository navigation
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/staging for 9f34f84 at 2026-11-23 11:35: Full log here. |
|
Error while checking build/O2Physics/o2 for 9f34f84 at 2026-11-23 11:57: Full log here. |
|
Error while checking build/O2Physics/code-check for 5b76557 at 2026-11-23 12:21: Full log here. |
| } | ||
|
|
||
| [[nodiscard]] int64_t collisionIndex() const { return mCurrentCollisionIndex; } | ||
| [[nodiscard]] int magneticField() const { return mMagField; } // nominal L3 field of the current run (kG) |
There was a problem hiding this comment.
mMagField is a float, so we have an implicit cast here to int. Is there a specific reason why to return it as an integer. If not, please change the retrun type to float
| { | ||
| double sum = 0., sumErr = 0.; | ||
| int n = 0; | ||
| for (const auto& track : tracks) { // the MC process passes the tracks of all collisions -> keep only this collision |
There was a problem hiding this comment.
The tracks should be sliced in the process function, so checking the collision id should not be necessary
| } | ||
| if (mProduceSigmaTofPids) { | ||
| const auto evTime = daughter.hasTOF() ? collisionTofEventTime(col, tracks) : std::pair<float, float>{KinkTofChain::NoTofValue, KinkTofChain::NoTofValue}; | ||
| const auto chain = computeKinkTofChain(col, kink, daughter, evTime, static_cast<float>(collisionBuilder.magneticField())); |
There was a problem hiding this comment.
the static_cast is not necessary when the return type is set to float
| float mKinkAngle = 0.f; | ||
| }; | ||
|
|
||
| /// TOF time of the full kink decay chain, similar to strangenesstofpid: |
There was a problem hiding this comment.
Overall this implementation looks fine to me. I am just wondering if it would be better to integrate it into the KinkBuilder in LF and then just describe to it in the producer task
| femtotables::FemtoMcParticles const& mcParticles, | ||
| o2::aod::FMcMothers const& mcMothers, | ||
| o2::aod::FMcPartMoths const& mcPartonicMothers) | ||
| void processTracksSigmaPlusExtendedWithTofMc(femtotables::FilteredFemtoMcCollisions const& cols, |
There was a problem hiding this comment.
Do we need a special process function or should TOF information (from now on) always be computed?
This PR contains:
TOF time of the full kink decay chain: new tables FSigmaTofPids and FSigmaPlusTofPids for the kink Σ⁻ and Σ⁺ (plus D2D process functions
…ExtendedWithTof). The expected TOF time is the mother's flight time from PV --> kink vertex, + the daughter's flight time from kink vertex --> TOF, instead of assuming the daughter comes from the PV. A dynamic columntofDeltaT(massMoth, massDau)gives the time difference for any mass hypothesisJoint process function processTracksV0sCascadesKinksPhotonsSigmaPlusPcmsRun3pp: all particles together with Σ⁺PCM
Σ⁺PCM selections: chaDauDcaZMax gets looser, so the minimal cut is now 10 cm
collisionBuilder gets a magneticField() getter, which the TOF chain uses