|
31 | 31 | #include <Framework/AnalysisHelpers.h> |
32 | 32 | #include <Framework/AnalysisTask.h> |
33 | 33 | #include <Framework/Configurable.h> |
| 34 | +#include <Framework/DataTypes.h> |
34 | 35 | #include <Framework/HistogramRegistry.h> |
35 | 36 | #include <Framework/HistogramSpec.h> |
36 | 37 | #include <Framework/InitContext.h> |
@@ -328,6 +329,9 @@ struct MeanPtFlucId { |
328 | 329 | case 5: |
329 | 330 | selectedTracks.SetRequireHitsInITSLayers(2, {0, 1, 2}); |
330 | 331 | break; |
| 332 | + default: |
| 333 | + LOGF(fatal, "Invalid custom ITS matching mode: %d", cuts.cfgCustomITSMatching.value); |
| 334 | + break; |
331 | 335 | } |
332 | 336 | selectedTracks.SetRequireITSRefit(cuts.cfgCustomRequireITS.value); |
333 | 337 | selectedTracks.SetRequireTPCRefit(cuts.cfgCustomRequireTPC.value); |
@@ -428,7 +432,7 @@ struct MeanPtFlucId { |
428 | 432 | const AxisSpec axisMultMC{multMCBins, "N_{Gen} "}; |
429 | 433 | const AxisSpec axisMultFT0M{multFT0MBins, "N_{FT0M}"}; |
430 | 434 | // Match the estimator precedence used by getConfiguredCentrality(). |
431 | | - const std::string centralityLabel = eventCuts.cfgCentFT0C ? "FT0C (%)" : (eventCuts.cfgCentFV0A ? "FV0A (%)" : "FT0M (%)"); |
| 435 | + const std::string centralityLabel = eventCuts.cfgCentFT0C ? std::string{"FT0C (%)"} : (eventCuts.cfgCentFV0A ? std::string{"FV0A (%)"} : std::string{"FT0M (%)"}); |
432 | 436 | const AxisSpec axisCentFT0M{101, 0, 101, centralityLabel}; |
433 | 437 | const AxisSpec axisCent{centBins, centralityLabel}; |
434 | 438 | const AxisSpec axisVtxZ{80, -20., 20., "V_{Z} (cm)"}; |
@@ -675,7 +679,7 @@ struct MeanPtFlucId { |
675 | 679 | if (genConfig.cfgGenCutPosZ && (!std::isfinite(genConfig.cfgGenMaxPosZ.value) || genConfig.cfgGenMaxPosZ <= 0.f)) { |
676 | 680 | LOGF(fatal, "cfgGenMaxPosZ must be finite and positive"); |
677 | 681 | } |
678 | | - const std::string estimator = eventCuts.cfgCentFT0C ? "FT0C" : (eventCuts.cfgCentFV0A ? "FV0A" : "FT0M"); |
| 682 | + const std::string estimator = eventCuts.cfgCentFT0C ? std::string{"FT0C"} : (eventCuts.cfgCentFV0A ? std::string{"FV0A"} : std::string{"FT0M"}); |
679 | 683 | constexpr size_t MinimumCentralityLookupEntries = 2; |
680 | 684 | constexpr double MinimumCentralityPercentile = 0.; |
681 | 685 | constexpr double MaximumCentralityPercentile = 100.; |
|
0 commit comments