#include <STG_YMeansperSector.h>
Definition at line 16 of file STG_YMeansperSector.h.
◆ STG_YMeansperSector()
dqm_algorithms::STG_YMeansperSector::STG_YMeansperSector |
( |
| ) |
|
◆ ~STG_YMeansperSector()
dqm_algorithms::STG_YMeansperSector::~STG_YMeansperSector |
( |
| ) |
|
|
virtual |
◆ clone()
dqm_core::Algorithm * dqm_algorithms::STG_YMeansperSector::clone |
( |
| ) |
|
|
virtual |
◆ execute()
dqm_core::Result * dqm_algorithms::STG_YMeansperSector::execute |
( |
const std::string & |
name, |
|
|
const TObject & |
data, |
|
|
const dqm_core::AlgorithmConfig & |
config |
|
) |
| |
|
virtual |
Definition at line 64 of file STG_YMeansperSector.cxx.
72 if(
object.
IsA()->InheritsFrom(
"TH2" ) ) {
75 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 2 " );
78 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH2" );
81 int Xbins =
histogram->GetXaxis()->GetNbins();
82 int Ybins =
histogram->GetYaxis()->GetNbins();
93 }
else if (Ybins > 100) {
100 bool redflag =
false;
101 bool yellowflag =
false;
102 bool greenflag =
false;
104 for (
int i = 1;
i <= Xbins;
i++) {
105 MeanY[
i]=h2->GetBinContent(
i);
110 if (MeanY[
i] > Meanlow && MeanY[
i] < Meanhigh) Passed = Passed +1;
111 if (abs(MeanY[
i]) > abs(redMean)) redflag=
true;
119 catch ( dqm_core::Exception & ex ) {
120 throw dqm_core::BadConfig( ERS_HERE,
name, ex.what(), ex );
122 if (Passed -2 > gthreshold && not redflag) greenflag=
true;
123 else if (Passed -2 > rthreshold && not redflag) yellowflag=
true;
127 }
else if ( yellowflag ) {
128 result->status_ = dqm_core::Result::Yellow;
◆ printDescription()
void dqm_algorithms::STG_YMeansperSector::printDescription |
( |
std::ostream & |
out | ) |
|
|
virtual |
Definition at line 27 of file STG_YMeansperSector.cxx.
33 message +=
"Description: Checks the Ymeans per sector of every histogram\n";
34 message +=
"If the Ymeans are outside the range the sector is flagged red. If one of the sectors is very far from the Ymean the whole histogram is flagged red\n";
35 message +=
" Overflow (and Underflow) bins are not included\n";
◆ m_name
std::string dqm_algorithms::STG_YMeansperSector::m_name |
|
protected |
The documentation for this class was generated from the following files: