File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
PWGLF/TableProducer/Strangeness/Converters Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments