CMS 3D CMS Logo

SiPixelFrameConverter.h
Go to the documentation of this file.
1 #ifndef SiPixelObjects_SiPixelFrameConverter_H
2 #define SiPixelObjects_SiPixelFrameConverter_H
3 
12 
13 #include <cstdint>
14 
16 public:
18 
19  // using PixelFEDCabling = sipixelobjects::PixelFEDCabling;
20 
22 
23  bool hasDetUnit(uint32_t radId) const;
24 
25  sipixelobjects::PixelROC const* toRoc(int link, int roc) const;
26 
28  using namespace sipixelobjects;
29  auto roc = toRoc(cabling.link, cabling.roc);
30  if (!roc)
31  return 2;
32  LocalPixel::DcolPxid local = {cabling.dcol, cabling.pxid};
33  if (!local.valid())
34  return 3;
35 
36  GlobalPixel global = roc->toGlobal(LocalPixel(local));
37  detector.rawId = roc->rawId();
38  detector.row = global.row;
39  detector.col = global.col;
40 
41  return 0;
42  }
43 
45 
46 private:
47  int theFedId;
51 };
52 #endif
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
sipixelobjects::PixelFEDCabling
Definition: PixelFEDCabling.h:16
SiPixelFrameConverter::theFed
const PixelFEDCabling * theFed
Definition: SiPixelFrameConverter.h:50
SiPixelFrameConverter::PixelFEDCabling
sipixelobjects::PixelFEDCabling PixelFEDCabling
Definition: SiPixelFrameConverter.h:17
GlobalPixel.h
ElectronicIndex.h
sipixelobjects::GlobalPixel::row
int row
Definition: GlobalPixel.h:7
sipixelobjects::ElectronicIndex::dcol
int dcol
Definition: ElectronicIndex.h:8
SiPixelFedCablingTree.h
SiPixelFedCabling
Definition: SiPixelFedCabling.h:10
SiPixelFrameConverter::toDetector
int toDetector(const sipixelobjects::ElectronicIndex &cabling, sipixelobjects::DetectorIndex &detector) const
Definition: SiPixelFrameConverter.h:27
sipixelobjects::GlobalPixel::col
int col
Definition: GlobalPixel.h:8
sipixelobjects::LocalPixel
identify pixel inside single ROC
Definition: LocalPixel.h:7
DetectorIndex.h
sipixelobjects::GlobalPixel
global coordinates (row and column in DetUnit, as in PixelDigi)
Definition: GlobalPixel.h:6
sipixelobjects
Definition: CablingPathToDetUnit.h:4
sipixelobjects::ElectronicIndex::pxid
int pxid
Definition: ElectronicIndex.h:9
SiPixelFrameConverter::theMap
const SiPixelFedCabling * theMap
Definition: SiPixelFrameConverter.h:48
SiPixelFrameConverter::toCabling
int toCabling(sipixelobjects::ElectronicIndex &cabling, const sipixelobjects::DetectorIndex &detector) const
Definition: SiPixelFrameConverter.cc:36
SiPixelFedCabling.h
sipixelobjects::ElectronicIndex
Definition: ElectronicIndex.h:5
sipixelobjects::ElectronicIndex::link
int link
Definition: ElectronicIndex.h:6
PixelROC.h
sipixelobjects::LocalPixel::DcolPxid
double collumn and pixel ID in double collumn representation
Definition: LocalPixel.h:19
LocalPixel.h
SiPixelFrameConverter::theTree
SiPixelFedCablingTree const * theTree
Definition: SiPixelFrameConverter.h:49
SiPixelFrameConverter
Definition: SiPixelFrameConverter.h:15
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:89
sipixelobjects::PixelROC
Definition: PixelROC.h:23
SiPixelFrameConverter::toRoc
sipixelobjects::PixelROC const * toRoc(int link, int roc) const
Definition: SiPixelFrameConverter.cc:24
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
SiPixelFrameConverter::SiPixelFrameConverter
SiPixelFrameConverter(const SiPixelFedCabling *map, int fedId)
Definition: SiPixelFrameConverter.cc:14
hgcalTestNeighbor_cfi.detector
detector
Definition: hgcalTestNeighbor_cfi.py:6
DTRecHitClients_cfi.local
local
Definition: DTRecHitClients_cfi.py:10
genParticles_cff.map
map
Definition: genParticles_cff.py:11
SiPixelFrameConverter::theFedId
int theFedId
Definition: SiPixelFrameConverter.h:47
SiPixelFedCablingTree
Definition: SiPixelFedCablingTree.h:13
SiPixelFrameConverter::hasDetUnit
bool hasDetUnit(uint32_t radId) const
Definition: SiPixelFrameConverter.cc:20
PixelFEDCabling.h
sipixelobjects::DetectorIndex
Definition: DetectorIndex.h:6
sipixelobjects::ElectronicIndex::roc
int roc
Definition: ElectronicIndex.h:7