#include <STG_XMeansperSector.h>
|
| std::string | m_name {"STG_XMeansperSector"} |
| |
Definition at line 14 of file STG_XMeansperSector.h.
◆ STG_XMeansperSector()
| dqm_algorithms::STG_XMeansperSector::STG_XMeansperSector |
( |
| ) |
|
◆ ~STG_XMeansperSector()
| virtual dqm_algorithms::STG_XMeansperSector::~STG_XMeansperSector |
( |
| ) |
|
|
virtualdefault |
◆ clone()
| dqm_core::Algorithm * dqm_algorithms::STG_XMeansperSector::clone |
( |
| ) |
|
|
finaloverridevirtual |
◆ execute()
| dqm_core::Result * dqm_algorithms::STG_XMeansperSector::execute |
( |
const std::string & |
name, |
|
|
const TObject & |
data, |
|
|
const dqm_core::AlgorithmConfig & |
config |
|
) |
| |
|
finaloverridevirtual |
Definition at line 56 of file STG_XMeansperSector.cxx.
64 if(
object.
IsA()->InheritsFrom(
"TH2" ) ) {
67 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 2 " );
70 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH2" );
74 int Xbins =
histogram->GetXaxis()->GetNbins();
75 int Ybins =
histogram->GetYaxis()->GetNbins();
77 double mean_global =
histogram->GetMean(1);
86 }
else if (Xbins < 15) {
96 std::vector<float> MeanX(Ybins, 0.0);
99 bool yellowflag =
false;
100 bool greenflag =
false;
102 for (
int i = 1;
i <= Ybins;
i++) {
103 MeanX[
i]=h2->GetBinContent(
i);
108 if (MeanX[
i] > Meanlow && MeanX[
i] < Meanhigh) Passed = Passed +1;
109 if (abs(MeanX[
i]-mean_global) > abs(redMean-mean_global)) redflag=
true;
117 catch ( dqm_core::Exception & ex ) {
118 throw dqm_core::BadConfig( ERS_HERE,
name, ex.what(), ex );
120 if (Passed >= (Ybins-gthreshold) && not redflag) greenflag=
true;
121 else if (Passed >= (Ybins-rthreshold) && not redflag) yellowflag=
true;
125 }
else if ( yellowflag ) {
126 result->status_ = dqm_core::Result::Yellow;
130 result->tags_[
"Xbins"] = Xbins;
131 result->tags_[
"Passed"] = Passed;
132 result->tags_[
"MeanGlobal"] = mean_global;
◆ printDescription()
| void dqm_algorithms::STG_XMeansperSector::printDescription |
( |
std::ostream & |
out | ) |
|
|
virtual |
Definition at line 43 of file STG_XMeansperSector.cxx.
45 out <<
"Algorithm: \"" <<
m_name <<
"\"\n";
46 out <<
"Description: Evaluates <X> means per Y-bin in STGC timing histograms.\n";
47 out <<
"Flags sectors as RED if <X> deviates beyond redMean.\n";
48 out <<
"Overflow and underflow bins are excluded.\n";
◆ m_name
| std::string dqm_algorithms::STG_XMeansperSector::m_name {"STG_XMeansperSector"} |
|
protected |
The documentation for this class was generated from the following files: