CMS 3D CMS Logo

DTRunConditionVarClient.h
Go to the documentation of this file.
1 #ifndef DTMonitorClient_DTRunConditionVarClient_H
2 #define DTMonitorClient_DTRunConditionVarClient_H
3 
27 
29 
32 
34 
35 #include <memory>
36 #include <iostream>
37 #include <fstream>
38 #include <string>
39 #include <vector>
40 #include <map>
41 
42 class DTGeometry;
43 class DTChamberId;
44 class DTLayerId;
45 
47 public:
50 
52  ~DTRunConditionVarClient() override;
53 
54  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
55 
56 protected:
58 
60 
62  std::string histoType,
63  std::string subfolder,
64  int wh,
65  int nbins,
66  float min,
67  float max,
68  bool isVDCorr = false);
69 
73  edm::LuminosityBlock const&,
74  edm::EventSetup const&) override;
75 
76  float varQuality(float var, float maxGood, float minBad);
77  void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float& devVD, float& errdevVD);
78 
79 private:
81 
82  int nevents;
83 
86  float minRangeT0;
87  float maxRangeT0;
88 
91  float maxGoodT0;
92  float minBadT0;
93 
98 
101 
103 
106 
107  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
108  std::map<std::string, MonitorElement*> summaryHistos;
109  std::map<std::string, MonitorElement*> allwheelHistos;
110 };
111 
112 #endif
std::map< std::string, MonitorElement * > summaryHistos
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
MonitorElement * getChamberHistos(DQMStore::IGetter &, const DTChamberId &, std::string)
std::map< std::string, MonitorElement * > allwheelHistos
float varQuality(float var, float maxGood, float minBad)
void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float &devVD, float &errdevVD)
edm::ESHandle< DTMtime > mTime
T min(T a, T b)
Definition: MathUtil.h:58
DTRunConditionVarClient(const edm::ParameterSet &ps)
Constructor.
void bookWheelHistos(DQMStore::IBooker &, std::string histoType, std::string subfolder, int wh, int nbins, float min, float max, bool isVDCorr=false)
book the report summary
~DTRunConditionVarClient() override
Destructor.
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
Definition: Run.h:45