ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
InDetDD::SiNumerology Class Reference

#include <SiNumerology.h>

Collaboration diagram for InDetDD::SiNumerology:

Public Member Functions

 SiNumerology ()
 Constructor: More...
 
int numBarrels () const
 Number of barrels. More...
 
int numEndcaps () const
 Number of endcaps. More...
 
int barrelId (int index) const
 Barrel/endcap identifier for each barrel. More...
 
int endcapId (int index) const
 Barrel/endcap identifier for each endcap. More...
 
int numLayers () const
 Number of layers. More...
 
int numDiskLayers () const
 Number of disk layers (ITk endcap-specific) More...
 
int numDisks () const
 Number of disks. More...
 
int numRingsForDisk (int disk) const
 Number of rings (ie eta_module) in a disk. More...
 
int numPhiModulesForLayer (int layer) const
 Number of sectors in phi for a layer. More...
 
int numPhiModulesForDiskRing (int disk, int ring) const
 Number of sectors in phi for a ring in a disk. More...
 
int numEtaModulesForLayer (int layer) const
 Number of sectors in eta for a layer. More...
 
int numDisksForLayer (int layer) const
 Number of disks for a layer (ITk endcap-specific) More...
 
int numPhiModulesForLayerDisk (int layer, int disk) const
 Number of sectors in phi for a disk in a layer (ITk endcap-specific) More...
 
int beginEtaModuleForLayer (int layer) const
 First eta_module number for a layer. More...
 
int endEtaModuleForLayer (int layer) const
 Last eta_module number + 1. More...
 
bool skipEtaZeroForLayer (int layer) const
 Check if eta_module=0 exists. More...
 
bool useLayer (int layer) const
 Check if layer exists. More...
 
bool useDiskLayer (int layer) const
 Check if layer exists. More...
 
bool useDisk (int disk) const
 Check if disk exists. More...
 
int maxNumBarrelEta () const
 Maximum number of modules in a barrel stave. More...
 
int maxNumEndcapRings () const
 Maximum number of rings in a disk. More...
 
int maxNumStrips () const
 Maximum number of strips. More...
 
int maxNumPhiCells () const
 Maximum number of cells in phi direction. More...
 
int maxNumEtaCells () const
 Maximum number of cells in eta direction. More...
 
void addBarrel (int id)
 
void addEndcap (int id)
 
void setNumLayers (int nLayers)
 
void setNumDiskLayers (int nLayers)
 
void setNumDisks (int nDisks)
 
void setNumRingsForDisk (int disk, int nRings)
 
void setNumPhiModulesForLayer (int layer, int nPhiModules)
 
void setNumPhiModulesForDiskRing (int disk, int ring, int nPhiModules)
 
void setNumEtaModulesForLayer (int layer, int nEtaModules)
 
void setNumDisksForLayer (int layer, int nDisks)
 
void setNumPhiModulesForLayerDisk (int layer, int disk, int nPhiModules)
 
void setMaxNumEtaCells (int cells)
 
void setMaxNumPhiCells (int cells)
 
int numDisksDBM () const
 
int numBarrelDBM () const
 
bool useDiskDBM (int disk) const
 
int numRingsForDiskDBM (int currentdisk) const
 
int numPhiModulesForDiskRingDBM (int disk, int ring) const
 
int numEndcapsDBM () const
 
int endcapIdDBM (int index) const
 
void setNumDisksDBM (int nDisks)
 
void setNumBarrelDBM (int nBarrel)
 
void setNumPhiModulesForDiskRingDBM (int disk, int ring, int nPhiModules)
 
void addEndcapDBM (int id)
 

Private Attributes

int m_numLayers
 
int m_numDiskLayers
 
int m_numDisks
 
int m_maxPhiCells
 
int m_maxEtaCells
 
int m_maxNumBarrelEta
 
int m_maxNumEndcapDisks
 
int m_maxNumEndcapRings
 
int m_maxNumBarrelPhiModules
 
int m_maxNumEndcapPhiModules
 
std::vector< int > m_barrelIds
 
std::vector< int > m_endcapIds
 
std::vector< int > m_phiModulesForLayer
 
std::vector< int > m_ringsForDisk
 
std::vector< std::vector< int > > m_phiModulesForDiskRing
 
std::vector< int > m_etaModulesForLayer
 
std::vector< int > m_disksForLayer
 
std::vector< std::vector< int > > m_phiModulesForLayerDisk
 
int m_numDisksDBM
 
int m_numBarrelDBM
 
std::vector< int > m_endcapIdsDBM
 
std::vector< std::vector< int > > m_phiModulesForDiskRingDBM
 
int m_maxNumEndcapPhiModulesDBM
 

Detailed Description

Class to extract numerology for Pixel and SCT. For example number of layers, disks, sectors, rings, etc. See InnerDetector/InDetExample/InDetDetDescrExample/src/SiReadSiDetectorElements.cxx for example of usage.

Author
Grant Gorfine

Definition at line 27 of file SiNumerology.h.

Constructor & Destructor Documentation

◆ SiNumerology()

InDetDD::SiNumerology::SiNumerology ( )

Constructor:

Definition at line 10 of file SiNumerology.cxx.

Member Function Documentation

◆ addBarrel()

void InDetDD::SiNumerology::addBarrel ( int  id)

Definition at line 97 of file SiNumerology.cxx.

98 {
99  m_barrelIds.push_back(id);
100 }

◆ addEndcap()

void InDetDD::SiNumerology::addEndcap ( int  id)

Definition at line 102 of file SiNumerology.cxx.

103 {
104  m_endcapIds.push_back(id);
105 }

◆ addEndcapDBM()

void InDetDD::SiNumerology::addEndcapDBM ( int  id)

Definition at line 136 of file SiNumerology.cxx.

137 {
138  m_endcapIdsDBM.push_back(id);
139 }

◆ barrelId()

int InDetDD::SiNumerology::barrelId ( int  index) const

Barrel/endcap identifier for each barrel.

Normally barrelId(0) = 0

◆ beginEtaModuleForLayer()

int InDetDD::SiNumerology::beginEtaModuleForLayer ( int  layer) const

First eta_module number for a layer.

◆ endcapId()

int InDetDD::SiNumerology::endcapId ( int  index) const

Barrel/endcap identifier for each endcap.

Normally endcapId(0) returns 2, endcapId(1) returns -2

◆ endcapIdDBM()

int InDetDD::SiNumerology::endcapIdDBM ( int  index) const

◆ endEtaModuleForLayer()

int InDetDD::SiNumerology::endEtaModuleForLayer ( int  layer) const

Last eta_module number + 1.

◆ maxNumBarrelEta()

int InDetDD::SiNumerology::maxNumBarrelEta ( ) const

Maximum number of modules in a barrel stave.

◆ maxNumEndcapRings()

int InDetDD::SiNumerology::maxNumEndcapRings ( ) const

Maximum number of rings in a disk.

◆ maxNumEtaCells()

int InDetDD::SiNumerology::maxNumEtaCells ( ) const

Maximum number of cells in eta direction.

0 for SCT.

◆ maxNumPhiCells()

int InDetDD::SiNumerology::maxNumPhiCells ( ) const

Maximum number of cells in phi direction.

Same as maxNumStrips()

◆ maxNumStrips()

int InDetDD::SiNumerology::maxNumStrips ( ) const

Maximum number of strips.

Same as maxNumPhiCells()

◆ numBarrelDBM()

int InDetDD::SiNumerology::numBarrelDBM ( ) const

◆ numBarrels()

int InDetDD::SiNumerology::numBarrels ( ) const

Number of barrels.

Normally 1.

◆ numDiskLayers()

int InDetDD::SiNumerology::numDiskLayers ( ) const

Number of disk layers (ITk endcap-specific)

Used to deal with geometry with multiple layers of disks in endcap

◆ numDisks()

int InDetDD::SiNumerology::numDisks ( ) const

Number of disks.

◆ numDisksDBM()

int InDetDD::SiNumerology::numDisksDBM ( ) const

◆ numDisksForLayer()

int InDetDD::SiNumerology::numDisksForLayer ( int  layer) const

Number of disks for a layer (ITk endcap-specific)

◆ numEndcaps()

int InDetDD::SiNumerology::numEndcaps ( ) const

Number of endcaps.

Normally 2.

◆ numEndcapsDBM()

int InDetDD::SiNumerology::numEndcapsDBM ( ) const

◆ numEtaModulesForLayer()

int InDetDD::SiNumerology::numEtaModulesForLayer ( int  layer) const

Number of sectors in eta for a layer.

◆ numLayers()

int InDetDD::SiNumerology::numLayers ( ) const

Number of layers.

◆ numPhiModulesForDiskRing()

int InDetDD::SiNumerology::numPhiModulesForDiskRing ( int  disk,
int  ring 
) const

Number of sectors in phi for a ring in a disk.

◆ numPhiModulesForDiskRingDBM()

int InDetDD::SiNumerology::numPhiModulesForDiskRingDBM ( int  disk,
int  ring 
) const

◆ numPhiModulesForLayer()

int InDetDD::SiNumerology::numPhiModulesForLayer ( int  layer) const

Number of sectors in phi for a layer.

◆ numPhiModulesForLayerDisk()

int InDetDD::SiNumerology::numPhiModulesForLayerDisk ( int  layer,
int  disk 
) const

Number of sectors in phi for a disk in a layer (ITk endcap-specific)

◆ numRingsForDisk()

int InDetDD::SiNumerology::numRingsForDisk ( int  disk) const

Number of rings (ie eta_module) in a disk.

◆ numRingsForDiskDBM()

int InDetDD::SiNumerology::numRingsForDiskDBM ( int  currentdisk) const

◆ setMaxNumEtaCells()

void InDetDD::SiNumerology::setMaxNumEtaCells ( int  cells)

Definition at line 91 of file SiNumerology.cxx.

92 {
94 }

◆ setMaxNumPhiCells()

void InDetDD::SiNumerology::setMaxNumPhiCells ( int  cells)

Definition at line 86 of file SiNumerology.cxx.

87 {
89 }

◆ setNumBarrelDBM()

void InDetDD::SiNumerology::setNumBarrelDBM ( int  nBarrel)

Definition at line 125 of file SiNumerology.cxx.

126 {
127  m_numBarrelDBM = nBarrel;
128 }

◆ setNumDiskLayers()

void InDetDD::SiNumerology::setNumDiskLayers ( int  nLayers)

Definition at line 34 of file SiNumerology.cxx.

35 {
36  m_disksForLayer.resize(nLayers);
37  m_phiModulesForLayerDisk.resize(nLayers);
38  m_numDiskLayers = nLayers;
39 }

◆ setNumDisks()

void InDetDD::SiNumerology::setNumDisks ( int  nDisks)

Definition at line 41 of file SiNumerology.cxx.

42 {
43  m_numDisks = nDisks;
44  m_ringsForDisk.resize(nDisks);
45  m_phiModulesForDiskRing.resize(nDisks);
46 }

◆ setNumDisksDBM()

void InDetDD::SiNumerology::setNumDisksDBM ( int  nDisks)

Definition at line 108 of file SiNumerology.cxx.

109 {
110  m_numDisksDBM = nDisks;
111  if(nDisks>0){
112  m_phiModulesForDiskRingDBM.resize(nDisks);
113  for(int disk=0; disk<nDisks; disk++)
114  m_phiModulesForDiskRingDBM[disk].resize(1);
115  return;
116  }
117 
118  m_endcapIdsDBM.clear();
122 
123 }

◆ setNumDisksForLayer()

void InDetDD::SiNumerology::setNumDisksForLayer ( int  layer,
int  nDisks 
)

Definition at line 73 of file SiNumerology.cxx.

74 {
75  m_disksForLayer[layer] = nDisks;
76  m_phiModulesForLayerDisk[layer].resize(nDisks);
78 }

◆ setNumEtaModulesForLayer()

void InDetDD::SiNumerology::setNumEtaModulesForLayer ( int  layer,
int  nEtaModules 
)

Definition at line 67 of file SiNumerology.cxx.

68 {
69  m_etaModulesForLayer[layer] = nEtaModules;
71 }

◆ setNumLayers()

void InDetDD::SiNumerology::setNumLayers ( int  nLayers)

Definition at line 27 of file SiNumerology.cxx.

28 {
29  m_phiModulesForLayer.resize(nLayers);
30  m_etaModulesForLayer.resize(nLayers);
31  m_numLayers = nLayers;
32 }

◆ setNumPhiModulesForDiskRing()

void InDetDD::SiNumerology::setNumPhiModulesForDiskRing ( int  disk,
int  ring,
int  nPhiModules 
)

Definition at line 55 of file SiNumerology.cxx.

56 {
57  m_phiModulesForDiskRing[disk][ring] = nPhiModules;
59 }

◆ setNumPhiModulesForDiskRingDBM()

void InDetDD::SiNumerology::setNumPhiModulesForDiskRingDBM ( int  disk,
int  ring,
int  nPhiModules 
)

Definition at line 130 of file SiNumerology.cxx.

131 {
132  m_phiModulesForDiskRingDBM[disk][ring] = nPhiModules;
134 }

◆ setNumPhiModulesForLayer()

void InDetDD::SiNumerology::setNumPhiModulesForLayer ( int  layer,
int  nPhiModules 
)

Definition at line 61 of file SiNumerology.cxx.

62 {
63  m_phiModulesForLayer[layer] = nPhiModules;
65 }

◆ setNumPhiModulesForLayerDisk()

void InDetDD::SiNumerology::setNumPhiModulesForLayerDisk ( int  layer,
int  disk,
int  nPhiModules 
)

Definition at line 80 of file SiNumerology.cxx.

81 {
82  m_phiModulesForLayerDisk[layer][disk] = nPhiModules;
84 }

◆ setNumRingsForDisk()

void InDetDD::SiNumerology::setNumRingsForDisk ( int  disk,
int  nRings 
)

Definition at line 48 of file SiNumerology.cxx.

49 {
50  m_ringsForDisk[disk] = nRings;
51  m_phiModulesForDiskRing[disk].resize(nRings);
53 }

◆ skipEtaZeroForLayer()

bool InDetDD::SiNumerology::skipEtaZeroForLayer ( int  layer) const

Check if eta_module=0 exists.

◆ useDisk()

bool InDetDD::SiNumerology::useDisk ( int  disk) const

Check if disk exists.

◆ useDiskDBM()

bool InDetDD::SiNumerology::useDiskDBM ( int  disk) const

◆ useDiskLayer()

bool InDetDD::SiNumerology::useDiskLayer ( int  layer) const

Check if layer exists.

◆ useLayer()

bool InDetDD::SiNumerology::useLayer ( int  layer) const

Check if layer exists.

Member Data Documentation

◆ m_barrelIds

std::vector<int> InDetDD::SiNumerology::m_barrelIds
private

Definition at line 154 of file SiNumerology.h.

◆ m_disksForLayer

std::vector<int> InDetDD::SiNumerology::m_disksForLayer
private

Definition at line 160 of file SiNumerology.h.

◆ m_endcapIds

std::vector<int> InDetDD::SiNumerology::m_endcapIds
private

Definition at line 155 of file SiNumerology.h.

◆ m_endcapIdsDBM

std::vector<int> InDetDD::SiNumerology::m_endcapIdsDBM
private

Definition at line 165 of file SiNumerology.h.

◆ m_etaModulesForLayer

std::vector<int> InDetDD::SiNumerology::m_etaModulesForLayer
private

Definition at line 159 of file SiNumerology.h.

◆ m_maxEtaCells

int InDetDD::SiNumerology::m_maxEtaCells
private

Definition at line 147 of file SiNumerology.h.

◆ m_maxNumBarrelEta

int InDetDD::SiNumerology::m_maxNumBarrelEta
private

Definition at line 148 of file SiNumerology.h.

◆ m_maxNumBarrelPhiModules

int InDetDD::SiNumerology::m_maxNumBarrelPhiModules
private

Definition at line 151 of file SiNumerology.h.

◆ m_maxNumEndcapDisks

int InDetDD::SiNumerology::m_maxNumEndcapDisks
private

Definition at line 149 of file SiNumerology.h.

◆ m_maxNumEndcapPhiModules

int InDetDD::SiNumerology::m_maxNumEndcapPhiModules
private

Definition at line 152 of file SiNumerology.h.

◆ m_maxNumEndcapPhiModulesDBM

int InDetDD::SiNumerology::m_maxNumEndcapPhiModulesDBM
private

Definition at line 167 of file SiNumerology.h.

◆ m_maxNumEndcapRings

int InDetDD::SiNumerology::m_maxNumEndcapRings
private

Definition at line 150 of file SiNumerology.h.

◆ m_maxPhiCells

int InDetDD::SiNumerology::m_maxPhiCells
private

Definition at line 146 of file SiNumerology.h.

◆ m_numBarrelDBM

int InDetDD::SiNumerology::m_numBarrelDBM
private

Definition at line 164 of file SiNumerology.h.

◆ m_numDiskLayers

int InDetDD::SiNumerology::m_numDiskLayers
private

Definition at line 144 of file SiNumerology.h.

◆ m_numDisks

int InDetDD::SiNumerology::m_numDisks
private

Definition at line 145 of file SiNumerology.h.

◆ m_numDisksDBM

int InDetDD::SiNumerology::m_numDisksDBM
private

Definition at line 163 of file SiNumerology.h.

◆ m_numLayers

int InDetDD::SiNumerology::m_numLayers
private

Definition at line 143 of file SiNumerology.h.

◆ m_phiModulesForDiskRing

std::vector<std::vector<int> > InDetDD::SiNumerology::m_phiModulesForDiskRing
private

Definition at line 158 of file SiNumerology.h.

◆ m_phiModulesForDiskRingDBM

std::vector<std::vector<int> > InDetDD::SiNumerology::m_phiModulesForDiskRingDBM
private

Definition at line 166 of file SiNumerology.h.

◆ m_phiModulesForLayer

std::vector<int> InDetDD::SiNumerology::m_phiModulesForLayer
private

Definition at line 156 of file SiNumerology.h.

◆ m_phiModulesForLayerDisk

std::vector<std::vector<int> > InDetDD::SiNumerology::m_phiModulesForLayerDisk
private

Definition at line 161 of file SiNumerology.h.

◆ m_ringsForDisk

std::vector<int> InDetDD::SiNumerology::m_ringsForDisk
private

Definition at line 157 of file SiNumerology.h.


The documentation for this class was generated from the following files:
InDetDD::SiNumerology::m_maxNumBarrelEta
int m_maxNumBarrelEta
Definition: SiNumerology.h:148
RunTileCalibRec.cells
cells
Definition: RunTileCalibRec.py:271
InDetDD::SiNumerology::m_numDisks
int m_numDisks
Definition: SiNumerology.h:145
max
#define max(a, b)
Definition: cfImp.cxx:41
InDetDD::SiNumerology::m_endcapIds
std::vector< int > m_endcapIds
Definition: SiNumerology.h:155
InDetDD::SiNumerology::m_maxNumEndcapPhiModulesDBM
int m_maxNumEndcapPhiModulesDBM
Definition: SiNumerology.h:167
InDetDD::SiNumerology::m_maxNumBarrelPhiModules
int m_maxNumBarrelPhiModules
Definition: SiNumerology.h:151
InDetDD::SiNumerology::m_maxNumEndcapDisks
int m_maxNumEndcapDisks
Definition: SiNumerology.h:149
InDetDD::SiNumerology::m_phiModulesForDiskRing
std::vector< std::vector< int > > m_phiModulesForDiskRing
Definition: SiNumerology.h:158
InDetDD::SiNumerology::m_disksForLayer
std::vector< int > m_disksForLayer
Definition: SiNumerology.h:160
InDetDD::SiNumerology::m_phiModulesForLayerDisk
std::vector< std::vector< int > > m_phiModulesForLayerDisk
Definition: SiNumerology.h:161
InDetDD::SiNumerology::m_numLayers
int m_numLayers
Definition: SiNumerology.h:143
InDetDD::SiNumerology::m_maxNumEndcapRings
int m_maxNumEndcapRings
Definition: SiNumerology.h:150
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
InDetDD::SiNumerology::m_etaModulesForLayer
std::vector< int > m_etaModulesForLayer
Definition: SiNumerology.h:159
InDetDD::SiNumerology::m_maxNumEndcapPhiModules
int m_maxNumEndcapPhiModules
Definition: SiNumerology.h:152
InDetDD::SiNumerology::m_maxPhiCells
int m_maxPhiCells
Definition: SiNumerology.h:146
InDetDD::SiNumerology::m_phiModulesForLayer
std::vector< int > m_phiModulesForLayer
Definition: SiNumerology.h:156
InDetDD::SiNumerology::m_numDisksDBM
int m_numDisksDBM
Definition: SiNumerology.h:163
InDetDD::SiNumerology::m_maxEtaCells
int m_maxEtaCells
Definition: SiNumerology.h:147
InDetDD::SiNumerology::m_ringsForDisk
std::vector< int > m_ringsForDisk
Definition: SiNumerology.h:157
InDetDD::SiNumerology::m_numDiskLayers
int m_numDiskLayers
Definition: SiNumerology.h:144
InDetDD::SiNumerology::m_numBarrelDBM
int m_numBarrelDBM
Definition: SiNumerology.h:164
InDetDD::SiNumerology::m_barrelIds
std::vector< int > m_barrelIds
Definition: SiNumerology.h:154
InDetDD::SiNumerology::m_phiModulesForDiskRingDBM
std::vector< std::vector< int > > m_phiModulesForDiskRingDBM
Definition: SiNumerology.h:166
InDetDD::SiNumerology::m_endcapIdsDBM
std::vector< int > m_endcapIdsDBM
Definition: SiNumerology.h:165