Skip to content

Commit a2e9a28

Browse files
authored
Update he3HadronFemto.cxx
1 parent 9ca8625 commit a2e9a28

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,12 @@ struct he3HadronFemto {
198198
Configurable<float> settingCutRigidityMinHe3{"settingCutRigidityMinHe3", 0.8f, "Minimum rigidity for He3"};
199199
Configurable<float> settingCutEta{"settingCutEta", 0.9f, "Eta cut on daughter track"};
200200
Configurable<float> settingCutDCAxy{"settingCutDCAxy", 2.0f, "DCAxy range for tracks"};
201-
Configurable<float> settingCutDCAz{"settingCutDCAz", 2.0f, "DCAz range for tracks"};
201+
Configurable<float> settingCutDCAz{"settingCutDCAz", 3.0f, "DCAz range for tracks"};
202202
Configurable<float> settingCutChi2tpcLow{"settingCutChi2tpcLow", 0.5f, "Low cut on TPC chi2"};
203203
Configurable<float> settingCutInvMass{"settingCutInvMass", 0.0f, "Invariant mass upper limit"};
204204
Configurable<float> settingCutPtMinhe3Had{"settingCutPtMinhe3Had", 0.0f, "Minimum PT cut on he3Had4"};
205+
Configurable<float> settingCutPtMinHad{"settingCutPtMinHad", 0.0f, "Minimum PT cut on Hadron"};
206+
Configurable<float> settingCutPtMaxHad{"settingCutPtMaxHad", 0.0f, "Maximum PT cut on Hadron"};
205207
Configurable<float> settingCutClSizeItsHe3{"settingCutClSizeItsHe3", 4.0f, "Minimum ITS cluster size for He3"};
206208
Configurable<float> settingCutNCls{"settingCutNCls", 5.0f, "Minimum ITS Ncluster for tracks"};
207209
Configurable<float> settingCutChi2NClITS{"settingCutChi2NClITS", 36.f, "Maximum ITS Chi2 for tracks"};
@@ -290,14 +292,14 @@ struct he3HadronFemto {
290292
{"h2NsigmaHadronTPC_preselection", "NsigmaHe3 TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(had)", {HistType::kTH2F, {{100, -5.0f, 5.0f}, {400, -10.0f, 10.0f}}}},
291293
{"h2NsigmaHadronTOF", "NsigmaHadron TOF distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TOF}(had)", {HistType::kTH2F, {{20, -5.0f, 5.0f}, {200, -5.0f, 5.0f}}}},
292294
{"h2NsigmaHadronTOF_preselection", "NsigmaHadron TOF distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TOF}(had)", {HistType::kTH2F, {{100, -5.0f, 5.0f}, {400, -10.0f, 10.0f}}}},
293-
{"hkStar_LS_M", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
294-
{"hkStar_LS_A", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
295-
{"hkStar_US_M", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
296-
{"hkStar_US_A", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
297-
{"hkStar_LS_M_femto", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
298-
{"hkStar_LS_A_femto", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
299-
{"hkStar_US_M_femto", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
300-
{"hkStar_US_A_femto", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
295+
{"hKstarLSmatter", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
296+
{"hKstarLSantimatter", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
297+
{"hKstarUSmatter", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
298+
{"hKstarUSantimatter", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
299+
{"hKstarLSmatter_femto", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
300+
{"hKstarLSantimatter_femto", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
301+
{"hKstarUSmatter_femto", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
302+
{"hKstarUSantimatter_femto", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
301303
},
302304
OutputObjHandlingPolicy::AnalysisObject,
303305
false,
@@ -438,7 +440,8 @@ struct he3HadronFemto {
438440
candidate.tpcNClsCrossedRows() < crossedRowsToFindableRatio * candidate.tpcNClsFindable() ||
439441
candidate.tpcChi2NCl() > maxChi2NCl ||
440442
candidate.tpcChi2NCl() < settingCutChi2tpcLow ||
441-
candidate.itsChi2NCl() > settingCutChi2NClITS) {
443+
candidate.itsChi2NCl() > settingCutChi2NClITS || candidate.dcaXY() > settingCutDCAxy ||
444+
candidate.dcaZ() > settingCutDCAz) {
442445
return false;
443446
}
444447

@@ -619,6 +622,9 @@ struct he3HadronFemto {
619622
return false;
620623
}
621624

625+
if(he3Hadcand.recoPtHad() < settingCutPtMinHad || he3Hadcand.recoPtHad() > settingCutPtMaxHad) return false;
626+
627+
622628
he3Hadcand.signHe3 = trackHe3.sign();
623629
he3Hadcand.signHad = trackHad.sign();
624630
if (!settingEnableDCAfitter) {
@@ -905,28 +911,23 @@ struct he3HadronFemto {
905911
return;
906912
if (abs(PrTOFnsigma) < 3)
907913
return;
908-
if (abs(he3Hadcand.dcaxyHe3) > 0.2 || abs(he3Hadcand.dcaxyHad) > 0.3 || abs(he3Hadcand.dcazHad) > 0.3)
909-
return;
910-
if (std::abs(he3Hadcand.recoPtHad()) < 0.14 || std::abs(he3Hadcand.recoPtHad()) > 4)
911-
return;
912-
fillHistograms(he3Hadcand);
913914

914915
float kstar = computeKstar(he3Hadcand);
915916
if (he3Hadcand.isBkgUS == 0) {
916917
if (he3Hadcand.recoPtHe3() > 0) {
917-
mQaRegistry.fill(HIST("hkStar_LS_M"), kstar);
918-
mQaRegistry.fill(HIST("hkStar_LS_M_femto"), he3Hadcand.kstarfem);
918+
mQaRegistry.fill(HIST("hKstarLSmatter"), kstar);
919+
mQaRegistry.fill(HIST("hKstarLSmatter_femto"), he3Hadcand.kstarfem);
919920
} else {
920-
mQaRegistry.fill(HIST("hkStar_LS_A"), kstar);
921-
mQaRegistry.fill(HIST("hkStar_LS_A_femto"), he3Hadcand.kstarfem);
921+
mQaRegistry.fill(HIST("hKstarLSantimatter"), kstar);
922+
mQaRegistry.fill(HIST("hKstarLSantimatter_femto"), he3Hadcand.kstarfem);
922923
}
923924
} else {
924925
if (he3Hadcand.recoPtHe3() > 0) {
925-
mQaRegistry.fill(HIST("hkStar_US_M"), kstar);
926-
mQaRegistry.fill(HIST("hkStar_US_M_femto"), he3Hadcand.kstarfem);
926+
mQaRegistry.fill(HIST("hKstarUSmatter"), kstar);
927+
mQaRegistry.fill(HIST("hKstarUSmatter_femto"), he3Hadcand.kstarfem);
927928
} else {
928-
mQaRegistry.fill(HIST("hkStar_US_A"), kstar);
929-
mQaRegistry.fill(HIST("hkStar_US_A_femto"), he3Hadcand.kstarfem);
929+
mQaRegistry.fill(HIST("hKstarUSantimatter"), kstar);
930+
mQaRegistry.fill(HIST("hKstarUSantimatter_femto"), he3Hadcand.kstarfem);
930931
}
931932
}
932933
}
@@ -945,6 +946,7 @@ struct he3HadronFemto {
945946
continue;
946947
}
947948
fillKstar(he3Hadcand);
949+
fillHistograms(he3Hadcand);
948950
auto collision = collisions.rawIteratorAt(he3Hadcand.collisionID);
949951
fillTable(he3Hadcand, collision, /*isMC*/ false);
950952
}

0 commit comments

Comments
 (0)