#include <CorrelationYX.h>
◆ CorrelationYX() [1/2]
dqi::CorrelationYX::CorrelationYX |
( |
| ) |
|
◆ CorrelationYX() [2/2]
◆ ~CorrelationYX()
dqi::CorrelationYX::~CorrelationYX |
( |
| ) |
|
|
virtual |
◆ clone()
dqm_core::Algorithm * dqi::CorrelationYX::clone |
( |
| ) |
|
|
virtual |
◆ execute()
Definition at line 63 of file MuonSpectrometer/MuonValidation/MuonDQA/MuonDQAMonitoring/dqmfAlgs/CorrelationYX.cxx.
68 if(
object.
IsA()->InheritsFrom(
"TH1" ) ) {
71 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 2 " );
74 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH1" );
88 catch ( dqm_core::Exception & ex ) {
89 throw dqm_core::BadConfig( ERS_HERE,
name, ex.what(), ex );
101 double correlation=0;
105 if(binStart>binEnd) {
109 int binSize = binEnd-binStart+1;
113 for(
int i=0;
i<binSize;
i++) {
114 int binx = binStart+
i;
116 for (
int j = 1; j <= nbiny; ++j ) {
138 sdX = sqrt(avX2-avX*avX) ;
139 sdY = sqrt(avY2-avY*avY) ;
140 if(sdX>0&&sdY>0)correlation=(avXY-avX*avY)/(sdX*sdY);
143 ERS_DEBUG(1,
"Number of entries for bins is "<<
count );
144 ERS_DEBUG(1,
"Correlation biny and binx is "<< correlation );
145 ERS_DEBUG(1,
"Green: "<< gmin <<
" entries; Red: " << rmin <<
" entries ");
151 if ( correlation >= gmin ) {
153 }
else if ( correlation > rmin ) {
154 result->status_ = dqm_core::Result::Yellow;
158 result->tags_[
"Correlation"] = correlation;
◆ GetFirstFromMap()
double dqi::CorrelationYX::GetFirstFromMap |
( |
const std::string & |
pname, |
|
|
const std::map< std::string, std::vector< double > > & |
params |
|
) |
| |
|
protected |
◆ GetFromMap()
double dqi::CorrelationYX::GetFromMap |
( |
const std::string & |
pname, |
|
|
const std::map< std::string, double > & |
params |
|
) |
| |
|
protected |
◆ GetVectorFromMap()
std::vector< double > dqi::CorrelationYX::GetVectorFromMap |
( |
const std::string & |
pname, |
|
|
const std::map< std::string, std::vector< double > > & |
params |
|
) |
| |
|
protected |
◆ printDescription()
void dqi::CorrelationYX::printDescription |
( |
| ) |
|
|
virtual |
◆ name
std::string dqi::CorrelationYX::name |
|
protected |
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)