27void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
33void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
36 std::vector<o2::framework::ConfigParamSpec> options{
37 {
"disable-root-input", VariantType::Bool,
false, {
"disable root-files input readers"}},
38 {
"disable-root-output", VariantType::Bool,
false, {
"disable root-files output writers"}},
39 {
"disable-mc", VariantType::Bool,
false, {
"disable MC propagation even if available"}},
40 {
"vtx-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of sources used for the vertex finding"}},
41 {
"tracking-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of sources to use for track inter-/extrapolation"}},
42 {
"tracking-sources-map-extraction", VariantType::String, std::string{
GID::ALL}, {
"can be subset of \"tracking-sources\""}},
43 {
"send-track-data", VariantType::Bool,
false, {
"Send also the track information to the aggregator"}},
44 {
"debug-output", VariantType::Bool,
false, {
"Dump extended tracking information for debugging"}},
45 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
47 std::swap(workflowOptions, options);
52void customize(std::vector<o2::framework::CompletionPolicy>& policies)
74 if (srcTracks.count() > srcVtx.count()) {
78 srcTracksMap &= srcVtx;
79 if (((srcTracksMap | srcTracks) ^ srcTracks).any()) {
81 }
else if (srcTracksMap != srcTracks) {
84 LOGP(info,
"Only a single track source is defined for residuals extraction: {}",
GID::getSourcesNames(srcTracks));
103 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
105 auto sendTrackData = configcontext.
options().
get<
bool>(
"send-track-data");
106 auto debugOutput = configcontext.
options().
get<
bool>(
"debug-output");
109 if (!configcontext.
options().
get<
bool>(
"disable-root-output")) {
Global index for barrel track: provides provenance (detectors combination), index in respective array...
DPL completion policy helper for TPC scetor data.
static void writeINI(std::string const &filename, std::string const &keyOnly="")
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
T get(const char *key) const
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getTPCInterpolationSpec(o2::dataformats::GlobalTrackID::mask_t srcCls, o2::dataformats::GlobalTrackID::mask_t srcVtx, o2::dataformats::GlobalTrackID::mask_t srcTrk, o2::dataformats::GlobalTrackID::mask_t srcTrkMap, bool useMC, bool processITSTPConly, bool sendTrackData, bool debugOutput)
create a processor spec
framework::DataProcessorSpec getTPCResidualWriterSpec(bool writeTrackData, bool debugOutput)
create a processor spec
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"
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)