#include <CorrelationYX.h>
◆ CorrelationYX()
dqm_algorithms::CorrelationYX::CorrelationYX |
( |
| ) |
|
◆ ~CorrelationYX()
dqm_algorithms::CorrelationYX::~CorrelationYX |
( |
| ) |
|
|
virtual |
◆ clone()
dqm_core::Algorithm * dqm_algorithms::CorrelationYX::clone |
( |
| ) |
|
|
virtual |
◆ execute()
Definition at line 55 of file DataQuality/dqm_algorithms/src/CorrelationYX.cxx.
60 if(
object.
IsA()->InheritsFrom(
"TH1" ) ) {
63 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 2 " );
66 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH1" );
78 catch ( dqm_core::Exception & ex ) {
79 throw dqm_core::BadConfig( ERS_HERE,
name, ex.what(), ex );
98 int binSize = binEnd-binStart+1;
102 for(
int i=0;
i<binSize;
i++) {
103 int binx = binStart+
i;
105 for (
int j = 1; j <= nbiny; ++j ) {
127 sdX = std::sqrt(avX2-avX*avX) ;
128 sdY = std::sqrt(avY2-avY*avY) ;
129 if(sdX>0&&sdY>0)correlation=(avXY-avX*avY)/(sdX*sdY);
132 ERS_DEBUG(1,
"Number of entries for bins is "<<
count );
133 ERS_DEBUG(1,
"Correlation biny and binx is "<< correlation );
134 ERS_DEBUG(1,
"Green: "<< gmin <<
" entries; Red: " << rmin <<
" entries ");
140 if ( correlation >= gmin ) {
142 }
else if ( correlation > rmin ) {
143 result->status_ = dqm_core::Result::Yellow;
147 result->tags_[
"Correlation"] = correlation;
◆ printDescription()
void dqm_algorithms::CorrelationYX::printDescription |
( |
std::ostream & |
out | ) |
|
|
virtual |
◆ m_name
std::string dqm_algorithms::CorrelationYX::m_name |
|
private |
The documentation for this class was generated from the following files:
void contents(std::vector< std::string > &keys, TDirectory *td, const std::string &directory, const std::string &pattern, const std::string &path)