CMS 3D CMS Logo

AlcaSiPixelAliHarvester0T_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 
4 SiPixelAliMilleFileExtractor = cms.EDAnalyzer("MillePedeFileExtractor",
5  fileBlobInputTag = cms.InputTag("SiPixelAliMillePedeFileConverter",''),
6  # File names the Extractor will use to write the fileblobs in the root
7  # file as real binary files to disk, so that the pede step can read them.
8  # This includes the formatting directive "%04d" which will be expanded to
9  # 0000, 0001, 0002,...
10  outputBinaryFile = cms.string('pedeBinary%04d.dat'))
11 
13 from Alignment.CommonAlignmentProducer.AlignmentProducerAsAnalyzer_cff import AlignmentProducer
14 SiPixelAliPedeAlignmentProducer = copy.deepcopy(AlignmentProducer)
15 
16 SiPixelAliPedeAlignmentProducer.ParameterBuilder.Selector = cms.PSet(
17  alignParams = cms.vstring(
18  "PixelHalfBarrels,111111",
19  "PXECHalfCylinders,111111",
20  )
21  )
22 
23 SiPixelAliPedeAlignmentProducer.doMisalignmentScenario = False #True
24 
25 
26 SiPixelAliPedeAlignmentProducer.checkDbAlignmentValidity = False
27 SiPixelAliPedeAlignmentProducer.applyDbAlignment = True
28 SiPixelAliPedeAlignmentProducer.tjTkAssociationMapTag = 'TrackRefitter2'
29 
30 SiPixelAliPedeAlignmentProducer.algoConfig = MillePedeAlignmentAlgorithm
31 SiPixelAliPedeAlignmentProducer.algoConfig.mode = 'pede'
32 SiPixelAliPedeAlignmentProducer.algoConfig.runAtPCL = True
33 SiPixelAliPedeAlignmentProducer.algoConfig.mergeBinaryFiles = [SiPixelAliMilleFileExtractor.outputBinaryFile.value()]
34 SiPixelAliPedeAlignmentProducer.algoConfig.binaryFile = ''
35 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
36  BrokenLinesBzeroTrajectoryFactory # For 0T collisions
37  )
38 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory.MomentumEstimate = 5 #for 0T Collisions
39 
40 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.pedeCommand = 'pede'
41 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.method = 'inversion 5 0.8'
42 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.options = cms.vstring(
43  #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
44  'entries 500',
45  'chisqcut 30.0 4.5',
46  'threads 1 1',
47  'closeandreopen'
48  #'outlierdownweighting 3','dwfractioncut 0.1'
49  #'outlierdownweighting 5','dwfractioncut 0.2'
50  )
51 SiPixelAliPedeAlignmentProducer.algoConfig.minNumHits = 10
52 SiPixelAliPedeAlignmentProducer.saveToDB = True
53 
54 
55 
56 ALCAHARVESTSiPixelAli = cms.Sequence(SiPixelAliMilleFileExtractor*
57  SiPixelAliPedeAlignmentProducer)
MillePedeAlignmentAlgorithm_cfi