QualityControl  1.5.1
O2 Data Quality Control Framework
PhysicsCheck.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 
15 
16 #ifndef QC_MODULE_MCH_PHYSICSCHECK_H
17 #define QC_MODULE_MCH_PHYSICSCHECK_H
18 
21 #include "QualityControl/Quality.h"
22 #include <string>
23 
25 {
26 
31 {
32  public:
34  PhysicsCheck();
36  ~PhysicsCheck() override;
37 
38  // Override interface
39  void configure(std::string name) override;
40  Quality check(std::map<std::string, std::shared_ptr<MonitorObject>>* moMap) override;
41  void beautify(std::shared_ptr<MonitorObject> mo, Quality checkResult = Quality::Null) override;
42  std::string getAcceptedType() override;
43 
44  private:
45  int mPrintLevel;
46  double minOccupancy;
47  double maxOccupancy;
48  ClassDefOverride(PhysicsCheck, 1);
49 };
50 
51 } // namespace o2::quality_control_modules::muonchambers
52 
53 #endif // QC_MODULE_TOF_TOFCHECKRAWSTIME_H
void configure(std::string name) override
Configure the check based on its name.
Definition: PhysicsCheck.cxx:45
~PhysicsCheck() override
Destructor.
Definition: PhysicsCheck.cxx:43
Class representing the quality of a MonitorObject.
Definition: Quality.h:29
std::string getAcceptedType() override
Returns the name of the class that can be treated by this check.
Definition: PhysicsCheck.cxx:100
Skeleton of a check.
Definition: CheckInterface.h:32
void beautify(std::shared_ptr< MonitorObject > mo, Quality checkResult=Quality::Null) override
Modify the aspect of the plot.
Definition: PhysicsCheck.cxx:102
Check if the occupancy on each pad is between the two specified values.
Definition: PhysicsCheck.h:30
Quality check(std::map< std::string, std::shared_ptr< MonitorObject >> *moMap) override
Returns the quality associated with these objects.
Definition: PhysicsCheck.cxx:53
PhysicsCheck()
Default constructor.
Definition: PhysicsCheck.cxx:36