CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelROC.h
Go to the documentation of this file.
1 #ifndef SiPixelObjects_PixelROC_H
2 #define SiPixelObjects_PixelROC_H
3 
4 
8 #include <boost/cstdint.hpp>
9 #include <string>
10 
19 namespace sipixelobjects {
20 
21 class PixelROC {
22 public:
23 
26 
27  ~PixelROC();
28 
29  PixelROC(const PixelROC & o);
30  const PixelROC& operator=(const PixelROC&);
31 
32  void swap(PixelROC&);
33 
37  PixelROC( uint32_t du, int idInDU, int idLk);
38 
40  uint32_t rawId() const { return theDetUnit; }
41 
43  unsigned int idInDetUnit() const { return theIdDU; }
44 
46  unsigned int idInLink() const { return theIdLk; }
47 
51  LocalPixel toLocal(const GlobalPixel & gp) const;
52 
55  GlobalPixel toGlobal(const LocalPixel & loc) const;
56 
58  std::string print(int depth = 0) const;
59 
60 private:
61  void initFrameConversion() const;
62 
63 private:
64  uint32_t theDetUnit;
65  unsigned int theIdDU, theIdLk;
67 
68 };
69 
70 }
71 
72 #endif
GlobalPixel toGlobal(const LocalPixel &loc) const
Definition: PixelROC.cc:44
unsigned int idInLink() const
id of this ROC in parent Link.
Definition: PixelROC.h:46
const PixelROC & operator=(const PixelROC &)
Definition: PixelROC.cc:28
identify pixel inside single ROC
Definition: LocalPixel.h:7
std::string print(int depth=0) const
printout for debug
Definition: PixelROC.cc:75
global coordinates (row and column in DetUnit, as in PixelDigi)
Definition: GlobalPixel.h:6
void swap(PixelROC &)
Definition: PixelROC.cc:36
LocalPixel toLocal(const GlobalPixel &gp) const
Definition: PixelROC.cc:54
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
Definition: PixelROC.h:43
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.
Definition: PixelROC.h:40
unsigned int theIdLk
Definition: PixelROC.h:65
unsigned int theIdDU
Definition: PixelROC.h:65
const FrameConversion * theFrameConverter
Definition: PixelROC.h:66
void initFrameConversion() const
Definition: PixelROC.cc:64