Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:22

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Alignment.APEEstimation.SectorBuilder_cfi import *
0004 
0005 
0006 
0007 ##
0008 ## Whole Subdetector
0009 ##
0010 
0011 Tob = EmptySector.clone(
0012     name = 'Tob',
0013     subdetId = [5],
0014 )
0015 
0016 TOB = cms.VPSet(
0017     Tob,
0018 )
0019 
0020 
0021 
0022 ##
0023 ##  cosmic-like quartering (upper, lower, left, right part)
0024 ##
0025 
0026 TobUp = Tob.clone(
0027     name = 'TobUp',
0028     posPhi = [0.7854,2.3562],   # [45,135] degree
0029 )
0030 TobDown = Tob.clone(
0031     name = 'TobDown',
0032     posPhi = [-2.3562,-0.7854],   # [-135,-45] degree
0033 )
0034 TobLeft = Tob.clone(
0035     name = 'TobLeft',
0036     posPhi = [-0.7854,0.7854],   # [-45,45] degree
0037 )
0038 TobRight = Tob.clone(
0039     name = 'TobRight',
0040     posPhi = [-3.5,-2.3562,2.3562,3.5],   # [135,-135] degree
0041 )
0042 
0043 TOBQuarters = cms.VPSet(
0044     TobUp,
0045     TobDown,
0046     TobLeft,
0047     TobRight,
0048 )
0049 
0050 
0051 
0052 ##
0053 ## Separation of pitches + Separation of 1D and 2D layers
0054 ##
0055 
0056 TobLayer12 = Tob.clone(
0057     name = 'TobLayer12',
0058     layer = [1,2],
0059 )
0060 TobLayer34 = Tob.clone(
0061     name = 'TobLayer34',
0062     layer = [3,4],
0063 )
0064 TobLayer56 = Tob.clone(
0065     name = 'TobLayer56',
0066     layer = [5,6],
0067 )
0068 
0069 TOBPitchAnd2DSeparation = cms.VPSet(
0070     TobLayer12,
0071     TobLayer34,
0072     TobLayer56,
0073 )
0074 
0075 
0076 
0077 ##
0078 ## Separation of layers
0079 ##
0080 
0081 TobLayer1 = Tob.clone(
0082     name = 'TobLayer1',
0083     layer = [1],
0084 )
0085 TobLayer2 = Tob.clone(
0086     name = 'TobLayer2',
0087     layer = [2],
0088 )
0089 TobLayer3 = Tob.clone(
0090     name = 'TobLayer3',
0091     layer = [3],
0092 )
0093 TobLayer4 = Tob.clone(
0094     name = 'TobLayer4',
0095     layer = [4],
0096 )
0097 TobLayer5 = Tob.clone(
0098     name = 'TobLayer5',
0099     layer = [5],
0100 )
0101 TobLayer6 = Tob.clone(
0102     name = 'TobLayer6',
0103     layer = [6],
0104 )
0105 
0106 TOBPureLayerSeparation = cms.VPSet(
0107     TobLayer1,
0108     TobLayer2,
0109     TobLayer3,
0110     TobLayer4,
0111     TobLayer5,
0112     TobLayer6,
0113 )
0114 
0115 
0116 
0117 ##
0118 ## Separation of layers + rphi/stereo
0119 ##
0120 
0121 TobLayer1Rphi = TobLayer1.clone(
0122     name = 'TobLayer1Rphi',
0123     isRPhi = [1],
0124 )
0125 TobLayer1Stereo = TobLayer1.clone(
0126     name = 'TobLayer1Stereo',
0127     isStereo = [1],
0128 )
0129 TobLayer2Rphi = TobLayer2.clone(
0130     name = 'TobLayer2Rphi',
0131     isRPhi = [1],
0132 )
0133 TobLayer2Stereo = TobLayer2.clone(
0134     name = 'TobLayer2Stereo',
0135     isStereo = [1],
0136 )
0137 
0138 TOBLayerSeparation = cms.VPSet(
0139     TobLayer1Rphi,
0140     TobLayer1Stereo,
0141     TobLayer2Rphi,
0142     TobLayer2Stereo,
0143     TobLayer3,
0144     TobLayer4,
0145     TobLayer5,
0146     TobLayer6,
0147 )
0148 
0149 
0150 
0151 ##
0152 ## Separation of layers + rphi/stereo + orientations
0153 ##
0154 
0155 TobLayer1RphiOut = TobLayer1Rphi.clone(
0156     name = 'TobLayer1RphiOut',
0157     wDirection = [1],
0158 )
0159 TobLayer1StereoOut = TobLayer1Stereo.clone(
0160     name = 'TobLayer1StereoOut',
0161     wDirection = [1],
0162 )
0163 TobLayer1RphiIn = TobLayer1Rphi.clone(
0164     name = 'TobLayer1RphiIn',
0165     wDirection = [-1],
0166 )
0167 TobLayer1StereoIn = TobLayer1Stereo.clone(
0168     name = 'TobLayer1StereoIn',
0169     wDirection = [-1],
0170 )
0171 TobLayer2RphiOut = TobLayer2Rphi.clone(
0172     name = 'TobLayer2RphiOut',
0173     wDirection = [1],
0174 )
0175 TobLayer2StereoOut = TobLayer2Stereo.clone(
0176     name = 'TobLayer2StereoOut',
0177     wDirection = [1],
0178 )
0179 TobLayer2RphiIn = TobLayer2Rphi.clone(
0180     name = 'TobLayer2RphiIn',
0181     wDirection = [-1],
0182 )
0183 TobLayer2StereoIn = TobLayer2Stereo.clone(
0184     name = 'TobLayer2StereoIn',
0185     wDirection = [-1],
0186 )
0187 TobLayer3Out = TobLayer3.clone(
0188     name = 'TobLayer3Out',
0189     wDirection = [1],
0190 )
0191 TobLayer3In = TobLayer3.clone(
0192     name = 'TobLayer3In',
0193     wDirection = [-1],
0194 )
0195 TobLayer4Out = TobLayer4.clone(
0196     name = 'TobLayer4Out',
0197     wDirection = [1],
0198 )
0199 TobLayer4In = TobLayer4.clone(
0200     name = 'TobLayer4In',
0201     wDirection = [-1],
0202 )
0203 TobLayer5Out = TobLayer5.clone(
0204     name = 'TobLayer5Out',
0205     wDirection = [1],
0206 )
0207 TobLayer5In = TobLayer5.clone(
0208     name = 'TobLayer5In',
0209     wDirection = [-1],
0210 )
0211 TobLayer6Out = TobLayer6.clone(
0212     name = 'TobLayer6Out',
0213     wDirection = [1],
0214 )
0215 TobLayer6In = TobLayer6.clone(
0216     name = 'TobLayer6In',
0217     wDirection = [-1],
0218 )
0219 
0220 # All RPhi modules within a layer point in same w direction. Same is valid for Stereo modules, but with opposite sign
0221 
0222 TOBLayerAndOrientationSeparation = cms.VPSet(
0223     #TobLayer1RphiOut,      # no modules contained
0224     TobLayer1StereoOut,
0225     TobLayer1RphiIn,
0226     #TobLayer1StereoIn,     # no modules contained
0227     TobLayer2RphiOut,
0228     #TobLayer2StereoOut,    # no modules contained
0229     #TobLayer2RphiIn,       # no modules contained
0230     TobLayer2StereoIn,
0231     TobLayer3Out,
0232     TobLayer3In,
0233     TobLayer4Out,
0234     TobLayer4In,
0235     TobLayer5Out,
0236     TobLayer5In,
0237     TobLayer6Out,
0238     TobLayer6In,
0239 )
0240 
0241 
0242 
0243 
0244 
0245 
0246   
0247 
0248 
0249 
0250 
0251 
0252 
0253 
0254 
0255