|
22 | 22 |
|
23 | 23 | #include <cmath> |
24 | 24 | #include <string> |
| 25 | +#include <utility> |
25 | 26 | #include <vector> |
26 | 27 | /// ROOT |
27 | 28 | #include "TRandom3.h" |
@@ -462,8 +463,8 @@ struct TreeWriterTpcV0 { |
462 | 463 |
|
463 | 464 | auto fillDaughterTrack = [&](const auto& mother, const TrksType::iterator& dauTrack, const V0Daughter& daughter) { |
464 | 465 | const bool passDownsamplig = downsampleTsalisCharged(dauTrack.pt(), daughter.downsamplingTsalis, daughter.mass, daughter.maxPt4dwnsmplTsalis); |
465 | | - const bool passNSigmaTofCut = std::fabs(daughter.tofNSigma) < daughter.nSigmaTofDauTrack || std::fabs(daughter.tofNSigma+999.) < 1e-3; |
466 | | - const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs(daughter.tofNSigma+999.) > 1e-3; |
| 466 | + const bool passNSigmaTofCut = std::fabs(daughter.tofNSigma) < daughter.nSigmaTofDauTrack || std::fabs(daughter.tofNSigma + 999.) < 1e-3; |
| 467 | + const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs(daughter.tofNSigma + 999.) > 1e-3; |
467 | 468 | if (passDownsamplig && passNSigmaTofCut && passMatchTofRequirement) { |
468 | 469 | fillSkimmedV0Table<IsCorrectedDeDx>(mother, dauTrack, collision, daughter.tpcNSigma, daughter.tofNSigma, daughter.tpcExpSignal, daughter.id, runnumber, daughter.dwnSmplFactor, hadronicRate); |
469 | 470 | } |
@@ -551,8 +552,8 @@ struct TreeWriterTpcV0 { |
551 | 552 |
|
552 | 553 | auto fillDaughterTrack = [&](const auto& mother, const TrksType::iterator& dauTrack, const V0Daughter& daughter, const aod::TracksQA& trackQAInstance, const bool existTrkQA) { |
553 | 554 | const bool passDownsamplig = downsampleTsalisCharged(dauTrack.pt(), daughter.downsamplingTsalis, daughter.mass, daughter.maxPt4dwnsmplTsalis); |
554 | | - const bool passNSigmaTofCut = std::fabs(daughter.tofNSigma) < daughter.nSigmaTofDauTrack || std::fabs(daughter.tofNSigma+999.) < 1e-3; |
555 | | - const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs(daughter.tofNSigma+999.) > 1e-3; |
| 555 | + const bool passNSigmaTofCut = std::fabs(daughter.tofNSigma) < daughter.nSigmaTofDauTrack || std::fabs(daughter.tofNSigma + 999.) < 1e-3; |
| 556 | + const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs(daughter.tofNSigma + 999.) > 1e-3; |
556 | 557 | if (passDownsamplig && passNSigmaTofCut && passMatchTofRequirement) { |
557 | 558 | fillSkimmedV0TableWithTrQAGeneric<IsCorrectedDeDx, IsWithdEdx>(mother, dauTrack, trackQAInstance, existTrkQA, collision, daughter.tpcNSigma, daughter.tofNSigma, daughter.tpcExpSignal, daughter.id, runnumber, daughter.dwnSmplFactor, hadronicRate, bcGlobalIndex, bcTimeFrameId, bcBcInTimeFrame); |
558 | 559 | } |
|
0 commit comments