QualityControl  1.5.1
O2 Data Quality Control Framework
BenchmarkTask.h
Go to the documentation of this file.
1 
6 #ifndef QC_MODULE_EXAMPLE_BENCHMARKTASK_H
7 #define QC_MODULE_EXAMPLE_BENCHMARKTASK_H
8 
10 
11 #include <vector>
12 #include <memory>
13 #include <string>
14 
15 namespace o2::configuration
16 {
17 class ConfigurationInterface;
18 }
19 
20 class TH1F;
21 
22 using namespace o2::quality_control::core;
23 
25 {
26 
33 {
34  public:
36  BenchmarkTask();
38  ~BenchmarkTask() override;
39 
40  // Definition of the methods for the template method pattern
41  void initialize(o2::framework::InitContext& ctx) override;
42  void startOfActivity(Activity& activity) override;
43  void startOfCycle() override;
44  void monitorData(o2::framework::ProcessingContext& ctx) override;
45  void endOfCycle() override;
46  void endOfActivity(Activity& activity) override;
47  void reset() override;
48 
49  private:
50  std::vector<TH1F*> mHistos;
51  std::unique_ptr<o2::configuration::ConfigurationInterface> mConfigFile;
52  size_t mNumberHistos;
53  size_t mNumberChecks;
54  std::string mTypeOfChecks;
55  std::string mModuleOfChecks;
56 
57  // ClassDef(BenchmarkTask,1);
58 };
59 
60 } // namespace o2::quality_control_modules::example
61 
62 #endif // QC_MODULE_EXAMPLE_BENCHMARKTASK_H
Skeleton of a QC task.
Definition: TaskInterface.h:53
Definition: Aggregator.h:27
Definition: BenchmarkTask.h:24
Quality Control Task for benchmarking It publishes a number of TH1F (configurable, see example.ini in module QualityControl). The histos are reset and refilled (1000 random) at EOC. They have 1000 bins. The monitoring of data blocks is empty (sleep 100 ms).
Definition: BenchmarkTask.h:32
Dummy class that should be removed when there is the official one. This corresponds to a Run1/2 "run"...
Definition: Activity.h:25
These methods can be used to build a complex processing topology. It spawns 3 separate dummy processi...
Definition: Activity.h:19