Skip to content

Commit e9cf5ce

Browse files
author
Preet Pati
committed
Fixed O2linter errors
1 parent cf0bb17 commit e9cf5ce

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/corrFit.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -855,20 +855,20 @@ struct CorrFit {
855855
correctionsLoaded = true;
856856
}
857857

858-
bool getEfficiencyCorrection_Nch(float& weight_Nch, float pt)
858+
bool getEfficiencyCorrectionNch(float& weightNch, float pt)
859859
{
860-
float eff_Nch = 1.;
860+
float effNch = 1.;
861861
if (mEfficiencyNch) {
862862

863863
int ptBin = mEfficiencyNch->FindBin(pt);
864-
eff_Nch = mEfficiencyNch->GetBinContent(ptBin);
864+
effNch = mEfficiencyNch->GetBinContent(ptBin);
865865

866866
} else {
867-
eff_Nch = 1.0;
867+
effNch = 1.0;
868868
}
869-
if (eff_Nch == 0)
869+
if (effNch == 0)
870870
return false;
871-
weight_Nch = 1. / eff_Nch;
871+
weightNch = 1. / effNch;
872872
return true;
873873
}
874874

@@ -910,19 +910,19 @@ struct CorrFit {
910910
void trackCounter(TTracks tracks, double& multiplicity) // function to count the number of tracks in the event and fill the histogram
911911
{
912912
double nTracksCorrected = 0;
913-
float weight_Nch = 1.0f;
913+
float weightNch = 1.0f;
914914
for (auto const& track : tracks) {
915915

916916
if (cfgRefMultiplicity) {
917917
if (track.pt() > cfgRefpTMax)
918918
continue;
919919
}
920920

921-
if (!getEfficiencyCorrection_Nch(weight_Nch, track.pt())) {
921+
if (!getEfficiencyCorrectionNch(weightNch, track.pt())) {
922922
continue;
923923
}
924924

925-
nTracksCorrected += weight_Nch;
925+
nTracksCorrected += weightNch;
926926
}
927927
multiplicity = nTracksCorrected;
928928
}
@@ -956,7 +956,7 @@ struct CorrFit {
956956
}
957957

958958
template <typename TTrack>
959-
void fillNsigmaBeforeCut(TTrack track1, Int_t pid) // function to fill the QA before Nsigma selection
959+
void fillNsigmaBeforeCut(TTrack track1, int pid) // function to fill the QA before Nsigma selection
960960
{
961961
switch (pid) {
962962
case kPions: // For Pions
@@ -1008,7 +1008,7 @@ struct CorrFit {
10081008
} // end of fillNsigmaBeforeCut
10091009

10101010
template <typename TTrack>
1011-
void fillNsigmaAfterCut(TTrack track1, Int_t pid) // function to fill the QA after Nsigma selection
1011+
void fillNsigmaAfterCut(TTrack track1, int pid) // function to fill the QA after Nsigma selection
10121012
{
10131013
switch (pid) {
10141014
case kPions: // For Pions
@@ -1221,7 +1221,7 @@ struct CorrFit {
12211221
if (cfgPIDConfgs.cfgPIDParticle > kCharged)
12221222
fillNsigmaAfterCut(track1, cfgPIDConfgs.cfgPIDParticle);
12231223

1224-
if (!getEfficiencyCorrection_Nch(triggerWeight, track1.pt()))
1224+
if (!getEfficiencyCorrectionNch(triggerWeight, track1.pt()))
12251225
continue;
12261226

12271227
if (system == SameEvent) {
@@ -1233,7 +1233,7 @@ struct CorrFit {
12331233
if (!trackSelected(track2))
12341234
continue;
12351235

1236-
if (!getEfficiencyCorrection_Nch(associateWeight, track2.pt()))
1236+
if (!getEfficiencyCorrectionNch(associateWeight, track2.pt()))
12371237
continue;
12381238

12391239
if (cfgRefpTt) {

PWGCF/TwoParticleCorrelations/Tasks/corrReso.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -923,20 +923,20 @@ struct CorrReso {
923923
correctionsLoaded = true;
924924
}
925925

926-
bool getEfficiencyCorrection_Nch(float& weight_Nch, float pt)
926+
bool getEfficiencyCorrectionNch(float& weightNch, float pt)
927927
{
928-
float eff_Nch = 1.;
928+
float effNch = 1.;
929929
if (mEfficiencyNch) {
930930

931931
int ptBin = mEfficiencyNch->FindBin(pt);
932-
eff_Nch = mEfficiencyNch->GetBinContent(ptBin);
932+
effNch = mEfficiencyNch->GetBinContent(ptBin);
933933

934934
} else {
935-
eff_Nch = 1.0;
935+
effNch = 1.0;
936936
}
937-
if (eff_Nch == 0)
937+
if (effNch == 0)
938938
return false;
939-
weight_Nch = 1. / eff_Nch;
939+
weight_Nch = 1. / effNch;
940940
return true;
941941
}
942942

@@ -963,19 +963,19 @@ struct CorrReso {
963963
void trackCounter(TTracks tracks, double& multiplicity) // function to count the number of tracks in the event and fill the histogram
964964
{
965965
double nTracksCorrected = 0;
966-
float weight_Nch = 1.0f;
966+
float weightNch = 1.0f;
967967
for (auto const& track : tracks) {
968968

969969
if (cfgRefMultiplicity) {
970970
if (track.pt() > cfgRefpTMax)
971971
continue;
972972
}
973973

974-
if (!getEfficiencyCorrection_Nch(weight_Nch, track.pt())) {
974+
if (!getEfficiencyCorrectionNch(weightNch, track.pt())) {
975975
continue;
976976
}
977977

978-
nTracksCorrected += weight_Nch;
978+
nTracksCorrected += weightNch;
979979
}
980980
multiplicity = nTracksCorrected;
981981
}

0 commit comments

Comments
 (0)