CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlcaSiPixelAliHarvester_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.TrackerAlignmentProducerForPCL_cff import AlignmentProducer
14 SiPixelAliPedeAlignmentProducer = copy.deepcopy(AlignmentProducer)
15 
16 SiPixelAliPedeAlignmentProducer.ParameterBuilder.Selector = cms.PSet(
17  alignParams = cms.vstring(
18  'TrackerTPBHalfBarrel,111111',
19  'TrackerTPEHalfCylinder,111111',
20 
21  'TrackerTIBHalfBarrel,ffffff',
22  'TrackerTOBHalfBarrel,ffffff',
23  'TrackerTIDEndcap,ffffff',
24  'TrackerTECEndcap,ffffff'
25  )
26  )
27 
28 SiPixelAliPedeAlignmentProducer.doMisalignmentScenario = False #True
29 
30 
31 SiPixelAliPedeAlignmentProducer.checkDbAlignmentValidity = False
32 SiPixelAliPedeAlignmentProducer.applyDbAlignment = True
33 SiPixelAliPedeAlignmentProducer.tjTkAssociationMapTag = 'TrackRefitter2'
34 
35 SiPixelAliPedeAlignmentProducer.algoConfig = MillePedeAlignmentAlgorithm
36 SiPixelAliPedeAlignmentProducer.algoConfig.mode = 'pede'
37 SiPixelAliPedeAlignmentProducer.algoConfig.mergeBinaryFiles = [SiPixelAliMilleFileExtractor.outputBinaryFile.value()]
38 SiPixelAliPedeAlignmentProducer.algoConfig.binaryFile = ''
39 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
40  #process.BrokenLinesBzeroTrajectoryFactory
41  BrokenLinesTrajectoryFactory
42  )
43 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.pedeCommand = 'pede'
44 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.method = 'inversion 5 0.8'
45 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.options = cms.vstring(
46  #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
47  'entries 500',
48  'chisqcut 30.0 4.5', #,
49  'threads 1 1' #,
50  #'outlierdownweighting 3','dwfractioncut 0.1'
51  #'outlierdownweighting 5','dwfractioncut 0.2'
52  )
53 SiPixelAliPedeAlignmentProducer.algoConfig.minNumHits = 10
54 SiPixelAliPedeAlignmentProducer.saveToDB = True
55 
56 
57 
58 ALCAHARVESTSiPixelAli = cms.Sequence(SiPixelAliMilleFileExtractor*
59  SiPixelAliPedeAlignmentProducer)