ATLAS Offline Software
Loading...
Searching...
No Matches
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
16namespace 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;
35 double ErrorValue;
36 };
37
38 protected:
39
40 std::string m_name;
41
42 //Histogram configuration parameters
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
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
int BinMinEntries_GetFromMap(const std::map< std::string, double > &params)
int Publish_GetFromMap(const std::map< std::string, double > &params)
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)
virtual void printDescription(std::ostream &out)
Definition BinThresh.cxx:30
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)
int UseValue_GetFromMap(const std::map< std::string, double > &params)
int TypeValue_GetFromMap(const std::map< std::string, double > &params)
virtual dqm_core::Result * execute(const std::string &name, const TObject &data, const dqm_core::AlgorithmConfig &config)
int TypePublish_GetFromMap(const std::map< std::string, double > &params)
virtual dqm_core::Algorithm * clone()