Skip to content

Commit 0dc57e9

Browse files
committed
Rename configurable back
1 parent b2a3bf9 commit 0dc57e9

File tree

5 files changed

+34
-34
lines changed

5 files changed

+34
-34
lines changed

PWGHF/D2H/TableProducer/candidateSelectorB0ToDPiReduced.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct HfCandidateSelectorB0ToDPiReduced {
4444
Configurable<float> ptCandMin{"ptCandMin", 0., "Lower bound of candidate pT"};
4545
Configurable<float> ptCandMax{"ptCandMax", 50., "Upper bound of candidate pT"};
4646
// Enable PID
47-
Configurable<int> pidMethod{"pidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
47+
Configurable<int> pionPidMethod{"pionPidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
4848
Configurable<bool> acceptPIDNotApplicable{"acceptPIDNotApplicable", true, "Switch to accept Status::NotApplicable [(NotApplicable for one detector) and (NotApplicable or Conditional for the other)] in PID selection"};
4949
// TPC PID
5050
Configurable<float> ptPidTpcMin{"ptPidTpcMin", 0.15, "Lower bound of track pT for TPC PID"};
@@ -99,11 +99,11 @@ struct HfCandidateSelectorB0ToDPiReduced {
9999
LOGP(fatal, "Only one process function for data should be enabled at a time.");
100100
}
101101

102-
if (pidMethod < 0 || pidMethod >= PidMethod::NPidMethods) {
102+
if (pionPidMethod < 0 || pionPidMethod >= PidMethod::NPidMethods) {
103103
LOGP(fatal, "Invalid PID option in configurable, please set 0 (no PID), 1 (TPC or TOF), or 2 (TPC and TOF)");
104104
}
105105

106-
if (pidMethod != PidMethod::NoPid) {
106+
if (pionPidMethod != PidMethod::NoPid) {
107107
selectorPion.setRangePtTpc(ptPidTpcMin, ptPidTpcMax);
108108
selectorPion.setRangeNSigmaTpc(-nSigmaTpcMax, nSigmaTpcMax);
109109
selectorPion.setRangeNSigmaTpcCondTof(-nSigmaTpcCombinedMax, nSigmaTpcCombinedMax);
@@ -192,11 +192,11 @@ struct HfCandidateSelectorB0ToDPiReduced {
192192

193193
// track-level PID selection
194194
auto trackPi = hfCandB0.template prong1_as<TracksPion>();
195-
if (pidMethod == PidMethod::TpcOrTof || pidMethod == PidMethod::TpcAndTof) {
195+
if (pionPidMethod == PidMethod::TpcOrTof || pionPidMethod == PidMethod::TpcAndTof) {
196196
int pidTrackPi{TrackSelectorPID::Status::NotApplicable};
197-
if (pidMethod == PidMethod::TpcOrTof) {
197+
if (pionPidMethod == PidMethod::TpcOrTof) {
198198
pidTrackPi = selectorPion.statusTpcOrTof(trackPi);
199-
} else if (pidMethod == PidMethod::TpcAndTof) {
199+
} else if (pionPidMethod == PidMethod::TpcAndTof) {
200200
pidTrackPi = selectorPion.statusTpcAndTof(trackPi);
201201
}
202202
if (!hfHelper.selectionB0ToDPiPid(pidTrackPi, acceptPIDNotApplicable.value)) {
@@ -223,7 +223,7 @@ struct HfCandidateSelectorB0ToDPiReduced {
223223
hfSelB0ToDPiCandidate(statusB0ToDPi);
224224
continue;
225225
}
226-
SETBIT(statusB0ToDPi, SelectionStep::RecoMl); // RecoML = 3 --> statusB0ToDPi = 15 if pidMethod, 11 otherwise
226+
SETBIT(statusB0ToDPi, SelectionStep::RecoMl); // RecoML = 3 --> statusB0ToDPi = 15 if pionPidMethod, 11 otherwise
227227
if (activateQA) {
228228
registry.fill(HIST("hSelections"), 2 + SelectionStep::RecoMl, ptCandB0);
229229
}

PWGHF/D2H/TableProducer/candidateSelectorBplusToD0PiReduced.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct HfCandidateSelectorBplusToD0PiReduced {
4343
Configurable<double> ptCandMin{"ptCandMin", 0., "Lower bound of candidate pT"};
4444
Configurable<double> ptCandMax{"ptCandMax", 50., "Upper bound of candidate pT"};
4545
// Enable PID
46-
Configurable<int> pidMethod{"pidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
46+
Configurable<int> pionPidMethod{"pionPidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
4747
Configurable<bool> acceptPIDNotApplicable{"acceptPIDNotApplicable", true, "Switch to accept Status::NotApplicable [(NotApplicable for one detector) and (NotApplicable or Conditional for the other)] in PID selection"};
4848
// TPC PID
4949
Configurable<double> ptPidTpcMin{"ptPidTpcMin", 0.15, "Lower bound of track pT for TPC PID"};
@@ -99,11 +99,11 @@ struct HfCandidateSelectorBplusToD0PiReduced {
9999
LOGP(fatal, "Only one process function for data should be enabled at a time.");
100100
}
101101

102-
if (pidMethod < 0 || pidMethod >= PidMethod::NPidMethods) {
102+
if (pionPidMethod < 0 || pionPidMethod >= PidMethod::NPidMethods) {
103103
LOGP(fatal, "Invalid PID option in configurable, please set 0 (no PID), 1 (TPC or TOF), or 2 (TPC and TOF)");
104104
}
105105

106-
if (pidMethod != PidMethod::NoPid) {
106+
if (pionPidMethod != PidMethod::NoPid) {
107107
selectorPion.setRangePtTpc(ptPidTpcMin, ptPidTpcMax);
108108
selectorPion.setRangeNSigmaTpc(-nSigmaTpcMax, nSigmaTpcMax);
109109
selectorPion.setRangeNSigmaTpcCondTof(-nSigmaTpcCombinedMax, nSigmaTpcCombinedMax);
@@ -193,11 +193,11 @@ struct HfCandidateSelectorBplusToD0PiReduced {
193193

194194
// track-level PID selection
195195
auto trackPi = hfCandBp.template prong1_as<TracksPion>();
196-
if (pidMethod == PidMethod::TpcOrTof || pidMethod == PidMethod::TpcAndTof) {
196+
if (pionPidMethod == PidMethod::TpcOrTof || pionPidMethod == PidMethod::TpcAndTof) {
197197
int pidTrackPi{TrackSelectorPID::Status::NotApplicable};
198-
if (pidMethod == PidMethod::TpcOrTof) {
198+
if (pionPidMethod == PidMethod::TpcOrTof) {
199199
pidTrackPi = selectorPion.statusTpcOrTof(trackPi);
200-
} else if (pidMethod == PidMethod::TpcAndTof) {
200+
} else if (pionPidMethod == PidMethod::TpcAndTof) {
201201
pidTrackPi = selectorPion.statusTpcAndTof(trackPi);
202202
}
203203
if (!hfHelper.selectionBplusToD0PiPid(pidTrackPi, acceptPIDNotApplicable.value)) {
@@ -223,7 +223,7 @@ struct HfCandidateSelectorBplusToD0PiReduced {
223223
hfSelBplusToD0PiCandidate(statusBplus);
224224
continue;
225225
}
226-
SETBIT(statusBplus, SelectionStep::RecoMl); // RecoML = 3 --> statusBplus = 15 if pidMethod, 11 otherwise
226+
SETBIT(statusBplus, SelectionStep::RecoMl); // RecoML = 3 --> statusBplus = 15 if pionPidMethod, 11 otherwise
227227
if (activateQA) {
228228
registry.fill(HIST("hSelections"), 2 + SelectionStep::RecoMl, ptCandBplus);
229229
}

PWGHF/D2H/TableProducer/candidateSelectorBsToDsPiReduced.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct HfCandidateSelectorBsToDsPiReduced {
4343
Configurable<float> ptCandMin{"ptCandMin", 0., "Lower bound of candidate pT"};
4444
Configurable<float> ptCandMax{"ptCandMax", 50., "Upper bound of candidate pT"};
4545
// Enable PID
46-
Configurable<int> pidMethod{"pidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
46+
Configurable<int> pionPidMethod{"pionPidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
4747
Configurable<bool> acceptPIDNotApplicable{"acceptPIDNotApplicable", true, "Switch to accept Status::NotApplicable [(NotApplicable for one detector) and (NotApplicable or Conditional for the other)] in PID selection"};
4848
// TPC PID
4949
Configurable<float> ptPidTpcMin{"ptPidTpcMin", 0.15, "Lower bound of track pT for TPC PID"};
@@ -95,11 +95,11 @@ struct HfCandidateSelectorBsToDsPiReduced {
9595
LOGP(fatal, "Only one process function for data should be enabled at a time.");
9696
}
9797

98-
if (pidMethod < 0 || pidMethod >= PidMethod::NPidMethods) {
98+
if (pionPidMethod < 0 || pionPidMethod >= PidMethod::NPidMethods) {
9999
LOGP(fatal, "Invalid PID option in configurable, please set 0 (no PID), 1 (TPC or TOF), or 2 (TPC and TOF)");
100100
}
101101

102-
if (pidMethod != PidMethod::NoPid) {
102+
if (pionPidMethod != PidMethod::NoPid) {
103103
selectorPion.setRangePtTpc(ptPidTpcMin, ptPidTpcMax);
104104
selectorPion.setRangeNSigmaTpc(-nSigmaTpcMax, nSigmaTpcMax);
105105
selectorPion.setRangeNSigmaTpcCondTof(-nSigmaTpcCombinedMax, nSigmaTpcCombinedMax);
@@ -182,11 +182,11 @@ struct HfCandidateSelectorBsToDsPiReduced {
182182

183183
// track-level PID selection
184184
auto trackPi = hfCandBs.template prong1_as<TracksPion>();
185-
if (pidMethod == PidMethod::TpcOrTof || pidMethod == PidMethod::TpcAndTof) {
185+
if (pionPidMethod == PidMethod::TpcOrTof || pionPidMethod == PidMethod::TpcAndTof) {
186186
int pidTrackPi{TrackSelectorPID::Status::NotApplicable};
187-
if (pidMethod == PidMethod::TpcOrTof) {
187+
if (pionPidMethod == PidMethod::TpcOrTof) {
188188
pidTrackPi = selectorPion.statusTpcOrTof(trackPi);
189-
} else if (pidMethod == PidMethod::TpcAndTof) {
189+
} else if (pionPidMethod == PidMethod::TpcAndTof) {
190190
pidTrackPi = selectorPion.statusTpcAndTof(trackPi);
191191
}
192192
if (!hfHelper.selectionBsToDsPiPid(pidTrackPi, acceptPIDNotApplicable.value)) {
@@ -212,7 +212,7 @@ struct HfCandidateSelectorBsToDsPiReduced {
212212
hfSelBsToDsPiCandidate(statusBsToDsPi);
213213
continue;
214214
}
215-
SETBIT(statusBsToDsPi, SelectionStep::RecoMl); // RecoML = 3 --> statusBsToDsPi = 15 if pidMethod, 11 otherwise
215+
SETBIT(statusBsToDsPi, SelectionStep::RecoMl); // RecoML = 3 --> statusBsToDsPi = 15 if pionPidMethod, 11 otherwise
216216
if (activateQA) {
217217
registry.fill(HIST("hSelections"), 2 + SelectionStep::RecoMl, ptCandBs);
218218
}

PWGHF/D2H/TableProducer/candidateSelectorLbToLcPiReduced.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct HfCandidateSelectorLbToLcPiReduced {
4343
Configurable<float> ptCandMin{"ptCandMin", 0., "Lower bound of candidate pT"};
4444
Configurable<float> ptCandMax{"ptCandMax", 50., "Upper bound of candidate pT"};
4545
// Enable PID
46-
Configurable<int> pidMethod{"pidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
46+
Configurable<int> pionPidMethod{"pionPidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
4747
Configurable<bool> acceptPIDNotApplicable{"acceptPIDNotApplicable", true, "Switch to accept Status::NotApplicable [(NotApplicable for one detector) and (NotApplicable or Conditional for the other)] in PID selection"};
4848
// TPC PID
4949
Configurable<float> ptPidTpcMin{"ptPidTpcMin", 0.15, "Lower bound of track pT for TPC PID"};
@@ -96,11 +96,11 @@ struct HfCandidateSelectorLbToLcPiReduced {
9696
LOGP(fatal, "Only one process function for data should be enabled at a time.");
9797
}
9898

99-
if (pidMethod < 0 || pidMethod >= PidMethod::NPidMethods) {
99+
if (pionPidMethod < 0 || pionPidMethod >= PidMethod::NPidMethods) {
100100
LOGP(fatal, "Invalid PID option in configurable, please set 0 (no PID), 1 (TPC or TOF), or 2 (TPC and TOF)");
101101
}
102102

103-
if (pidMethod != PidMethod::NoPid) {
103+
if (pionPidMethod != PidMethod::NoPid) {
104104
selectorPion.setRangePtTpc(ptPidTpcMin, ptPidTpcMax);
105105
selectorPion.setRangeNSigmaTpc(-nSigmaTpcMax, nSigmaTpcMax);
106106
selectorPion.setRangeNSigmaTpcCondTof(-nSigmaTpcCombinedMax, nSigmaTpcCombinedMax);
@@ -183,11 +183,11 @@ struct HfCandidateSelectorLbToLcPiReduced {
183183

184184
// track-level PID selection
185185
auto trackPi = hfCandLb.template prong1Track_as<TracksPion>();
186-
if (pidMethod == PidMethod::TpcOrTof || pidMethod == PidMethod::TpcAndTof) {
186+
if (pionPidMethod == PidMethod::TpcOrTof || pionPidMethod == PidMethod::TpcAndTof) {
187187
int pidTrackPi{TrackSelectorPID::Status::NotApplicable};
188-
if (pidMethod == PidMethod::TpcOrTof) {
188+
if (pionPidMethod == PidMethod::TpcOrTof) {
189189
pidTrackPi = selectorPion.statusTpcOrTof(trackPi);
190-
} else if (pidMethod == PidMethod::TpcAndTof) {
190+
} else if (pionPidMethod == PidMethod::TpcAndTof) {
191191
pidTrackPi = selectorPion.statusTpcAndTof(trackPi);
192192
}
193193
if (!hfHelper.selectionLbToLcPiPid(pidTrackPi, acceptPIDNotApplicable.value)) {

PWGHF/TableProducer/candidateSelectorBplusToD0Pi.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct HfCandidateSelectorBplusToD0Pi {
4646
Configurable<double> ptCandMin{"ptCandMin", 0., "Lower bound of candidate pT"};
4747
Configurable<double> ptCandMax{"ptCandMax", 50., "Upper bound of candidate pT"};
4848
// Enable PID
49-
Configurable<int> pidMethod{"pidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
49+
Configurable<int> pionPidMethod{"pionPidMethod", PidMethod::TpcOrTof, "PID selection method for the bachelor pion (PidMethod::NoPid: none, PidMethod::TpcOrTof: TPC or TOF, PidMethod::TpcAndTof: TPC and TOF)"};
5050
Configurable<bool> acceptPIDNotApplicable{"acceptPIDNotApplicable", true, "Switch to accept Status::NotApplicable [(NotApplicable for one detector) and (NotApplicable or Conditional for the other)] in PID selection"};
5151
// TPC PID
5252
Configurable<double> ptPidTpcMin{"ptPidTpcMin", 0.15, "Lower bound of track pT for TPC PID"};
@@ -99,11 +99,11 @@ struct HfCandidateSelectorBplusToD0Pi {
9999
LOGP(fatal, "Only one process function for data should be enabled at a time.");
100100
}
101101

102-
if (pidMethod < 0 || pidMethod >= PidMethod::NPidMethods) {
102+
if (pionPidMethod < 0 || pionPidMethod >= PidMethod::NPidMethods) {
103103
LOGP(fatal, "Invalid PID option in configurable, please set 0 (no PID), 1 (TPC or TOF), or 2 (TPC and TOF)");
104104
}
105105

106-
if (pidMethod != PidMethod::NoPid) {
106+
if (pionPidMethod != PidMethod::NoPid) {
107107
selectorPion.setRangePtTpc(ptPidTpcMin, ptPidTpcMax);
108108
selectorPion.setRangeNSigmaTpc(-nSigmaTpcMax, nSigmaTpcMax);
109109
selectorPion.setRangeNSigmaTpcCondTof(-nSigmaTpcCombinedMax, nSigmaTpcCombinedMax);
@@ -196,11 +196,11 @@ struct HfCandidateSelectorBplusToD0Pi {
196196
}
197197

198198
// track-level PID selection
199-
if (pidMethod == PidMethod::TpcOrTof || pidMethod == PidMethod::TpcAndTof) {
199+
if (pionPidMethod == PidMethod::TpcOrTof || pionPidMethod == PidMethod::TpcAndTof) {
200200
int pidTrackPi{TrackSelectorPID::Status::NotApplicable};
201-
if (pidMethod == PidMethod::TpcOrTof) {
201+
if (pionPidMethod == PidMethod::TpcOrTof) {
202202
pidTrackPi = selectorPion.statusTpcOrTof(trackPi);
203-
} else if (pidMethod == PidMethod::TpcAndTof) {
203+
} else if (pionPidMethod == PidMethod::TpcAndTof) {
204204
pidTrackPi = selectorPion.statusTpcAndTof(trackPi);
205205
}
206206
if (!hfHelper.selectionBplusToD0PiPid(pidTrackPi, acceptPIDNotApplicable.value)) {
@@ -230,7 +230,7 @@ struct HfCandidateSelectorBplusToD0Pi {
230230
hfSelBplusToD0PiCandidate(statusBplus);
231231
continue;
232232
}
233-
SETBIT(statusBplus, SelectionStep::RecoMl); // RecoML = 3 --> statusBplus = 15 if pidMethod, 11 otherwise
233+
SETBIT(statusBplus, SelectionStep::RecoMl); // RecoML = 3 --> statusBplus = 15 if pionPidMethod, 11 otherwise
234234
if (activateQA) {
235235
registry.fill(HIST("hSelections"), 2 + SelectionStep::RecoMl, ptCandBplus);
236236
}

0 commit comments

Comments
 (0)