CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalPedestalClient.h
Go to the documentation of this file.
1 #ifndef HcalPedestalClient_H
2 #define HcalPedestalClient_H
3 
4 #include "DQM/HcalMonitorClient/interface/HcalBaseClient.h"
15 
18 
19 
20 class HcalPedestalClient : public HcalBaseClient {
21 
22  public:
23 
28 
29  void init(const edm::ParameterSet& ps, DQMStore* dbe, string clientName);
30 
32  void analyze(void);
33 
35  void beginJob();
36 
38  void endJob(void);
39 
41  void beginRun(const EventSetup& c);
42 
44  void endRun(void);
45 
47  void setup(void);
48 
50  void cleanup(void);
51 
53  void htmlOutput(int run, string htmlDir, string htmlName);
54  void htmlExpertOutput(int run, string htmlDir, string htmlName);
55  void getHistograms();
56  void loadHistograms(TFile* f);
57 
59  void report();
60 
61  void resetAllME();
62  void createTests();
63 
64  // Introduce temporary error/warning checks
65  bool hasErrors_Temp();
66  bool hasWarnings_Temp();
67  bool hasOther_Temp() {return false;}
68 
69 
70 private:
71 
72  //void generateBadChanList(string dir);
73  vector<int> badChan_;
74  vector<double> badMean_;
75  vector<double> badRMS_;
76 
77  vector <std::string> subdets_;
78  vector <std::string> subdets1D_;
79 
80  bool doFCpeds_; // pedestal units in fC (if false, assume ADC)
81  // specify time slices over which to calculate pedestals -- are these needed in client?
84 
85  // Specify maximum allowed difference between ADC pedestal and nominal value
89  double maxPedWidthDiffADC_; // specify maximum width of pedestal (in ADC)
90  double minErrorFlag_; // minimum error rate which causes problem cells to be dumped in client
92  TH2F* MeanMapByDepth[4];
93  TH2F* RMSMapByDepth[4];
94 
95  // Problem Pedestal Plots
98 
99  // Pedestals from Database
108 
109  // Raw pedestals in ADC
114 
115  // subtracted pedestals in ADC
120 
121  // Raw pedestals in FC
126 
127  // subtracted pedestals in FC
132 
133 };
134 
135 #endif
void htmlOutput(int run, string htmlDir, string htmlName)
HtmlOutput.
void htmlExpertOutput(int run, string htmlDir, string htmlName)
TH2F * ADC_PedestalFromDBByDepth[4]
vector< std::string > subdets1D_
void loadHistograms(TFile *f)
void cleanup(void)
Cleanup.
void beginRun(const EventSetup &c)
BeginRun.
HcalPedestalClient()
Constructor.
TH2F * fC_PedestalFromDBByDepth[4]
void init(const edm::ParameterSet &ps, DQMStore *dbe, string clientName)
TH1F * fC_WidthFromDBByDepth_1D[4]
void endJob(void)
EndJob.
vector< std::string > subdets_
TH1F * ADC_WidthFromDBByDepth_1D[4]
vector< int > badChan_
double f[11][100]
TH1F * fC_PedestalFromDBByDepth_1D[4]
TH1F * ADC_PedestalFromDBByDepth_1D[4]
TH2F * ProblemPedestalsByDepth[4]
void setup(void)
Setup.
void report()
process report
vector< double > badMean_
vector< double > badRMS_
void endRun(void)
EndRun.
void beginJob()
BeginJob.
TH2F * ADC_WidthFromDBByDepth[4]
~HcalPedestalClient()
Destructor.
void analyze(void)
Analyze.