Skip to content

Commit eef7474

Browse files
uploading nucleiQC, moving nucleiUtils.h and updating dependancies
1 parent 5d2ea8a commit eef7474

File tree

6 files changed

+990
-191
lines changed

6 files changed

+990
-191
lines changed

PWGLF/DataModel/LFSlimNucleiTables.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,21 @@ DECLARE_SOA_TABLE(NucleiPairTable, "AOD", "NUCLEIPAIRTABLE",
185185
NucleiPairTableNS::ClusterSizesITS2,
186186
NucleiPairTableNS::Flags2);
187187

188+
// Reduced table
189+
DECLARE_SOA_TABLE(NucleiTableRed, "AOD", "NUCLEITABLERED",
190+
NucleiTableNS::Pt,
191+
NucleiTableNS::Eta,
192+
NucleiTableNS::Phi,
193+
NucleiTableNS::TPCInnerParam,
194+
NucleiTableNS::ITSclusterSizes,
195+
NucleiTableNS::TPCsignal,
196+
NucleiTableNS::Beta,
197+
NucleiTableNS::DCAxy,
198+
NucleiTableNS::DCAz,
199+
NucleiTableNS::Flags,
200+
NucleiTableNS::PDGcode,
201+
NucleiTableNS::MotherPDGcode);
202+
188203
} // namespace o2::aod
189204

190205
#endif // PWGLF_DATAMODEL_LFSLIMNUCLEITABLES_H_

PWGLF/TableProducer/Nuspex/nucleiFlowTree.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
#include "TRandom3.h"
6868

69-
#include "nucleiUtils.h"
69+
#include "PWGLF/Utils/nucleiUtils.h"
7070

7171
using namespace o2;
7272
using namespace o2::framework;
@@ -257,7 +257,7 @@ struct nucleiFlowTree {
257257
spectra.add("hTpcSignalDataSelected", "Specific energy loss for selected particles", HistType::kTH2F, {{600, -6., 6., "#it{p} (GeV/#it{c})"}, {1400, 0, 1400, "d#it{E} / d#it{X} (a. u.)"}});
258258
spectra.add("hTofSignalData", "TOF beta", HistType::kTH2F, {{500, 0., 5., "#it{p} (GeV/#it{c})"}, {750, 0, 1.5, "TOF #beta"}});
259259

260-
for (int iS{0}; iS < nuclei::species; ++iS) {
260+
for (int iS{0}; iS < nuclei::Species::kNspecies; ++iS) {
261261
for (int iMax{0}; iMax < 2; ++iMax) {
262262
nuclei::pidCutTPC[iS][iMax] = cfgNsigmaTPC->get(iS, iMax); // changed pidCut to pidCutTPC so that it compiles TODO: check if it is correct
263263
}
@@ -328,7 +328,7 @@ struct nucleiFlowTree {
328328
bool selectedTPC[5]{false}, goodToAnalyse{false};
329329
std::array<float, 5> nSigmaTPC;
330330

331-
for (int iS{0}; iS < nuclei::species; ++iS) {
331+
for (int iS{0}; iS < nuclei::Species::kNspecies; ++iS) {
332332

333333
double expBethe{tpc::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScalings[iS][iC]), cfgBetheBlochParams->get(iS, 0u), cfgBetheBlochParams->get(iS, 1u), cfgBetheBlochParams->get(iS, 2u), cfgBetheBlochParams->get(iS, 3u), cfgBetheBlochParams->get(iS, 4u))};
334334

@@ -371,7 +371,7 @@ struct nucleiFlowTree {
371371
if (!collision.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) {
372372
flag |= kITSrof;
373373
}
374-
for (int iS{0}; iS < nuclei::species; ++iS) {
374+
for (int iS{0}; iS < nuclei::Species::kNspecies; ++iS) {
375375
bool selectedTOF{false};
376376
if (std::abs(dcaInfo[1]) > cfgDCAcut->get(iS, 1)) {
377377
continue;

PWGLF/TableProducer/Nuspex/nucleiUtils.h

Lines changed: 0 additions & 187 deletions
This file was deleted.

PWGLF/TableProducer/QC/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ o2physics_add_dpl_workflow(flow-qc
1818
SOURCES flowQC.cxx
1919
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
2020
COMPONENT_NAME Analysis)
21+
22+
o2physics_add_dpl_workflow(nucleiqc
23+
SOURCES nucleiQC.cxx
24+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
25+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)