CMS 3D CMS Logo

PixelFEDCabling.h
Go to the documentation of this file.
1 #ifndef PixelFEDCabling_H
2 #define PixelFEDCabling_H
3 
9 #include <vector>
10 
12 class PixelModuleName;
13 
14 namespace sipixelobjects {
15 
17  public:
18  typedef std::vector<PixelFEDLink> Links;
19 
20  PixelFEDCabling(unsigned int id = 0) : theFedId(id) {}
21 
22  void setLinks(Links& links);
23 
24  void addLink(const PixelFEDLink& link);
25 
27  const PixelFEDLink* link(unsigned int id) const {
28  return (id > 0 && id <= theLinks.size()) ? &theLinks[id - 1] : nullptr;
29  }
30 
32  unsigned int numberOfLinks() const { return theLinks.size(); }
33 
34  unsigned int id() const { return theFedId; }
35 
36  std::string print(int depth = 0) const;
37 
38  void addItem(unsigned int linkId, const PixelROC& roc);
39 
43  bool checkLinkNumbering() const;
44 
45  private:
46  private:
47  unsigned int theFedId;
49  };
50 } // namespace sipixelobjects
51 
52 #endif
sipixelobjects::PixelFEDCabling::id
unsigned int id() const
Definition: PixelFEDCabling.h:34
sipixelobjects::PixelFEDCabling::link
const PixelFEDLink * link(unsigned int id) const
return link identified by id. Link id's are ranged [1, numberOfLinks]
Definition: PixelFEDCabling.h:27
PixelModuleName
Definition: PixelModuleName.h:12
sipixelobjects::PixelFEDCabling::addLink
void addLink(const PixelFEDLink &link)
Definition: PixelFEDCabling.cc:11
sipixelobjects::PixelFEDCabling
Definition: PixelFEDCabling.h:16
sipixelobjects::PixelFEDCabling::print
std::string print(int depth=0) const
Definition: PixelFEDCabling.cc:48
sipixelobjects::PixelFEDCabling::checkLinkNumbering
bool checkLinkNumbering() const
Definition: PixelFEDCabling.cc:29
sipixelobjects::PixelFEDCabling::setLinks
void setLinks(Links &links)
Definition: PixelFEDCabling.cc:9
sipixelobjects::PixelFEDCabling::numberOfLinks
unsigned int numberOfLinks() const
number of links in FED
Definition: PixelFEDCabling.h:32
sipixelobjects
Definition: CablingPathToDetUnit.h:4
sipixelobjects::PixelFEDCabling::addItem
void addItem(unsigned int linkId, const PixelROC &roc)
Definition: PixelFEDCabling.cc:19
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
sipixelobjects::PixelFEDCabling::theFedId
unsigned int theFedId
Definition: PixelFEDCabling.h:47
sipixelobjects::PixelFEDCabling::Links
std::vector< PixelFEDLink > Links
Definition: PixelFEDCabling.h:18
sipixelobjects::PixelROC
Definition: PixelROC.h:23
sipixelobjects::PixelFEDCabling::PixelFEDCabling
PixelFEDCabling(unsigned int id=0)
Definition: PixelFEDCabling.h:20
sipixelobjects::PixelFEDCabling::theLinks
Links theLinks
Definition: PixelFEDCabling.h:48
electronStore.links
links
Definition: electronStore.py:149
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498