Skip to content

Commit 029aeb3

Browse files
blacwovieblacw
andauthored
[PWGLF] add setting_cutChi2NClITS configurable (#10620)
Co-authored-by: blacw <blacw@blacwdeMacBook-Air.local>
1 parent ddb13d0 commit 029aeb3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ struct he3HadCandidate {
140140

141141
uint8_t NClsITSHe3 = 0u;
142142
uint8_t NClsITSHad = 0u;
143+
float Chi2NClITSHe3 = -10.f;
144+
float Chi2NClITSHad = -10.f;
143145

144146
bool isBkgUS = false; // unlike sign
145147
bool isBkgEM = false; // event mixing
@@ -178,6 +180,7 @@ struct he3hadronfemto {
178180
Configurable<float> setting_cutPtMinhe3Had{"setting_cutPtMinhe3Had", 0.0f, "Minimum PT cut on he3Had4"};
179181
Configurable<float> setting_cutClSizeItsHe3{"setting_cutClSizeItsHe3", 4.0f, "Minimum ITS cluster size for He3"};
180182
Configurable<float> setting_cutNCls{"setting_cutNCls", 5.0f, "Minimum ITS Ncluster for tracks"};
183+
Configurable<float> setting_cutChi2NClITS{"setting_cutChi2NClITS", 36.f, "Maximum ITS Chi2 for tracks"};
181184
Configurable<float> setting_cutNsigmaTPC{"setting_cutNsigmaTPC", 3.0f, "Value of the TPC Nsigma cut"};
182185
Configurable<float> setting_cutNsigmaITS{"setting_cutNsigmaITS", -1.5f, "Value of the TPC Nsigma cut"};
183186
Configurable<float> setting_cutPtMinTOFHad{"setting_cutPtMinTOFHad", 0.4f, "Minimum pT to apply the TOF cut on hadrons"};
@@ -245,6 +248,8 @@ struct he3hadronfemto {
245248
{"hDCAzHe3", ";DCA_{z} (cm)", {HistType::kTH1F, {{200, -1.0f, 1.0f}}}},
246249
{"hNClsHe3ITS", ";N_{ITS} Cluster", {HistType::kTH1F, {{20, -10.0f, 10.0f}}}},
247250
{"hNClsHadITS", ";N_{ITS} Cluster", {HistType::kTH1F, {{20, -10.0f, 10.0f}}}},
251+
{"hChi2NClHe3ITS", ";Chi2_{ITS} Ncluster", {HistType::kTH1F, {{100, 0, 100.0f}}}},
252+
{"hChi2NClHadITS", ";Chi2_{ITS} Ncluster", {HistType::kTH1F, {{100, 0, 100.0f}}}},
248253
{"hhe3HadtInvMass", "; M(^{3}He + p) (GeV/#it{c}^{2})", {HistType::kTH1F, {{300, 3.74f, 4.34f}}}},
249254
{"hHe3Pt", "#it{p}_{T} distribution; #it{p}_{T} (GeV/#it{c})", {HistType::kTH1F, {{240, -6.0f, 6.0f}}}},
250255
{"hHadronPt", "Pt distribution; #it{p}_{T} (GeV/#it{c})", {HistType::kTH1F, {{120, -3.0f, 3.0f}}}},
@@ -389,7 +394,7 @@ struct he3hadronfemto {
389394
candidate.tpcNClsCrossedRows() < 0.8 * candidate.tpcNClsFindable() ||
390395
candidate.tpcChi2NCl() > 4.f ||
391396
candidate.tpcChi2NCl() < setting_cutChi2tpcLow ||
392-
candidate.itsChi2NCl() > 36.f) {
397+
candidate.itsChi2NCl() > setting_cutChi2NClITS) {
393398
return false;
394399
}
395400

@@ -586,6 +591,8 @@ struct he3hadronfemto {
586591

587592
he3Hadcand.NClsITSHe3 = trackHe3.itsNCls();
588593
he3Hadcand.NClsITSHad = trackHad.itsNCls();
594+
he3Hadcand.Chi2NClITSHe3 = trackHe3.itsChi2NCl();
595+
he3Hadcand.Chi2NClITSHad = trackHad.itsChi2NCl();
589596

590597
he3Hadcand.sharedClustersHe3 = trackHe3.tpcNClsShared();
591598
he3Hadcand.sharedClustersHad = trackHad.tpcNClsShared();
@@ -761,6 +768,8 @@ struct he3hadronfemto {
761768
m_qaRegistry.fill(HIST("hDCAzHe3"), he3Hadcand.DCAzHe3);
762769
m_qaRegistry.fill(HIST("hNClsHe3ITS"), he3Hadcand.NClsITSHe3);
763770
m_qaRegistry.fill(HIST("hNClsHadITS"), he3Hadcand.NClsITSHad);
771+
m_qaRegistry.fill(HIST("hChi2NClHe3ITS"), he3Hadcand.Chi2NClITSHe3);
772+
m_qaRegistry.fill(HIST("hChi2NClHadITS"), he3Hadcand.Chi2NClITSHad);
764773
}
765774

766775
// ==================================================================================================================

0 commit comments

Comments
 (0)