CMS 3D CMS Logo

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 //
20 //
21 
22 // system include files
23 #include <memory>
24 
25 // user include files
28 
31 
36 #include <string>
37 #include "TH1D.h"
38 #include "TFile.h"
39 #include <cmath>
40 //
41 // class decleration
42 //
43 
44 class SiPixelDQMRocLevelAnalyzer : public edm::one::EDAnalyzer<edm::one::SharedResources> {
45 public:
49  ~SiPixelDQMRocLevelAnalyzer() override;
50 
51 private:
52  void beginJob() override;
53  void analyze(const edm::Event &, const edm::EventSetup &) override;
54  void endJob() override;
55 
56  //
58  void RocSumOneModule(int maxr,
59  int maxc,
60  MonitorElement *const &me,
61  std::vector<double> &vecCN,
62  std::vector<double> &vecMean,
63  std::vector<double> &vecSD,
64  int &chipNumber);
65  void FillRocLevelHistos(TH1F *hrocdep, TH1F *hdist, std::vector<double> &vecx, std::vector<double> &vecy);
66 
67  // ----------member data ---------------------------
71 
72  std::vector<MonitorElement *> mes;
74 
75  std::vector<double> vbpixCN;
76  std::vector<double> vbpixM;
77  std::vector<double> vbpixSD;
78  std::vector<double> vfpixCN;
79  std::vector<double> vfpixM;
80  std::vector<double> vfpixSD;
81 
82  //barrel
83  TH1F *bhPixelAlive;
89  TH1F *bhNoiseMean;
91  TH1F *bhNoiseRMS;
93  TH1F *bhGainMean;
95  TH1F *bhGainRMS;
101  //endcap
108  TH1F *ehNoiseMean;
110  TH1F *ehNoiseRMS;
112  TH1F *ehGainMean;
114  TH1F *ehGainRMS;
120 };
121 
122 #endif
void analyze(const edm::Event &, const edm::EventSetup &) override
void FillRocLevelHistos(TH1F *hrocdep, TH1F *hdist, std::vector< double > &vecx, std::vector< double > &vecy)
void RocSumOneModule(int maxr, int maxc, MonitorElement *const &me, std::vector< double > &vecCN, std::vector< double > &vecMean, std::vector< double > &vecSD, int &chipNumber)
dqm::legacy::MonitorElement MonitorElement
SiPixelDQMRocLevelAnalyzer(const edm::ParameterSet &)
__constant__ float const maxr[nPairs]
~SiPixelDQMRocLevelAnalyzer() override
void RocSummary(std::string tagname)
std::vector< MonitorElement * > mes
edm::Service< TFileService > fs_