Skip to content

Commit f871941

Browse files
sweyh99Sierra Weyhmiller
andauthored
[EMCAL-1119] added 6 checkers for the EMC Calibration runs (#2241)
* o2 [EMCAL-1119] added 6 checkers for the EMC Calibration runs 6 checkers - Number of Good/Dead/Bad Channels in EMCAL + DCAL - Time Calib Coeff - Fraction of good cells / event - Fraction of good cells / supermodule - Cell amplitude (Calib) vs. supermodule ID PHYS - Cell Time (Calib) vs. supermodule ID (High gain) PHYS --------- Co-authored-by: Sierra Weyhmiller <sierra.lisa.weyhmiller@cern.ch>
1 parent 49c7523 commit f871941

4 files changed

Lines changed: 421 additions & 6 deletions

File tree

Modules/EMCAL/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
add_library(O2QcEMCAL)
44

5-
target_sources(O2QcEMCAL PRIVATE src/PedestalTask.cxx src/BCTask.cxx src/RawErrorCheck.cxx src/RawTask.cxx src/RawCheck.cxx src/CellTask.cxx src/CellCheck.cxx src/DigitsQcTask.cxx src/DigitCheck.cxx src/OccupancyReductor.cxx src/ClusterTask.cxx src/RawErrorTask.cxx src/CalibMonitoringTask.cxx src/SupermoduleProjectorTask.cxx src/BadChannelMapReductor.cxx src/TimeCalibParamReductor.cxx src/SupermoduleProjectionReductor.cxx src/SubdetectorProjectionReductor.cxx src/BCVisualization.cxx)
5+
target_sources(O2QcEMCAL PRIVATE src/PedestalTask.cxx src/BCTask.cxx src/RawErrorCheck.cxx src/RawTask.cxx src/RawCheck.cxx src/CellTask.cxx src/CellCheck.cxx src/DigitsQcTask.cxx src/DigitCheck.cxx src/OccupancyReductor.cxx src/ClusterTask.cxx src/RawErrorTask.cxx src/CalibMonitoringTask.cxx src/SupermoduleProjectorTask.cxx src/BadChannelMapReductor.cxx src/TimeCalibParamReductor.cxx src/SupermoduleProjectionReductor.cxx src/SubdetectorProjectionReductor.cxx src/BCVisualization.cxx src/CalibCheck.cxx)
66

77
target_include_directories(
88
O2QcEMCAL
@@ -31,8 +31,9 @@ add_root_dictionary(O2QcEMCAL
3131
include/EMCAL/SupermoduleProjectionReductor.h
3232
include/EMCAL/SubdetectorProjectionReductor.h
3333
include/EMCAL/BCVisualization.h
34-
include/EMCAL/PedestalTask.h
35-
LINKDEF include/EMCAL/LinkDef.h)
34+
include/EMCAL/PedestalTask.h
35+
include/EMCAL/CalibCheck.h
36+
LINKDEF include/EMCAL/LinkDef.h)
3637

3738
install(TARGETS O2QcEMCAL
3839
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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

Modules/EMCAL/include/EMCAL/LinkDef.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#pragma link C++ class o2::quality_control_modules::emcal::BCTask + ;
4040
#pragma link C++ class o2::quality_control_modules::emcal::BCVisualization + ;
4141

42-
#pragma link C++ class o2::quality_control_modules::emcal::PedestalTask+;
43-
44-
#endif
42+
#pragma link C++ class o2::quality_control_modules::emcal::PedestalTask+;
43+
44+
#pragma link C++ class o2::quality_control_modules::emcal::CalibCheck + ;
45+
46+
#endif

0 commit comments

Comments
 (0)