38void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
43void customize(std::vector<o2::framework::CompletionPolicy>& policies)
50void customize(std::vector<ConfigParamSpec>& workflowOptions)
53 std::vector<o2::framework::ConfigParamSpec> options{
57 {
"vertexing-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of sources to use in vertexing"}},
63 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}},
67 std::swap(workflowOptions, options);
82 bool useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
83 auto disableRootOut = configcontext.
options().
get<
bool>(
"disable-root-output");
84 auto enableCCDBParams = !configcontext.
options().
get<
bool>(
"disable-ccdb-params");
85 auto enableCasc = !configcontext.
options().
get<
bool>(
"disable-cascade-finder");
86 auto enable3body = !configcontext.
options().
get<
bool>(
"disable-3body-finder");
87 auto enableStrTr = !configcontext.
options().
get<
bool>(
"disable-strangeness-tracker");
88 auto useGeom = configcontext.
options().
get<
bool>(
"use-full-geometry");
93 srcClus |= GID::getSourceMask(
GID::ITS);
96 srcClus |= GID::getSourceMask(
GID::TPC);
98 if (sclOpt.requestCTPLumi) {
102 if (sclOpt.needTPCScalersWorkflow() && !configcontext.
options().
get<
bool>(
"disable-root-input")) {
112 if (configcontext.
options().
get<
bool>(
"combine-source-devices")) {
113 std::vector<DataProcessorSpec> unmerged;
114 specs.push_back(
specCombiner(
"SV-Input-Reader", inputspecs, unmerged));
115 if (unmerged.size() > 0) {
117 for (
auto& s : unmerged) {
119 LOG(info) <<
" adding unmerged spec " << s.name;
123 for (
auto& s : inputspecs) {
128 if (!disableRootOut) {
138 return std::move(specs);
Helper class to access load maps from CCDB.
Global index for barrel track: provides provenance (detectors combination), index in respective array...
static void writeINI(std::string const &filename, std::string const &keyOnly="")
static void updateFromString(std::string const &)
Static class with identifiers, bitmasks and names for ALICE detectors.
ConfigParamRegistry & options() const
T get(const char *key) const
static void addGlobalOptions(std::vector< o2::framework::ConfigParamSpec > &options)
static CorrectionMapsLoaderGloOpts parseGlobalOptions(const o2::framework::ConfigParamRegistry &opts)
Defining PrimaryVertex explicitly as messageable.
o2::framework::DataProcessorSpec specCombiner(std::string const &name, std::vector< DataProcessorSpec > const &speccollection, std::vector< DataProcessorSpec > &remaining)
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getStrangenessTrackingWriterSpec(bool useMC)
o2::framework::DataProcessorSpec getTPCScalerSpec(bool enableIDCs, bool enableMShape)
o2::framework::DataProcessorSpec getSecondaryVertexingSpec(o2::dataformats::GlobalTrackID::mask_t src, bool enableCasc, bool enable3body, bool enableStrangenesTracking, bool enableCCDBParams, bool useMC, bool useGeom, const o2::tpc::CorrectionMapsLoaderGloOpts &sclOpts)
create a processor spec
framework::DataProcessorSpec getSecondaryVertexWriterSpec()
create a processor spec
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
static void addNewTimeSliceCallback(std::vector< o2::framework::CallbacksPolicy > &policies)
static void addConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts, const std::string &defOpt=std::string(o2::base::NameConf::DIGITIZATIONCONFIGFILE))
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"