Skip to content

Commit 8294fb2

Browse files
committed
fix names and remove zdcThreshold
1 parent 285c47f commit 8294fb2

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

PWGHF/Utils/utilsUpcHf.h

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ using o2::aod::sgselector::TrueGap;
3737
struct HfUpcGapThresholds : o2::framework::ConfigurableGroup {
3838
std::string prefix = "upc"; // JSON group name
3939
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> nPVCsMin{"nPVCsMin", 2, "Minimum number of PV contributors"};
42-
o2::framework::Configurable<int> nPVCsMax{"nPVCsMax", 1000, "Maximum number of PV contributors"};
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"};
4343
o2::framework::Configurable<float> fITTimeMax{"fITTimeMax", 34, "Maximum time in FIT"};
4444
o2::framework::Configurable<float> fv0aThreshold{"fv0aThreshold", 100.0f, "FV0-A amplitude threshold for UPC gap determination (a.u.)"};
4545
o2::framework::Configurable<float> ft0aThreshold{"ft0aThreshold", 100.0f, "FT0-A amplitude threshold for UPC gap determination (a.u.)"};
4646
o2::framework::Configurable<float> ft0cThreshold{"ft0cThreshold", 50.0f, "FT0-C amplitude threshold for UPC gap determination (a.u.)"};
47-
o2::framework::Configurable<float> zdcThreshold{"zdcThreshold", 1.0f, "ZDC energy threshold for UPC gap determination (a.u.)"};
4847
};
4948

5049
/// \brief Default thresholds for gap determination
@@ -73,9 +72,9 @@ template <typename TCollision, typename TBCs>
7372
inline auto determineGapType(TCollision const& collision,
7473
TBCs const& bcs,
7574
int nDtColl = defaults::NDtColl,
76-
int nBCsMin = defaults::MinNBCs,
77-
int nPVCsMin = defaults::MinNTracks,
78-
int nPVCsMax = defaults::MaxNTracks,
75+
int nBcsMin = defaults::MinNBCs,
76+
int nContributorsPvMin = defaults::MinNTracks,
77+
int nContributorsPvMax = defaults::MaxNTracks,
7978
float fITTimeMax = defaults::MaxFITTime,
8079
float amplitudeThresholdFV0A = defaults::AmplitudeThresholdFV0A,
8180
float amplitudeThresholdFT0A = defaults::AmplitudeThresholdFT0A,
@@ -86,8 +85,8 @@ inline auto determineGapType(TCollision const& collision,
8685
// Configure SGSelector thresholds
8786
SGCutParHolder sgCuts;
8887
sgCuts.SetNDtcoll(nDtColl);
89-
sgCuts.SetMinNBCs(nBCsMin);
90-
sgCuts.SetNTracks(nPVCsMin, nPVCsMax);
88+
sgCuts.SetMinNBCs(nBcsMin);
89+
sgCuts.SetNTracks(nContributorsPvMin, nContributorsPvMax);
9190
sgCuts.SetMaxFITtime(fITTimeMax);
9291
sgCuts.SetFITAmpLimits({amplitudeThresholdFV0A, amplitudeThresholdFT0A, amplitudeThresholdFT0C});
9392

@@ -120,9 +119,9 @@ inline auto determineGapType(TCollision const& collision,
120119
{
121120
return determineGapType(collision, bcs,
122121
thresholds.nDtColl.value,
123-
thresholds.nBCsMin.value,
124-
thresholds.nPVCsMin.value,
125-
thresholds.nPVCsMax.value,
122+
thresholds.nBcsMin.value,
123+
thresholds.nContributorsPvMin.value,
124+
thresholds.nContributorsPvMax.value,
126125
thresholds.fITTimeMax.value,
127126
thresholds.fv0aThreshold.value,
128127
thresholds.ft0aThreshold.value,

0 commit comments

Comments
 (0)