|
| 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 | + |
| 12 | +#include "Framework/runDataProcessing.h" |
| 13 | +#include "Framework/AnalysisTask.h" |
| 14 | +#include "Framework/AnalysisDataModel.h" |
| 15 | + |
| 16 | +using namespace o2; |
| 17 | +using namespace o2::framework; |
| 18 | + |
| 19 | +struct Run2BCInfosConverter { |
| 20 | + Produces<aod::Run2BCInfos_001> Run2BCInfos_001; |
| 21 | + void process(aod::Run2BCInfos_000 const& Run2BCInfos_000) |
| 22 | + { |
| 23 | + |
| 24 | + for (const auto& entry : Run2BCInfos_000) { |
| 25 | + Run2BCInfos_001(entry.eventCuts(), |
| 26 | + entry.triggerMaskNext50(), entry.l0TriggerInputMask(), |
| 27 | + entry.spdClustersL0(), entry.spdClustersL1(), |
| 28 | + entry.spdFiredChipsL0(), entry.spdFiredChipsL1(), |
| 29 | + entry.spdFiredFastOrL0(), entry.spdFiredFastOrL1(), |
| 30 | + entry.v0TriggerChargeA(), entry.v0TriggerChargeC(), |
| 31 | + 0, 0); |
| 32 | + } |
| 33 | + } |
| 34 | +}; |
| 35 | + |
| 36 | +WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) |
| 37 | +{ |
| 38 | + return WorkflowSpec{ |
| 39 | + adaptAnalysisTask<Run2BCInfosConverter>(cfgc)}; |
| 40 | +} |
0 commit comments