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 
13 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
14 #define NO_DICT
15 #endif
16 
18 
20 public:
22 
24 
25  void initializeRocs();
26 
27  ~SiPixelFedCablingMap() override {}
28 
29 #ifdef NO_DICT
30  std::unique_ptr<SiPixelFedCablingTree> cablingTree() const;
31 #endif
32 
33  std::string version() const override { return theVersion; }
34 
36 
37  std::vector<sipixelobjects::CablingPathToDetUnit> pathToDetUnit(uint32_t rawDetId) const final;
38 
39  bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final;
40 
41  std::unordered_map<uint32_t, unsigned int> det2fedMap() const final;
42  std::map<uint32_t, std::vector<sipixelobjects::CablingPathToDetUnit> > det2PathMap() const final;
43 
44  std::vector<unsigned int> fedIds() const;
45 
46  struct Key {
47  unsigned int fed, link, roc;
48  bool operator<(const Key& other) const;
50  };
51 
52 private:
54  typedef std::map<Key, sipixelobjects::PixelROC> Map;
56 
58 };
59 
60 #endif
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
std::map< uint32_t, std::vector< sipixelobjects::CablingPathToDetUnit > > det2PathMap() const final
bool operator<(IOVSyncValue const &iLHS, IOVSyncValue const &iRHS)
Definition: IOVSyncValue.h:34
SiPixelFedCablingMap(const SiPixelFedCablingTree *cab)
std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const final
std::map< Key, sipixelobjects::PixelROC > Map
SiPixelFedCablingMap(const std::string &version="")
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final
std::vector< unsigned int > fedIds() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::string version() const override
std::unordered_map< uint32_t, unsigned int > det2fedMap() const final