Skip to content

Commit 2874fa1

Browse files
authored
Refactor configurable parameters in tableDiffWake
1 parent 86d80c6 commit 2874fa1

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

PWGJE/TableProducer/tableDiffWake.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ struct tableDiffWake {
125125

126126
HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject};
127127
Configurable<int> nBinsPt{"nBinsPt", 100, "N bins in pT histo"};
128-
Configurable<double> pT_thresh{"pT_thresh", 20.0, "pT threshold"};
129-
Configurable<float> cent_max{"cent_max", 10, "centrality"};
130-
Configurable<float> z_vert_cut{"z_vert_cut", 10.0, "z_vertex cut"};
128+
Configurable<double> ptThresh{"pT_thresh", 20.0, "pT threshold"};
129+
Configurable<float> centMax{"cent_max", 10, "centrality"};
130+
Configurable<float> zVertCut{"z_vert_cut", 10.0, "z_vertex cut"};
131131

132132
Produces<o2::aod::TableCol> testcol;
133133
Produces<o2::aod::TableTrack> testtrack;
@@ -153,9 +153,9 @@ struct tableDiffWake {
153153
// Event selection corresponds to sel8FullPbPb
154154
if (!col.sel8())
155155
return;
156-
if (col.centFT0C() > cent_max)
156+
if (col.centFT0C() > centMax)
157157
return; // Centrality 0 - 10 %
158-
if (std::abs(col.posZ()) > z_vert_cut)
158+
if (std::abs(col.posZ()) > zVertCut)
159159
return; // z position < 10 cm
160160
if (!col.selection_bit(o2::aod::evsel::kNoCollInRofStandard))
161161
return;
@@ -178,7 +178,7 @@ struct tableDiffWake {
178178

179179
if (!track.isGlobalTrack())
180180
continue;
181-
if (track.pt() > pT_thresh) {
181+
if (track.pt() > ptThresh) {
182182
eventHighpT = true;
183183
break;
184184
}
@@ -187,8 +187,8 @@ struct tableDiffWake {
187187
return;
188188
//------------------------------------------------------------
189189
// Translate values to less memory consuming values
190-
int16_t Substitute_ep2 = (int16_t)(ep2 * 1000);
191-
int16_t Substitute_ep3 = (int16_t)(ep3 * 1000);
190+
int16_t substituteEp2 = (int16_t)(ep2 * 1000);
191+
int16_t substituteEp3 = (int16_t)(ep3 * 1000);
192192

193193
testcol(col.globalIndex(),
194194
run,
@@ -199,8 +199,8 @@ struct tableDiffWake {
199199
col.posX(),
200200
col.posY(),
201201
col.posZ(),
202-
Substitute_ep2,
203-
Substitute_ep3);
202+
substituteEp2,
203+
substituteEp3);
204204

205205
for (auto const &track : tracks) {
206206

0 commit comments

Comments
 (0)