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
SiPixelFedCablingMap::theVersion
std::string theVersion
Definition: SiPixelFedCablingMap.h:53
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SiPixelFedCablingMap::SiPixelFedCablingMap
SiPixelFedCablingMap(const std::string &version="")
Definition: SiPixelFedCablingMap.h:23
SiPixelFedCabling
Definition: SiPixelFedCabling.h:10
watchdog.const
const
Definition: watchdog.py:83
SiPixelFedCablingMap::version
std::string version() const override
Definition: SiPixelFedCablingMap.h:33
sipixelobjects
Definition: CablingPathToDetUnit.h:4
sipixelobjects::CablingPathToDetUnit
Definition: CablingPathToDetUnit.h:5
SiPixelFedCablingMap::pathToDetUnitHasDetUnit
bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final
Definition: SiPixelFedCablingMap.cc:161
SiPixelFedCablingMap::pathToDetUnit
std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const final
Definition: SiPixelFedCablingMap.cc:150
trackingPlots.other
other
Definition: trackingPlots.py:1467
SiPixelFedCablingMap::det2PathMap
std::map< uint32_t, std::vector< sipixelobjects::CablingPathToDetUnit > > det2PathMap() const final
Definition: SiPixelFedCablingMap.cc:141
SiPixelFedCabling.h
SiPixelFedCablingMap::theMap
Map theMap
Definition: SiPixelFedCablingMap.h:55
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelFedCablingMap::cablingTree
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
Definition: SiPixelFedCablingMap.cc:103
PixelROC.h
SiPixelFedCablingMap::det2fedMap
std::unordered_map< uint32_t, unsigned int > det2fedMap() const final
Definition: SiPixelFedCablingMap.cc:133
Serializable.h
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:88
SiPixelFedCablingMap
Definition: SiPixelFedCablingMap.h:19
SiPixelFedCablingMap::initializeRocs
void initializeRocs()
Definition: SiPixelFedCablingMap.cc:12
sipixelobjects::PixelROC
Definition: PixelROC.h:23
SiPixelFedCablingMap::SiPixelFedCablingMap
SiPixelFedCablingMap(const SiPixelFedCablingTree *cab)
Definition: SiPixelFedCablingMap.cc:75
std
Definition: JetResolutionObject.h:76
SiPixelFedCablingMap::Map
std::map< Key, sipixelobjects::PixelROC > Map
Definition: SiPixelFedCablingMap.h:54
SiPixelFedCablingMap::Key
Definition: SiPixelFedCablingMap.h:46
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
genParticles_cff.map
map
Definition: genParticles_cff.py:11
operator<
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
Definition: DTCELinkId.h:70
SiPixelFedCablingTree
Definition: SiPixelFedCablingTree.h:13
SiPixelFedCablingMap::Key::roc
unsigned int roc
Definition: SiPixelFedCablingMap.h:47
SiPixelFedCablingMap::findItem
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
Definition: SiPixelFedCablingMap.cc:124
SiPixelFedCablingMap::~SiPixelFedCablingMap
~SiPixelFedCablingMap() override
Definition: SiPixelFedCablingMap.h:27
SiPixelFedCablingMap::fedIds
std::vector< unsigned int > fedIds() const
Definition: SiPixelFedCablingMap.cc:114