CMS 3D CMS Logo

SiPixelFEDChannelContainer.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiPixelObjects_SiPixelFEDChannelContainer_h
2 #define CondFormats_SiPixelObjects_SiPixelFEDChannelContainer_h
3 
6 #include "DataFormats/SiPixelDetId/interface/PixelFEDChannel.h" // N.B. a DataFormat is serialized here (need for dedicated serialization rules, see CondFormats/External/interface/PixelFEDChannel.h)
7 
8 #include <map>
9 #include <string>
10 #include <vector>
11 
13 public:
14  typedef std::map<DetId, std::vector<PixelFEDChannel> > SiPixelFEDChannelCollection;
15  typedef std::unordered_map<std::string, SiPixelFEDChannelCollection> SiPixelBadFEDChannelsScenarioMap;
16 
20 
21  void setScenario(const std::string &theScenarioId, const SiPixelFEDChannelCollection &theBadFEDChannels);
22 
24 
27 
28  const std::vector<PixelFEDChannel> &getSiPixelBadFedChannelsInDetId(const std::string &theScenarioId, DetId theDetId);
29 
30  std::unique_ptr<PixelFEDChannelCollection> getDetSetBadPixelFedChannels(const std::string &ScenarioId) const;
31 
32  double size() const { return m_scenarioMap.size(); }
33  std::vector<std::string> getScenarioList() const;
34 
35  void printAll() const;
36 
37  //dumping values on output stream
38  void print(std::ostream &os) const;
39 
40 private:
42 
44 };
45 
46 std::ostream &operator<<(std::ostream &, SiPixelFEDChannelContainer FEDChannels);
47 
48 #endif //CondFormats_SiPixelObjects_SiPixelFEDChannelContainer_h
SiPixelBadFEDChannelsScenarioMap m_scenarioMap
std::ostream & operator<<(std::ostream &, SiPixelFEDChannelContainer FEDChannels)
const SiPixelBadFEDChannelsScenarioMap & getScenarioMap() const
Definition: DetId.h:17
SiPixelFEDChannelCollection getSiPixelBadFedChannels(const std::string &ScenarioId) const
void setScenario(const std::string &theScenarioId, const SiPixelFEDChannelCollection &theBadFEDChannels)
std::vector< std::string > getScenarioList() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::unordered_map< std::string, SiPixelFEDChannelCollection > SiPixelBadFEDChannelsScenarioMap
const std::vector< PixelFEDChannel > & getSiPixelBadFedChannelsInDetId(const std::string &theScenarioId, DetId theDetId)
std::unique_ptr< PixelFEDChannelCollection > getDetSetBadPixelFedChannels(const std::string &ScenarioId) const
void print(std::ostream &os) const
std::map< DetId, std::vector< PixelFEDChannel > > SiPixelFEDChannelCollection
SiPixelFEDChannelContainer(const SiPixelFEDChannelContainer &rhs)