CMS 3D CMS Logo

QualityTester.h
Go to the documentation of this file.
1 #ifndef QualityTester_H
2 #define QualityTester_H
3 
4 /*
5  * \file QualityTester.h
6  *
7  * Helping EDAnalyzer running the quality tests for clients when:
8  * - they receive ME data from the SM
9  * - they are run together with the producers (standalone mode)
10  *
11  * \author M. Zanetti - CERN PH
12  *
13  */
14 #include "boost/scoped_ptr.hpp"
25 
26 #include <memory>
27 #include <iostream>
28 #include <string>
29 
30 class QTestHandle;
31 
33 public:
36 
39 
41  ~QualityTester() override;
42 
43 protected:
45  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
46 
48  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c) override;
49  void beginRun(const edm::Run&, const edm::EventSetup&) override;
50  void endRun(const edm::Run& r, const edm::EventSetup& c) override;
51  void endJob() override;
52 
53 private:
54  void performTests();
55 
56  int nEvents;
65  bool verboseQT;
66 
67  DQMStore* bei;
68 
70 };
71 
72 #endif
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override
perform the actual quality tests
bool testInEventloop
Definition: QualityTester.h:60
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
dqm::harvesting::DQMStore DQMStore
Definition: QualityTester.h:34
bool getQualityTestsFromFile
Definition: QualityTester.h:58
~QualityTester() override
Destructor.
QTestHandle * qtHandler
Definition: QualityTester.h:69
void endJob() override
dqm::harvesting::MonitorElement MonitorElement
Definition: QualityTester.h:35
void performTests()
std::string Label
Definition: QualityTester.h:59
void endRun(const edm::Run &r, const edm::EventSetup &c) override
DQMStore * bei
Definition: QualityTester.h:67
std::string reportThreshold
Definition: QualityTester.h:64
QualityTester(const edm::ParameterSet &ps)
Constructor.
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: Run.h:45