ATLAS Offline Software
BinHeightThreshold.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 #ifndef DQM_ALGORITHMS_BINHEIGHTTHRESHOLD_H
10 #define DQM_ALGORITHMS_BINHEIGHTTHRESHOLD_H
11 
12 #include <dqm_core/Algorithm.h>
13 #include <string>
14 #include <iosfwd>
15 
16 
17 namespace dqm_algorithms
18 {
20  {
22  BinHeightThreshold(const std::string & name);
23 
24  //overwrites virtual functions
26  dqm_core::Result * execute( const std::string & , const TObject & , const dqm_core::AlgorithmConfig & );
27  void CheckThresholds(const std::string & type, double thresholdGr, double thresholdRed);
28  bool checkUndefinedStatusValue(const std::string & type,double thresholdGr, double thresholdRed,std::pair<bool,double> valueGray);
29  BinHeightThreshold::binStatus CompareBinHeightThreshold(const std::string & type, double bincontent, double thresholdGr, double thresholdRed,std::pair<bool,double> valueGray);
30  bool equalWithinPrecision(double a,double b);
31  using dqm_core::Algorithm::printDescription;
32  void printDescription(std::ostream& out);
33 
34  private:
35  std::string m_name;
36  double m_precision{};
37  };
38 }
39 
40 #endif // DQM_ALGORITHMS_BINHEIGHTTHRESHOLD_H
dqm_algorithms::BinHeightThreshold::CompareBinHeightThreshold
BinHeightThreshold::binStatus CompareBinHeightThreshold(const std::string &type, double bincontent, double thresholdGr, double thresholdRed, std::pair< bool, double > valueGray)
Definition: BinHeightThreshold.cxx:261
dqm_algorithms::BinHeightThreshold::printDescription
void printDescription(std::ostream &out)
Definition: BinHeightThreshold.cxx:352
dqm_algorithms::BinHeightThreshold
Definition: BinHeightThreshold.h:20
dqm_algorithms::BinHeightThreshold::m_name
std::string m_name
Definition: BinHeightThreshold.h:35
python.FakeAthena.Algorithm
def Algorithm(name)
Definition: FakeAthena.py:41
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
dqm_algorithms::BinHeightThreshold::m_precision
double m_precision
Definition: BinHeightThreshold.h:36
dqm_algorithms::BinHeightThreshold::equalWithinPrecision
bool equalWithinPrecision(double a, double b)
Definition: BinHeightThreshold.cxx:331
Result
ICscStripFitter::Result Result
Definition: CalibCscStripFitter.cxx:13
dqm_algorithms::BinHeightThreshold::BinHeightThreshold
BinHeightThreshold(const std::string &name)
Definition: BinHeightThreshold.cxx:35
dqm_algorithms::BinHeightThreshold::binStatus
binStatus
Definition: BinHeightThreshold.h:21
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
dqm_algorithms::BinHeightThreshold::anUndefBin
@ anUndefBin
Definition: BinHeightThreshold.h:21
dqm_algorithms
Definition: AddReference.h:17
a
TList * a
Definition: liststreamerinfos.cxx:10
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
dqm_algorithms::BinHeightThreshold::aYellowBin
@ aYellowBin
Definition: BinHeightThreshold.h:21
dqm_algorithms::BinHeightThreshold::clone
BinHeightThreshold * clone()
Definition: BinHeightThreshold.cxx:43
dqm_algorithms::BinHeightThreshold::aGreenBin
@ aGreenBin
Definition: BinHeightThreshold.h:21
dqm_algorithms::BinHeightThreshold::checkUndefinedStatusValue
bool checkUndefinedStatusValue(const std::string &type, double thresholdGr, double thresholdRed, std::pair< bool, double > valueGray)
Definition: BinHeightThreshold.cxx:236
dqm_algorithms::BinHeightThreshold::CheckThresholds
void CheckThresholds(const std::string &type, double thresholdGr, double thresholdRed)
Definition: BinHeightThreshold.cxx:212
dqm_algorithms::BinHeightThreshold::aRedBin
@ aRedBin
Definition: BinHeightThreshold.h:21
dqm_algorithms::BinHeightThreshold::execute
dqm_core::Result * execute(const std::string &, const TObject &, const dqm_core::AlgorithmConfig &)
Definition: BinHeightThreshold.cxx:50