2828#include " ReconstructionDataFormats/Track.h"
2929#include " PWGLF/DataModel/LFResonanceTables.h"
3030#include " PWGCF/FemtoWorld/Core/FemtoWorldCollisionSelection.h"
31+ #include " PWGCF/FemtoWorld/DataModel/FemtoWorldDerived.h"
3132#include " Framework/O2DatabasePDGPlugin.h"
3233
3334#include " TPDGCode.h"
@@ -39,7 +40,7 @@ using namespace o2::framework;
3940using namespace o2 ::framework::expressions;
4041
4142// using TracksPID = aod::FullTracks; // This is okay.
42- using TracksPID = soa::Join<aod::FullTracks, aod::TracksDCA, aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr, aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr>; // for helper task with "full"
43+ using TracksPID = soa::Join<aod::FullTracks, aod::TracksDCA, aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr, aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr, aod::pidTOFbeta >; // for helper task with "full"
4344// using TracksPID = soa::Join<aod::FullTracks, aod::pidTPCPi, aod::pidTPCKa, aod::pidTPCPr, aod::pidTOFPi, aod::pidTOFKa, aod::pidTOFPr>; // This is okay for "no full"
4445
4546using CollisionsEvSel = soa::Join<aod::Collisions, aod::EvSels, aod::Mults>;
@@ -119,6 +120,7 @@ struct femtoWorldEficiencyTask {
119120 registryPID.add (" pid/kaon/plus/TOF_Nsigma" , " TOF NSigma;#it{p}_{T} (GeV/#it{c});#sigma_{TOF};" , {HistType::kTH2F , {{100 , 0 , 10 }, {100 , -5 , 5 }}});
120121 registryPID.add (" pid/kaon/plus/TPC_Nsigma" , " TPC NSigma;#it{p}_{T} (GeV/#it{c});#sigma_{TPC};" , {HistType::kTH2F , {{100 , 0 , 10 }, {100 , -5 , 5 }}});
121122 registryPID.add (" pid/kaon/plus/TPC_dEdx" , " TPC dE/dx;#it{p}_{T} (GeV/#it{c});#it{dE/dx};" , {HistType::kTH2F , {{100 , 0 , 10 }, {100 , -50 , 200 }}});
123+ registryPID.add (" pid/kaon/plus/TOF_Beta" , " TOF Signal;#it{p}_{T} (GeV/#it{c});#TOF Beta;" , {HistType::kTH2F , {{100 , 0 , 10 }, {100 , 0 , 5 }}});
122124 registryPID.addClone (" pid/kaon/plus/" , " pid/kaon/minus/" );
123125
124126 registryPID.addClone (" pid/kaon/" , " pid/pion/" );
@@ -270,6 +272,7 @@ struct femtoWorldEficiencyTask {
270272 registryPID.fill (HIST (" pid/pion/plus/TOF_Nsigma" ), track.pt (), track.tofNSigmaPi ());
271273 registryPID.fill (HIST (" pid/pion/plus/TPC_Nsigma" ), track.pt (), track.tpcNSigmaPi ());
272274 registryPID.fill (HIST (" pid/pion/plus/TPC_dEdx" ), track.pt (), track.tpcSignal ());
275+ registryPID.fill (HIST (" pid/pion/plus/TOF_Beta" ), track.pt (), track.beta ());
273276
274277 registryQAtrack.fill (HIST (" after/pion/plus/etaphi" ), track.eta (), track.phi ());
275278 registryQAtrack.fill (HIST (" after/pion/plus/pt" ), track.pt ());
@@ -283,6 +286,7 @@ struct femtoWorldEficiencyTask {
283286 registryPID.fill (HIST (" pid/pion/minus/TOF_Nsigma" ), track.pt (), track.tofNSigmaPi ());
284287 registryPID.fill (HIST (" pid/pion/minus/TPC_Nsigma" ), track.pt (), track.tpcNSigmaPi ());
285288 registryPID.fill (HIST (" pid/pion/minus/TPC_dEdx" ), track.pt (), track.tpcSignal ());
289+ registryPID.fill (HIST (" pid/pion/minus/TOF_Beta" ), track.pt (), track.beta ());
286290
287291 registryQAtrack.fill (HIST (" after/pion/minus/etaphi" ), track.eta (), track.phi ());
288292 registryQAtrack.fill (HIST (" after/pion/minus/pt" ), track.pt ());
@@ -298,6 +302,7 @@ struct femtoWorldEficiencyTask {
298302 registryPID.fill (HIST (" pid/kaon/plus/TOF_Nsigma" ), track.pt (), track.tofNSigmaKa ());
299303 registryPID.fill (HIST (" pid/kaon/plus/TPC_Nsigma" ), track.pt (), track.tpcNSigmaKa ());
300304 registryPID.fill (HIST (" pid/kaon/plus/TPC_dEdx" ), track.pt (), track.tpcSignal ());
305+ registryPID.fill (HIST (" pid/kaon/plus/TOF_Beta" ), track.pt (), track.beta ());
301306
302307 registryQAtrack.fill (HIST (" after/kaon/plus/etaphi" ), track.eta (), track.phi ());
303308 registryQAtrack.fill (HIST (" after/kaon/plus/pt" ), track.pt ());
@@ -311,6 +316,7 @@ struct femtoWorldEficiencyTask {
311316 registryPID.fill (HIST (" pid/kaon/minus/TOF_Nsigma" ), track.pt (), track.tofNSigmaKa ());
312317 registryPID.fill (HIST (" pid/kaon/minus/TPC_Nsigma" ), track.pt (), track.tpcNSigmaKa ());
313318 registryPID.fill (HIST (" pid/kaon/minus/TPC_dEdx" ), track.pt (), track.tpcSignal ());
319+ registryPID.fill (HIST (" pid/kaon/minus/TOF_Beta" ), track.pt (), track.beta ());
314320
315321 registryQAtrack.fill (HIST (" after/kaon/minus/etaphi" ), track.eta (), track.phi ());
316322 registryQAtrack.fill (HIST (" after/kaon/minus/pt" ), track.pt ());
@@ -326,6 +332,7 @@ struct femtoWorldEficiencyTask {
326332 registryPID.fill (HIST (" pid/proton/plus/TOF_Nsigma" ), track.pt (), track.tofNSigmaPr ());
327333 registryPID.fill (HIST (" pid/proton/plus/TPC_Nsigma" ), track.pt (), track.tpcNSigmaPr ());
328334 registryPID.fill (HIST (" pid/proton/plus/TPC_dEdx" ), track.pt (), track.tpcSignal ());
335+ registryPID.fill (HIST (" pid/proton/plus/TOF_Beta" ), track.pt (), track.beta ());
329336
330337 registryQAtrack.fill (HIST (" after/proton/plus/etaphi" ), track.eta (), track.phi ());
331338 registryQAtrack.fill (HIST (" after/proton/plus/pt" ), track.pt ());
@@ -339,6 +346,7 @@ struct femtoWorldEficiencyTask {
339346 registryPID.fill (HIST (" pid/proton/minus/TOF_Nsigma" ), track.pt (), track.tofNSigmaPr ());
340347 registryPID.fill (HIST (" pid/proton/minus/TPC_Nsigma" ), track.pt (), track.tpcNSigmaPr ());
341348 registryPID.fill (HIST (" pid/proton/minus/TPC_dEdx" ), track.pt (), track.tpcSignal ());
349+ registryPID.fill (HIST (" pid/proton/minus/TOF_Beta" ), track.pt (), track.beta ());
342350
343351 registryQAtrack.fill (HIST (" after/proton/minus/etaphi" ), track.eta (), track.phi ());
344352 registryQAtrack.fill (HIST (" after/proton/minus/pt" ), track.pt ());
0 commit comments