|
|
Go to the documentation of this file.
4 for (
unsigned int i = 1;
i <=
m_pxbMap.size();
i++) {
5 os <<
"PXB layer " << std::setw(2) <<
i <<
" has: " << std::setw(2) <<
getPXBLadders(
i) <<
" ladders and "
9 for (
unsigned int j = 1;
j <=
m_pxfMap.size();
j++) {
10 os <<
"PXF disk " << std::setw(2) <<
j <<
" has: " << std::setw(2) <<
getPXFBlades(
j) <<
" blades and "
18 std::vector<unsigned> maxLadder, maxModule;
19 maxLadder.resize(nlay);
20 maxModule.resize(nlay);
21 for (
unsigned int i = 1;
i <= nlay;
i++) {
22 maxLadder.push_back(0);
23 maxModule.push_back(0);
27 const PixelGeomDetUnit* pixelDet = dynamic_cast<const PixelGeomDetUnit*>(det);
37 if (module > maxModule[
layer]) {
38 maxModule[
layer] = module;
42 for (
unsigned int i = 1;
i <= nlay;
i++) {
43 m_pxbMap[
i] = std::make_pair(maxLadder[
i], maxModule[
i]);
48 std::vector<unsigned> maxBlade, maxPXFModule;
49 maxBlade.resize(ndisk);
50 maxPXFModule.resize(ndisk);
51 for (
unsigned int i = 1;
i <= ndisk;
i++) {
52 maxBlade.push_back(0);
53 maxPXFModule.push_back(0);
57 const PixelGeomDetUnit* pixelDet = dynamic_cast<const PixelGeomDetUnit*>(det);
63 if (blade > maxBlade[disk]) {
64 maxBlade[disk] = blade;
67 if (pxf_module > maxPXFModule[disk]) {
68 maxPXFModule[disk] = pxf_module;
72 for (
unsigned int i = 1;
i <= ndisk;
i++) {
73 m_pxfMap[
i] = std::make_pair(maxBlade[
i], maxPXFModule[
i]);
unsigned int pxbLadder(const DetId &id) const
const TrackerTopology * m_trackerTopo
unsigned int numberOfLayers(int subdet) const
unsigned int pxbLayer(const DetId &id) const
std::map< unsigned, std::pair< unsigned, unsigned > > m_pxfMap
const DetContainer & detsPXB() const
std::map< unsigned, std::pair< unsigned, unsigned > > m_pxbMap
const DetContainer & detsPXF() const
constexpr std::array< uint8_t, layerIndexSize > layer
const unsigned getPXBLadders(unsigned int lay) const
DetId geographicalId() const
The label of this GeomDet.
const unsigned getPXFBlades(int disk) const
unsigned int pxfModule(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
const TrackerGeometry * m_trackerGeom
unsigned int pxbModule(const DetId &id) const
const unsigned getPXFModules(int disk) const
void printAll(std::ostream &os) const
const unsigned getPXBModules(unsigned int lay) const
unsigned int pxfBlade(const DetId &id) const