Skip to content

Commit 38ceefc

Browse files
author
jimun_lee
committed
[PWGLF] Fixed about O2Linter issue of KstarInOO.cxx
1 parent cd9206b commit 38ceefc

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

PWGLF/Tasks/Resonances/kstarInOO.cxx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141

4242
#include <RtypesCore.h>
4343

44-
#include <iostream>
4544
#include <algorithm>
4645
#include <chrono>
4746
#include <cmath>
4847
#include <cstddef>
4948
#include <cstdlib>
49+
#include <iostream>
5050
#include <string>
5151
#include <utility>
5252
#include <vector>
@@ -69,7 +69,6 @@ struct kstarInOO {
6969
//==================================
7070

7171
// Event Selection
72-
Configurable<std::string> cfgEventSelections{"cfgEventSelections", "sel8", "choose event selection"};
7372
Configurable<float> cfgEventVtxCut{"cfgEventVtxCut", 10.0, "V_z cut selection"};
7473

7574
ConfigurableAxis cfgCentAxis{"cfgCentAxis", {VARIABLE_WIDTH, 0.0, 1.0, 5.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0, 110.0}, "Binning of the centrality axis"};
@@ -96,7 +95,7 @@ struct kstarInOO {
9695
Configurable<bool> cfgTrackTPCPID{"cfgTrackTPCPID", true, "Enables TPC PID"};
9796
Configurable<bool> cfgTrackTOFPID{"cfgTrackTOFPID", true, "Enables TOF PID"};
9897
Configurable<float> cfgTrackTPCPIDnSig{"cfgTrackTPCPIDnSig", 4.0, "nTPC PID sigma"};
99-
Configurable<float> cfgTrackTOFPID_nSig{"cfgTrackTOFPIDnSig", 4.0, "nTOF PID sigma"};
98+
Configurable<float> cfgTrackTOFPIDnSig{"cfgTrackTOFPIDnSig", 4.0, "nTOF PID sigma"};
10099
Configurable<int> cDebugLevel{"cDebugLevel", 0, "Resolution of Debug"};
101100

102101
// Mixing
@@ -168,7 +167,7 @@ struct kstarInOO {
168167
using TrackCandidates = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection,
169168
aod::pidTPCFullKa, aod::pidTOFFullKa, aod::pidTPCFullPi, aod::pidTOFFullPi>;
170169
using TrackCandidatesMC = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::McTrackLabels, aod::TrackSelection,
171-
aod::pidTPCFullKa, aod::pidTOFFullKa, aod::pidTPCFullPi, aod::pidTOFFullPi>;
170+
aod::pidTPCFullKa, aod::pidTOFFullKa, aod::pidTPCFullPi, aod::pidTOFFullPi>;
172171

173172
// For Mixed Event
174173
using BinningType = ColumnBinningPolicy<aod::collision::PosZ, aod::cent::CentFT0C>;
@@ -187,7 +186,7 @@ struct kstarInOO {
187186
template <typename EventType>
188187
bool eventSelection(const EventType event)
189188
{
190-
if (cfg_Event_CutQA)
189+
if (cfgEventCutQA)
191190
histos.fill(HIST("hPosZ_BC"), event.posZ());
192191

193192
if (!event.sel8())
@@ -258,7 +257,7 @@ struct kstarInOO {
258257
{
259258
bool tpcPIDPassed{false}, tofPIDPassed{false};
260259
// TPC
261-
if (cfg_Track_CutQA) {
260+
if (cfgTrackCutQA) {
262261
histos.fill(HIST("QA_nSigma_kaon_TPC_BC"), candidate.pt(), candidate.tpcNSigmaKa());
263262
histos.fill(HIST("QA_nSigma_kaon_TOF_BC"), candidate.pt(), candidate.tofNSigmaKa());
264263
histos.fill(HIST("QA_kaon_TPC_TOF_BC"), candidate.tpcNSigmaKa(), candidate.tofNSigmaKa());
@@ -268,7 +267,7 @@ struct kstarInOO {
268267

269268
// TOF
270269
if (candidate.hasTOF()) {
271-
if (std::abs(candidate.tofNSigmaKa()) < cfgTrackTOFPID_nSig) {
270+
if (std::abs(candidate.tofNSigmaKa()) < cfgTrackTOFPIDnSig) {
272271
tofPIDPassed = true;
273272
}
274273
} else {
@@ -292,7 +291,7 @@ struct kstarInOO {
292291
{
293292
bool tpcPIDPassed{false}, tofPIDPassed{false};
294293
// TPC
295-
if (cfg_Track_CutQA) {
294+
if (cfgTrackCutQA) {
296295
histos.fill(HIST("QA_nSigma_pion_TPC"), candidate.pt(), candidate.tpcNSigmaPi());
297296
histos.fill(HIST("QA_nSigma_pion_TOF"), candidate.pt(), candidate.tofNSigmaPi());
298297
histos.fill(HIST("QA_pion_TPC_TOF"), candidate.tpcNSigmaPi(), candidate.tofNSigmaPi());

0 commit comments

Comments
 (0)