CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
18 
20 
21 
23 
24 public:
25 
27 
29 
30  void initializeRocs();
31 
32  virtual ~SiPixelFedCablingMap() {}
33 
34 #ifdef NO_DICT
35  std::unique_ptr<SiPixelFedCablingTree> cablingTree() const;
36 #endif
37 
38  virtual std::string version() const { return theVersion; }
39 
40  virtual const sipixelobjects::PixelROC* findItem(
42 
43  virtual std::vector<sipixelobjects::CablingPathToDetUnit> pathToDetUnit(uint32_t rawDetId) const;
44 
45  std::vector<unsigned int> fedIds() const;
46 
47  struct Key { unsigned int fed, link, roc; bool operator < (const Key & other) const;
49 };
50 
51 private:
53  typedef std::map<Key, sipixelobjects::PixelROC> Map;
55 
57 };
58 
59 #endif
virtual std::string version() const
SiPixelFedCablingMap(const SiPixelFedCablingTree *cab)
bool operator<(const Key &other) const
std::map< Key, sipixelobjects::PixelROC > Map
SiPixelFedCablingMap(const std::string &version="")
tuple path
else: Piece not in the list, fine.
virtual std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const
virtual const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
std::vector< unsigned int > fedIds() const