Skip to content

Commit 1bece76

Browse files
committed
Status point after bugfixes etc
1 parent 0dd9945 commit 1bece76

File tree

5 files changed

+554
-936
lines changed

5 files changed

+554
-936
lines changed

PWGLF/DataModel/LFStrangenessPIDTables.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ DECLARE_SOA_COLUMN(TPCSignal, tpcSignal, float); //! track TPC signal
8080
DECLARE_SOA_COLUMN(PackedTPCNSigmaEl, packedTpcNSigmaEl, int8_t); //! Nsigma proton
8181
DECLARE_SOA_COLUMN(PackedTPCNSigmaPi, packedTpcNSigmaPi, int8_t); //! Nsigma proton
8282
DECLARE_SOA_COLUMN(PackedTPCNSigmaKa, packedTpcNSigmaKa, int8_t); //! Nsigma proton
83-
DECLARE_SOA_COLUMN(PackedTPCNSigmaPr, packgedTpcNSigmaPr, int8_t); //! Nsigma proton
83+
DECLARE_SOA_COLUMN(PackedTPCNSigmaPr, packedTpcNSigmaPr, int8_t); //! Nsigma proton
8484

8585
DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigmaEl, tpcNSigmaEl, //! unpacked TPC nsigma
8686
[](int8_t nsigma_packed) -> float { return o2::aod::dautrack::packing::unpackInt8(nsigma_packed); });

PWGLF/TableProducer/Strangeness/Converters/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
# granted to it by virtue of its status as an Intergovernmental Organization
1010
# or submit itself to any jurisdiction.
1111

12+
o2physics_add_dpl_workflow(stradautrackstpcpidconverter
13+
SOURCES stradautrackstpcpidconverter.cxx
14+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
15+
COMPONENT_NAME Analysis)
16+
1217
o2physics_add_dpl_workflow(stradautrackstofpidconverter
1318
SOURCES stradautrackstofpidconverter.cxx
1419
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
#include "Framework/runDataProcessing.h"
12+
#include "Framework/AnalysisTask.h"
13+
#include "Framework/AnalysisDataModel.h"
14+
#include "PWGLF/DataModel/LFStrangenessTables.h"
15+
#include "PWGLF/DataModel/LFStrangenessPIDTables.h"
16+
17+
using namespace o2;
18+
using namespace o2::framework;
19+
20+
// converts DauTrackTOFPIDs_000 to _001
21+
struct stradautrackstofpidconverter2 {
22+
Produces<aod::DauTrackTOFPIDs_001> dautracktofpids;
23+
24+
void process(aod::DauTrackTOFPIDs_000 const& dauTrackTOFPIDs)
25+
{
26+
for (int ii = 0; ii < dauTrackTOFPIDs.size(); ii++) {
27+
auto dauTrackTOFPID = dauTrackTOFPIDs.rawIteratorAt(ii);
28+
dautracktofpids(-1, -1, dauTrackTOFPID.tofSignal(), dauTrackTOFPID.tofEvTime(), dauTrackTOFPID.length(), 0.0f);
29+
}
30+
}
31+
};
32+
33+
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
34+
{
35+
return WorkflowSpec{
36+
adaptAnalysisTask<stradautrackstofpidconverter2>(cfgc)};
37+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
#include "Framework/runDataProcessing.h"
12+
#include "Framework/AnalysisTask.h"
13+
#include "Framework/AnalysisDataModel.h"
14+
#include "PWGLF/DataModel/LFStrangenessTables.h"
15+
#include "PWGLF/DataModel/LFStrangenessPIDTables.h"
16+
17+
using namespace o2;
18+
using namespace o2::framework;
19+
20+
// converts DauTrackTOFPIDs_000 to _001
21+
struct stradautrackstpcpidconverter {
22+
Produces<aod::DauTrackTPCPIDs_001> dautrackpcpids;
23+
24+
void process(aod::DauTrackTPCPIDs_000 const& v000s)
25+
{
26+
for (int ii = 0; ii < v000s.size(); ii++) {
27+
auto dauTrackTPCPID = v000s.rawIteratorAt(ii);
28+
dautrackpcpids(dauTrackTPCPID.tpcSignal(),
29+
aod::dautrack::packing::packInInt8(dauTrackTPCPID.tpcNSigmaEl()),
30+
aod::dautrack::packing::packInInt8(dauTrackTPCPID.tpcNSigmaPi()),
31+
aod::dautrack::packing::packInInt8(dauTrackTPCPID.tpcNSigmaKa()),
32+
aod::dautrack::packing::packInInt8(dauTrackTPCPID.tpcNSigmaPr()));
33+
}
34+
}
35+
};
36+
37+
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
38+
{
39+
return WorkflowSpec{
40+
adaptAnalysisTask<stradautrackstpcpidconverter>(cfgc)};
41+
}

0 commit comments

Comments
 (0)