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 
25 
27 
31 
32 #include <memory>
33 #include <iostream>
34 #include <fstream>
35 #include <string>
36 #include <vector>
37 #include <map>
38 
39 class DTGeometry;
40 class DTChamberId;
41 class DTLayerId;
42 
44 
45  public:
46 
49 
51  virtual ~DTRunConditionVarClient();
52 
53  protected:
54 
55  void beginJob();
56  void analyze(const edm::Event& e, const edm::EventSetup& c);
57  void endJob();
58 
60  void bookWheelHistos(std::string histoType, std::string subfolder, int wh, int nbins, float min, float max, bool isVDCorr=false);
61 
63  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context);
64  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
65 
66  void beginRun(const edm::Run& run, const edm::EventSetup& setup);
67  void endRun(edm::Run const& run, edm::EventSetup const& c);
68 
69  //
70  float varQuality(float var, float maxGood, float minBad);
71 
72  //
73  void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float& devVD, float& errdevVD);
74 
75  private:
76 
78 
79  int nevents;
80 
83  float minRangeT0;
84  float maxRangeT0;
85 
88  float maxGoodT0;
89  float minBadT0;
90 
95 
98 
100 
103 
104  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
105  std::map<std::string, MonitorElement *> summaryHistos;
106  std::map<std::string, MonitorElement *> allwheelHistos;
107 
108 };
109 
110 #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
float varQuality(float var, float maxGood, float minBad)
MonitorElement * getChamberHistos(const DTChamberId &, std::string)
void endRun(edm::Run const &run, edm::EventSetup const &c)
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.
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:41