CMS 3D CMS Logo

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 
26  public:
29  virtual ~SiPixelStatusManager();
30 
31  void reset();
32  void readLumi(const edm::LuminosityBlock&);
33 
34  void createPayloads();
35 
36  const std::map<edm::LuminosityBlockNumber_t,SiPixelDetectorStatus>& getBadComponents(){return siPixelStatusMap_; }
37  const std::map<edm::LuminosityBlockNumber_t,std::map<int, std::vector<int>> >& getFEDerror25Rocs(){return FEDerror25Map_;}
38 
39  typedef std::map<edm::LuminosityBlockNumber_t,SiPixelDetectorStatus>::iterator siPixelStatusMap_iterator;
40  typedef std::map<edm::LuminosityBlockNumber_t,std::map<int, std::vector<int>> >::iterator FEDerror25Map_iterator;
41  typedef std::vector<SiPixelDetectorStatus>::iterator siPixelStatusVtr_iterator;
42 
43  private:
44 
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 };
63 
64 #endif
const std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > > & getFEDerror25Rocs()
edm::EDGetTokenT< SiPixelDetectorStatus > siPixelStatusToken_
std::vector< SiPixelDetectorStatus >::iterator siPixelStatusVtr_iterator
std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > > FEDerror25Map_
std::vector< SiPixelDetectorStatus > siPixelStatusVtr_
std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > >::iterator FEDerror25Map_iterator
std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus > siPixelStatusMap_
std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus >::iterator siPixelStatusMap_iterator
static bool rankByLumi(SiPixelDetectorStatus status1, SiPixelDetectorStatus status2)
void readLumi(const edm::LuminosityBlock &)
const std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus > & getBadComponents()