Skip to content

Commit 2c053d7

Browse files
committed
Using constant defined in TrueGap for gap selection
1 parent e1378d4 commit 2c053d7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎PWGUD/Tasks/sgDeuteronSpectra.cxx‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,13 @@ struct SgDeuteronSpectra {
100100
registry.fill(HIST("collisions/GapSide"), coll.gapSide(), 1.);
101101
std::vector<float> fitCut = {fv0Cut, ft0aCut, ft0cCut, fddaCut, fddcCut};
102102
int truegapSide = sgSelector.trueGap(coll, fitCut[0], fitCut[1], fitCut[2], zdcCut);
103-
int gapA = 0;
104-
int gapC = 1;
105-
int doubleGap = 2;
106103
registry.fill(HIST("collisions/TrueGapSide"), truegapSide, 1.);
107104

108105
std::vector<float> parameters = {pvCut, dcaZCut, dcaXYCut, tpcChi2Cut, tpcNClsFindableCut, itsChi2Cut, etaCut, ptCut};
109106

110107
for (const auto& t : tracks) {
111108
if (trackselector(t, parameters) != 0) {
112-
if (truegapSide == gapA) {
109+
if (truegapSide == o2::aod::sgselector::SingleGapA) {
113110
if (t.sign() > 0) {
114111
registry.fill(HIST("tracks/Deut_Pt_TPC_GapA"), t.pt(), t.tpcNSigmaDe());
115112
registry.fill(HIST("tracks/Deut_Pt_TOF_GapA"), t.pt(), t.tofNSigmaDe());
@@ -125,7 +122,7 @@ struct SgDeuteronSpectra {
125122
}
126123
}
127124

128-
if (truegapSide == gapC) {
125+
if (truegapSide == o2::aod::sgselector::SingleGapC) {
129126
if (t.sign() > 0) {
130127
registry.fill(HIST("tracks/Deut_Pt_TPC_GapC"), t.pt(), t.tpcNSigmaDe());
131128
registry.fill(HIST("tracks/Deut_Pt_TOF_GapC"), t.pt(), t.tofNSigmaDe());
@@ -141,7 +138,7 @@ struct SgDeuteronSpectra {
141138
}
142139
}
143140

144-
if (truegapSide == doubleGap) {
141+
if (truegapSide == o2::aod::sgselector::DoubleGap) {
145142
if (t.sign() > 0) {
146143
registry.fill(HIST("tracks/Deut_Pt_TPC_DoubleGap"), t.pt(), t.tpcNSigmaDe());
147144
registry.fill(HIST("tracks/Deut_Pt_TOF_DoubleGap"), t.pt(), t.tofNSigmaDe());

0 commit comments

Comments
 (0)