26std::vector<std::string>
objects{
"GLO/Calib/MeanVertex"};
27std::vector<unsigned long>
times{1657152944347};
37 while (std::getline(
file, line)) {
42 std::cerr <<
"Failed to open the file... using default times" << std::endl;
53 while (std::getline(
file, line)) {
54 times.push_back(std::atol(line.c_str()));
58 std::cerr <<
"Failed to open the times file ... using default times" << std::endl;
63void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
73void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
85 const auto offset = int64_t(0);
87 dh.firstTForbit =
offset + increment * dh.tfCounter;
88 LOG(info) <<
"Setting firstTForbit to " << dh.firstTForbit;
90 LOG(info) <<
"Setting runNumber to " << dh.runNumber;
104 auto& inputs = ctx.inputs();
105 auto msg = inputs.get<
unsigned long>(
"datainput");
106 LOG(info) <<
"Doing compute with conditions for time " <<
msg <<
" (" <<
counter++ <<
"/" <<
times.size() <<
")";
110 LOG(error) <<
"Deserialization callback invoked";
118 LOG(info) <<
"Run function of Producer";
129 std::vector<o2::framework::DataProcessorSpec> workflow;
137 workflow.emplace_back(
141 {
OutputSpec{
"TST",
"A1", 0, Lifetime::Timeframe}},
142 adaptFromTask<Producer>(),
146 inputs.emplace_back(
InputSpec{
"datainput",
"TST",
"A1", 0, Lifetime::Timeframe});
150 std::string
name(
"cond");
154 if (
name.length() >= 9) {
155 std::string lastNineChars =
name.substr(
name.length() - 9);
156 std::strcpy(descr, lastNineChars.c_str());
158 std::strcpy(descr,
name.c_str());
164 workflow.emplace_back(
169 adaptFromTask<Consumer>(),
void ReadObjectList(std::string const &filename)
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
std::vector< unsigned long > times
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
This function hooks up the the workflow specifications into the DPL driver.
void ReadTimesList(std::string const &filename)
std::vector< std::string > objects
ConfigParamRegistry & options() const
T get(const char *key) const
virtual void endOfStream(EndOfStreamContext &context)
This is invoked whenever we have an EndOfStream event.
GLuint const GLchar * name
Defining PrimaryVertex explicitly as messageable.
std::vector< ConfigParamSpec > ccdbParamSpec(std::string const &path, int runDependent, std::vector< CCDBMetadata > metadata={}, int qrate=0)
std::vector< DataProcessorSpec > WorkflowSpec
std::vector< InputSpec > Inputs
std::string to_string(gsl::span< T, Size > span)
void finaliseCCDB(ConcreteDataMatcher &, void *) final
void run(ProcessingContext &ctx) final
void run(ProcessingContext &ctx) final
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
uint64_t const void const *restrict const msg