ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
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
17namespace dqm_algorithms
18{
19 struct BinHeightThreshold : public dqm_core::Algorithm
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
static Double_t a
BinHeightThreshold::binStatus CompareBinHeightThreshold(const std::string &type, double bincontent, double thresholdGr, double thresholdRed, std::pair< bool, double > valueGray)
BinHeightThreshold(const std::string &name)
bool checkUndefinedStatusValue(const std::string &type, double thresholdGr, double thresholdRed, std::pair< bool, double > valueGray)
bool equalWithinPrecision(double a, double b)
dqm_core::Result * execute(const std::string &, const TObject &, const dqm_core::AlgorithmConfig &)
void CheckThresholds(const std::string &type, double thresholdGr, double thresholdRed)