CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTDataIntegrityTest.h
Go to the documentation of this file.
1 #ifndef DTDataIntegrity_Test_H
2 #define DTDataIntegrity_Test_H
3 
19 
20 class DQMStore;
21 class MonitorElement;
22 class DTReadOutMapping;
23 
25 
26 public:
27 
30 
33 
34 protected:
35 
37  void beginJob();
38 
40  void beginRun(const edm::Run& run, const edm::EventSetup& c);
41 
43  void analyze(const edm::Event& e, const edm::EventSetup& c);
44 
46  void endJob();
47 
49  std::string getMEName(std::string histoType, int FEDId);
51  void bookHistos(std::string histoType, int dduId);
52 
53  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
54 
56  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
57 
58 private:
59  int readOutToGeometry(int dduId, int rosNumber, int& wheel, int& sector);
60 
61 private:
62 
63  //Number of onUpdates
64  int nupdates;
65 
66  // prescale on the # of LS to update the test
68 
69 
70  //Counter between 0 and nTimeBin
71  int counter;
72 
73  int nevents;
74  unsigned int nLumiSegs;
75 
76  int run;
77 
78 
81 
82 
83  // Monitor Elements
84  // <histoType, <DDU index , histo> >
85  std::map<std::string, std::map<int, MonitorElement*> > dduHistos;
86  // <histoType, <DDU index , vector of histos> >
87  std::map<std::string, std::map<int, std::vector <MonitorElement*> > > dduVectorHistos;
88 
92  };
93 
94 #endif
void beginJob()
BeginJob.
MonitorElement * summaryTDCHisto
DTDataIntegrityTest(const edm::ParameterSet &ps)
Constructor.
~DTDataIntegrityTest()
Destructor.
MonitorElement * glbSummaryHisto
std::string getMEName(std::string histoType, int FEDId)
Get the ME name.
std::map< std::string, std::map< int, std::vector< MonitorElement * > > > dduVectorHistos
MonitorElement * summaryHisto
int readOutToGeometry(int dduId, int rosNumber, int &wheel, int &sector)
edm::ESHandle< DTReadOutMapping > mapping
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
std::map< std::string, std::map< int, MonitorElement * > > dduHistos
void bookHistos(std::string histoType, int dduId)
Book the MEs.
void beginRun(const edm::Run &run, const edm::EventSetup &c)
BeginRun.
Definition: Run.h:33