CMS 3D CMS Logo

SiPixelFedCablingTree.h
Go to the documentation of this file.
1 #ifndef SiPixelFedCablingTree_H
2 #define SiPixelFedCablingTree_H
3 
7 
8 #include <vector>
9 #include <unordered_map>
10 #include <string>
11 #include <map>
12 
14 public:
16 
18 
19  ~SiPixelFedCablingTree() override {}
20 
22  void addFed(const PixelFEDCabling& f);
23 
25  const PixelFEDCabling* fed(unsigned int idFed) const;
26 
27  std::vector<const PixelFEDCabling*> fedList() const;
28 
30  std::string version() const override { return theVersion; }
31 
32  std::string print(int depth = 0) const;
33 
34  void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC& roc);
35 
36  std::vector<sipixelobjects::CablingPathToDetUnit> pathToDetUnit(uint32_t rawDetId) const final;
37  bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final;
38 
40 
42  const PixelFEDCabling* aFed) const;
43 
44  std::unordered_map<uint32_t, unsigned int> det2fedMap() const final;
45  std::map<uint32_t, std::vector<sipixelobjects::CablingPathToDetUnit> > det2PathMap() const final;
46 
47  int checkNumbering() const;
48 
49 private:
50  std::string theVersion;
51  std::unordered_map<int, PixelFEDCabling> theFedCablings;
52 };
53 #endif
const sipixelobjects::PixelROC * findItemInFed(const sipixelobjects::CablingPathToDetUnit &path, const PixelFEDCabling *aFed) const
std::string version() const override
map version
std::string print(int depth=0) const
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
sipixelobjects::PixelFEDCabling PixelFEDCabling
std::unordered_map< uint32_t, unsigned int > det2fedMap() const final
double f[11][100]
SiPixelFedCablingTree(const std::string &version="")
const PixelFEDCabling * fed(unsigned int idFed) const
get fed identified by its id
std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const final
std::vector< const PixelFEDCabling * > fedList() const
std::unordered_map< int, PixelFEDCabling > theFedCablings
void addFed(const PixelFEDCabling &f)
add cabling for one fed
std::map< uint32_t, std::vector< sipixelobjects::CablingPathToDetUnit > > det2PathMap() const final
void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC &roc)
bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final