QualityControl  1.5.1
O2 Data Quality Control Framework
DigitsQcTask.h
1 
7 #ifndef QC_MODULE_PHOS_DIGITSQCTASK_H
8 #define QC_MODULE_PHOS_DIGITSQCTASK_H
9 
11 #include <Framework/InputRecord.h>
12 
13 class TH1F;
14 class TH2F;
15 class TH2C;
16 
17 using namespace o2::quality_control::core;
18 
19 namespace o2
20 {
21 namespace phos
22 {
23 class Geometry;
24 class Digit;
25 } // namespace phos
26 
27 namespace quality_control_modules
28 {
29 namespace phos
30 {
31 
38 class DigitsQcTask final : public TaskInterface
39 {
40  public:
42  DigitsQcTask() = default;
44  ~DigitsQcTask() override;
45 
46  // Definition of the methods for the template method pattern
47  void initialize(o2::framework::InitContext& ctx) override;
48  void startOfActivity(Activity& activity) override;
49  void startOfCycle() override;
50  void monitorData(o2::framework::ProcessingContext& ctx) override;
51  void endOfCycle() override;
52  void endOfActivity(Activity& activity) override;
53  void reset() override;
54 
55  protected:
56  void publishPhysicsObjects();
57  void publishPedestalObjects();
58  void publishLEDObjects();
59  void processPhysicsEvent(gsl::span<const o2::phos::Digit> event);
60  void getBadMap();
61 
62  private:
63  static const int nMod = 5;
64  float mAcceptanceCorrection[nMod];
65 
66  //Physics runs
67  // TH2F *mTRGoccupancy[nMod];
68  // TH2F *mTRGsignal[nMod];
69 
70  // TH2F *mL1occupancy[nMod];
71  // TH2F *mL1signal[nMod];
72 
73  // TH2F *mFakeTrig[nMod]; //Triggers fired without cluster
74  TH2C* mBadMap[nMod] = { nullptr };
75  TH2F* mTimeE[nMod] = { nullptr };
76  TH1F* mCellN[nMod] = { nullptr };
77  TH1F* mCellMeanEnergy[nMod] = { nullptr };
78  TH2F* mCellN2D[nMod] = { nullptr };
79  TH2F* mCellEmean2D[nMod] = { nullptr };
80  TH1F* mCellSp[nMod] = { nullptr };
81 
82  // TH1F *mCellSpTrig[nMod];
83  // TH1F *mCellSpFake[nMod];
84 
85  o2::phos::Geometry* mGeometry = nullptr;
86 };
87 
88 } // namespace phos
89 } // namespace quality_control_modules
90 } // namespace o2
91 
92 #endif // QC_MODULE_PHOS_DIGITSQCTASK_H
Skeleton of a QC task.
Definition: TaskInterface.h:53
QC Task for PHOS digits.
Definition: DigitsQcTask.h:38
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