CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRunConditionVarClient.h
Go to the documentation of this file.
1 #ifndef DTMonitorClient_DTRunConditionVarClient_H
2 #define DTMonitorClient_DTRunConditionVarClient_H
3 
4 
26 
28 
32 
33 #include <memory>
34 #include <iostream>
35 #include <fstream>
36 #include <string>
37 #include <vector>
38 #include <map>
39 
40 class DTGeometry;
41 class DTChamberId;
42 class DTLayerId;
43 
45 
46  public:
47 
50 
52  virtual ~DTRunConditionVarClient();
53 
54  protected:
55 
56  void beginJob();
57  void analyze(const edm::Event& e, const edm::EventSetup& c);
58  void endJob();
59 
61  void bookWheelHistos(std::string histoType, std::string subfolder, int wh, int nbins, float min, float max, bool isVDCorr=false);
62 
64  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context);
65  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
66 
67  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
68  void endRun(edm::Run const& run, edm::EventSetup const& c);
69 
70  //
71  float varQuality(float var, float maxGood, float minBad);
72 
73  //
74  void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float& devVD, float& errdevVD);
75 
76  private:
77 
78  MonitorElement* getChamberHistos(const DTChamberId&, std::string);
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.
void beginRun(const edm::Run &run, const edm::EventSetup &setup)
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
std::map< std::string, MonitorElement * > summaryHistos
void bookWheelHistos(std::string histoType, std::string subfolder, int wh, int nbins, float min, float max, bool isVDCorr=false)
book the report summary
#define min(a, b)
Definition: mlp_lapack.h:161
float varQuality(float var, float maxGood, float minBad)
MonitorElement * getChamberHistos(const DTChamberId &, std::string)
void endRun(edm::Run const &run, edm::EventSetup const &c)
const T & max(const T &a, const T &b)
void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float &devVD, float &errdevVD)
edm::ESHandle< DTMtime > mTime
DTRunConditionVarClient(const edm::ParameterSet &ps)
Constructor.
std::map< std::string, MonitorElement * > allwheelHistos
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
DQM Client Diagnostic.
void analyze(const edm::Event &e, const edm::EventSetup &c)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
Definition: Run.h:33