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 find FedId given detId
26  int findFedId(uint32_t detId);
27 
28  // Function to find Fed link given detId and pixel row and col on plaquette
29  // returns -1 if link can't be found
30  short findLinkInFed(uint32_t detId, sipixelobjects::GlobalPixel global);
31 
32  // Function to find Roc number on a link given detId and pixel row and col on plaquette
33  // returns -1 if Roc can't be found
34  short findRocInLink(uint32_t detId, sipixelobjects::GlobalPixel global);
35 
36  // Function to find the Roc number within a plaquette given detId and pixel row and col on plaquette
37  // returns -1 if Roc can't be found
38  short findRocInDet(uint32_t detId, sipixelobjects::GlobalPixel global);
39 
40  // Function to find local pixel given detId and pixel row and col on plaquette
42 
43 
44 private:
45 
47 
48  std::map< uint32_t,std::vector<sipixelobjects::CablingPathToDetUnit> > DetToFedMap;
49 
50 };
51 #endif
52 
53 
void buildStructure(edm::EventSetup const &)
identify pixel inside single ROC
Definition: LocalPixel.h:7
dictionary map
Definition: Association.py:160
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)