|
41 | 41 | #include "Common/DataModel/TrackSelectionTables.h" |
42 | 42 |
|
43 | 43 | #include "CommonConstants/PhysicsConstants.h" |
44 | | -#include "DataFormatsTPC/BetheBlochAleph.h" |
| 44 | +#include "MathUtils/BetheBlochAleph.h" |
45 | 45 | #include "Framework/ASoA.h" |
46 | 46 | #include "Framework/ASoAHelpers.h" |
47 | 47 | #include "Framework/AnalysisDataModel.h" |
@@ -438,35 +438,35 @@ struct FlowEsePHe3 { |
438 | 438 | switch (POI) { |
439 | 439 | case ese_parameters::kProton: { |
440 | 440 | const double bgScaling[2]{ese_parameters::Charges[0] * cfgMomentumScalingBetheBloch->get(0u, 0u) / ese_parameters::Masses[0], ese_parameters::Charges[0] * cfgMomentumScalingBetheBloch->get(0u, 1u) / ese_parameters::Masses[0]}; |
441 | | - double expBethe{tpc::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(0u, 0u), cfgBetheBlochParams->get(0u, 1u), cfgBetheBlochParams->get(0u, 2u), cfgBetheBlochParams->get(0u, 3u), cfgBetheBlochParams->get(0u, 4u))}; |
| 441 | + double expBethe{common::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(0u, 0u), cfgBetheBlochParams->get(0u, 1u), cfgBetheBlochParams->get(0u, 2u), cfgBetheBlochParams->get(0u, 3u), cfgBetheBlochParams->get(0u, 4u))}; |
442 | 442 | double expSigma{expBethe * cfgBetheBlochParams->get(0u, 5u)}; |
443 | 443 | double nSigmaTPC{static_cast<float>((track.tpcSignal() - expBethe) / expSigma)}; |
444 | 444 | return nSigmaTPC; |
445 | 445 | } |
446 | 446 | case ese_parameters::kDeuteron: { |
447 | 447 | const double bgScaling[2]{ese_parameters::Charges[1] * cfgMomentumScalingBetheBloch->get(1u, 0u) / ese_parameters::Masses[1], ese_parameters::Charges[1] * cfgMomentumScalingBetheBloch->get(1u, 1u) / ese_parameters::Masses[1]}; |
448 | | - double expBethe{tpc::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(1u, 0u), cfgBetheBlochParams->get(1u, 1u), cfgBetheBlochParams->get(1u, 2u), cfgBetheBlochParams->get(1u, 3u), cfgBetheBlochParams->get(1u, 4u))}; |
| 448 | + double expBethe{common::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(1u, 0u), cfgBetheBlochParams->get(1u, 1u), cfgBetheBlochParams->get(1u, 2u), cfgBetheBlochParams->get(1u, 3u), cfgBetheBlochParams->get(1u, 4u))}; |
449 | 449 | double expSigma{expBethe * cfgBetheBlochParams->get(1u, 5u)}; |
450 | 450 | double nSigmaTPC{static_cast<float>((track.tpcSignal() - expBethe) / expSigma)}; |
451 | 451 | return nSigmaTPC; |
452 | 452 | } |
453 | 453 | case ese_parameters::kTriton: { |
454 | 454 | const double bgScaling[2]{ese_parameters::Charges[2] * cfgMomentumScalingBetheBloch->get(2u, 0u) / ese_parameters::Masses[2], ese_parameters::Charges[2] * cfgMomentumScalingBetheBloch->get(2u, 1u) / ese_parameters::Masses[2]}; |
455 | | - double expBethe{tpc::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(2u, 0u), cfgBetheBlochParams->get(2u, 1u), cfgBetheBlochParams->get(2u, 2u), cfgBetheBlochParams->get(2u, 3u), cfgBetheBlochParams->get(2u, 4u))}; |
| 455 | + double expBethe{common::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(2u, 0u), cfgBetheBlochParams->get(2u, 1u), cfgBetheBlochParams->get(2u, 2u), cfgBetheBlochParams->get(2u, 3u), cfgBetheBlochParams->get(2u, 4u))}; |
456 | 456 | double expSigma{expBethe * cfgBetheBlochParams->get(2u, 5u)}; |
457 | 457 | double nSigmaTPC{static_cast<float>((track.tpcSignal() - expBethe) / expSigma)}; |
458 | 458 | return nSigmaTPC; |
459 | 459 | } |
460 | 460 | case ese_parameters::kHe3: { |
461 | 461 | const double bgScaling[2]{ese_parameters::Charges[3] * cfgMomentumScalingBetheBloch->get(3u, 0u) / ese_parameters::Masses[3], ese_parameters::Charges[3] * cfgMomentumScalingBetheBloch->get(3u, 1u) / ese_parameters::Masses[3]}; |
462 | | - double expBethe{tpc::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(3u, 0u), cfgBetheBlochParams->get(3u, 1u), cfgBetheBlochParams->get(3u, 2u), cfgBetheBlochParams->get(3u, 3u), cfgBetheBlochParams->get(3u, 4u))}; |
| 462 | + double expBethe{common::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(3u, 0u), cfgBetheBlochParams->get(3u, 1u), cfgBetheBlochParams->get(3u, 2u), cfgBetheBlochParams->get(3u, 3u), cfgBetheBlochParams->get(3u, 4u))}; |
463 | 463 | double expSigma{expBethe * cfgBetheBlochParams->get(3u, 5u)}; |
464 | 464 | double nSigmaTPC{static_cast<float>((track.tpcSignal() - expBethe) / expSigma)}; |
465 | 465 | return nSigmaTPC; |
466 | 466 | } |
467 | 467 | case ese_parameters::kAlpha: { |
468 | 468 | const double bgScaling[2]{ese_parameters::Charges[4] * cfgMomentumScalingBetheBloch->get(4u, 0u) / ese_parameters::Masses[4], ese_parameters::Charges[4] * cfgMomentumScalingBetheBloch->get(4u, 1u) / ese_parameters::Masses[4]}; |
469 | | - double expBethe{tpc::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(4u, 0u), cfgBetheBlochParams->get(4u, 1u), cfgBetheBlochParams->get(4u, 2u), cfgBetheBlochParams->get(4u, 3u), cfgBetheBlochParams->get(4u, 4u))}; |
| 469 | + double expBethe{common::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScaling[iC]), cfgBetheBlochParams->get(4u, 0u), cfgBetheBlochParams->get(4u, 1u), cfgBetheBlochParams->get(4u, 2u), cfgBetheBlochParams->get(4u, 3u), cfgBetheBlochParams->get(4u, 4u))}; |
470 | 470 | double expSigma{expBethe * cfgBetheBlochParams->get(4u, 5u)}; |
471 | 471 | double nSigmaTPC{static_cast<float>((track.tpcSignal() - expBethe) / expSigma)}; |
472 | 472 | return nSigmaTPC; |
|
0 commit comments