45{
47
48 if(
object.
IsA()->InheritsFrom(
"TH1" ) ) {
51 throw dqm_core::BadConfig( ERS_HERE, name, "dimension > 2 " );
52 }
53 } else {
54 throw dqm_core::BadConfig( ERS_HERE, name, "does not inherit from TH1" );
55 }
56
61
63 dqm_core::Result *
result =
new dqm_core::Result(dqm_core::Result::Undefined);
66 }
67
68
70 const_cast<TAxis*
>(
histogram->GetXaxis())->SetRange(range[0], range[1]);
71 const_cast<TAxis*
>(
histogram->GetYaxis())->SetRange(range[2], range[3]);
72
73 std::map<std::string, double>
params;
77 ERS_DEBUG(1,
"XMean Value " <<
histogram->GetMean(1)<<
" YMean Value " <<
histogram->GetMean(2));
78 }
else if (
m_name ==
"RMS" ) {
81 ERS_DEBUG(1,
"XRMS Value " <<
histogram->GetRMS(1)<<
" YRMS Value "<<
histogram->GetRMS(2));
82 }else {
83 return new dqm_core::Result();
84 }
85
87
88 try {
90 }
91 catch ( dqm_core::Exception & ex ) {
92 throw dqm_core::BadConfig( ERS_HERE, name, ex.what(), ex );
93 }
94
96 if (publishType & 0x01)
result->tags_[
"XMean"] =
params[
"XMean"];
97 if (publishType & 0x02)
result->tags_[
"YMean"] =
params[
"YMean"];
98 }
else if (
m_name ==
"RMS") {
99 if (publishType & 0x01)
result->tags_[
"XRMS"] =
params[
"XRMS"];
100 if (publishType & 0x02)
result->tags_[
"YRMS"] =
params[
"YRMS"];
101 }
102
104}
#define IsA
Declare the TObject style functions.