Skip to content

Commit 973417c

Browse files
Add stradautrackstofpidconverter3
1 parent 7f4c6af commit 973417c

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 "PWGLF/DataModel/LFStrangenessPIDTables.h"
12+
#include "PWGLF/DataModel/LFStrangenessTables.h"
13+
14+
#include "Framework/AnalysisDataModel.h"
15+
#include "Framework/AnalysisTask.h"
16+
#include "Framework/runDataProcessing.h"
17+
18+
using namespace o2;
19+
using namespace o2::framework;
20+
21+
// converts DauTrackTOFPIDs_001 to _002
22+
struct stradautrackstofpidconverter3 {
23+
Produces<aod::DauTrackTOFPIDs_002> dautracktofpids;
24+
25+
void process(aod::DauTrackTOFPIDs_001 const& dauTracks)
26+
{
27+
// create new TOFPIDs
28+
for (const auto& dauTrack : dauTracks) {
29+
dautracktofpids(
30+
-1,
31+
-1,
32+
dauTrack.tofSignal(),
33+
dauTrack.tofEvTime(),
34+
999.0f, /*dummy event time error for TOF*/
35+
dauTrack.length(),
36+
0.0f);
37+
}
38+
}
39+
};
40+
41+
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
42+
{
43+
return WorkflowSpec{
44+
adaptAnalysisTask<stradautrackstofpidconverter3>(cfgc)};
45+
}

0 commit comments

Comments
 (0)