42void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
48void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
51 std::vector<o2::framework::ConfigParamSpec> options{
55 {
"track-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of sources to use"}},
56 {
"detectors", VariantType::String, std::string{
"ITS,TPC,TRD,TOF"}, {
"comma-separated list of detectors"}},
57 {
"enable-tpc-tracks", VariantType::Bool,
false, {
"allow reading TPC tracks"}},
58 {
"enable-tpc-clusters", VariantType::Bool,
false, {
"allow reading TPC clusters (will trigger TPC tracks reading)"}},
59 {
"enable-cosmic", VariantType::Bool,
false, {
"enable cosmic tracks)"}},
60 {
"postprocessing", VariantType::Int, 0, {
"postprocessing bits: 1 - extract alignment objects, 2 - check constraints, 4 - print mpParams/Constraints, 8 - relabel pede results"}},
61 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
64 std::swap(workflowOptions, options);
68void customize(std::vector<o2::framework::CompletionPolicy>& policies)
89 int postprocess = configcontext.
options().
get<
int>(
"postprocessing");
91 auto disableRootOut = configcontext.
options().
get<
bool>(
"disable-root-output");
92 bool loadTPCClusters = configcontext.
options().
get<
bool>(
"enable-tpc-clusters");
93 bool loadTPCTracks = configcontext.
options().
get<
bool>(
"enable-tpc-tracks");
94 bool enableCosmic = configcontext.
options().
get<
bool>(
"enable-cosmic");
95 bool useMC = configcontext.
options().
get<
bool>(
"enable-mc");
103 loadTPCClusters = loadTPCTracks =
true;
109 srcCl |= GID::getSourceMask(
GID::ITS);
110 LOG(info) <<
"adding ITS request";
114 if (loadTPCTracks || loadTPCClusters) {
116 LOG(info) <<
"adding TPC request";
118 if (loadTPCClusters) {
119 srcCl |= GID::getSourceMask(
GID::TPC);
122 LOG(info) <<
"Skipping TPC clusters";
127 srcCl |= GID::getSourceMask(
GID::TRD);
131 LOG(info) <<
"adding TRD request";
135 srcCl |= GID::getSourceMask(
GID::TOF);
142 LOG(info) <<
"adding TOF request";
144 if (sclOpt.requestCTPLumi) {
151 if (sclOpt.needTPCScalersWorkflow() && !configcontext.
options().
get<
bool>(
"disable-root-input")) {
170 return std::move(specs);
Device to produce TPC clusters sharing map.
Helper class to access load maps from CCDB.
Global index for barrel track: provides provenance (detectors combination), index in respective array...
Helper function to tokenize sequences and ranges of integral numbers.
DPL completion policy helper for TPC scetor data.
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
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.
static mask_t getMask(const std::string_view detList)
detector masks from any non-alpha-num delimiter-separated list (empty if NONE is supplied)
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)
framework::DataProcessorSpec getBarrelAlignmentSpec(o2::dataformats::GlobalTrackID::mask_t srcMP, o2::dataformats::GlobalTrackID::mask_t src, o2::detectors::DetID::mask_t dets, o2::detectors::DetID::mask_t skipDetClusters, bool enableCosmic, int postproc, bool useMC, const o2::tpc::CorrectionMapsLoaderGloOpts &sclOpts)
create a processor spec
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getNoInpDummyOutSpec(int nloop=-1)
create a processor spec
o2::framework::DataProcessorSpec getTPCScalerSpec(bool enableIDCs, bool enableMShape)
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"