CMS 3D CMS Logo

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 class TrackerTopology;
40 
42 
43  public:
44 
47 
49  ~SiStripDaqInfo() override;
50 
51  private:
52 
54  void beginJob() override;
55 
57  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
58 
60  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup) override;
61 
63  void endRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
64 
66  void analyze(edm::Event const&, edm::EventSetup const&) override;
67 
68 
69 private:
70  void readFedIds(const edm::ESHandle<SiStripFedCabling>& fedcabling, edm::EventSetup const& iSetup);
71  void readSubdetFedFractions(std::vector<int>& fed_ids, edm::EventSetup const& iSetup);
72  void bookStatus();
73  void fillDummyStatus();
74  void findExcludedModule(unsigned short fed_id, const TrackerTopology* tTopo
75 );
76 
77  std::map<std::string,std::vector<unsigned short> > subDetFedMap;
78 
81 
82  struct SubDetMEs{
85  };
86 
87  std::map <std::string, SubDetMEs> SubDetMEsMap;
88 
89  unsigned long long m_cacheID_;
90  int nFedTotal;
92 
94 };
95 #endif
void readFedIds(const edm::ESHandle< SiStripFedCabling > &fedcabling, edm::EventSetup const &iSetup)
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Begin Run.
void findExcludedModule(unsigned short fed_id, const TrackerTopology *tTopo)
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
End Of Luminosity.
edm::ESHandle< SiStripFedCabling > fedCabling_
void beginJob() override
BeginJob.
void analyze(edm::Event const &, edm::EventSetup const &) override
Analyze.
SiStripDaqInfo(const edm::ParameterSet &ps)
Constructor.
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
EndRun.
DQMStore * dqmStore_
std::map< std::string, SubDetMEs > SubDetMEsMap
~SiStripDaqInfo() override
Destructor.
std::map< std::string, std::vector< unsigned short > > subDetFedMap
MonitorElement * DaqFractionME
void readSubdetFedFractions(std::vector< int > &fed_ids, edm::EventSetup const &iSetup)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
void fillDummyStatus()
MonitorElement * DaqFraction_
unsigned long long m_cacheID_
Definition: Run.h:44