ATLAS Offline Software
Loading...
Searching...
No Matches
BinThreshold.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
8
9#ifndef DQM_ALGORITHMS_BINTHRESHOLD_H
10#define DQM_ALGORITHMS_BINTHRESHOLD_H
11
12#include <dqm_core/Algorithm.h>
13#include <string>
14#include <iosfwd>
15
16namespace dqm_algorithms
17{
18 struct BinThreshold : public dqm_core::Algorithm
19 {
20 BinThreshold(const std::string & name);
21
22 //overwrites virtual functions
24 dqm_core::Result * execute( const std::string & , const TObject & , const dqm_core::AlgorithmConfig & );
25 bool CompareBinThreshold( const std::string & objname, double bincontent, double threshold );
26 using dqm_core::Algorithm::printDescription;
27 void printDescription(std::ostream& out);
28 void parseIgnoreList(const std::string& bins,
29 std::vector<std::string>& ignoredRows,
30 std::vector<std::string>& ignoredCols,
31 std::vector<std::pair<std::string,std::string>>& ignoredBins);
32 /* Parse string input from IgnoreBins into lists of rows, columns and bins
33 * A list of bins to ignore is provided (bins) using the format "x_1:y_1,x_2:y_2"
34 * Accepted values for x_i, y_i are the bin index and the bin label (wildcards can be used)
35 */
36 private:
37 std::string m_name;
38 };
39}
40
41#endif // DQM_ALGORITHMS_BINTHRESHOLD_H
static const std::vector< std::string > bins
void parseIgnoreList(const std::string &bins, std::vector< std::string > &ignoredRows, std::vector< std::string > &ignoredCols, std::vector< std::pair< std::string, std::string > > &ignoredBins)
dqm_core::Result * execute(const std::string &, const TObject &, const dqm_core::AlgorithmConfig &)
bool CompareBinThreshold(const std::string &objname, double bincontent, double threshold)
BinThreshold(const std::string &name)
void printDescription(std::ostream &out)