ATLAS Offline Software
BinThresh.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DQM_ALGORITHMS_BINTHRESH_H
6 #define DQM_ALGORITHMS_BINTHRESH_H
7 
8 
9 
10 #include "dqm_core/Algorithm.h"
11 #include <string>
12 #include <iosfwd>
13 #include <vector>
14 #include <map>
15 
16 namespace dqm_algorithms {
17 
18  class BinThresh : public dqm_core::Algorithm {
19  public:
20 
21  BinThresh();
22 
23  virtual ~BinThresh();
24  virtual dqm_core::Algorithm* clone();
25  virtual dqm_core::Result* execute( const std::string& name,
26  const TObject& data,
27  const dqm_core::AlgorithmConfig& config );
28  using dqm_core::Algorithm::printDescription;
29  virtual void printDescription(std::ostream& out);
30 
31  protected:
32  struct mask_limits {
33  bool Mask;
34  double WarningValue;
35  double ErrorValue;
36  };
37 
38  protected:
39 
40  std::string m_name;
41 
42  //Histogram configuration parameters
43  int m_NbinsX;
44  int m_NbinsY;
45 
46  int Publish_GetFromMap(const std::map<std::string, double> & params);
47  int TypePublish_GetFromMap(const std::map<std::string, double> & params);
48  int UseValue_GetFromMap(const std::map<std::string, double> & params);
49  int TypeValue_GetFromMap(const std::map<std::string, double> & params);
50  int BinMinEntries_GetFromMap(const std::map<std::string, double> & params);
51  std::vector<BinThresh::mask_limits> Limits1D_GetFromMap( const std::map<std::string, double> & params,
52  const std::map<std::string, double> & warning_params,
53  const std::map<std::string, double> & error_params );
54  std::vector< std::vector<BinThresh::mask_limits> > Limits2D_GetFromMap( const std::map< std::string, double> & params,
55  const std::map< std::string, double> & warning_params,
56  const std::map< std::string, double> & error_params );
57  };
58 
59 } //namespace dqm_algorithms
60 
61 #endif // DQM_ALGORITHMS_BINTHRESH_H
dqm_algorithms::BinThresh::BinMinEntries_GetFromMap
int BinMinEntries_GetFromMap(const std::map< std::string, double > &params)
Definition: BinThresh.cxx:543
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
dqm_algorithms::BinThresh::UseValue_GetFromMap
int UseValue_GetFromMap(const std::map< std::string, double > &params)
Definition: BinThresh.cxx:522
dqm_algorithms::BinThresh::mask_limits::WarningValue
double WarningValue
Definition: BinThresh.h:34
dqm_algorithms::BinThresh::TypePublish_GetFromMap
int TypePublish_GetFromMap(const std::map< std::string, double > &params)
Definition: BinThresh.cxx:510
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
dqm_algorithms::BinThresh::clone
virtual dqm_core::Algorithm * clone()
Definition: BinThresh.cxx:133
dqm_algorithms::BinThresh::~BinThresh
virtual ~BinThresh()
Definition: BinThresh.cxx:126
dqm_algorithms::BinThresh::m_NbinsX
int m_NbinsX
Definition: BinThresh.h:43
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
dqm_algorithms::BinThresh::mask_limits
Definition: BinThresh.h:32
Result
ICscStripFitter::Result Result
Definition: CalibCscStripFitter.cxx:13
dqm_algorithms::BinThresh::Publish_GetFromMap
int Publish_GetFromMap(const std::map< std::string, double > &params)
Definition: BinThresh.cxx:500
dqm_algorithms::BinThresh::TypeValue_GetFromMap
int TypeValue_GetFromMap(const std::map< std::string, double > &params)
Definition: BinThresh.cxx:532
dqm_algorithms::BinThresh::printDescription
virtual void printDescription(std::ostream &out)
Definition: BinThresh.cxx:30
dqm_algorithms::BinThresh::mask_limits::ErrorValue
double ErrorValue
Definition: BinThresh.h:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
dqm_algorithms::BinThresh::Limits2D_GetFromMap
std::vector< std::vector< BinThresh::mask_limits > > Limits2D_GetFromMap(const std::map< std::string, double > &params, const std::map< std::string, double > &warning_params, const std::map< std::string, double > &error_params)
Definition: BinThresh.cxx:606
dqm_algorithms::BinThresh::mask_limits::Mask
bool Mask
Definition: BinThresh.h:33
dqm_algorithms
Definition: AddReference.h:17
dqm_algorithms::BinThresh::BinThresh
BinThresh()
Definition: BinThresh.cxx:112
dqm_algorithms::BinThresh::Limits1D_GetFromMap
std::vector< BinThresh::mask_limits > Limits1D_GetFromMap(const std::map< std::string, double > &params, const std::map< std::string, double > &warning_params, const std::map< std::string, double > &error_params)
Definition: BinThresh.cxx:553
dqm_algorithms::BinThresh::m_name
std::string m_name
Definition: BinThresh.h:40
dqm_algorithms::BinThresh::m_NbinsY
int m_NbinsY
Definition: BinThresh.h:44
PowhegControl_ttFCNC_NLO.params
params
Definition: PowhegControl_ttFCNC_NLO.py:226
dqm_algorithms::BinThresh
Definition: BinThresh.h:18
dqm_algorithms::BinThresh::execute
virtual dqm_core::Result * execute(const std::string &name, const TObject &data, const dqm_core::AlgorithmConfig &config)
Definition: BinThresh.cxx:141