36void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
42void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
45 std::vector<o2::framework::ConfigParamSpec> options{
49 {
"track-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of sources to use: allowed TPC-TOF,ITS-TPC-TOF,TPC-TRD-TOF,ITS-TPC-TRD-TOF (all)"}},
55 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
57 std::swap(workflowOptions, options);
73 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
75 auto spread = configcontext.
options().
get<
float>(
"event-time-spread");
77 auto minEta = configcontext.
options().
get<
float>(
"eta-min");
78 auto maxEta = configcontext.
options().
get<
float>(
"eta-max");
79 auto fillscheme = configcontext.
options().
get<std::string>(
"fill-mask");
86 while (fillscheme.size()) {
88 int res = sscanf(fillscheme.c_str(),
"%d", &
bc);
94 int next = fillscheme.find(
",");
95 if (next < fillscheme.size()) {
96 fillscheme.erase(0, next + 1);
102 LOG(
debug) <<
"TOF EVENTTIME CHECKER WORKFLOW configuration";
103 LOG(
debug) <<
"TOF track inputs = " << configcontext.
options().
get<std::string>(
"track-sources");
113 mcmaskcl |= GID::getSourceMask(
GID::TOF);
122 return std::move(specs);
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.
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 addInteractionBC(int bc, bool fromCollisonCotext=false)
static float mEventTimeSpread
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getTOFEventTimeCheckerSpec(o2::dataformats::GlobalTrackID::mask_t src, bool useMC)
create a processor spec
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)