CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::vector< std::string > getScenarioList() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
void print(std::ostream &os) const
const SiPixelBadFEDChannelsScenarioMap & getScenarioMap() const
Definition: DetId.h:17
void setScenario(const std::string &theScenarioId, const SiPixelFEDChannelCollection &theBadFEDChannels)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SiPixelFEDChannelCollection getSiPixelBadFedChannels(const std::string &ScenarioId) const
std::unique_ptr< PixelFEDChannelCollection > getDetSetBadPixelFedChannels(const std::string &ScenarioId) const
std::unordered_map< std::string, SiPixelFEDChannelCollection > SiPixelBadFEDChannelsScenarioMap
const std::vector< PixelFEDChannel > & getSiPixelBadFedChannelsInDetId(const std::string &theScenarioId, DetId theDetId)
std::map< DetId, std::vector< PixelFEDChannel > > SiPixelFEDChannelCollection
SiPixelFEDChannelContainer(const SiPixelFEDChannelContainer &rhs)