QualityControl  1.5.1
O2 Data Quality Control Framework
GlobalHistogram.h
1 
8 #ifndef QC_MODULE_MUONCHAMBERS_GLOBALHISTOGRAM_H
9 #define QC_MODULE_MUONCHAMBERS_GLOBALHISTOGRAM_H
10 
11 #include <map>
12 #include <TH2.h>
13 
14 namespace o2
15 {
16 namespace quality_control_modules
17 {
18 namespace muonchambers
19 {
20 
21 class GlobalHistogram : public TH2F
22 {
23  int getLR(int de);
24  void getDeCenter(int de, float& xB0, float& yB0, float& xNB0, float& yNB0);
25  void getDeCenterST3(int de, float& xB0, float& yB0, float& xNB0, float& yNB0);
26  void getDeCenterST4(int de, float& xB0, float& yB0, float& xNB0, float& yNB0);
27  void getDeCenterST5(int de, float& xB0, float& yB0, float& xNB0, float& yNB0);
28 
29  public:
30  GlobalHistogram(std::string name, std::string title);
31 
32  void init();
33 
34  // add the histograms of the individual detection elements
35  void add(std::map<int, TH2F*>& histB, std::map<int, TH2F*>& histNB);
36 
37  // replace the contents with the histograms of the individual detection elements, including null bins
38  void set_includeNull(std::map<int, TH2F*>& histB, std::map<int, TH2F*>& histNB);
39 
40  // replace the contents with the histograms of the individual detection elements
41  void set(std::map<int, TH2F*>& histB, std::map<int, TH2F*>& histNB, bool doAverage = true, bool includeNullBins = false);
42 };
43 
44 } // namespace muonchambers
45 } // namespace quality_control_modules
46 } // namespace o2
47 
48 #endif // QC_MODULE_MUONCHAMBERS_GLOBALHISTOGRAM_H