Skip to content

Commit b53ddfc

Browse files
authored
[PWGLF/NuSpEx] Removed nSigmaTrTOF selection and add betaTOF cut (#8392)
1 parent 2cae455 commit b53ddfc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PWGLF/TableProducer/Nuspex/lnnRecoTask.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
// Build \Lambda-n-n candidates from V0s and tracks
1313
// ==============================================================================
1414
#include <array>
15+
#include <memory>
16+
#include <string>
17+
#include <vector>
18+
#include <algorithm>
19+
1520
#include <TLorentzVector.h>
1621

1722
#include "Framework/runDataProcessing.h"
@@ -77,7 +82,6 @@ std::shared_ptr<TH1> hIsMatterGenTwoBody;
7782
std::shared_ptr<TH2> hDCAxy3H;
7883
std::shared_ptr<TH1> hLnnCandLoss;
7984
std::shared_ptr<TH2> hNSigma3HTPC_preselection;
80-
std::shared_ptr<TH2> hNSigma3HTOF_preselection;
8185

8286
float alphaAP(std::array<float, 3> const& momB, std::array<float, 3> const& momC)
8387
{
@@ -154,10 +158,10 @@ struct lnnRecoTask {
154158
Configurable<float> TPCRigidityMin3H{"TPCRigidityMin3H", 0.2, "Minimum rigidity of the triton candidate"};
155159
Configurable<float> nSigmaCutMinTPC{"nSigmaCutMinTPC", -5, "triton dEdx cut (n sigma)"};
156160
Configurable<float> nSigmaCutMaxTPC{"nSigmaCutMaxTPC", 5, "triton dEdx cut (n sigma)"};
157-
Configurable<float> nSigmaCutTOF{"nSigmaCutMinTOF", 3, "triton TOF cut (n sigma)"};
158161
Configurable<float> nTPCClusMin3H{"nTPCClusMin3H", 80, "triton NTPC clusters cut"};
159162
Configurable<float> ptMinTOF{"ptMinTOF", 0.8, "minimum pt for TOF cut"};
160163
Configurable<float> TrTOFMass2Cut{"TrTOFMass2Cut", 5.5, "minimum Triton mass square to TOF"};
164+
Configurable<float> BetaTrTOF{"BetaTrTOF", 0.4, "minimum beta TOF cut"};
161165
Configurable<bool> mcSignalOnly{"mcSignalOnly", true, "If true, save only signal in MC"};
162166

163167
// Define o2 fitter, 2-prong, active memory (no need to redefine per event)
@@ -257,7 +261,6 @@ struct lnnRecoTask {
257261
hEvents = qaRegistry.add<TH1>("hEvents", ";Events; ", HistType::kTH1D, {{2, -0.5, 1.5}});
258262
hLnnCandLoss = qaRegistry.add<TH1>("hLnnCandLoss", ";CandLoss; ", HistType::kTH1D, {{7, -0.5, 6.5}});
259263
hNSigma3HTPC_preselection = qaRegistry.add<TH2>("hNSigma3HTPC_preselection", "#it{p}/z (GeV/#it{c}); n#sigma_{TPC}(^{3}H)", HistType::kTH2F, {rigidityAxis, nSigma3HAxis});
260-
hNSigma3HTOF_preselection = qaRegistry.add<TH2>("hNSigma3HTOF_preselection", "; Signed p({}^{3}H) (GeV/#it{c^2}); n#sigma_{TOF} ({}^{3}H)", HistType::kTH2F, {TritMomAxis, nSigma3HAxis});
261264

262265
hEvents->GetXaxis()->SetBinLabel(1, "All");
263266
hEvents->GetXaxis()->SetBinLabel(2, "sel8");
@@ -422,13 +425,10 @@ struct lnnRecoTask {
422425
if (!h3track.hasTOF()) {
423426
continue;
424427
}
425-
hNSigma3HTOF_preselection->Fill(h3track.p(), h3track.tofNSigmaTr());
426-
if (std::abs(h3track.tofNSigmaTr()) > nSigmaCutTOF) {
427-
continue;
428-
}
428+
429429
beta = h3track.beta();
430430
lnnCand.mass2TrTOF = h3track.mass() * h3track.mass();
431-
if (lnnCand.mass2TrTOF < TrTOFMass2Cut) {
431+
if (lnnCand.mass2TrTOF < TrTOFMass2Cut || beta < BetaTrTOF) {
432432
continue;
433433
}
434434
}

0 commit comments

Comments
 (0)