CMS 3D CMS Logo

SiPixelFedCablingMap.h
Go to the documentation of this file.
1 #ifndef EventFilter_SiPixelRawToDigi_SiPixelFedCablingMap_H
2 #define EventFilter_SiPixelRawToDigi_SiPixelFedCablingMap_H
3 
5 
8 
9 #include <string>
10 #include <map>
11 #include <memory>
12 
14 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
15 #define NO_DICT
16 #endif
17 
19 
21 public:
23 
25 
26  void initializeRocs();
27 
28  ~SiPixelFedCablingMap() override {}
29 
30 #ifdef NO_DICT
31  std::unique_ptr<SiPixelFedCablingTree> cablingTree() const;
32 #endif
33 
34  std::string version() const override { return theVersion; }
35 
37 
38  std::vector<sipixelobjects::CablingPathToDetUnit> pathToDetUnit(uint32_t rawDetId) const final;
39 
40  bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final;
41 
42  std::unordered_map<uint32_t, unsigned int> det2fedMap() const final;
43  std::map<uint32_t, std::vector<sipixelobjects::CablingPathToDetUnit> > det2PathMap() const final;
44 
45  std::vector<unsigned int> fedIds() const;
46 
47  struct Key {
48  unsigned int fed, link, roc;
49  bool operator<(const Key& other) const;
51  };
52 
53 private:
55  typedef std::map<Key, sipixelobjects::PixelROC> Map;
56  Map theMap;
57 
59 };
60 
61 #endif
std::string version() const override
std::map< uint32_t, std::vector< sipixelobjects::CablingPathToDetUnit > > det2PathMap() const final
SiPixelFedCablingMap(const SiPixelFedCablingTree *cab)
bool operator<(const Key &other) const
std::map< Key, sipixelobjects::PixelROC > Map
SiPixelFedCablingMap(const std::string &version="")
bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final
std::unordered_map< uint32_t, unsigned int > det2fedMap() const final
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
#define COND_SERIALIZABLE
Definition: Serializable.h:38
std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const final
std::vector< unsigned int > fedIds() const