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 
17 
18 class DQMStore;
19 class MonitorElement;
20 class DTReadOutMapping;
21 
23 
24 public:
25 
28 
31 
32 protected:
33 
35  void beginJob();
36 
38  void beginRun(const edm::Run& run, const edm::EventSetup& c);
39 
41  void analyze(const edm::Event& e, const edm::EventSetup& c);
42 
44  void endJob();
45 
47  std::string getMEName(std::string histoType, int FEDId);
49  void bookHistos(std::string histoType, int dduId);
50 
51  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
52 
54  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
55 
56 private:
57  int readOutToGeometry(int dduId, int rosNumber, int& wheel, int& sector);
58 
59 private:
60 
61  //Number of onUpdates
62  int nupdates;
63 
64  // prescale on the # of LS to update the test
66 
67 
68  //Counter between 0 and nTimeBin
69  int counter;
70 
71  int nevents;
72  unsigned int nLumiSegs;
73 
74  int run;
75 
76 
79 
80 
81  // Monitor Elements
82  // <histoType, <DDU index , histo> >
83  std::map<std::string, std::map<int, MonitorElement*> > dduHistos;
84  // <histoType, <DDU index , vector of histos> >
85  std::map<std::string, std::map<int, std::vector <MonitorElement*> > > dduVectorHistos;
86 
90  };
91 
92 #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:41