CMS 3D CMS Logo

DTRunConditionVarClient.h
Go to the documentation of this file.
1 #ifndef DTMonitorClient_DTRunConditionVarClient_H
2 #define DTMonitorClient_DTRunConditionVarClient_H
3 
4 
28 
30 
34 
36 
37 #include <memory>
38 #include <iostream>
39 #include <fstream>
40 #include <string>
41 #include <vector>
42 #include <map>
43 
44 class DTGeometry;
45 class DTChamberId;
46 class DTLayerId;
47 
49 
50  public:
51 
54 
56  virtual ~DTRunConditionVarClient();
57 
58  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
59 
60  protected:
61 
62  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
63 
65 
66  void bookWheelHistos(DQMStore::IBooker &,std::string histoType, std::string subfolder,
67  int wh, int nbins, float min, float max, bool isVDCorr=false);
68 
71 
72 
73  float varQuality(float var, float maxGood, float minBad);
74  void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float& devVD, float& errdevVD);
75 
76  private:
77 
79 
80  int nevents;
81 
84  float minRangeT0;
85  float maxRangeT0;
86 
89  float maxGoodT0;
90  float minBadT0;
91 
96 
99 
101 
104 
105  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
106  std::map<std::string, MonitorElement *> summaryHistos;
107  std::map<std::string, MonitorElement *> allwheelHistos;
108 
109 };
110 
111 #endif
virtual ~DTRunConditionVarClient()
Destructor.
std::map< std::string, MonitorElement * > summaryHistos
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
MonitorElement * getChamberHistos(DQMStore::IGetter &, const DTChamberId &, std::string)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
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
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
std::map< std::string, MonitorElement * > allwheelHistos
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
Definition: Run.h:42