QualityControl  1.5.1
O2 Data Quality Control Framework
BasicDigitQcTask.h
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_MODULE_FT0_FT0BASICDIGITQCTASK_H
17 #define QC_MODULE_FT0_FT0BASICDIGITQCTASK_H
18 
20 #include <memory>
21 #include "TH1.h"
22 #include "TH2.h"
23 #include "TTree.h"
24 #include "TFile.h"
25 #include "TMultiGraph.h"
26 #include "Rtypes.h"
27 
28 using namespace o2::quality_control::core;
29 
31 {
32 
33 class BasicDigitQcTask final : public TaskInterface
34 {
35  public:
37  BasicDigitQcTask() = default;
39  ~BasicDigitQcTask() override;
40 
41  // Definition of the methods for the template method pattern
42  void initialize(o2::framework::InitContext& ctx) override;
43  void startOfActivity(Activity& activity) override;
44  void startOfCycle() override;
45  void monitorData(o2::framework::ProcessingContext& ctx) override;
46  void endOfCycle() override;
47  void endOfActivity(Activity& activity) override;
48  void reset() override;
49 
50  private:
51  // Object which will be published
52  std::unique_ptr<TH1F> mChargeHistogram;
53  std::unique_ptr<TH1F> mTimeHistogram;
54  std::unique_ptr<TH2F> mAmplitudeAndTime;
55  std::unique_ptr<TTree> mTTree;
56 };
57 
58 } // namespace o2::quality_control_modules::ft0
59 
60 #endif // QC_MODULE_FT0_FT0BasicDigitQcTask_H
Skeleton of a QC task.
Definition: TaskInterface.h:53
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
Definition: BasicDigitQcTask.h:30