CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripDaqInfo.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorClient_SiStripDaqInfo_h
2 #define SiStripMonitorClient_SiStripDaqInfo_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripMonitorClient
6 // Class : SiStripDaqInfo
7 //
16 //
17 // Author: Suchandra Dutta
18 // Created: Thu Dec 11 17:50:00 CET 2008
19 //
20 
21 #include <string>
22 
29 
30 #include <iostream>
31 #include <fstream>
32 #include <string>
33 #include <vector>
34 #include <map>
35 
36 class DQMStore;
37 class MonitorElement;
38 class SiStripFedCabling;
39 
41 
42  public:
43 
46 
48  virtual ~SiStripDaqInfo();
49 
50  private:
51 
53  void beginJob();
54 
56  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup);
57 
59  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup);
60 
62  void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
63 
65  void analyze(edm::Event const&, edm::EventSetup const&);
66 
67 
68 private:
69  void readFedIds(const edm::ESHandle<SiStripFedCabling>& fedcabling);
70  void readSubdetFedFractions(std::vector<int>& fed_ids);
71  void bookStatus();
72  void fillDummyStatus();
73  void findExcludedModule(unsigned short fed_id);
74 
75  std::map<std::string,std::vector<unsigned short> > subDetFedMap;
76 
79 
80  struct SubDetMEs{
83  };
84 
85  std::map <std::string, SubDetMEs> SubDetMEsMap;
86 
87  unsigned long long m_cacheID_;
88  int nFedTotal;
90 
92 };
93 #endif
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup)
End Of Luminosity.
void readFedIds(const edm::ESHandle< SiStripFedCabling > &fedcabling)
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
EndRun.
virtual ~SiStripDaqInfo()
Destructor.
edm::ESHandle< SiStripFedCabling > fedCabling_
SiStripDaqInfo(const edm::ParameterSet &ps)
Constructor.
void analyze(edm::Event const &, edm::EventSetup const &)
Analyze.
DQMStore * dqmStore_
std::map< std::string, SubDetMEs > SubDetMEsMap
void readSubdetFedFractions(std::vector< int > &fed_ids)
std::map< std::string, std::vector< unsigned short > > subDetFedMap
MonitorElement * DaqFractionME
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup)
Begin Run.
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
void findExcludedModule(unsigned short fed_id)
void fillDummyStatus()
MonitorElement * DaqFraction_
unsigned long long m_cacheID_
void beginJob()
BeginJob.
Definition: Run.h:33