CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiPixelStatusManager.h
Go to the documentation of this file.
1 #ifndef SiPixelStatusManager_H
2 #define SiPixelStatusManager_H
3 
14 #include <string>
15 #include <map>
16 #include <utility>
17 #include <iostream>
18 #include <algorithm> // std::sort
19 #include <vector> // std::vector
20 
21 //Data format
23 
25 public:
28  virtual ~SiPixelStatusManager();
29 
30  void reset();
31  void readLumi(const edm::LuminosityBlock&);
32 
33  void createPayloads();
34 
35  const std::map<edm::LuminosityBlockNumber_t, SiPixelDetectorStatus>& getBadComponents() { return siPixelStatusMap_; }
36  const std::map<edm::LuminosityBlockNumber_t, std::map<int, std::vector<int>>>& getFEDerror25Rocs() {
37  return FEDerror25Map_;
38  }
39 
40  typedef std::map<edm::LuminosityBlockNumber_t, SiPixelDetectorStatus>::iterator siPixelStatusMap_iterator;
41  typedef std::map<edm::LuminosityBlockNumber_t, std::map<int, std::vector<int>>>::iterator FEDerror25Map_iterator;
42  typedef std::vector<SiPixelDetectorStatus>::iterator siPixelStatusVtr_iterator;
43 
44 private:
45  static bool rankByLumi(SiPixelDetectorStatus status1, SiPixelDetectorStatus status2);
46  void createFEDerror25();
47  void createBadComponents();
48 
49  std::vector<SiPixelDetectorStatus> siPixelStatusVtr_;
50  std::map<edm::LuminosityBlockNumber_t, SiPixelDetectorStatus> siPixelStatusMap_;
51  std::map<edm::LuminosityBlockNumber_t, std::map<int, std::vector<int>>> FEDerror25Map_;
52 
55  int nLumi_;
58 
60 };
61 
62 #endif
edm::EDGetTokenT< SiPixelDetectorStatus > siPixelStatusToken_
std::vector< SiPixelDetectorStatus >::iterator siPixelStatusVtr_iterator
const std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus > & getBadComponents()
const std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > > & getFEDerror25Rocs()
std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > > FEDerror25Map_
std::vector< SiPixelDetectorStatus > siPixelStatusVtr_
std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus > siPixelStatusMap_
static bool rankByLumi(SiPixelDetectorStatus status1, SiPixelDetectorStatus status2)
void readLumi(const edm::LuminosityBlock &)
std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > >::iterator FEDerror25Map_iterator
std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus >::iterator siPixelStatusMap_iterator