QualityControl  1.5.1
O2 Data Quality Control Framework
CheckRawMultiplicity.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 
16 
17 #ifndef QC_MODULE_TOF_TOFCHECKRAWSMULTI_H
18 #define QC_MODULE_TOF_TOFCHECKRAWSMULTI_H
19 
21 #include "TString.h"
22 
24 {
25 
30 {
31  public:
33  CheckRawMultiplicity() = default;
35  ~CheckRawMultiplicity() override = default;
36 
37  // Override interface
38  void configure(std::string name) override;
39  Quality check(std::map<std::string, std::shared_ptr<MonitorObject>>* moMap) override;
40  void beautify(std::shared_ptr<MonitorObject> mo, Quality checkResult) override;
41  std::string getAcceptedType() override;
42 
43  private:
45  float mMinRawHits;
47  float mMaxRawHits;
49  const float mFractAtZeroMult = 0.75;
51  const float mFractAtLowMult = 0.75;
53  const float mMaxTOFRawHitsPbPb = 500;
55  float mRawHitsMean = 0.f;
57  float mRawHitsZeroMultIntegral = 0.f;
59  float mRawHitsLowMultIntegral = 0.f;
61  float mRawHitsIntegral = 0.f;
63  TString shifter_msg = "";
64 
65  ClassDefOverride(CheckRawMultiplicity, 1);
66 };
67 
68 } // namespace o2::quality_control_modules::tof
69 
70 #endif // QC_MODULE_TOF_TOFCHECKRAWSMULTI_H
CheckRawMultiplicity()=default
Default constructor.
Check whether a plot is empty or not.
Definition: CheckRawMultiplicity.h:29
Quality check(std::map< std::string, std::shared_ptr< MonitorObject >> *moMap) override
Returns the quality associated with these objects.
Definition: CheckRawMultiplicity.cxx:44
Definition: Counter.h:33
Class representing the quality of a MonitorObject.
Definition: Quality.h:29
Skeleton of a check.
Definition: CheckInterface.h:32
std::string getAcceptedType() override
Returns the name of the class that can be treated by this check.
Definition: CheckRawMultiplicity.cxx:157
~CheckRawMultiplicity() override=default
Destructor.
void configure(std::string name) override
Configure the check based on its name.
Definition: CheckRawMultiplicity.cxx:32
void beautify(std::shared_ptr< MonitorObject > mo, Quality checkResult) override
Modify the aspect of the plot.
Definition: CheckRawMultiplicity.cxx:159