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
SiPixelFEDChannelContainer::SiPixelBadFEDChannelsScenarioMap
std::unordered_map< std::string, SiPixelFEDChannelCollection > SiPixelBadFEDChannelsScenarioMap
Definition: SiPixelFEDChannelContainer.h:15
SiPixelFEDChannelContainer::SiPixelFEDChannelContainer
SiPixelFEDChannelContainer(const SiPixelFEDChannelContainer &rhs)
Definition: SiPixelFEDChannelContainer.h:18
SiPixelFEDChannelContainer
Definition: SiPixelFEDChannelContainer.h:12
PixelFEDChannel.h
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SiPixelFEDChannelContainer::SiPixelFEDChannelCollection
std::map< DetId, std::vector< PixelFEDChannel > > SiPixelFEDChannelCollection
Definition: SiPixelFEDChannelContainer.h:14
operator<<
std::ostream & operator<<(std::ostream &, SiPixelFEDChannelContainer FEDChannels)
Definition: SiPixelFEDChannelContainer.cc:132
DetId
Definition: DetId.h:17
SiPixelFEDChannelContainer::getSiPixelBadFedChannels
SiPixelFEDChannelCollection getSiPixelBadFedChannels(const std::string &ScenarioId) const
Definition: SiPixelFEDChannelContainer.cc:20
SiPixelFEDChannelContainer::getSiPixelBadFedChannelsInDetId
const std::vector< PixelFEDChannel > & getSiPixelBadFedChannelsInDetId(const std::string &theScenarioId, DetId theDetId)
Definition: SiPixelFEDChannelContainer.cc:46
SiPixelFEDChannelContainer::getScenarioMap
const SiPixelBadFEDChannelsScenarioMap & getScenarioMap() const
Definition: SiPixelFEDChannelContainer.h:23
Serializable.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DetId.h
SiPixelFEDChannelContainer::~SiPixelFEDChannelContainer
virtual ~SiPixelFEDChannelContainer()
Definition: SiPixelFEDChannelContainer.h:19
SiPixelFEDChannelContainer::getDetSetBadPixelFedChannels
std::unique_ptr< PixelFEDChannelCollection > getDetSetBadPixelFedChannels(const std::string &ScenarioId) const
Definition: SiPixelFEDChannelContainer.cc:65
SiPixelFEDChannelContainer::getScenarioList
std::vector< std::string > getScenarioList() const
Definition: SiPixelFEDChannelContainer.cc:121
SiPixelFEDChannelContainer::print
void print(std::ostream &os) const
Definition: SiPixelFEDChannelContainer.cc:106
SiPixelFEDChannelContainer::printAll
void printAll() const
Definition: SiPixelFEDChannelContainer.cc:84
SiPixelFEDChannelContainer::setScenario
void setScenario(const std::string &theScenarioId, const SiPixelFEDChannelCollection &theBadFEDChannels)
Definition: SiPixelFEDChannelContainer.cc:8
SiPixelFEDChannelContainer::m_scenarioMap
SiPixelBadFEDChannelsScenarioMap m_scenarioMap
Definition: SiPixelFEDChannelContainer.h:41
SiPixelFEDChannelContainer::SiPixelFEDChannelContainer
SiPixelFEDChannelContainer()
Definition: SiPixelFEDChannelContainer.h:17
SiPixelFEDChannelContainer::size
double size() const
Definition: SiPixelFEDChannelContainer.h:32