#include <CTP_AllBinsAreEmptyExceptZero.h>
◆ CTP_AllBinsAreEmptyExceptZero()
dqm_algorithms::CTP_AllBinsAreEmptyExceptZero::CTP_AllBinsAreEmptyExceptZero |
( |
| ) |
|
◆ ~CTP_AllBinsAreEmptyExceptZero()
virtual dqm_algorithms::CTP_AllBinsAreEmptyExceptZero::~CTP_AllBinsAreEmptyExceptZero |
( |
| ) |
|
|
virtualdefault |
◆ clone()
dqm_core::Algorithm * dqm_algorithms::CTP_AllBinsAreEmptyExceptZero::clone |
( |
| ) |
|
|
overridevirtual |
◆ execute()
dqm_core::Result * dqm_algorithms::CTP_AllBinsAreEmptyExceptZero::execute |
( |
const std::string & |
name, |
|
|
const TObject & |
data, |
|
|
const dqm_core::AlgorithmConfig & |
config |
|
) |
| |
|
overridevirtual |
Definition at line 48 of file CTP_AllBinsAreEmptyExceptZero.cxx.
54 if(
object.
IsA()->InheritsFrom(
"TH1" )) {
56 if (
hist->GetDimension() > 1 ){
57 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 1 " );
60 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH1" );
69 catch ( dqm_core::Exception & ex ) {
70 throw dqm_core::BadConfig( ERS_HERE,
name, ex.what(), ex );
75 std::map<std::string,double>
tags;
79 int nbinsx =
hist->GetXaxis()->GetNbins();
82 for(
int iBin = 1; iBin <= nbinsx-1; ++iBin)
85 if(
hist->GetBinContent(iBin) >
threshold &&
hist->GetBinLowEdge(iBin) *
hist->GetBinLowEdge(iBin+1) > 0 )
91 tags[
"# Bad bins"] = badBins;
◆ printDescription()
void dqm_algorithms::CTP_AllBinsAreEmptyExceptZero::printDescription |
( |
std::ostream & |
out | ) |
|
|
virtual |
◆ m_name
std::string dqm_algorithms::CTP_AllBinsAreEmptyExceptZero::m_name |
|
private |
The documentation for this class was generated from the following files: