QualityControl  1.5.1
O2 Data Quality Control Framework
ExampleTask.h
Go to the documentation of this file.
1 
6 #ifndef QC_MODULE_EXAMPLE_EXAMPLETASK_H
7 #define QC_MODULE_EXAMPLE_EXAMPLETASK_H
8 
10 
11 class TH1F;
12 
13 using namespace o2::quality_control::core;
14 
16 {
17 
21 class ExampleTask final : public TaskInterface
22 {
23  public:
25  ExampleTask();
27  ~ExampleTask() override;
28 
29  // Definition of the methods for the template method pattern
30  void initialize(o2::framework::InitContext& ctx) override;
31  void startOfActivity(Activity& activity) override;
32  void startOfCycle() override;
33  void monitorData(o2::framework::ProcessingContext& ctx) override;
34  void endOfCycle() override;
35  void endOfActivity(Activity& activity) override;
36  void reset() override;
37 
38  // Accessors
39  TH1F*& getHisto1() { return mHistos[0]; }
40  TH1F*& getHisto2() { return mHistos[1]; }
41 
42  private:
43  int mNumberCycles;
44  TH1F* mHistos[25];
45  void publishHisto(int i);
46 };
47 
48 } // namespace o2::quality_control_modules::example
49 
50 #endif // QC_MODULE_EXAMPLE_EXAMPLETASK_H
Skeleton of a QC task.
Definition: TaskInterface.h:53
Definition: BenchmarkTask.h:24
Example Quality Control Task It is final because there is no reason to derive from it...
Definition: ExampleTask.h:21
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