QualityControl  1.5.1
O2 Data Quality Control Framework
Advanced topics

← Go back to Post-processing | ../README.md "↑ Go to the Table of Content ↑" | Continue to Frequently Asked Questions →

Plugging the QC to an existing DPL workflow

Your existing DPL workflow can simply be considered a publisher. Therefore, replace o2-qc-run-producer with your own workflow.

For example, if TPC wants to monitor the output {"TPC", "CLUSTERS"} of the workflow o2-qc-run-tpcpid, modify the config file to point to the correct data and do :

1 o2-qc-run-tpcpid | o2-qc --config json://${QUALITYCONTROL_ROOT}/etc/tpcQCPID.json

Production of QC objects outside this framework

QC objects (e.g. histograms) are typically produced in a QC task. This is however not the only way. Some processing tasks such as the calibration might have already processed the data and produced histograms that should be monitored. Instead of re-processing and doing twice the work, one can simply push this QC object to the QC framework where it will be checked and stored.

Configuration

Let be a device in the main data flow that produces a histogram on a channel defined as TST/HISTO/0. To get this histogram in the QC and check it, add to the configuration file an "external device":

1 "externalTasks": {
2  "External-1": {
3  "active": "true",
4  "query": "External-1:TST/HISTO/0", "": "Query specifying where the objects to be checked and stored are coming from. Use the task name as binding. The origin (e.g. TST) is used as detector name for the objects."
5  }
6 },
7 "checks": {

The "query" syntax is the same as the one used in the DPL and in the Dispatcher. It must match the output of another device, whether it is in the same workflow or in a piped one. The binding (first part, before the colon) is used in the path of the stored objects and thus we encourage to use the task name to avoid confusion. Moreover, the origin (first element after the colon) is used as detectorName.

Example 1: basic

As a basic example, we are going to produce histograms with the HistoProducer and collect them with the QC. The configuration is in basic-external-histo.json. An external task is defined and named "External-1" (see subsection above). It is then used in the Check QCCheck :

1 "QcCheck": {
2  "active": "true",
3  "className": "o2::quality_control_modules::skeleton::SkeletonCheck",
4  "moduleName": "QcSkeleton",
5  "policy": "OnAny",
6  "detectorName": "TST",
7  "dataSource": [{
8  "type": "ExternalTask",
9  "name": "External-1",
10  "MOs": ["hello"]
11  }]
12 }

When using this feature, make sure that the name of the MO in the Check definition matches the name of the object you are sending from the external device.

To run it, do:

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

The object is visible in the QCG or the CCDB at qc/TST/MO/External-1/hello_0. In general we publish the objects of an external device at qc/<detector>/MO/<binding>/object.

The check results are stored at qc/<detector>/QO/<binding>/object.

Example 2: advanced

This second, more advanced, example mixes QC tasks and external tasks. It is defined in advanced-external-histo.json. It is represented here:

alt text

First, it runs 1 QC task (QC-TASK-RUNNER-QcTask) getting data from a data producer (bottom boxes, typical QC worfklow).

On top we see 3 histogram producers. histoProducer-2 is not part of the QC, it is not an external device defined in the configuration file. The two other histogram producers are configured as external devices in the configuration file.

histoProducer-0 produces an object that is used in a check (QcCheck-External-1). histoProducer-1 objects are not used in any check but we generate one automatically to take care of the storage in the database.

To run it, do:

1 o2-qc-run-producer | o2-qc-run-histo-producer --producers 3 --histograms 3 | o2-qc --config json://${QUALITYCONTROL_ROOT}/etc/advanced-external-histo.json

Limitations

  1. Objects sent by the external device must be either a TObject or a TObjArray. In the former case, the object will be sent to the checker encapsulated in a MonitorObject. In the latter case, each TObject of the TObjArray is encapsulated in a MonitorObject and is sent to the checker.

Multi-node setups

During the data-taking Quality Control runs on a distributed computing system. Some QC Tasks are executed on dedicated QC servers, while others run on FLPs and EPNs. In the first case, messages coming from Data Sampling should reach QC servers where they are processed. In the latter case, locally produced Monitor Objects should be merged on QC servers and then have Checks run on them. By remote QC tasks we mean those which run on QC servers (remote machines), while local QC Tasks run on FLPs and EPNs (local machines).

While it is responsibility of the run operators to run all the processing topologies during the data taking, here we show how to achieve such multinode workflows on development setups, running them just with DPL driver. Note that for now we support cases with one or more local machines, but just only one remote machine.

In our example, we assume having two local processing nodes (localnode1, localnode2) and one QC node (qcnode). There are two types of QC Tasks declared:

  • MultiNodeLocal which are executed on the local nodes and their results are merged and checked on the QC server.
  • MultiNodeRemote which runs on the QC server, receiving a small percent of data from localnode2 only. Mergers are not needed in this case, but there is a process running Checks against Monitor Objects generated by this Task.

We use the SkeletonTask class for both, but any Task can be used of course. Should a Task be local, all its MonitorObjects need to be mergeable - they should be one of the mergeable ROOT types (histograms, TTrees) or inherit MergeInterface.

These are the steps to follow to get a multinode setup:

  1. Prepare a configuration file.

In this example we will use the Framework/multiNode.json config file. A config file should look almost like the usual one, but with a few additional parameters. In case of a local task, these parameters should be added:

1 "tasks": {
2  "MultiNodeLocal": {
3  "active": "true",
4  ...
5  "location": "local",
6  "localMachines": [
7  "localnode1",
8  "localnode2"
9  ],
10  "remoteMachine": "qcnode",
11  "remotePort": "30132",
12  "mergingMode": "delta"
13  }
14 },

List the local processing machines in the localMachines array. remoteMachine should contain the host name which will serve as a QC server and remotePort should be a port number on which Mergers will wait for upcoming MOs. Make sure it is not used by other service. If different QC Tasks are run in parallel, use separate ports for each. One also may choose the merging mode - delta is the default and recommended (tasks are reset after each cycle, so they send only updates), but if it is not feasible, Mergers may expect entire objects - tasks are not reset, they always send entire objects and the latest versions are combined in Mergers.

In case of a remote task, choosing "remote" option for the "location" parameter is enough.

1 "tasks": {
2  ...
3  "MultiNodeRemote": {
4  "active": "true",
5  ...
6  "dataSource": {
7  "type": "dataSamplingPolicy",
8  "name": "rnd-little"
9  },
10  "taskParameters": {},
11  "location": "remote"
12  }
13 }

However in both cases, one has to specify the machines where data should be sampled, as below. If data should be published to external machines (with remote tasks), one has to add a local port number. Use separate ports for each Data Sampling Policy.

1 {
2  "dataSamplingPolicies": [
3  ...
4  {
5  "id": "rnd-little",
6  "active": "true",
7  "machines": [
8  "localnode2"
9  ],
10  "port": "30333"
11  ...
12  }
13  ]
14 }

/

  1. Make sure that the firewalls are properly configured. If your machines block incoming/outgoing connections by default, you can add these rules to the firewall (run as sudo). Consider enabling only concrete ports or a small range of those.
1 # localnode1 and localnode2 :
2 iptables -I INPUT -p tcp -m conntrack --ctstate NEW,ESTABLISHED -s qcnode -j ACCEPT
3 iptables -I OUTPUT -p tcp -m conntrack --ctstate NEW,ESTABLISHED -d qcnode -j ACCEPT
4 # qcnode:
5 iptables -I INPUT -p tcp -m conntrack --ctstate NEW,ESTABLISHED -s localnode1 -j ACCEPT
6 iptables -I OUTPUT -p tcp -m conntrack --ctstate NEW,ESTABLISHED -d localnode1 -j ACCEPT
7 iptables -I INPUT -p tcp -m conntrack --ctstate NEW,ESTABLISHED -s localnode2 -j ACCEPT
8 iptables -I OUTPUT -p tcp -m conntrack --ctstate NEW,ESTABLISHED -d localnode2 -j ACCEPT
  1. Install the same version of the QC software on each of these nodes. We cannot guarantee that different QC versions will talk to each other without problems. Also, make sure the configuration file that you will use is the same everywhere.
  2. Run each part of the workflow. In this example o2-qc-run-producer represents any DPL workflow, here it is just a process which produces some random data.
    1 # On localnode1:
    2 o2-qc-run-producer | o2-qc --config json:/${QUALITYCONTROL_ROOT}/etc/multiNode.json --local --host localnode1 -b
    3 # On localnode2:
    4 o2-qc-run-producer | o2-qc --config json:/${QUALITYCONTROL_ROOT}/etc/multiNode.json --local --host localnode2 -b
    5 # On qcnode:
    6 o2-qc --config json:/${QUALITYCONTROL_ROOT}/etc/multiNode.json --remote

If there are no problems, on QCG you should see the example histogram updated under the paths qc/TST/MO/MultiNodeLocal and qc/TST/MO/MultiNodeRemote, and corresponding Checks under the path qc/TST/QO/.

Writing a DPL data producer

For your convenience, and although it does not lie within the QC scope, we would like to document how to write a simple data producer in the DPL. The DPL documentation can be found https://github.com/AliceO2Group/AliceO2/blob/dev/Framework/Core/README.md "here" and for questions please head to the forum.

As an example we take the DataProducerExample that you can find in the QC repository. It is produces a number. By default it will be 1s but one can specify with the parameter my-param a different number. It is made of 3 files :

  • runDataProducerExample.cxx : This is an executable with a basic data producer in the Data Processing Layer. There are 2 important functions here :
    • customize(...) to add parameters to the executable. Note that it must be written before the includes for the dataProcessing.
    • defineDataProcessing(...) to define the workflow to be ran, in our case the device(s) publishing the number.
  • DataProducerExample.h : The key elements are :
    1. The include #include <Framework/DataProcessorSpec.h>
    2. The function getDataProducerExampleSpec(...) which must return a DataProcessorSpec i.e. the description of a device (name, inputs, outputs, algorithm)
    3. The function getDataProducerExampleAlgorithm which must return an AlgorithmSpec i.e. the actual algorithm that produces the data.
  • DataProducerExample.cxx : This is just the implementation of the header described just above. You will probably want to modify getDataProducerExampleSpec and the inner-most block of getDataProducerExampleAlgorithm. You might be taken aback by the look of this function, if you don't know what a lambda is just ignore it and write your code inside the accolades.

You will probably write it in your detector's O2 directory rather than in the QC repository.

Access run conditions and calibrations from the CCDB

The MonitorObjects generated by Quality Control are stored in a dedicated repository based on CCDB. The run conditions, on the other hand, are located in another, separate database. One can access these conditions inside a Task by a dedicated method of the TaskInterface, as below:

1 TObject* condition = TaskInterface::retrieveCondition("Path/to/condition");
2 if (condition) {
3  LOG(INFO) << "Retrieved " << condition->ClassName();
4  delete condition;
5 }

Make sure to declare a valid URL of CCDB in the config file. Keep in mind that it might be different from the CCDB instance used for storing QC objects.

1 {
2  "qc": {
3  "config": {
4  ...
5  "conditionDB": {
6  "url": "ccdb-test.cern.ch:8080"
7  }
8  },
9  ...

Definition and access of task-specific configuration

A task can access custom parameters declared in the configuration file at qc.tasks.<task_name>.taskParameters. They are stored inside a key-value map named mCustomParameters, which is a protected member of TaskInterface.

One can also tell the DPL driver to accept new arguments. This is done using the customize method at the top of your workflow definition (usually called "runXXX" in the QC).

For example, to add two parameters of different types do :

1 void customize(std::vector<ConfigParamSpec>& workflowOptions)
2 {
3  workflowOptions.push_back(
4  ConfigParamSpec{ "config-path", VariantType::String, "", { "Path to the config file. Overwrite the default paths. Do not use with no-data-sampling." } });
5  workflowOptions.push_back(
6  ConfigParamSpec{ "no-data-sampling", VariantType::Bool, false, { "Skips data sampling, connects directly the task to the producer." } });
7 }

Custom QC object metadata

One can add custom metadata on the QC objects produced in a QC task. Simply call ObjectsManager::addMetadata(...), like in

1 // add a metadata on histogram mHistogram, key is "custom" and value "34"
2 getObjectsManager()->addMetadata(mHistogram->GetName(), "custom", "34");

This metadata will end up in the QCDB.

Canvas options

The developer of a Task might perfectly know how to display a plot or a graph but cannot set these options if they belong to the Canvas. This is typically the case of drawOptions such as colz or alp. It is also the case for canvases' properties such as logarithmic scale and grid. These options can be set by the end user in the QCG but it is likely that the developer wants to give pertinent default options.

To do so, one can use one of the two following methods.

  • TObjectsManager::setDefaultDrawOptions(<objectname or pointer>, string& drawOptions)

    drawOptions is a space-separated list of drawing options. E.g. "colz" or "alp lego1".

  • TObjectsManager::setDisplayHint(<objectname or pointer>, string& hints)

    hints is a space-separated list of hints on how to draw the object. E.g. "logz" or "gridy logy".

    Currently supported by QCG: logx, logy, logz, gridx, gridy, gridz.

Data Inspector

This is a GUI to inspect the data coming out of the DataSampling, in particular the Readout.

alt text

Prerequisite

If not already done, install GLFW for your platform. On CC7 install glfw-devel from epel repository : sudo yum install glfw-devel --enablerepo=epel

Compilation

Build the QualityControl as usual.

Execution

To monitor the readout, 3 processes have to be started : the Readout, the Data Sampling and the Data Inspector.

First make sure that the Data Sampling is enabled in the readout :

1 [consumer-fmq-qc]
2 consumerType=FairMQChannel
3 enableRawFormat=1
4 fmq-name=readout-qc
5 fmq-address=ipc:///tmp/readout-pipe-1
6 fmq-type=pub
7 fmq-transport=zeromq
8 unmanagedMemorySize=2G
9 memoryPoolNumberOfPages=500
10 memoryPoolPageSize=1M
11 enabled=1

In 3 separate terminals, do respectively

  1. readout.exe file:///absolute/path/to/config.cfg
  2. o2-qc-run-readout-for-data-dump --batch
  3. o2-qc-data-dump --mq-config $QUALITYCONTROL_ROOT/etc/dataDump.json --id dataDump --control static

Configuration

Fraction of data The Data Sampling tries to take 100% of the events by default. Edit $QUALITYCONTROL_ROOT/etc/readoutForDataDump.json to change it. Look for the parameter fraction that is set to 1.

Port The Data Sampling sends data to the GUI via the port 26525. If this port is not free, edit the config file $QUALITYCONTROL_ROOT/etc/readoutForDataDump.json and $QUALITYCONTROL_ROOT/etc/dataDump.json.

Details on the data storage format in the CCDB

Each MonitorObject is stored as a TFile in the CCDB. It is therefore possible to easily open it with ROOT when loaded with alienv. It also seamlessly supports class schema evolution.

The MonitorObjects are stored at a path which is enforced by the qc framework : /qc/<detector code>/MO/<task name>/object/name Note that the name of the object can contain slashes (/) in order to build a sub-tree visible in the GUI. The detector name and the taskname are set in the config file :

1 "tasks": {
2  "QcTask": { <---------- task name
3  "active": "true",
4  "className": "o2::quality_control_modules::skeleton::SkeletonTask",
5  "moduleName": "QcSkeleton",
6  "detectorName": "TST", <---------- detector name

The quality is stored as a CCDB metadata of the object.

Data storage format before v0.14 and ROOT 6.18

Before September 2019, objects were serialized with TMessage and stored as blobs in the CCDB. The main drawback was the loss of the corresponding streamer infos leading to problems when the class evolved or when accessing the data outside the QC framework.

The QC framework is nevertheless backward compatible and can handle the old and the new storage system.

Local CCDB setup

Having a central ccdb for test (ccdb-test) is handy but also means that everyone can access, modify or delete the data. If you prefer to have a local instance of the CCDB, for example in your lab or on your development machine, follow these instructions.

  1. Download the local repository service from http://alimonitor.cern.ch/download/local.jar
  2. The service can simply be run with java -jar local.jar

It will start listening by default on port 8080. This can be changed either with the java parameter “tomcat.port” or with the environment variable “TOMCAT_PORT”. Similarly the default listening address is 127.0.0.1 and it can be changed with the java parameter “tomcat.address” or with the environment variable “TOMCAT_ADDRESS” to something else (for example ‘*’ to listen on all interfaces).

By default the local repository is located in /tmp/QC (or java.io.tmpdir/QC to be more precise). You can change this location in a similar way by setting the java parameter “file.repository.location” or the environment variable “FILE_REPOSITORY_LOCATION”.

The address of the CCDB will have to be updated in the Tasks config file.

At the moment, the description of the REST api can be found in this document : https://docs.google.com/presentation/d/1PJ0CVW7QHgnFzi0LELc06V82LFGPgmG3vsmmuurPnUg

Local QCG (QC GUI) setup

To install and run the QCG locally, and its fellow process tobject2json, please follow these instructions : https://github.com/AliceO2Group/WebUi/tree/dev/QualityControl#run-qcg-locally

Developing QC modules on a machine with FLP suite

To load a development library in a setup with FLP suite, specify its full path in the config file (e.g. /etc/flp.d/qc/readout.json):

1 "tasks": {
2  "QcTask": {
3  "active": "true",
4  "className": "o2::quality_control_modules::skeleton::SkeletonTask",
5  "moduleName": "/home/myuser/alice/sw/BUILD/QualityControl-latest/QualityControl/libQcTstLibrary",
6  ...

Make sure that:

  • The name "QcTask" stays the same, as changing it might break the workflow specification for AliECS
  • The library is compiled with the same QC, O2, ROOT and GCC version as the ones which are installed with the FLP suite. Especially, the task and check interfaces have to be identical.

Use MySQL as QC backend

WARNING. We do not actively support MySQL as QC database anymore. The interface might not work as expected anymore.

  1. Install the MySQL/MariaDB development package
    • CC7 : sudo yum install mariadb-server
    • Mac (or download the dmg from Oracle) : brew install mysql
  2. Rebuild the QualityControl (so that the mysql backend classes are compiled)
  3. Start and populate database :
1 sudo systemctl start mariadb # for CC7, check for your specific OS
2 alienv enter qcg/latest
3 o2-qc-database-setup.sh

Configuration files details

The QC requires a number of configuration items. An example config file is provided in the repo under the name example-default.json. This is a quick reference for all the parameters.

Global configuration structure

This is the global structure of the configuration in QC.

1 {
2  "qc": {
3  "config": {
4 
5  },
6  "tasks": {
7 
8  },
9  "externalTasks": {
10 
11  },
12  "checks": {
13 
14  },
15  "postprocessing": {
16 
17  }
18  },
19  "dataSamplingPoliciesFile": "json:///path/to/data/sampling/config.json",
20  "dataSamplingPolicies": [
21 
22  ]
23 }

There are four QC-related components:

  • "config" - contains global configuration of QC which apply to any component. It is required in any configuration file.
  • "tasks" - contains declarations of QC Tasks. It is mandatory for running topologies with Tasks and Checks.
  • "externalTasks" - contains declarations of external devices which sends objects to the QC to be checked and stored.
  • "checks" - contains declarations of QC Checks. It is mandatory for running topologies with Tasks and Checks.
  • "postprocessing" - contains declarations of PostProcessing Tasks. It is only needed only when Post-Processing is run.

The configuration file can also include a path to Data Sampling configuration ("dataSamplingPoliciesFile") or the list of Data Sampling Policies. Please refer to the Data Sampling documentation to find more information.

Common configuration

This is how a typical "config" structure looks like. Each configuration element is described with a relevant comment afterwards. The "": "\<comment\>", formatting is to keep the JSON structure valid. Please note that these comments should not be present in real configuration files.

1 {
2  "qc": {
3  "config": {
4  "database": { "": "Configuration of a QC database (the place where QC results are stored).",
5  "username": "qc_user", "": "Username to log into a DB. Relevant only to the MySQL implementation.",
6  "password": "qc_user", "": "Password to log into a DB. Relevant only to the MySQL implementation.",
7  "name": "quality_control", "": "Name of a DB. Relevant only to the MySQL implementation.",
8  "implementation": "CCDB", "": "Implementation of a DB. It can be CCDB, or MySQL (deprecated).",
9  "host": "ccdb-test.cern.ch:8080", "": "URL of a DB."
10  },
11  "Activity": { "": ["Configuration of a QC Activity (Run). This structure is subject to",
12  "change or the values might come from other source (e.g. AliECS)." ],
13  "number": "42", "": "Activity number.",
14  "type": "2", "": "Arbitrary activity type."
15  },
16  "monitoring": { "": "Configuration of the Monitoring library.",
17  "url": "infologger:///debug?qc", "": ["URI to the Monitoring backend. Refer to the link below for more info:",
18  "https://github.com/AliceO2Group/Monitoring#monitoring-instance"]
19  },
20  "consul": { "": "Configuration of the Consul library (used for Service Discovery).",
21  "url": "http://consul-test.cern.ch:8500", "": "URL of the Consul backend"
22  },
23  "conditionDB": { "": ["Configuration of the Conditions and Calibration DataBase (CCDB).",
24  "Do not mistake with the CCDB which is used as QC repository."],
25  "url": "ccdb-test.cern.ch:8080", "": "URL of a CCDB"
26  }
27  }
28  }
29 }

QC Tasks configuration

Below the full QC Task configuration structure is described. Note that more than one task might be declared inside in the "tasks" path.

1 {
2  "qc": {
3  "tasks": {
4  "QcTaskName": { "": "Name of the QC Task. Less than 14 character names are preferred.",
5  "active": "true", "": "Activation flag. If not \"true\", the Task will not be created.",
6  "className": "namespace::of::Task", "": "Class name of the QC Task with full namespace.",
7  "moduleName": "QcSkeleton", "": "Library name. It can be found in CMakeLists of the detector module.",
8  "detectorName": "TST", "": "3-letter code of the detector.",
9  "cycleDurationSeconds": "10", "": "Duration of one cycle (how often MonitorObjects are published).",
10  "maxNumberCycles": "-1", "": "Number of cycles to perform. Use -1 for infinite.",
11  "dataSource": { "": "Data source of the QC Task.",
12  "type": "dataSamplingPolicy", "": "Type of the data source, \"dataSamplingPolicy\" or \"direct\".",
13  "name": "tst-raw", "": "Name of Data Sampling Policy. Only for \"dataSamplingPolicy\" source.",
14  "query" : "raw:TST/RAWDATA/0", "": "Query of the data source. Only for \"direct\" source."
15  },
16  "taskParameters": { "": "User Task parameters which are then accessible as a key-value map.",
17  "myOwnKey": "myOwnValue", "": "An example of a key and a value. Nested structures are not supported"
18  },
19  "location": "local", "": ["Location of the QC Task, it can be local or remote. Needed only for",
20  "multi-node setups, not respected in standalone development setups."],
21  "localMachines": [ "", "List of local machines where the QC task should run. Required only",
22  "", "for multi-node setups.",
23  "o2flp1", "", "Hostname of a local machine.",
24  "o2flp2", "", "Hostname of a local machine."
25  ],
26  "remoteMachine": "o2qc1", "": "Remote QC machine hostname. Required ony for multi-node setups.",
27  "remotePort": "30432", "": "Remote QC machine TCP port. Required ony for multi-node setups.",
28  "mergingMode": "delta", "": "Merging mode, \"delta\" (default) or \"entire\" objects are expected"
29  }
30  }
31  }
32 }

QC Checks configuration

Below the full QC Checks configuration structure is described. Note that more than one check might be declared inside in the "checks" path. Please also refer to the Checks documentation for more details.

1 {
2  "qc": {
3  "checks": {
4  "MeanIsAbove": { "": "Name of the Check. Less than 12 character names are preferred.",
5  "active": "true", "": "Activation flag. If not \"true\", the Check will not be run.",
6  "className": "ns::of::Check", "": "Class name of the QC Check with full namespace.",
7  "moduleName": "QcCommon", "": "Library name. It can be found in CMakeLists of the detector module.",
8  "detectorName": "TST", "": "3-letter code of the detector.",
9  "policy": "OnAny", "": ["Policy which determines when MOs should be checked. See the documentation",
10  "of Checks for the list of available policies and their behaviour."],
11  "dataSource": [{ "": "List of data source of the Check.",
12  "type": "Task", "": "Type of the data source, \"Task\", \"ExternalTask\" or \"PostProcessing\"",
13  "name": "myTask_1", "": "Name of the Task",
14  "MOs": [ "example" ], "": ["List of MOs to be checked. "
15  "Can be omitted to mean \"all\"."]
16  }],
17  "checkParameters": { "": "User Check parameters which are then accessible as a key-value map.",
18  "myOwnKey": "myOwnValue", "": "An example of a key and a value. Nested structures are not supported"
19  }
20  }
21  }
22  }
23 }

QC Aggregators configuration

Below the full QC Aggregators configuration structure is described. Note that more than one aggregator might be declared inside in the "aggregators" path. Please also refer to the Aggregators documentation for more details.

1 {
2  "qc": {
3  "aggregators": {
4  "MyAggregator1": { "": "Name of the Aggregator. Less than 12 character names are preferred.",
5  "active": "true", "": "Activation flag. If not \"true\", the Aggregator will not be run.",
6  "className": "ns::of::Aggregator", "": "Class name of the QC Aggregator with full namespace.",
7  "moduleName": "QcCommon", "": "Library name. It can be found in CMakeLists of the detector module.",
8  "policy": "OnAny", "": ["Policy which determines when QOs should be aggregated. See the documentation",
9  "of Aggregators for the list of available policies and their behaviour."],
10  "detectorName": "TST", "": "3-letter code of the detector.",
11  "dataSource": [{ "": "List of data source of the Aggregator.",
12  "type": "Check",, "": "Type of the data source: \"Check\" or \"Aggregator\"",
13  "name": "dataSizeCheck", "": "Name of the Check or Aggregator",
14  "QOs": ["newQuality", "another"], "": ["List of QOs to be checked.",
15  "Can be omitted for Checks",
16  "that publish a single Quality or to mean \"all\"."]
17  }]
18  }
19  }
20  }
21 }

QC Post-processing configuration

Below the full QC Post-processing (PP) configuration structure is described. Note that more than one PP Task might be declared inside in the "postprocessing" path. Please also refer to the Post-processing documentation for more details.

1 {
2  "qc": {
3  "postprocessing": {
4  "ExamplePostprocessing": { "": "Name of the PP Task.",
5  "active": "true", "": "Activation flag. If not \"true\", the PP Task will not be run.",
6  "className": "namespace::of::PPTask", "": "Class name of the PP Task with full namespace.",
7  "moduleName": "QcSkeleton", "": "Library name. It can be found in CMakeLists of the detector module.",
8  "detectorName": "TST", "": "3-letter code of the detector.",
9  "initTrigger": [ "", "List of initialization triggers",
10  "startofrun", "", "An example of an init trigger"
11  ],
12  "updateTrigger": [ "", "List of update triggers",
13  "10min", "", "An example of an update trigger"
14  ],
15  "stopTrigger": [ "", "List of stop triggers",
16  "endofrun", "", "An example of a stop trigger"
17  ]
18  }
19  }
20  }
21 }

External tasks configuration

Below the external task configuration structure is described. Note that more than one external task might be declared inside in the "externalTasks" path.

1 {
2  "qc": {
3  "externalTasks": {
4  "External-1": { "": "Name of the task",
5  "active": "true", "": "Activation flag. If not \"true\", the Task will not be created.",
6  "query": "External-1:TST/HISTO/0", "": "Query specifying where the objects to be checked and stored are coming from. Use the task name as binding."
7  }
8  }
9  }
10 }

← Go back to Post-processing | ../README.md "↑ Go to the Table of Content ↑" | Continue to Frequently Asked Questions →