39void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
44void customize(std::vector<o2::framework::CompletionPolicy>& policies)
51void customize(std::vector<ConfigParamSpec>& workflowOptions)
54 std::vector<o2::framework::ConfigParamSpec> options{
58 {
"vertexing-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of sources to use in vertexing"}},
64 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}},
69 std::swap(workflowOptions, options);
84 bool useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
85 auto disableRootOut = configcontext.
options().
get<
bool>(
"disable-root-output");
86 auto enableCCDBParams = !configcontext.
options().
get<
bool>(
"disable-ccdb-params");
87 auto enableCasc = !configcontext.
options().
get<
bool>(
"disable-cascade-finder");
88 auto enable3body = !configcontext.
options().
get<
bool>(
"disable-3body-finder");
89 auto enableStrTr = !configcontext.
options().
get<
bool>(
"disable-strangeness-tracker");
90 auto useGeom = configcontext.
options().
get<
bool>(
"use-full-geometry");
96 srcClus |= GID::getSourceMask(
GID::ITS);
99 srcClus |= GID::getSourceMask(
GID::TPC);
100 if (sclOpt.requestCTPLumi) {
105 if (!configcontext.
options().
get<
bool>(
"disable-root-input")) {
115 if (configcontext.
options().
get<
bool>(
"combine-source-devices")) {
116 std::vector<DataProcessorSpec> unmerged;
117 specs.push_back(
specCombiner(
"SV-Input-Reader", inputspecs, unmerged));
118 if (unmerged.size() > 0) {
120 for (
auto&
s : unmerged) {
122 LOG(info) <<
" adding unmerged spec " <<
s.name;
126 for (
auto&
s : inputspecs) {
131 if (!disableRootOut) {
141 return std::move(specs);
Helper class to parse options for correction maps.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
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 CorrectionMapsGloOpts parseGlobalOptions(const o2::framework::ConfigParamRegistry &opts)
Defining ITS Vertex 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(const o2::tpc::CorrectionMapsGloOpts &sclOpts)
o2::framework::DataProcessorSpec getSecondaryVertexingSpec(o2::dataformats::GlobalTrackID::mask_t src, bool enableCasc, bool enable3body, bool enableStrangenesTracking, bool enableCCDBParams, bool useMC, bool useGeom, bool itsStag)
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 bool isITSStaggeringEnabled(o2::framework::ConfigContext const &cfgc)
static void addITSConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts)
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"