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 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
SiPixelStatusManager::siPixelStatusToken_
edm::EDGetTokenT< SiPixelDetectorStatus > siPixelStatusToken_
Definition: SiPixelStatusManager.h:59
SiPixelStatusManager::~SiPixelStatusManager
virtual ~SiPixelStatusManager()
Definition: SiPixelStatusManager.cc:43
SiPixelStatusManager::reset
void reset()
Definition: SiPixelStatusManager.cc:46
SiPixelStatusManager::rankByLumi
static bool rankByLumi(SiPixelDetectorStatus status1, SiPixelDetectorStatus status2)
Definition: SiPixelStatusManager.cc:52
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::EDGetTokenT< SiPixelDetectorStatus >
LuminosityBlock.h
SiPixelStatusManager::siPixelStatusVtr_iterator
std::vector< SiPixelDetectorStatus >::iterator siPixelStatusVtr_iterator
Definition: SiPixelStatusManager.h:42
SiPixelStatusManager::aveDigiOcc_
int aveDigiOcc_
Definition: SiPixelStatusManager.h:54
SiPixelStatusManager::siPixelStatusMap_iterator
std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus >::iterator siPixelStatusMap_iterator
Definition: SiPixelStatusManager.h:40
LuminosityBlockID.h
SiPixelStatusManager::SiPixelStatusManager
SiPixelStatusManager()
Definition: SiPixelStatusManager.cc:21
SiPixelStatusManager::readLumi
void readLumi(const edm::LuminosityBlock &)
Definition: SiPixelStatusManager.cc:72
SiPixelStatusManager::siPixelStatusVtr_
std::vector< SiPixelDetectorStatus > siPixelStatusVtr_
Definition: SiPixelStatusManager.h:49
SiPixelDetectorStatus
Definition: SiPixelDetectorStatus.h:11
SiPixelStatusManager::nLumi_
int nLumi_
Definition: SiPixelStatusManager.h:55
SiPixelStatusManager::getBadComponents
const std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus > & getBadComponents()
Definition: SiPixelStatusManager.h:35
SiPixelStatusManager::getFEDerror25Rocs
const std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > > & getFEDerror25Rocs()
Definition: SiPixelStatusManager.h:36
SiPixelStatusManager::createBadComponents
void createBadComponents()
Definition: SiPixelStatusManager.cc:88
SiPixelStatusManager::label_
std::string label_
Definition: SiPixelStatusManager.h:57
SiPixelStatusManager::FEDerror25Map_iterator
std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > >::iterator FEDerror25Map_iterator
Definition: SiPixelStatusManager.h:41
edm::ParameterSet
Definition: ParameterSet.h:47
SiPixelStatusManager
Definition: SiPixelStatusManager.h:24
SiPixelStatusManager::FEDerror25Map_
std::map< edm::LuminosityBlockNumber_t, std::map< int, std::vector< int > > > FEDerror25Map_
Definition: SiPixelStatusManager.h:51
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelDetectorStatus.h
SiPixelStatusManager::createFEDerror25
void createFEDerror25()
Definition: SiPixelStatusManager.cc:218
SiPixelStatusManager::outputBase_
std::string outputBase_
Definition: SiPixelStatusManager.h:53
SiPixelStatusManager::createPayloads
void createPayloads()
Definition: SiPixelStatusManager.cc:56
ConsumesCollector.h
SiPixelStatusManager::siPixelStatusMap_
std::map< edm::LuminosityBlockNumber_t, SiPixelDetectorStatus > siPixelStatusMap_
Definition: SiPixelStatusManager.h:50
ParameterSet.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
SiPixelStatusManager::moduleName_
std::string moduleName_
Definition: SiPixelStatusManager.h:56