Skip to content

Commit 8cc0c64

Browse files
committed
use constants in defaults to itialise configurables
1 parent b083b13 commit 8cc0c64

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

PWGHF/Utils/utilsUpcHf.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,6 @@ namespace o2::analysis::hf_upc
3333
/// \brief Use TrueGap enum from SGSelector for gap type classification
3434
using o2::aod::sgselector::TrueGap;
3535

36-
/// \brief Configurable group for UPC gap determination thresholds
37-
struct HfUpcGapThresholds : o2::framework::ConfigurableGroup {
38-
std::string prefix = "upc"; // JSON group name
39-
o2::framework::Configurable<int> nDtColl{"nDtColl", 1, "Number of standard deviations to consider in BC range"};
40-
o2::framework::Configurable<int> nBcsMin{"nBcsMin", 2, "Minimum number of BCs to consider in BC range"};
41-
o2::framework::Configurable<int> nContributorsPvMin{"nContributorsPvMin", 2, "Minimum number of PV contributors"};
42-
o2::framework::Configurable<int> nContributorsPvMax{"nContributorsPvMax", 1000, "Maximum number of PV contributors"};
43-
o2::framework::Configurable<float> timeFitMax{"timeFitMax", 34.0f, "Maximum time in FIT"};
44-
o2::framework::Configurable<float> fv0aThreshold{"fv0aThreshold", 100.0f, "FV0-A amplitude threshold for UPC gap determination (a.u.)"};
45-
o2::framework::Configurable<float> ft0aThreshold{"ft0aThreshold", 100.0f, "FT0-A amplitude threshold for UPC gap determination (a.u.)"};
46-
o2::framework::Configurable<float> ft0cThreshold{"ft0cThreshold", 50.0f, "FT0-C amplitude threshold for UPC gap determination (a.u.)"};
47-
};
48-
4936
/// \brief Default thresholds for gap determination
5037
namespace defaults
5138
{
@@ -59,6 +46,19 @@ constexpr int MinNTracks = 2; ///< Minimum number of tracks
5946
constexpr int MaxNTracks = 1000; ///< Maximum number of tracks
6047
} // namespace defaults
6148

49+
/// \brief Configurable group for UPC gap determination thresholds
50+
struct HfUpcGapThresholds : o2::framework::ConfigurableGroup {
51+
std::string prefix = "upc"; // JSON group name
52+
o2::framework::Configurable<int> nDtColl{"nDtColl", static_cast<int>(defaults::NDtColl), "Number of standard deviations to consider in BC range"};
53+
o2::framework::Configurable<int> nBcsMin{"nBcsMin", static_cast<int>(defaults::MinNBCs), "Minimum number of BCs to consider in BC range"};
54+
o2::framework::Configurable<int> nContributorsPvMin{"nContributorsPvMin", static_cast<int>(defaults::MinNTracks), "Minimum number of PV contributors"};
55+
o2::framework::Configurable<int> nContributorsPvMax{"nContributorsPvMax", static_cast<int>(defaults::MaxNTracks), "Maximum number of PV contributors"};
56+
o2::framework::Configurable<float> timeFitMax{"timeFitMax", static_cast<float>(defaults::MaxFITTime), "Maximum time in FIT"};
57+
o2::framework::Configurable<float> fv0aThreshold{"fv0aThreshold", static_cast<float>(defaults::AmplitudeThresholdFV0A), "FV0-A amplitude threshold for UPC gap determination (a.u.)"};
58+
o2::framework::Configurable<float> ft0aThreshold{"ft0aThreshold", static_cast<float>(defaults::AmplitudeThresholdFT0A), "FT0-A amplitude threshold for UPC gap determination (a.u.)"};
59+
o2::framework::Configurable<float> ft0cThreshold{"ft0cThreshold", static_cast<float>(defaults::AmplitudeThresholdFT0C), "FT0-C amplitude threshold for UPC gap determination (a.u.)"};
60+
};
61+
6262
/// \brief Determine gap type using SGSelector with BC range checking
6363
/// \tparam TCollision Collision type
6464
/// \tparam TBCs BC table type

0 commit comments

Comments
 (0)