ATLAS Offline Software
BinPrint.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_BINPRINT_H
6 #define DQM_ALGORITHMS_BINPRINT_H
7 
8 
9 #include "dqm_core/Algorithm.h"
10 #include <iosfwd>
11 #include <map>
12 #include <string>
13 
14 
15 
16 namespace dqm_algorithms {
17 
18  class BinPrint : public dqm_core::Algorithm {
19  public:
20 
21  BinPrint();
22 
23  virtual ~BinPrint();
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 
33  std::string m_name;
34 
35  int m_NbinsX{};
36  int m_NbinsY{};
37  int m_UnMask_All{};
38  int m_UseValue{};
39  int m_TypeValue{};
40  double m_Value{};
42  double m_MaskValue{};
43 
44  int UseValue_GetFromMap(const std::map<std::string, double> & params);
45  int TypeValue_GetFromMap(const std::map<std::string, double> & params);
46  double Value_GetFromMap(const std::map<std::string, double> & params);
47  int UseMaskValue_GetFromMap(const std::map<std::string, double> & params);
48  double MaskValue_GetFromMap(const std::map<std::string, double> & params);
49  std::vector<bool> Mask1D_GetFromMap(const std::map<std::string, double> & params);
50  std::vector< std::vector<bool> > Mask2D_GetFromMap(const std::map<std::string, double> & params);
51  };
52 
53 } //namespace dqm_algorithms
54 
55 #endif // DQM_ALGORITHMS_BINPRINT_H
dqm_algorithms::BinPrint::BinPrint
BinPrint()
Definition: BinPrint.cxx:97
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
dqm_algorithms::BinPrint::~BinPrint
virtual ~BinPrint()
Definition: BinPrint.cxx:114
dqm_algorithms::BinPrint::UseValue_GetFromMap
int UseValue_GetFromMap(const std::map< std::string, double > &params)
Definition: BinPrint.cxx:283
dqm_algorithms::BinPrint::m_MaskValue
double m_MaskValue
Definition: BinPrint.h:42
dqm_algorithms::BinPrint
Definition: BinPrint.h:18
dqm_algorithms::BinPrint::printDescription
virtual void printDescription(std::ostream &out)
Definition: BinPrint.cxx:30
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
dqm_algorithms::BinPrint::m_UnMask_All
int m_UnMask_All
Definition: BinPrint.h:37
dqm_algorithms::BinPrint::m_NbinsY
int m_NbinsY
Definition: BinPrint.h:36
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
dqm_algorithms::BinPrint::execute
virtual dqm_core::Result * execute(const std::string &name, const TObject &data, const dqm_core::AlgorithmConfig &config)
Definition: BinPrint.cxx:129
Result
ICscStripFitter::Result Result
Definition: CalibCscStripFitter.cxx:13
dqm_algorithms::BinPrint::Mask2D_GetFromMap
std::vector< std::vector< bool > > Mask2D_GetFromMap(const std::map< std::string, double > &params)
Definition: BinPrint.cxx:363
dqm_algorithms::BinPrint::TypeValue_GetFromMap
int TypeValue_GetFromMap(const std::map< std::string, double > &params)
Definition: BinPrint.cxx:293
dqm_algorithms::BinPrint::m_Value
double m_Value
Definition: BinPrint.h:40
dqm_algorithms::BinPrint::Value_GetFromMap
double Value_GetFromMap(const std::map< std::string, double > &params)
Definition: BinPrint.cxx:303
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
dqm_algorithms::BinPrint::m_NbinsX
int m_NbinsX
Definition: BinPrint.h:35
dqm_algorithms::BinPrint::UseMaskValue_GetFromMap
int UseMaskValue_GetFromMap(const std::map< std::string, double > &params)
Definition: BinPrint.cxx:313
dqm_algorithms::BinPrint::m_name
std::string m_name
Definition: BinPrint.h:33
dqm_algorithms
Definition: AddReference.h:17
dqm_algorithms::BinPrint::clone
virtual dqm_core::Algorithm * clone()
Definition: BinPrint.cxx:121
dqm_algorithms::BinPrint::MaskValue_GetFromMap
double MaskValue_GetFromMap(const std::map< std::string, double > &params)
Definition: BinPrint.cxx:323
dqm_algorithms::BinPrint::Mask1D_GetFromMap
std::vector< bool > Mask1D_GetFromMap(const std::map< std::string, double > &params)
Definition: BinPrint.cxx:333
PowhegControl_ttFCNC_NLO.params
params
Definition: PowhegControl_ttFCNC_NLO.py:226
dqm_algorithms::BinPrint::m_UseMaskValue
int m_UseMaskValue
Definition: BinPrint.h:41
dqm_algorithms::BinPrint::m_TypeValue
int m_TypeValue
Definition: BinPrint.h:39
dqm_algorithms::BinPrint::m_UseValue
int m_UseValue
Definition: BinPrint.h:38