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  virtual ~SiStripDaqInfo();
50 
51  private:
52 
54  void beginJob();
55 
57  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup);
58 
60  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup);
61 
63  void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
64 
66  void analyze(edm::Event const&, edm::EventSetup const&);
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 endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup)
End Of Luminosity.
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
EndRun.
virtual ~SiStripDaqInfo()
Destructor.
void findExcludedModule(unsigned short fed_id, const TrackerTopology *tTopo)
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
std::map< std::string, std::vector< unsigned short > > subDetFedMap
MonitorElement * DaqFractionME
void readSubdetFedFractions(std::vector< int > &fed_ids, edm::EventSetup const &iSetup)
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 fillDummyStatus()
MonitorElement * DaqFraction_
unsigned long long m_cacheID_
void beginJob()
BeginJob.
Definition: Run.h:42