You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto expSignal = response->GetExpectedSignal(trk, pid);
491
-
auto expSigma = trk.has_collision() ? response->GetExpectedSigma(collisions.iteratorAt(trk.collisionId()), multTPC, trk, pid) : 0.07 * expSignal; // use default sigma value of 7% if no collision information to estimate resolution
491
+
auto expSigma = trk.has_collision() ? response->GetExpectedSigmaAtMultiplicity(multTPC, trk, pid) : 0.07 * expSignal; // use default sigma value of 7% if no collision information to estimate resolution
492
492
if (expSignal < 0. || expSigma < 0.) { // skip if expected signal invalid
auto collision = cols.rawIteratorAt(trk.collisionId());
669
695
constauto& bc = trk.has_collision() ? cols.rawIteratorAt(trk.collisionId()).templatebc_as<aod::BCsWithTimestamps>() : bcs.begin();
670
696
if (useCCDBParam && pidTPCopts.ccdbTimestamp.value == 0 && !ccdb->isCachedObjectValid(pidTPCopts.ccdbPath.value, bc.timestamp())) { // Updating parametrisation only if the initial timestamp is 0
671
697
if (pidTPCopts.recoPass.value == "") {
@@ -688,7 +714,7 @@ class pidTPCModule
688
714
}
689
715
690
716
// if this is a MC process function, go for MC tune on data processing
691
-
ifconstexpr (soa::is_table<TMCParticles>) {
717
+
ifconstexpr (requires { trk.mcParticleId(); }) {
692
718
// Perform TuneOnData sampling for MC dE/dx
693
719
float mcTunedTPCSignal = 0.;
694
720
if (!trk.hasTPC()) {
@@ -702,7 +728,7 @@ class pidTPCModule
702
728
int pid = getPIDIndex(trk.mcParticle().pdgCode());
703
729
704
730
auto expSignal = response->GetExpectedSignal(trk, pid);
705
-
auto expSigma = response->GetExpectedSigma(cols.iteratorAt(trk.collisionId()), pidmults[trk.collisionId()], trk, pid);
731
+
auto expSigma = response->GetExpectedSigmaAtMultiplicity(multTPC, trk, pid);
706
732
if (expSignal < 0. || expSigma < 0.) { // if expectation invalid then give undefined signal
0 commit comments