QualityControl  1.5.1
O2 Data Quality Control Framework
CheckRunnerFactory.h
Go to the documentation of this file.
1 // Copyright CERN and copyright holders of ALICE O2. This software is
2 // distributed under the terms of the GNU General Public License v3 (GPL
3 // Version 3), copied verbatim in the file "COPYING".
4 //
5 // See http://alice-o2.web.cern.ch/license for full licensing information.
6 //
7 // In applying this license CERN does not waive the privileges and immunities
8 // granted to it by virtue of its status as an Intergovernmental Organization
9 // or submit itself to any jurisdiction.
10 
15 
16 #ifndef QC_CHECKRUNNERFACTORY_H
17 #define QC_CHECKRUNNERFACTORY_H
18 
19 #include <string>
20 
21 #include "Framework/DataProcessorSpec.h"
22 #include <Framework/CompletionPolicy.h>
23 #include "QualityControl/Check.h"
24 
25 namespace o2::framework
26 {
27 struct DataProcessorSpec;
28 }
29 
31 {
32 
35 {
36  public:
37  CheckRunnerFactory() = default;
38  virtual ~CheckRunnerFactory() = default;
39 
40  framework::DataProcessorSpec create(std::vector<Check> checks, std::string configurationSource, std::vector<std::string> storeVector = {});
41 
42  /*
43  * \brief Create a CheckRunner sink DPL device.
44  *
45  * The purpose of this device is to receive and store the MO from task.
46  *
47  * @param input InputSpec with the content to store
48  * @param configurationSource
49  */
50  framework::DataProcessorSpec createSinkDevice(o2::framework::InputSpec input, std::string configurationSource);
51 
52  static void customizeInfrastructure(std::vector<framework::CompletionPolicy>& policies);
53 };
54 
55 } // namespace o2::quality_control::checker
56 
57 #endif // QC_CHECKRUNNERFACTORY_H
Definition: Aggregator.h:32
Definition: AggregatorRunner.h:27
Factory in charge of creating DataProcessorSpec of QC CheckRunner.
Definition: CheckRunnerFactory.h:34