Project
Loading...
Searching...
No Matches
raw-data-dump-workflow.cxx
Go to the documentation of this file.
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
15
16using namespace o2::framework;
17
18void customize(std::vector<ConfigParamSpec>& workflowOptions)
19{
20 std::vector<ConfigParamSpec> options;
21 options.push_back(ConfigParamSpec{"onlyDet", VariantType::String, "all", {"list of dectors"}});
22 options.push_back(ConfigParamSpec{"tof-input-uncompressed", VariantType::Bool, false, {"TOF input is original (RAWDATA) rather than compressed (CRAWDATA)"}});
23 options.push_back(ConfigParamSpec{"configKeyValues", VariantType::String, "", {"semicolon separated key=value strings"}});
24 std::swap(workflowOptions, options);
25}
26
27// ------------------------------------------------------------------
28
30
32{
33 auto detlistSelect = configcontext.options().get<std::string>("onlyDet");
34 auto tofOrig = configcontext.options().get<bool>("tof-input-uncompressed");
35 const o2::detectors::DetID::mask_t detMaskFilter = o2::detectors::DetID::getMask("ITS,TPC,TRD,TOF,PHS,CPV,EMC,HMP,MFT,MCH,MID,ZDC,FT0,FV0,FDD,CTP");
36 o2::detectors::DetID::mask_t detMask = o2::detectors::DetID::getMask(detlistSelect) & detMaskFilter;
37 WorkflowSpec specs{o2::raw::getRawDumpSpec(detMask, tofOrig)};
38 return specs;
39}
static mask_t getMask(const std::string_view detList)
detector masks from any non-alpha-num delimiter-separated list (empty if NONE is supplied)
Definition DetID.cxx:42
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getRawDumpSpec(o2::detectors::DetID::mask_t detMask, bool TOFUncompressed)
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< ConfigParamSpec > &workflowOptions)