43void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
49void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
52 std::vector<o2::framework::ConfigParamSpec> options{
56 {
"track-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of sources to use"}},
57 {
"detectors", VariantType::String, std::string{
"ITS,TPC,TRD,TOF"}, {
"comma-separated list of detectors"}},
58 {
"enable-tpc-tracks", VariantType::Bool,
false, {
"allow reading TPC tracks"}},
59 {
"enable-tpc-clusters", VariantType::Bool,
false, {
"allow reading TPC clusters (will trigger TPC tracks reading)"}},
60 {
"enable-cosmic", VariantType::Bool,
false, {
"enable cosmic tracks)"}},
61 {
"postprocessing", VariantType::Int, 0, {
"postprocessing bits: 1 - extract alignment objects, 2 - check constraints, 4 - print mpParams/Constraints, 8 - relabel pede results"}},
62 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
66 std::swap(workflowOptions, options);
70void customize(std::vector<o2::framework::CompletionPolicy>& policies)
91 int postprocess = configcontext.
options().
get<
int>(
"postprocessing");
93 auto disableRootOut = configcontext.
options().
get<
bool>(
"disable-root-output");
94 bool loadTPCClusters = configcontext.
options().
get<
bool>(
"enable-tpc-clusters");
95 bool loadTPCTracks = configcontext.
options().
get<
bool>(
"enable-tpc-tracks");
96 bool enableCosmic = configcontext.
options().
get<
bool>(
"enable-cosmic");
97 bool useMC = configcontext.
options().
get<
bool>(
"enable-mc");
105 loadTPCClusters = loadTPCTracks =
true;
111 srcCl |= GID::getSourceMask(
GID::ITS);
112 LOG(info) <<
"adding ITS request";
116 if (loadTPCTracks || loadTPCClusters) {
118 LOG(info) <<
"adding TPC request";
120 if (loadTPCClusters) {
121 srcCl |= GID::getSourceMask(
GID::TPC);
124 LOG(info) <<
"Skipping TPC clusters";
129 srcCl |= GID::getSourceMask(
GID::TRD);
133 LOG(info) <<
"adding TRD request";
137 srcCl |= GID::getSourceMask(
GID::TOF);
144 LOG(info) <<
"adding TOF request";
146 if (sclOpt.requestCTPLumi) {
153 if (sclOpt.needTPCScalersWorkflow() && !configcontext.
options().
get<
bool>(
"disable-root-input")) {
172 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 ITS Vertex 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 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"