CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelFrameReverter.h
Go to the documentation of this file.
1 #ifndef SiPixelTools_SiPixelFrameReverter_H
2 #define SiPixelTools_SiPixelFrameReverter_H
3 
13 
14 #include <boost/cstdint.hpp>
15 
17 
19 public:
20 
22 
23  void buildStructure(edm::EventSetup const&);
24 
25  // Function to test if detId exists
26  bool hasDetUnit(uint32_t detId) const { return (DetToFedMap.find(detId)!=DetToFedMap.end()); }
27 
28  // Function to convert offline addressing to online
30  const sipixelobjects::DetectorIndex & detector) const;
31 
32  // Function to find FedId given detId
33  int findFedId(uint32_t detId);
34 
35  // Function to find Fed link given detId and pixel row and col on plaquette
36  // returns -1 if link can't be found
37  short findLinkInFed(uint32_t detId, sipixelobjects::GlobalPixel global);
38 
39  // Function to find Roc number on a link given detId and pixel row and col on plaquette
40  // returns -1 if Roc can't be found
41  short findRocInLink(uint32_t detId, sipixelobjects::GlobalPixel global);
42 
43  // Function to find the Roc number within a plaquette given detId and pixel row and col on plaquette
44  // returns -1 if Roc can't be found
45  short findRocInDet(uint32_t detId, sipixelobjects::GlobalPixel global);
46 
47  // Function to find local pixel given detId and pixel row and col on plaquette
49 
50 private:
51 
53 
54  std::map< uint32_t,std::vector<sipixelobjects::CablingPathToDetUnit> > DetToFedMap;
55 
56 };
57 #endif
58 
59 
bool hasDetUnit(uint32_t detId) const
void buildStructure(edm::EventSetup const &)
identify pixel inside single ROC
Definition: LocalPixel.h:7
int toCabling(sipixelobjects::ElectronicIndex &cabling, const sipixelobjects::DetectorIndex &detector) const
dictionary map
Definition: Association.py:205
global coordinates (row and column in DetUnit, as in PixelDigi)
Definition: GlobalPixel.h:6
SiPixelFrameReverter(const edm::EventSetup &, const SiPixelFedCabling *map)
int findFedId(uint32_t detId)
short findRocInLink(uint32_t detId, sipixelobjects::GlobalPixel global)
short findRocInDet(uint32_t detId, sipixelobjects::GlobalPixel global)
const SiPixelFedCabling * map_
std::map< uint32_t, std::vector< sipixelobjects::CablingPathToDetUnit > > DetToFedMap
sipixelobjects::LocalPixel findPixelInRoc(uint32_t detId, sipixelobjects::GlobalPixel global)
short findLinkInFed(uint32_t detId, sipixelobjects::GlobalPixel global)