Skip to content

Commit 2ee7b15

Browse files
blacwovieblacwalibuild
authored
[PWGCF] new output for single particle pt spectrum (#14066)
Co-authored-by: blacw <blacw@blacwdeMacBook-Air.local> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 6a2dd81 commit 2ee7b15

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

PWGCF/Femto/FemtoNuclei/DataModel/PionNucleiTables.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ DECLARE_SOA_COLUMN(MultiplicityFT0C, multiplicityFT0C, float);
7777
} // namespace pion_nuclei_tables
7878

7979
DECLARE_SOA_TABLE(PionNucleiTable, "AOD", "PINUCLEITABLE",
80+
pion_nuclei_tables::PtPi,
81+
pion_nuclei_tables::PtNu,
82+
pion_nuclei_tables::InnerParamTPCPi,
83+
pion_nuclei_tables::InnerParamTPCNu,
8084
pion_nuclei_tables::TrackIDPi,
8185
pion_nuclei_tables::TrackIDNu)
8286
DECLARE_SOA_TABLE(PionHyperTable, "AOD", "PIHYPERTABLE",

PWGCF/Femto/FemtoNuclei/TableProducer/PiNucleiFemto.cxx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ struct PiNucleiFemto {
261261
{"hNuPt", "#it{p}_{T} distribution; #it{p}_{T} (GeV/#it{c})", {HistType::kTH1F, {{240, -6.0f, 6.0f}}}},
262262
{"hPiPt", "Pt distribution; #it{p}_{T} (GeV/#it{c})", {HistType::kTH1F, {{120, -3.0f, 3.0f}}}},
263263
{"hSingleNuPt", "#it{p}_{T} distribution; #it{p}_{T} (GeV/#it{c})", {HistType::kTH1F, {{240, -6.0f, 6.0f}}}},
264-
{"hSinglePiPt", "Pt distribution; #it{p}_{T} (GeV/#it{c})", {HistType::kTH1F, {{120, -3.0f, 3.0f}}}},
264+
{"hNuPin", "#it{p} distribution; #it{p} (GeV/#it{c})", {HistType::kTH1F, {{240, -6.0f, 6.0f}}}},
265+
{"hPiPin", "P distribution; #it{p} (GeV/#it{c})", {HistType::kTH1F, {{120, -4.0f, 4.0f}}}},
266+
{"hSingleNuPin", "#it{p} distribution; #it{p} (GeV/#it{c})", {HistType::kTH1F, {{240, -6.0f, 6.0f}}}},
267+
265268
{"hHe3TPCnsigma", "NsigmaHe3 TPC distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TPC}(He3)", {HistType::kTH2F, {{100, -2.0f, 2.0f}, {200, -5.0f, 5.0f}}}},
266269
{"hHe3P", "Pin distribution; p (GeV/#it{c})", {HistType::kTH1F, {{120, -3.0f, 3.0f}}}},
267270
{"hHe3P_preselected", "Pin distribution_preselected; p (GeV/#it{c})", {HistType::kTH1F, {{120, -3.0f, 3.0f}}}},
@@ -291,8 +294,7 @@ struct PiNucleiFemto {
291294
{"hkStaVsmT_LS_A", ";kStar (GeV/c);mT (GeV/#it{c}^{2})", {HistType::kTH2F, {{300, 0.0f, 3.0f}, {2000, 0.8, 2.0}}}},
292295
{"hkStaVsmT_US_M", ";kStar (GeV/c);mT (GeV/#it{c}^{2})", {HistType::kTH2F, {{300, 0.0f, 3.0f}, {2000, 0.8, 2.0}}}},
293296
{"hkStaVsmT_US_A", ";kStar (GeV/c);mT (GeV/#it{c}^{2})", {HistType::kTH2F, {{300, 0.0f, 3.0f}, {2000, 0.8, 2.0}}}},
294-
{"hCollIDVsCentEachPion", ";CollisionID;Centrality", {HistType::kTH2F, {{4000, 0.0f, 4000.0f}, {100, 0.0f, 100.0f}}}},
295-
{"hCollIDVsCentEachDe", ";CollisionID;Centrality", {HistType::kTH2F, {{4000, 0.0f, 4000.0f}, {100, 0.0f, 100.0f}}}},
297+
296298
{"hNHypsPerPrevColl", "Number of V0Hypers in previous collision used for mixing;N_{V0Hypers};Entries", {HistType::kTH2F, {{4000, 0.0f, 4000.0f}, {50, -0.5, 49.5}}}},
297299
{"hkStar_LS_M", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
298300
{"hkStar_LS_A", ";kStar (GeV/c)", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
@@ -815,9 +817,8 @@ struct PiNucleiFemto {
815817
}
816818

817819
template <typename Ttrack>
818-
void pairTracksSameEvent(const Ttrack& tracks, float cent)
820+
void pairTracksSameEvent(const Ttrack& tracks, float /*cent*/)
819821
{
820-
bool filledAllOnce = false;
821822
// LOG(info) << "Number of tracks: " << tracks.size();
822823
for (const auto& track0 : tracks) {
823824

@@ -833,7 +834,7 @@ struct PiNucleiFemto {
833834
}
834835
mQaRegistry.fill(HIST("hTrackSel"), Selections::kPID);
835836
mQaRegistry.fill(HIST("hSingleNuPt"), track0.pt() * track0.sign());
836-
mQaRegistry.fill(HIST("hCollIDVsCentEachDe"), track0.collisionId(), cent);
837+
mQaRegistry.fill(HIST("hSingleNuPin"), track0.tpcInnerParam() * track0.sign());
837838

838839
for (const auto& track1 : tracks) {
839840
if (track0 == track1) {
@@ -853,11 +854,6 @@ struct PiNucleiFemto {
853854
continue;
854855
}
855856

856-
if (!filledAllOnce) {
857-
mQaRegistry.fill(HIST("hCollIDVsCentEachPion"), track1.collisionId(), cent);
858-
mQaRegistry.fill(HIST("hSinglePiPt"), track1.pt() * track1.sign());
859-
}
860-
861857
SVCand trackPair;
862858
trackPair.tr0Idx = track0.globalIndex();
863859
trackPair.tr1Idx = track1.globalIndex();
@@ -866,7 +862,6 @@ struct PiNucleiFemto {
866862
trackPair.collBracket = collBracket;
867863
mTrackPairs.push_back(trackPair);
868864
}
869-
filledAllOnce = true;
870865
}
871866
}
872867

@@ -952,6 +947,10 @@ struct PiNucleiFemto {
952947
void fillTable(const PiNucandidate& piNucand, const Tcoll& collision)
953948
{
954949
mOutputDataTable(
950+
piNucand.recoPtPi(),
951+
piNucand.recoPtNu(),
952+
piNucand.momPiTPC,
953+
piNucand.momNuTPC,
955954
piNucand.trackIDPi,
956955
piNucand.trackIDNu);
957956
if (settingFillMultiplicity) {
@@ -1007,6 +1006,8 @@ struct PiNucleiFemto {
10071006
{
10081007
mQaRegistry.fill(HIST("hNuPt"), piNucand.recoPtNu());
10091008
mQaRegistry.fill(HIST("hPiPt"), piNucand.recoPtPi());
1009+
mQaRegistry.fill(HIST("hNuPin"), piNucand.momNuTPC * piNucand.signNu);
1010+
mQaRegistry.fill(HIST("hPiPin"), piNucand.momPiTPC * piNucand.signPi);
10101011
mQaRegistry.fill(HIST("hNuEta"), piNucand.recoEtaNu());
10111012
mQaRegistry.fill(HIST("hPiEta"), piNucand.recoEtaPi());
10121013
mQaRegistry.fill(HIST("hNuPhi"), piNucand.recoPhiNu());

0 commit comments

Comments
 (0)