21void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
30 workflowOptions.push_back(
ConfigParamSpec{
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}});
41 auto useCCDB = configcontext.
options().
get<
bool>(
"use-ccdb");
42 auto forceUpdate = configcontext.
options().
get<
bool>(
"forceupdate");
43 auto doPedestals = configcontext.
options().
get<
bool>(
"pedestals");
44 auto doGain = configcontext.
options().
get<
bool>(
"gains");
45 auto doBadMap = configcontext.
options().
get<
bool>(
"badmap");
47 if (doPedestals && doGain) {
48 LOG(fatal) <<
"Can not run pedestal and gain calibration simulteneously";
51 LOG(info) <<
"CPV Calibration workflow: options";
52 LOG(info) <<
"useCCDB = " << useCCDB;
54 LOG(info) <<
"pedestals ";
58 LOG(info) <<
"gain calculation";
63 LOG(info) <<
"bad map calculation ";
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
T get(const char *key) const
GLsizei const GLchar *const * path
o2::framework::DataProcessorSpec getPedestalCalibSpec(bool useCCDB, bool forceUpdate, std::string path)
o2::framework::DataProcessorSpec getBadMapCalibSpec(bool useCCDB, bool forceUpdate, std::string path, short method)
o2::framework::DataProcessorSpec getGainCalibSpec(bool useCCDB, bool forceUpdate, std::string path)
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"