CMS 3D CMS Logo

DTRunConditionVarClient.h
Go to the documentation of this file.
1 #ifndef DTMonitorClient_DTRunConditionVarClient_H
2 #define DTMonitorClient_DTRunConditionVarClient_H
3 
26 
31 
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 class DTMtime;
48 class DTRecoConditions;
49 
51 public:
54 
56  ~DTRunConditionVarClient() override;
57 
58  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
59 
60 protected:
62 
64 
66  std::string histoType,
67  std::string subfolder,
68  int wh,
69  int nbins,
70  float min,
71  float max,
72  bool isVDCorr = false,
73  bool makeRings = false);
74 
78  edm::LuminosityBlock const&,
79  edm::EventSetup const&) override;
80 
81  float varQuality(float var, float maxGood, float minBad);
82  void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float& devVD, float& errdevVD);
83 
84 private:
86 
87  int nevents;
88 
91  float minRangeT0;
92  float maxRangeT0;
93 
96  float maxGoodT0;
97  float minBadT0;
98 
103 
105  const DTMtime* mTimeMap_; // legacy DB object
106 
108  const DTRecoConditions* vDriftMap_; // DB object in new format
109  bool readLegacyVDriftDB; // which one to use
110 
112 
115 
116  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
117  std::map<int, std::map<int, std::map<std::string, MonitorElement*> > > wheelRingHistos;
118  std::map<std::string, MonitorElement*> summaryHistos;
119  std::map<std::string, MonitorElement*> allwheelHistos;
120 };
121 
122 #endif
edm::ESGetToken< DTRecoConditions, DTRecoConditionsVdriftRcd > vDriftToken_
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)
std::map< int, std::map< int, std::map< std::string, MonitorElement * > > > wheelRingHistos
void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float &devVD, float &errdevVD)
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, bool makeRings=false)
book the report summary
~DTRunConditionVarClient() override
Destructor.
const DTRecoConditions * vDriftMap_
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
edm::ESGetToken< DTMtime, DTMtimeRcd > mTimeMapToken_
Definition: Run.h:45