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
SiPixelFedCablingTree::~SiPixelFedCablingTree
~SiPixelFedCablingTree() override
Definition: SiPixelFedCablingTree.h:19
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
sipixelobjects::PixelFEDCabling
Definition: PixelFEDCabling.h:16
SiPixelFedCablingTree::PixelFEDCabling
sipixelobjects::PixelFEDCabling PixelFEDCabling
Definition: SiPixelFedCablingTree.h:15
SiPixelFedCabling
Definition: SiPixelFedCabling.h:10
SiPixelFedCablingTree::fed
const PixelFEDCabling * fed(unsigned int idFed) const
get fed identified by its id
Definition: SiPixelFedCablingTree.cc:95
watchdog.const
const
Definition: watchdog.py:83
SiPixelFedCablingTree::pathToDetUnit
std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const final
Definition: SiPixelFedCablingTree.cc:11
SiPixelFedCablingTree::theVersion
std::string theVersion
Definition: SiPixelFedCablingTree.h:50
sipixelobjects
Definition: CablingPathToDetUnit.h:4
sipixelobjects::CablingPathToDetUnit
Definition: CablingPathToDetUnit.h:5
SiPixelFedCablingTree::findItem
const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const final
Definition: SiPixelFedCablingTree.cc:130
SiPixelFedCablingTree::theFedCablings
std::unordered_map< int, PixelFEDCabling > theFedCablings
Definition: SiPixelFedCablingTree.h:51
SiPixelFedCablingTree::det2fedMap
std::unordered_map< uint32_t, unsigned int > det2fedMap() const final
Definition: SiPixelFedCablingTree.cc:53
SiPixelFedCabling.h
SiPixelFedCablingTree::version
std::string version() const override
map version
Definition: SiPixelFedCablingTree.h:30
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CablingPathToDetUnit.h
SiPixelFedCablingTree::pathToDetUnitHasDetUnit
bool pathToDetUnitHasDetUnit(uint32_t rawDetId, unsigned int fedId) const final
Definition: SiPixelFedCablingTree.cc:32
SiPixelFedCablingTree::findItemInFed
const sipixelobjects::PixelROC * findItemInFed(const sipixelobjects::CablingPathToDetUnit &path, const PixelFEDCabling *aFed) const
Definition: SiPixelFedCablingTree.cc:141
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:88
PixelFEDCabling
SiPixelFedCablingTree::SiPixelFedCablingTree
SiPixelFedCablingTree(const std::string &version="")
Definition: SiPixelFedCablingTree.h:17
sipixelobjects::PixelROC
Definition: PixelROC.h:23
std
Definition: JetResolutionObject.h:76
SiPixelFedCablingTree::print
std::string print(int depth=0) const
Definition: SiPixelFedCablingTree.cc:100
SiPixelFedCablingTree::addFed
void addFed(const PixelFEDCabling &f)
add cabling for one fed
Definition: SiPixelFedCablingTree.cc:90
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
SiPixelFedCablingTree::det2PathMap
std::map< uint32_t, std::vector< sipixelobjects::CablingPathToDetUnit > > det2PathMap() const final
Definition: SiPixelFedCablingTree.cc:71
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
genParticles_cff.map
map
Definition: genParticles_cff.py:11
SiPixelFedCablingTree::fedList
std::vector< const PixelFEDCabling * > fedList() const
Definition: SiPixelFedCablingTree.cc:112
SiPixelFedCablingTree::addItem
void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC &roc)
Definition: SiPixelFedCablingTree.cc:123
SiPixelFedCablingTree
Definition: SiPixelFedCablingTree.h:13
PixelFEDCabling.h
SiPixelFedCablingTree::checkNumbering
int checkNumbering() const
Definition: SiPixelFedCablingTree.cc:150