CMS 3D CMS Logo

DTDataIntegrityTest.h
Go to the documentation of this file.
1 #ifndef DTDataIntegrity_Test_H
2 #define DTDataIntegrity_Test_H
3 
21 
23 
24 class DQMStore;
25 class MonitorElement;
26 class DTReadOutMapping;
27 
29 
30 public:
31 
34 
36  ~DTDataIntegrityTest() override;
37 
38 protected:
39 
40  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
41 
43  std::string getMEName(std::string histoType, int FEDId);
44 
46  void bookHistos(DQMStore::IBooker &, std::string histoType, int dduId);
47 
50 
51 private:
52  int readOutToGeometry(int dduId, int rosNumber, int& wheel, int& sector);
53  int getROS(int uROS, int link);
54 
55  //Number of onUpdates
56  int nupdates;
57 
58  // prescale on the # of LS to update the test
60 
61  // to use in 2018 with uROS
62  bool checkUros;
63 
64  //Counter between 0 and nTimeBin
65  int counter;
66 
67  int nevents;
68  unsigned int nLumiSegs;
69 
70  int run;
71 
73 
75 
76  // Monitor Elements
77  std::map<std::string, std::map<int, MonitorElement*> > dduHistos;
78  std::map<std::string, std::map<int, std::vector <MonitorElement*> > > dduVectorHistos;
79 
80  std::map<std::string, std::map<int, MonitorElement*> > fedHistos;
81  std::map<std::string, std::map<int, std::vector <MonitorElement*> > > fedVectorHistos;
82 
86  };
87 
88 #endif
std::map< std::string, std::map< int, MonitorElement * > > fedHistos
MonitorElement * summaryTDCHisto
DTDataIntegrityTest(const edm::ParameterSet &ps)
Constructor.
MonitorElement * glbSummaryHisto
std::string getMEName(std::string histoType, int FEDId)
Get the ME name.
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
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
std::map< std::string, std::map< int, MonitorElement * > > dduHistos
int getROS(int uROS, int link)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
std::map< std::string, std::map< int, std::vector< MonitorElement * > > > fedVectorHistos
~DTDataIntegrityTest() override
Destructor.
void bookHistos(DQMStore::IBooker &, std::string histoType, int dduId)
Book the MEs.