#include <LayerNumberConverter.h>
|
int | convertBarrelLayerNumber (int cmsswdet, int cmsswlay, bool useMatched, int isStereo) const |
|
int | convertDiskNumber (int cmsswdet, int cmsswdisk, bool useMatched, int isStereo) const |
|
int | convertLayerNumber (int det, int lay, bool useMatched, int isStereo, bool posZ) const |
|
| LayerNumberConverter (TkLayout layout) |
|
unsigned int | nLayers () const |
|
Definition at line 8 of file LayerNumberConverter.h.
◆ LayerNumberConverter()
mkfit::LayerNumberConverter::LayerNumberConverter |
( |
TkLayout |
layout | ) |
|
|
inline |
◆ convertBarrelLayerNumber()
int mkfit::LayerNumberConverter::convertBarrelLayerNumber |
( |
int |
cmsswdet, |
|
|
int |
cmsswlay, |
|
|
bool |
useMatched, |
|
|
int |
isStereo |
|
) |
| const |
|
inline |
Definition at line 37 of file LayerNumberConverter.h.
References lo_, mkfit::phase1, and useMatched.
Referenced by convertLayerNumber().
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;
constexpr bool useMatched
◆ convertDiskNumber()
int mkfit::LayerNumberConverter::convertDiskNumber |
( |
int |
cmsswdet, |
|
|
int |
cmsswdisk, |
|
|
bool |
useMatched, |
|
|
int |
isStereo |
|
) |
| const |
|
inline |
Definition at line 87 of file LayerNumberConverter.h.
References lo_, mkfit::phase1, and useMatched.
Referenced by convertLayerNumber().
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
◆ convertLayerNumber()
int mkfit::LayerNumberConverter::convertLayerNumber |
( |
int |
det, |
|
|
int |
lay, |
|
|
bool |
useMatched, |
|
|
int |
isStereo, |
|
|
bool |
posZ |
|
) |
| const |
|
inline |
Definition at line 18 of file LayerNumberConverter.h.
References convertBarrelLayerNumber(), convertDiskNumber(), lo_, mkfit::phase1, and useMatched.
Referenced by MkFitSeedConverter::convertSeeds(), MkFitGeometryESProducer::fillShapeAndPlacement(), and main().
19 if (det == 1 || det == 3 || det == 5) {
31 disk += 25 + 2 * lOffset;
constexpr bool useMatched
int convertDiskNumber(int cmsswdet, int cmsswdisk, bool useMatched, int isStereo) const
int convertBarrelLayerNumber(int cmsswdet, int cmsswlay, bool useMatched, int isStereo) const
◆ nLayers()
unsigned int mkfit::LayerNumberConverter::nLayers |
( |
| ) |
const |
|
inline |
◆ lo_
TkLayout mkfit::LayerNumberConverter::lo_ |
|
private |