Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
import FWCore.ParameterSet.Config as cms

from Alignment.APEEstimation.SectorBuilder_cfi import *



##
## Whole Subdetector
##

Bpix = EmptySector.clone(
    name = 'Bpix',
    subdetId = [1],
)

BPIX = cms.VPSet(
    Bpix,
)



##
## Separation of layers
##

BpixLayer1 = Bpix.clone(
    name = 'BpixLayer1',
    layer = [1],
)
BpixLayer2 = Bpix.clone(
    name = 'BpixLayer2',
    layer = [2],
)
BpixLayer3 = Bpix.clone(
    name = 'BpixLayer3',
    layer = [3],
)
BpixLayer4 = Bpix.clone(
    name = 'BpixLayer4',
    layer = [4],
)

BPIXLayerSeparation = cms.VPSet(
    BpixLayer1,
    BpixLayer2,
    BpixLayer3,
    BpixLayer4,
)



##
## Separation of layers + orientations
##

BpixLayer1Out = BpixLayer1.clone(
    name = 'BpixLayer1Out',
    wDirection = [1],
)
BpixLayer1In = BpixLayer1.clone(
    name = 'BpixLayer1In',
    wDirection = [-1],
)
BpixLayer2Out = BpixLayer2.clone(
    name = 'BpixLayer2Out',
    wDirection = [1],
)
BpixLayer2In = BpixLayer2.clone(
    name = 'BpixLayer2In',
    wDirection = [-1],
)
BpixLayer3Out = BpixLayer3.clone(
    name = 'BpixLayer3Out',
    wDirection = [1],
)
BpixLayer3In = BpixLayer3.clone(
    name = 'BpixLayer3In',
    wDirection = [-1],
)
BpixLayer4Out = BpixLayer4.clone(
    name = 'BpixLayer4Out',
    wDirection = [1],
)
BpixLayer4In = BpixLayer4.clone(
    name = 'BpixLayer4In',
    wDirection = [-1],
)

BPIXLayerAndOrientationSeparation = cms.VPSet(
    BpixLayer1Out,
    BpixLayer1In,
    BpixLayer2Out,
    BpixLayer2In,
    BpixLayer3Out,
    BpixLayer3In,
    BpixLayer4Out,
    BpixLayer4In,
)