Skip to content

Commit 758df87

Browse files
author
nkaratze
committed
corrected unused variable
1 parent fdac2f8 commit 758df87

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

PWGLF/Tasks/Strangeness/v0ptinvmassplots.cxx

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ struct V0PtInvMassPlots {
390390

391391
// V0 selection function
392392
template <typename TV0, typename Track>
393-
bool acceptV0(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack, bool derived)
393+
bool acceptV0(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack)
394394
{
395395
rPtAnalysis.fill(HIST("hNV0s"), 0.5);
396396
rPtAnalysis.get<TH1>(HIST("hNV0s"))->GetXaxis()->SetBinLabel(1, "All V0s");
@@ -418,7 +418,7 @@ struct V0PtInvMassPlots {
418418

419419
// K0sh selection function
420420
template <typename TV0, typename Track>
421-
bool acceptK0sh(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack, bool derived)
421+
bool acceptK0sh(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack)
422422
{
423423
rPtAnalysis.fill(HIST("hNK0sh"), 0.5);
424424
rPtAnalysis.get<TH1>(HIST("hNK0sh"))->GetXaxis()->SetBinLabel(1, "All");
@@ -498,7 +498,7 @@ struct V0PtInvMassPlots {
498498

499499
// Lambda selection function
500500
template <typename TV0, typename Track>
501-
bool acceptLambda(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack, bool derived)
501+
bool acceptLambda(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack)
502502
{
503503
rPtAnalysis.fill(HIST("hNLambda"), 0.5);
504504
rPtAnalysis.get<TH1>(HIST("hNLambda"))->GetXaxis()->SetBinLabel(1, "All");
@@ -580,7 +580,7 @@ struct V0PtInvMassPlots {
580580

581581
// Antilambda selection function
582582
template <typename TV0, typename Track>
583-
bool acceptAntilambda(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack, bool derived)
583+
bool acceptAntilambda(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack)
584584
{
585585
rPtAnalysis.fill(HIST("hNAntilambda"), 0.5);
586586
rPtAnalysis.get<TH1>(HIST("hNAntilambda"))->GetXaxis()->SetBinLabel(1, "All");
@@ -662,7 +662,7 @@ struct V0PtInvMassPlots {
662662

663663
// V0 selection function
664664
template <typename TV0, typename Track>
665-
bool acceptV0Derived(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack, bool derived)
665+
bool acceptV0Derived(TV0 const& v0, Track const& posDaughterTrack, Track const& negDaughterTrack)
666666
{
667667
rPtAnalysis.fill(HIST("hNV0s"), 0.5);
668668
rPtAnalysis.get<TH1>(HIST("hNV0s"))->GetXaxis()->SetBinLabel(1, "All V0s");
@@ -825,12 +825,12 @@ struct V0PtInvMassPlots {
825825
// Checking that the V0 is a true K0s/Lambdas/Antilambdas and then filling the parameter histograms and the invariant mass plots for different cuts (which are taken from namespace)
826826
const auto& posDaughterTrack = v0.template posTrack_as<DaughterTracks>();
827827
const auto& negDaughterTrack = v0.template negTrack_as<DaughterTracks>();
828-
if (!acceptV0(v0, posDaughterTrack, negDaughterTrack, false)) { // V0 Selections
828+
if (!acceptV0(v0, posDaughterTrack, negDaughterTrack)) { // V0 Selections
829829
continue;
830830
}
831831
// kzero analysis
832832
if (kzeroAnalysis == true) {
833-
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack, false)) { // K0sh Selection
833+
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack)) { // K0sh Selection
834834
// K0sh Signal Split Numerator Start
835835
for (int i = 0; i < nKaonHistograms; i++) {
836836
if (kaonptedgevalues[i] <= v0.pt() && v0.pt() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges for K0sh Splitting Numerator
@@ -864,7 +864,7 @@ struct V0PtInvMassPlots {
864864
}
865865
// lambda analysis
866866
if (lambdaAnalysis == true) {
867-
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack, false)) { // Lambda Selections
867+
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack)) { // Lambda Selections
868868
// Lambda Signal Split Numerator Start
869869
for (int i = 0; i < nLambdaHistograms; i++) {
870870
if (lambdaptedgevalues[i] <= v0.pt() && v0.pt() < lambdaptedgevalues[i + 1]) {
@@ -904,7 +904,7 @@ struct V0PtInvMassPlots {
904904
}
905905
// antilambda analysis
906906
if (antiLambdaAnalysis == true) {
907-
if (acceptAntilambda(v0, posDaughterTrack, negDaughterTrack, false)) { // Antilambda Selections
907+
if (acceptAntilambda(v0, posDaughterTrack, negDaughterTrack)) { // Antilambda Selections
908908
// Antilambda Signal Split Numerator End
909909
for (int i = 0; i < nAntilambdaHistograms; i++) {
910910
if (antilambdaptedgevalues[i] <= v0.pt() && v0.pt() < antilambdaptedgevalues[i + 1]) {
@@ -984,12 +984,12 @@ struct V0PtInvMassPlots {
984984
// Checking that the V0 is a true K0s/Lambdas/Antilambdas and then filling the parameter histograms and the invariant mass plots for different cuts (which are taken from namespace)
985985
const auto& posDaughterTrack = v0.template posTrack_as<DaughterTracks>();
986986
const auto& negDaughterTrack = v0.template negTrack_as<DaughterTracks>();
987-
if (!acceptV0(v0, posDaughterTrack, negDaughterTrack, false)) { // V0 Selection
987+
if (!acceptV0(v0, posDaughterTrack, negDaughterTrack)) { // V0 Selection
988988
continue;
989989
}
990990
// kzero analysis
991991
if (kzeroAnalysis == true) {
992-
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack, false)) { // K0sh Selection
992+
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack)) { // K0sh Selection
993993
for (int i = 0; i < nKaonHistograms; i++) {
994994
if (kaonptedgevalues[i] <= v0.pt() && v0.pt() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges
995995
pthistos::kaonPt[i]->Fill(v0.mK0Short(), collision.centFT0M()); // filling the k0s namespace histograms
@@ -999,7 +999,7 @@ struct V0PtInvMassPlots {
999999
}
10001000
// lambda analysis
10011001
if (lambdaAnalysis == true) {
1002-
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack, false)) { // Lambda Selection
1002+
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack)) { // Lambda Selection
10031003
for (int i = 0; i < nLambdaHistograms; i++) {
10041004
if (lambdaptedgevalues[i] <= v0.pt() && v0.pt() < lambdaptedgevalues[i + 1]) {
10051005
pthistos::lambdaPt[i]->Fill(v0.mLambda(), collision.centFT0M());
@@ -1009,7 +1009,7 @@ struct V0PtInvMassPlots {
10091009
}
10101010
// anti-lambda analysis
10111011
if (antiLambdaAnalysis == true) {
1012-
if (acceptAntilambda(v0, posDaughterTrack, negDaughterTrack, false)) { // Antilambda Selection
1012+
if (acceptAntilambda(v0, posDaughterTrack, negDaughterTrack)) { // Antilambda Selection
10131013
for (int i = 0; i < nAntilambdaHistograms; i++) {
10141014
if (antilambdaptedgevalues[i] <= v0.pt() && v0.pt() < antilambdaptedgevalues[i + 1]) {
10151015
pthistos::antilambdaPt[i]->Fill(v0.mAntiLambda(), collision.centFT0M());
@@ -1058,12 +1058,12 @@ struct V0PtInvMassPlots {
10581058
// Checking that the V0 is a true K0s/Lambdas/Antilambdas and then filling the parameter histograms and the invariant mass plots for different cuts (which are taken from namespace)
10591059
const auto& posDaughterTrack = v0.template posTrackExtra_as<DaughterTracksDerived>(); // Positive Daughter track
10601060
const auto& negDaughterTrack = v0.template negTrackExtra_as<DaughterTracksDerived>(); // Negative Daughter track
1061-
if (!acceptV0Derived(v0, posDaughterTrack, negDaughterTrack, true)) { // V0 Selection
1061+
if (!acceptV0Derived(v0, posDaughterTrack, negDaughterTrack)) { // V0 Selection
10621062
continue;
10631063
}
10641064
// kzero analysis
10651065
if (kzeroAnalysis == true) {
1066-
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack, true)) { // K0sh Selection
1066+
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack)) { // K0sh Selection
10671067
for (int i = 0; i < nKaonHistograms; i++) {
10681068
if (kaonptedgevalues[i] <= v0.pt() && v0.pt() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges
10691069
pthistos::kaonPt[i]->Fill(v0.mK0Short(), collision.centFT0M()); // filling the k0s namespace histograms
@@ -1073,7 +1073,7 @@ struct V0PtInvMassPlots {
10731073
}
10741074
// lambda analysis
10751075
if (lambdaAnalysis == true) {
1076-
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack, true)) { // Lambda Selection
1076+
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack)) { // Lambda Selection
10771077
for (int i = 0; i < nLambdaHistograms; i++) {
10781078
if (lambdaptedgevalues[i] <= v0.pt() && v0.pt() < lambdaptedgevalues[i + 1]) {
10791079
pthistos::lambdaPt[i]->Fill(v0.mLambda(), collision.centFT0M());
@@ -1083,7 +1083,7 @@ struct V0PtInvMassPlots {
10831083
}
10841084
// anti-lambda analysis
10851085
if (antiLambdaAnalysis == true) {
1086-
if (acceptAntilambda(v0, posDaughterTrack, negDaughterTrack, true)) { // Antilambda Selection
1086+
if (acceptAntilambda(v0, posDaughterTrack, negDaughterTrack)) { // Antilambda Selection
10871087
for (int i = 0; i < nAntilambdaHistograms; i++) {
10881088
if (antilambdaptedgevalues[i] <= v0.pt() && v0.pt() < antilambdaptedgevalues[i + 1]) {
10891089
pthistos::antilambdaPt[i]->Fill(v0.mAntiLambda(), collision.centFT0M());
@@ -1132,12 +1132,12 @@ struct V0PtInvMassPlots {
11321132
// Checking that the V0 is a true K0s/Lambdas/Antilambdas and then filling the parameter histograms and the invariant mass plots for different cuts (which are taken from namespace)
11331133
const auto& posDaughterTrack = v0.template posTrackExtra_as<DaughterTracksDerived>(); // Positive Daughter track
11341134
const auto& negDaughterTrack = v0.template negTrackExtra_as<DaughterTracksDerived>(); // Negative Daughter track
1135-
if (!acceptV0Derived(v0, posDaughterTrack, negDaughterTrack, true)) { // V0 Selections
1135+
if (!acceptV0Derived(v0, posDaughterTrack, negDaughterTrack)) { // V0 Selections
11361136
continue;
11371137
}
11381138
// kzero analysis
11391139
if (kzeroAnalysis == true) {
1140-
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack, true)) { // K0sh Selection
1140+
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack)) { // K0sh Selection
11411141
// K0sh Signal Split Numerator Start
11421142
for (int i = 0; i < nKaonHistograms; i++) {
11431143
if (kaonptedgevalues[i] <= v0.pt() && v0.pt() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges for K0sh Splitting Numerator
@@ -1168,7 +1168,7 @@ struct V0PtInvMassPlots {
11681168
}
11691169
// lambda analysis
11701170
if (lambdaAnalysis == true) {
1171-
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack, true)) { // Lambda Selections
1171+
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack)) { // Lambda Selections
11721172
// Lambda Signal Split Numerator Start
11731173
for (int i = 0; i < nLambdaHistograms; i++) {
11741174
if (lambdaptedgevalues[i] <= v0.pt() && v0.pt() < lambdaptedgevalues[i + 1]) {
@@ -1205,7 +1205,7 @@ struct V0PtInvMassPlots {
12051205
}
12061206
// antilambda analysis
12071207
if (antiLambdaAnalysis == true) {
1208-
if (acceptAntilambda(v0, posDaughterTrack, negDaughterTrack, true)) { // Antilambda Selections
1208+
if (acceptAntilambda(v0, posDaughterTrack, negDaughterTrack)) { // Antilambda Selections
12091209
// Antilambda Signal Split Numerator End
12101210
for (int i = 0; i < nAntilambdaHistograms; i++) {
12111211
if (antilambdaptedgevalues[i] <= v0.pt() && v0.pt() < antilambdaptedgevalues[i + 1]) {

0 commit comments

Comments
 (0)