|
| 1 | +#include <THashList.h> |
| 2 | +#include <TList.h> |
| 3 | +#include <TString.h> |
| 4 | +#include "DataFormatsParameters/GRPObject.h" |
| 5 | +#include "Framework/runDataProcessing.h" |
| 6 | +#include "Framework/AnalysisTask.h" |
| 7 | +#include "Framework/AnalysisDataModel.h" |
| 8 | +#include "Framework/ASoAHelpers.h" |
| 9 | +#include "PWGDQ/DataModel/ReducedInfoTables.h" |
| 10 | + |
| 11 | +using namespace o2; |
| 12 | +using namespace o2::framework; |
| 13 | +using namespace o2::framework::expressions; |
| 14 | +using namespace o2::aod; |
| 15 | + |
| 16 | +struct eventExtendedConverter000_001 { |
| 17 | + Produces<aod::ReducedEventsExtended_001> eventExtended_001; |
| 18 | + |
| 19 | + void processExtendedConverting(aod::ReducedEventsExtended_000 const& events) |
| 20 | + { |
| 21 | + for (const auto& event : events) { |
| 22 | + eventExtended_001(event.globalBC(), event.alias_raw(), event.selection_raw(), event.timestamp(), event.centRun2V0M(), |
| 23 | + event.multTPC(), event.multFV0A(), event.multFV0C(), event.multFT0A(), event.multFT0C(), |
| 24 | + event.multFDDA(), event.multFDDC(), event.multZNA(), event.multZNC(), event.multTracklets(), event.multNTracksPV(), |
| 25 | + event.centFT0C(), -1.0f, -1.0f); |
| 26 | + } |
| 27 | + } |
| 28 | + |
| 29 | + void processDummy(aod::ReducedEvents& /*events*/) |
| 30 | + { |
| 31 | + // do nothing |
| 32 | + } |
| 33 | + |
| 34 | + PROCESS_SWITCH(eventExtendedConverter000_001, processExtendedConverting, "Convert Table EventsExtended_000 to Table EventsExtended_001", false); |
| 35 | + PROCESS_SWITCH(eventExtendedConverter000_001, processDummy, "do nothing", true); |
| 36 | +}; |
| 37 | + |
| 38 | +WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) |
| 39 | +{ |
| 40 | + return WorkflowSpec{ |
| 41 | + adaptAnalysisTask<eventExtendedConverter000_001>(cfgc)}; |
| 42 | +} |
0 commit comments