QualityControl  1.5.1
O2 Data Quality Control Framework
ITSTrackTask.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 //
11 
16 
17 #ifndef QC_MODULE_ITS_ITSTRACKTASK_H
18 #define QC_MODULE_ITS_ITSTRACKTASK_H
19 
21 #include <TH1D.h>
22 #include <TH2D.h>
23 #include <DataFormatsITSMFT/TopologyDictionary.h>
24 #include <ITSBase/GeometryTGeo.h>
25 
26 class TH1D;
27 class TH2D;
28 
29 using namespace o2::quality_control::core;
30 
32 {
33 
35 {
36 
37  public:
38  ITSTrackTask();
39  ~ITSTrackTask() override;
40 
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  void publishHistos();
51  void formatAxes(TH1* h, const char* xTitle, const char* yTitle, float xOffset = 1., float yOffset = 1.);
52  void addObject(TObject* aObject);
53  void getEnableLayers();
54  void createAllHistos();
55 
56  static constexpr int NLayer = 7;
57  static constexpr int NLayerIB = 3;
58 
59  std::vector<TObject*> mPublishedObjects;
60  TH1D* hNClusters;
61  TH1D* hTrackEta;
62  TH1D* hTrackPhi;
63  TH1D* hOccupancyROF;
64  TH1D* hClusterUsage;
65  TH2D* hAngularDistribution;
66  std::string mRunNumber;
67 
68  Int_t mNTracks = 0;
69  Int_t mNRofs = 0;
70 
71  const int NROFOCCUPANCY = 100;
72  Int_t mNClustersInTracks = 0;
73  Int_t mNClusters = 0;
74 
75  int mEnableLayers[7];
76  o2::itsmft::TopologyDictionary mDict;
77  o2::its::GeometryTGeo* mGeom;
78 };
79 } // namespace o2::quality_control_modules::its
80 
81 #endif // QC_MODULE_ITS_ITSTRACKTASK_H
Definition: ITSClusterTask.h:31
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