1 #ifndef RecoTracker_MkFitCMS_interface_LayerNumberConverter_h 2 #define RecoTracker_MkFitCMS_interface_LayerNumberConverter_h 19 if (det == 1 || det == 3 || det == 5) {
31 disk += 25 + 2 * lOffset;
41 if (cmsswdet == 2 || cmsswdet == 4 || cmsswdet == 6)
48 if (cmsswlay == 1 && isStereo == -1)
50 else if (cmsswlay == 2 && isStereo == -1)
52 else if (cmsswlay == 3 && isStereo == 0)
54 else if (cmsswlay == 4 && isStereo == 0)
58 else if (cmsswdet == 5) {
59 if (cmsswlay == 1 && isStereo == -1)
61 else if (cmsswlay == 2 && isStereo == -1)
63 else if (cmsswlay >= 3 && cmsswlay <= 6 && isStereo == 0)
64 return 6 + cmsswlay + lOffset;
70 if ((cmsswlay == 1 || cmsswlay == 2) && (isStereo == 0 || isStereo == 1)) {
71 return 1 + cmsswlay * 2 + isStereo + lOffset;
72 }
else if (cmsswlay == 3 && isStereo == 0)
74 else if (cmsswlay == 4 && isStereo == 0)
78 else if (cmsswdet == 5) {
79 if ((cmsswlay == 1 || cmsswlay == 2) && (isStereo == 0 || isStereo == 1)) {
80 return 7 + cmsswlay * 2 + isStereo + lOffset;
81 }
else if (cmsswlay >= 3 && cmsswlay <= 6 && isStereo == 0)
82 return 10 + cmsswlay + lOffset;
88 if (cmsswdet == 1 || cmsswdet == 3 || cmsswdet == 5)
98 if ((isStereo != 0 && isStereo != 1) || cmsswdisk < 1)
101 if (cmsswdet == 4 && cmsswdisk <= 3)
102 return cmsswdisk * 2 + isStereo + lOffset;
104 else if (cmsswdet == 6 && cmsswdisk <= 9)
105 return 6 + cmsswdisk * 2 + isStereo + lOffset;
constexpr bool useMatched
int convertDiskNumber(int cmsswdet, int cmsswdisk, bool useMatched, int isStereo) const
unsigned int nLayers() const
LayerNumberConverter(TkLayout layout)
int convertBarrelLayerNumber(int cmsswdet, int cmsswlay, bool useMatched, int isStereo) const
int convertLayerNumber(int det, int lay, bool useMatched, int isStereo, bool posZ) const