CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelDQMRocLevelAnalyzer.h
Go to the documentation of this file.
1 #ifndef ROC__Analyzer_h
2 #define ROC__Analyzer_h
3 
4 // -*- C++ -*-
5 //
6 // Package: SiPixelDQMRocLevelAnalyzer
7 // Class: SiPixelDQMRocLevelAnalyzer
8 //
16 //
17 // Original Author: Lukas Wehrli
18 // Created: Thu Sep 30 14:03:02 CEST 2008
19 // $Id: SiPixelDQMRocLevelAnalyzer.h,v 1.1 2010/08/10 08:57:54 ursl Exp $
20 //
21 //
22 
23 
24 // system include files
25 #include <memory>
26 
27 // user include files
30 
33 
39 #include <string>
40 #include "TH1D.h"
41 #include "TFile.h"
42 #include "math.h"
43 //
44 // class decleration
45 //
46 
48  public:
51 
52 
53  private:
54  virtual void beginJob();
55  virtual void analyze(const edm::Event&, const edm::EventSetup&);
56  virtual void endJob() ;
57 
58  //
60  void RocSumOneModule(int maxr, int maxc, MonitorElement* const &me, std::vector<double> &vecCN, std::vector<double> &vecMean, std::vector<double> &vecSD, int &chipNumber);
61  void FillRocLevelHistos(TH1F *hrocdep, TH1F *hdist, std::vector<double> &vecx, std::vector<double> &vecy);
62 
63 
64 
65  // ----------member data ---------------------------
69 
70  std::vector<MonitorElement*> mes;
72 
73  std::vector<double> vbpixCN;
74  std::vector<double> vbpixM;
75  std::vector<double> vbpixSD;
76  std::vector<double> vfpixCN;
77  std::vector<double> vfpixM;
78  std::vector<double> vfpixSD;
79 
80  //barrel
81  TH1F * bhPixelAlive;
83  TH1F * bhThresholdMean;
85  TH1F * bhThresholdRMS;
87  TH1F * bhNoiseMean;
89  TH1F * bhNoiseRMS;
90  TH1F * bhNoiseRMS_dist;
91  TH1F * bhGainMean;
92  TH1F * bhGainMean_dist;
93  TH1F * bhGainRMS;
94  TH1F * bhGainRMS_dist;
95  TH1F * bhPedestalMean;
97  TH1F * bhPedestalRMS;
99  //endcap
100  TH1F * ehPixelAlive;
104  TH1F * ehThresholdRMS;
106  TH1F * ehNoiseMean;
108  TH1F * ehNoiseRMS;
110  TH1F * ehGainMean;
112  TH1F * ehGainRMS;
113  TH1F * ehGainRMS_dist;
114  TH1F * ehPedestalMean;
116  TH1F * ehPedestalRMS;
118 
119 };
120 
121 
122 #endif
void FillRocLevelHistos(TH1F *hrocdep, TH1F *hdist, std::vector< double > &vecx, std::vector< double > &vecy)
std::vector< MonitorElement * > mes
void RocSumOneModule(int maxr, int maxc, MonitorElement *const &me, std::vector< double > &vecCN, std::vector< double > &vecMean, std::vector< double > &vecSD, int &chipNumber)
SiPixelDQMRocLevelAnalyzer(const edm::ParameterSet &)
void RocSummary(std::string tagname)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::Service< TFileService > fs_