Skip to content

Commit b763b94

Browse files
committed
Add option to ctf writer to store both dictionary and ctf or none
1 parent 2b885a2 commit b763b94

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Detectors/CTF/workflow/src/ctf-writer-workflow.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
3030
options.push_back(ConfigParamSpec{"onlyDet", VariantType::String, std::string{DetID::NONE}, {"comma separated list of detectors to accept. Overrides skipDet"}});
3131
options.push_back(ConfigParamSpec{"skipDet", VariantType::String, std::string{DetID::NONE}, {"comma separate list of detectors to skip"}});
3232
options.push_back(ConfigParamSpec{"grpfile", VariantType::String, o2::base::NameConf::getGRPFileName(), {"name of the grp file"}});
33-
options.push_back(ConfigParamSpec{"output-type", VariantType::String, "ctf", {"output types: ctf (per TF) or dict (create dictionaries)"}});
33+
options.push_back(ConfigParamSpec{"output-type", VariantType::String, "ctf", {"output types: ctf (per TF) or dict (create dictionaries) or both or none"}});
3434
std::swap(workflowOptions, options);
3535
}
3636

@@ -52,6 +52,14 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
5252
} else if (outmode == "dict") {
5353
doCTF = false;
5454
doDict = true;
55+
} else if (outmode == "both") {
56+
doCTF = true;
57+
doDict = true;
58+
} else if (outmode == "none") {
59+
doCTF = false;
60+
doDict = false;
61+
} else {
62+
throw std::invalid_argument("Invalid output-type");
5563
}
5664
run = grp->getRun();
5765
}

0 commit comments

Comments
 (0)