CMS 3D CMS Logo

SiPixelFedCablingTree.h
Go to the documentation of this file.
1 #ifndef SiPixelFedCablingTree_H
2 #define SiPixelFedCablingTree_H
3 
4 #include <vector>
5 #include <unordered_map>
6 #include <string>
7 
10 
12 
13 public:
15 
17 
18  ~SiPixelFedCablingTree() override {}
19 
21  void addFed(const PixelFEDCabling& f);
22 
24  const PixelFEDCabling * fed(unsigned int idFed) const;
25 
26  std::vector<const PixelFEDCabling *> fedList() const;
27 
29  std::string version() const override { return theVersion; }
30 
31  std::string print(int depth = 0) const;
32 
33  void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC& roc);
34 
35  std::vector<sipixelobjects::CablingPathToDetUnit> pathToDetUnit(uint32_t rawDetId) const final;
36  bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final;
37 
39 
41  const PixelFEDCabling * aFed) const;
42 
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 
48  int checkNumbering() const;
49 
50 private:
52  std::unordered_map<int, PixelFEDCabling> theFedCablings;
53 };
54 #endif
std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const final
sipixelobjects::PixelFEDCabling PixelFEDCabling
std::map< uint32_t, std::vector< sipixelobjects::CablingPathToDetUnit > > det2PathMap() 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::string version() const override
map version
std::unordered_map< int, PixelFEDCabling > theFedCablings
void addFed(const PixelFEDCabling &f)
add cabling for one fed
const sipixelobjects::PixelROC * findItemInFed(const sipixelobjects::CablingPathToDetUnit &path, const PixelFEDCabling *aFed) const
bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final
std::unordered_map< uint32_t, unsigned int > det2fedMap() const final
void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC &roc)
std::vector< const PixelFEDCabling * > fedList() const
std::string print(int depth=0) const
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final