CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QReport.h
Go to the documentation of this file.
1 #ifndef DQMSERVICES_CORE_Q_REPORT_H
2 # define DQMSERVICES_CORE_Q_REPORT_H
3 
6 # include <vector>
7 # include <string>
8 
9 class QCriterion;
10 
12 class QReport
13 {
14 public:
16  int getStatus(void) const
17  { return qvalue_->code; }
18 
20  float getQTresult(void) const
21  { return qvalue_->qtresult; }
22 
24  const std::string &getMessage(void) const
25  { return qvalue_->message; }
26 
28  const std::string &getQRName(void) const
29  { return qvalue_->qtname; }
30 
33  const std::vector<DQMChannel> &getBadChannels(void) const
34  { return badChannels_; }
35 
37  const QCriterion *getQCriterion(void) const
38  { return qcriterion_; }
39 
40 private:
41  friend class QCriterion;
42  friend class MonitorElement; // for running the quality test
43  friend class DQMStore; // for setting QReport parameters after receiving report
44 
46  : qvalue_ (value),
47  qcriterion_ (qc)
48  {}
49 
50  DQMNet::QValue *qvalue_; //< Pointer to the actual data.
51  QCriterion *qcriterion_; //< Pointer to QCriterion algorithm.
52  std::vector<DQMChannel> badChannels_; //< Bad channels from QCriterion.
53 };
54 
55 #endif // DQMSERVICES_CORE_Q_REPORT_H
QCriterion * qcriterion_
Definition: QReport.h:51
const std::string & getQRName(void) const
get name of quality test
Definition: QReport.h:28
const std::string & getMessage(void) const
get message attached to test
Definition: QReport.h:24
int getStatus(void) const
get test status (see Core/interface/QTestStatus.h)
Definition: QReport.h:16
QReport(DQMNet::QValue *value, QCriterion *qc)
Definition: QReport.h:45
const std::vector< DQMChannel > & getBadChannels(void) const
Definition: QReport.h:33
std::string qtname
Definition: DQMNet.h:92
float getQTresult(void) const
get test result i.e. prob value
Definition: QReport.h:20
const QCriterion * getQCriterion(void) const
get QCriterion
Definition: QReport.h:37
DQMNet::QValue * qvalue_
Definition: QReport.h:50
std::vector< DQMChannel > badChannels_
Definition: QReport.h:52
std::string message
Definition: DQMNet.h:91
float qtresult
Definition: DQMNet.h:90