|
|
#include <SiPixelTopoFinder.h>
Definition at line 16 of file SiPixelTopoFinder.h.
◆ SiPixelTopoFinder()
SiPixelTopoFinder::SiPixelTopoFinder |
( |
| ) |
|
◆ ~SiPixelTopoFinder()
SiPixelTopoFinder::~SiPixelTopoFinder |
( |
| ) |
|
◆ getDetIds()
std::vector<int> SiPixelTopoFinder::getDetIds |
( |
| ) |
const |
|
inline |
◆ getFedIds()
std::unordered_map<uint32_t, unsigned int> SiPixelTopoFinder::getFedIds |
( |
| ) |
const |
|
inline |
◆ getRocIds()
std::map<int, std::map<int, int> > SiPixelTopoFinder::getRocIds |
( |
| ) |
const |
|
inline |
◆ getSensorLayout()
std::map<int, std::pair<int, int> > SiPixelTopoFinder::getSensorLayout |
( |
| ) |
const |
|
inline |
◆ getSensors()
std::map<int, std::pair<int, int> > SiPixelTopoFinder::getSensors |
( |
| ) |
const |
|
inline |
◆ half()
int SiPixelTopoFinder::half |
( |
const DetId & |
detid | ) |
|
|
private |
◆ indexROC()
int SiPixelTopoFinder::indexROC |
( |
int |
irow, |
|
|
int |
icol, |
|
|
int |
nROCcolumns |
|
) |
| |
|
private |
◆ init()
Definition at line 15 of file SiPixelTopoFinder.cc.
33 for (TrackerGeometry::DetContainer::const_iterator it =
tkGeom_->
dets().begin(); it !=
tkGeom_->
dets().end();
40 DetId detId = (*it)->geographicalId();
41 int detid = detId.
rawId();
52 fSensors_[detid] = std::make_pair(rowsperroc, colsperroc);
55 std::map<int, int> rocIdMap;
56 for (
int irow = 0; irow < nROCrows; irow++) {
57 for (
int icol = 0; icol < nROCcolumns; icol++) {
58 int dummyOfflineRow = (rowsperroc / 2 - 1) + irow * rowsperroc;
59 int dummeOfflineColumn = (colsperroc / 2 - 1) + icol * colsperroc;
62 int roc(-1), rocR(-1), rocC(-1);
References cablingMap_, PixelTopology::colsperroc(), SiPixelFedCablingMap::det2fedMap(), TrackerGeometry::dets(), fDetIds_, l1tstage2_dqm_sourceclient-live_cfg::fedId, fFedIds_, fRocIds_, fSensorLayout_, fSensors_, indexROC(), crabWrapper::key, PixelTopology::ncolumns(), PixelTopology::nrows(), onlineRocColRow(), phase_, DetId::rawId(), PixelMapPlotter::roc, PixelTopology::rowsperroc(), PixelGeomDetUnit::specificTopology(), tkGeom_, tkTopo_, and relativeConstraints::value.
◆ onlineRocColRow()
void SiPixelTopoFinder::onlineRocColRow |
( |
const DetId & |
detId, |
|
|
const SiPixelFedCablingMap * |
cablingMap, |
|
|
int |
fedId, |
|
|
int |
offlineRow, |
|
|
int |
offlineCol, |
|
|
int & |
roc, |
|
|
int & |
row, |
|
|
int & |
col |
|
) |
| |
|
private |
Definition at line 78 of file SiPixelTopoFinder.cc.
102 col = locpixel.rocCol();
103 row = locpixel.rocRow();
References cuy::col, sipixelobjects::ElectronicIndex::dcol, sipixelobjects::LocalPixel::DcolPxid::dcol, hgcalTestNeighbor_cfi::detector, l1tstage2_dqm_sourceclient-live_cfg::fedId, half(), sipixelobjects::PixelROC::idInDetUnit(), sipixelobjects::ElectronicIndex::link, PixelSubdetector::PixelBarrel, sipixelobjects::ElectronicIndex::pxid, sipixelobjects::LocalPixel::DcolPxid::pxid, DetId::rawId(), sipixelobjects::ElectronicIndex::roc, PixelMapPlotter::roc, sipixelobjects::LocalPixel::rocCol(), sipixelobjects::LocalPixel::rocRow(), side(), and DetId::subdetId().
Referenced by init().
◆ quadrant()
int SiPixelTopoFinder::quadrant |
( |
const DetId & |
detid | ) |
|
|
private |
◆ side()
int SiPixelTopoFinder::side |
( |
const DetId & |
detid | ) |
|
|
private |
◆ cablingMap_
◆ fDetIds_
std::vector<int> SiPixelTopoFinder::fDetIds_ |
|
private |
◆ fFedIds_
std::unordered_map<uint32_t, unsigned int> SiPixelTopoFinder::fFedIds_ |
|
private |
◆ fRocIds_
std::map<int, std::map<int, int> > SiPixelTopoFinder::fRocIds_ |
|
private |
◆ fSensorLayout_
std::map<int, std::pair<int, int> > SiPixelTopoFinder::fSensorLayout_ |
|
private |
◆ fSensors_
std::map<int, std::pair<int, int> > SiPixelTopoFinder::fSensors_ |
|
private |
◆ phase_
int SiPixelTopoFinder::phase_ = -1 |
|
private |
◆ tkGeom_
◆ tkTopo_
unsigned int pxfSide(const DetId &id) const
int quadrant(const DetId &detid)
virtual int colsperroc() const =0
const TrackerGeometry * tkGeom_
int half(const DetId &detid)
HalfCylinder halfCylinder() const
const SiPixelFedCablingMap * cablingMap_
int side(const DetId &detid)
std::map< int, std::pair< int, int > > fSensors_
identify pixel inside single ROC
void onlineRocColRow(const DetId &detId, const SiPixelFedCablingMap *cablingMap, int fedId, int offlineRow, int offlineCol, int &roc, int &row, int &col)
std::map< int, std::pair< int, int > > fSensorLayout_
virtual int ncolumns() const =0
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
std::map< int, std::map< int, int > > fRocIds_
const TrackerTopology * tkTopo_
std::unordered_map< uint32_t, unsigned int > det2fedMap() const final
double collumn and pixel ID in double collumn representation
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
int indexROC(int irow, int icol, int nROCcolumns)
std::vector< int > fDetIds_
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
virtual int rowsperroc() const =0
constexpr uint32_t rawId() const
get the raw id
std::unordered_map< uint32_t, unsigned int > fFedIds_
virtual int nrows() const =0
bool isHalfModule() const
full or half module
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path