|
16 | 16 | #ifndef PWGDQ_CORE_DQCONSTANTS_H_ |
17 | 17 | #define PWGDQ_CORE_DQCONSTANTS_H_ |
18 | 18 |
|
| 19 | +#include <array> |
19 | 20 | #include <cstdint> |
20 | 21 |
|
21 | 22 | namespace o2::dqconstants |
@@ -44,7 +45,7 @@ inline constexpr float InvalidDCA = 998.0f; |
44 | 45 | inline constexpr float InvalidStdDev = -1.0; |
45 | 46 |
|
46 | 47 | // Checks |
47 | | -inline constexpr auto IsCoordinateInvalid = [](float value) constexpr -> bool { |
| 48 | +inline constexpr auto IsCoordinateValid = [](float value) constexpr -> bool { |
48 | 49 | return value < 0.f; |
49 | 50 | }; |
50 | 51 |
|
@@ -144,13 +145,10 @@ inline constexpr int BimodalMinDataSize = 3; |
144 | 145 | inline constexpr float BimodalityInvalidBinWidth = -1.0; |
145 | 146 | inline constexpr float BimodalityBinWidth = 0.005; |
146 | 147 |
|
147 | | -inline constexpr float BimodalityDCAFrac001 = 0.01; |
148 | | -inline constexpr float BimodalityDCAFrac002 = 0.02; |
149 | | -inline constexpr float BimodalityDCAFrac005 = 0.05; |
150 | | -inline constexpr float BimodalityDCAFrac01 = 0.1; |
151 | | -inline constexpr float BimodalityDCAFrac02 = 0.2; |
152 | | -inline constexpr float BimodalityDCAFrac05 = 0.5; |
153 | | -inline constexpr float BimodalityDCAFrac1 = 1.00; |
| 148 | +// DCA thresholds in cm: 100 µm, 200 µm, 500 µm, 1 mm, 2 mm, 5 mm, 10 mm |
| 149 | +inline constexpr std::array<float, 7> BimodalityDCAThresholdsCm{ |
| 150 | + 0.01f, 0.02f, 0.05f, 0.1f, |
| 151 | + 0.2f, 0.5f, 1.0f}; |
154 | 152 |
|
155 | 153 | // KFParticle defaults |
156 | 154 | inline constexpr int KFParticleMassConstrainedConstruction = 2; |
|
0 commit comments