QualityControl  1.5.1
O2 Data Quality Control Framework
runHistoProducer.cxx File Reference

This is an executable with a basic histogram producer in the Data Processing Layer. More...

#include <vector>
#include <Framework/ConfigParamSpec.h>
#include <iostream>
#include <Framework/runDataProcessing.h>
#include "QualityControl/HistoProducer.h"
Include dependency graph for runHistoProducer.cxx:

Functions

void customize (std::vector< ConfigParamSpec > &workflowOptions)
 
WorkflowSpec defineDataProcessing (const ConfigContext &config)
 

Detailed Description

This is an executable with a basic histogram producer in the Data Processing Layer.

Author
Barthélémy von Haller

This is an executable with a histogram producer in the Data Processing Layer. It does not serve a real purpose on its own, but it can be used as an external data (TObjArray of histograms) source for QC development. For example, one can do:

1 o2-qc-run-histo-producer | o2-qc --config json://${QUALITYCONTROL_ROOT}/etc/basic-external-histo.json

Histograms have 100 bins between -3 and 3 and filled+published randomly (incremental) every 2 seconds. They are encapsulated in a TObjArray and named histo_<index>. In case, there is no encapsulation, the histogram is named histo.

The option producers specifies how many producers to spawn. The option histograms specifies how many histograms to publish in each producer. The option no-tobjarray is only valid if histograms=1 and will prevent the producer from embedding the histogram in a TObjArray. The option printer adds a printer attached to the first producer.