|
| 1 | +// Copyright 2019-2020 CERN and copyright holders of ALICE O2. |
| 2 | +// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. |
| 3 | +// All rights not expressly granted are reserved. |
| 4 | +// |
| 5 | +// This software is distributed under the terms of the GNU General Public |
| 6 | +// License v3 (GPL Version 3), copied verbatim in the file "COPYING". |
| 7 | +// |
| 8 | +// In applying this license CERN does not waive the privileges and immunities |
| 9 | +// granted to it by virtue of its status as an Intergovernmental Organization |
| 10 | +// or submit itself to any jurisdiction. |
| 11 | + |
| 12 | +/// |
| 13 | +/// \file CalibCheck.h |
| 14 | +/// \author Sierra Cantway |
| 15 | +/// |
| 16 | + |
| 17 | +#ifndef QC_MODULE_EMCAL_EMCALCALIBCHECK_H |
| 18 | +#define QC_MODULE_EMCAL_EMCALCALIBCHECK_H |
| 19 | + |
| 20 | +#include "QualityControl/CheckInterface.h" |
| 21 | + |
| 22 | +namespace o2::quality_control_modules::emcal |
| 23 | +{ |
| 24 | + |
| 25 | +/// \brief Check whether a plot is good or not. |
| 26 | +/// |
| 27 | +/// \author Sierra Cantway |
| 28 | +class CalibCheck : public o2::quality_control::checker::CheckInterface |
| 29 | +{ |
| 30 | + public: |
| 31 | + /// Default constructor |
| 32 | + CalibCheck() = default; |
| 33 | + /// Destructor |
| 34 | + ~CalibCheck() override = default; |
| 35 | + |
| 36 | + // Override interface |
| 37 | + void configure() override; |
| 38 | + Quality check(std::map<std::string, std::shared_ptr<MonitorObject>>* moMap) override; |
| 39 | + void beautify(std::shared_ptr<MonitorObject> mo, Quality checkResult = Quality::Null) override; |
| 40 | + std::string getAcceptedType() override; |
| 41 | + |
| 42 | + private: |
| 43 | + /************************************************ |
| 44 | + * threshold cuts * |
| 45 | + ************************************************/ |
| 46 | + |
| 47 | + float mBadThresholdMaskStatsAll = 10.; ///< Bad Threshold used in the Max Stats All bad and dead channels check |
| 48 | + float mBadThresholdTimeCalibCoeff = 10.; ///< Bad Threshold used in the time Calib Coeff points outside of mean check |
| 49 | + float mBadThresholdFractionGoodCellsEvent = 0.; ///< Bad Threshold used in the fraction Good Cells per Event check |
| 50 | + float mBadThresholdFractionGoodCellsSupermodule = 0.; ///< Bad Threshold used in the fraction Good Cells per Supermodule check |
| 51 | + float mBadThresholdCellAmplitudeSupermoduleCalibPHYS = 10.; ///< Bad Threshold used in the PHYS Cell amplitude (Calib) vs. supermodule ID check |
| 52 | + float mBadThresholdCellTimeSupermoduleCalibPHYS = 10.; ///< Bad Threshold used in the PHYS Cell Time (Calib) vs. supermodule ID (High gain) check |
| 53 | + |
| 54 | + float mMedThresholdMaskStatsAll = 10.; ///< Medium Threshold used in the Max Stats All bad and dead channels check |
| 55 | + float mMedThresholdTimeCalibCoeff = 10.; ///< Medium Threshold used in the time Calib Coeff points outside of mean check |
| 56 | + float mMedThresholdFractionGoodCellsEvent = 10.; ///< Medium Threshold used in the fraction Good Cells per Event check |
| 57 | + float mMedThresholdFractionGoodCellsSupermodule = 10.; ///< Medium Threshold used in the fraction Good Cells per Supermodule check |
| 58 | + float mMedThresholdCellAmplitudeSupermoduleCalibPHYS = 10.; ///< Medium Threshold used in the PHYS Cell amplitude (Calib) vs. supermodule ID check |
| 59 | + float mMedThresholdCellTimeSupermoduleCalibPHYS = 10.; ///< Medium Threshold used in the PHYS Cell Time (Calib) vs. supermodule ID (High gain) check |
| 60 | + |
| 61 | + float mSigmaTimeCalibCoeff = 2.; ///< Number of sigmas used in the timeCalibCoeff points outside of mean check |
| 62 | + |
| 63 | + ClassDefOverride(CalibCheck, 1); |
| 64 | +}; |
| 65 | + |
| 66 | +} // namespace o2::quality_control_modules::emcal |
| 67 | + |
| 68 | +#endif // QC_MODULE_EMCAL_EMCALCALIBCHECK_H |
0 commit comments