#include <MUCTPISLAnyHit.h>
Definition at line 15 of file MUCTPISLAnyHit.h.
◆ MUCTPISLAnyHit()
| dqm_algorithms::MUCTPISLAnyHit::MUCTPISLAnyHit |
( |
| ) |
|
Definition at line 34 of file MUCTPISLAnyHit.cxx.
36{
37 dqm_core::AlgorithmManager::instance().registerAlgorithm(
m_name,
this );
38}
◆ ~MUCTPISLAnyHit()
| virtual dqm_algorithms::MUCTPISLAnyHit::~MUCTPISLAnyHit |
( |
| ) |
|
|
virtualdefault |
◆ clone()
| dqm_core::Algorithm * dqm_algorithms::MUCTPISLAnyHit::clone |
( |
| ) |
|
|
virtual |
◆ execute()
| dqm_core::Result * dqm_algorithms::MUCTPISLAnyHit::execute |
( |
const std::string & | name, |
|
|
const TObject & | data, |
|
|
const dqm_core::AlgorithmConfig & | config ) |
|
virtual |
Definition at line 48 of file MUCTPISLAnyHit.cxx.
49{
50 using namespace std;
51
53
54
55 if(
object.
IsA()->InheritsFrom(
"TH2" ) ) {
57 if (
hist->GetDimension() != 2 ){
58 throw dqm_core::BadConfig( ERS_HERE, name, "dimension != 2 " );
59 }
60 } else {
61 throw dqm_core::BadConfig( ERS_HERE, name, "does not inherit from TH2" );
62 }
63
64
66
67 try {
69 }
70 catch ( dqm_core::Exception & ex ) {
71 throw dqm_core::BadConfig( ERS_HERE, name, ex.what(), ex );
72 }
73
74
75
76
77 TH1* projection =
hist->ProjectionY();
78
79 dqm_core::Result*
result =
new dqm_core::Result();
80 std::map<std::string,double>
tags;
81
82
83 result->status_ = dqm_core::Result::Green;
85
86 for(int iBin=1;iBin<=projection->GetNbinsX();iBin++)
87 {
88 if( projection->GetBinContent(iBin) < thresh )
89 {
90 result->status_ = dqm_core::Result::Yellow;
91 howmanybad++;
92 }
93 }
94 tags[
"howmanybad"] = howmanybad;
95
96
98
99
101}
std::vector< std::string > tags
#define IsA
Declare the TObject style functions.
◆ printDescription()
| void dqm_algorithms::MUCTPISLAnyHit::printDescription |
( |
std::ostream & | out | ) |
|
|
virtual |
Definition at line 105 of file MUCTPISLAnyHit.cxx.
105 {
109 message +=
"Description: Makes the ProjectionY of the 2D input histo. If any bin content is below the given threshold => warning.\n";
110 message +=
"Optional Parameters: thresh = if any bin content in the ProjectionY is below this value => warning\n";
112}
◆ m_name
| std::string dqm_algorithms::MUCTPISLAnyHit::m_name |
|
private |
The documentation for this class was generated from the following files: