Skip to content

Commit 22178f8

Browse files
ddobrigkalibuild
andauthored
[Common] Add PDG selection for flow test (AliceO2Group#9910)
Co-authored-by: ALICE Builder <[email protected]>
1 parent b1a7163 commit 22178f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Common/Tasks/flowTest.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ struct flowTest {
3939

4040
Configurable<float> minB{"minB", 0.0f, "min impact parameter"};
4141
Configurable<float> maxB{"maxB", 20.0f, "max impact parameter"};
42+
Configurable<int> pdgSelection{"pdgSelection", 0, "pdg code selection for tracking study (0: no selection)"};
4243

4344
ConfigurableAxis axisB{"axisB", {100, 0.0f, 20.0f}, ""};
4445
ConfigurableAxis axisPhi{"axisPhi", {100, 0.0f, 2.0f * TMath::Pi()}, ""};
@@ -94,6 +95,8 @@ struct flowTest {
9495
int pdgCode = TMath::Abs(mcParticle.pdgCode());
9596
if (pdgCode != 11 && pdgCode != 13 && pdgCode != 211 && pdgCode != 321 && pdgCode != 2212)
9697
continue;
98+
if ((pdgSelection.value != 0) && (pdgCode != pdgSelection.value))
99+
continue; // isn't of desired species and pdgSelection is requested
97100

98101
if (!mcParticle.isPhysicalPrimary())
99102
continue;

0 commit comments

Comments
 (0)