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.
2 import copy
3 
4 SiPixelAliMilleFileExtractor = cms.EDAnalyzer("MillePedeFileExtractor",
5  fileBlobModule = cms.string("SiPixelAliMillePedeFileConverter"),
6  fileBlobLabel = cms.string(''),
7  # File names the Extractor will use to write the fileblobs in the root
8  # file as real binary files to disk, so that the pede step can read them.
9  # This includes the formatting directive "%04d" which will be expanded to
10  # 0000, 0001, 0002,...
11  outputBinaryFile = cms.string('pedeBinary%04d.dat'))
12 
14 from Alignment.CommonAlignmentProducer.TrackerAlignmentProducerForPCL_cff import AlignmentProducer
15 SiPixelAliPedeAlignmentProducer = copy.deepcopy(AlignmentProducer)
16 
17 SiPixelAliPedeAlignmentProducer.ParameterBuilder.Selector = cms.PSet(
18  alignParams = cms.vstring(
19  'TrackerTPBHalfBarrel,111111',
20  'TrackerTPEHalfCylinder,111111',
21 
22  'TrackerTIBHalfBarrel,ffffff',
23  'TrackerTOBHalfBarrel,ffffff',
24  'TrackerTIDEndcap,ffffff',
25  'TrackerTECEndcap,ffffff'
26  )
27  )
28 
29 SiPixelAliPedeAlignmentProducer.doMisalignmentScenario = False #True
30 
31 
32 SiPixelAliPedeAlignmentProducer.checkDbAlignmentValidity = False
33 SiPixelAliPedeAlignmentProducer.applyDbAlignment = True
34 SiPixelAliPedeAlignmentProducer.tjTkAssociationMapTag = 'TrackRefitter2'
35 
36 SiPixelAliPedeAlignmentProducer.algoConfig = MillePedeAlignmentAlgorithm
37 SiPixelAliPedeAlignmentProducer.algoConfig.mode = 'pede'
38 SiPixelAliPedeAlignmentProducer.algoConfig.mergeBinaryFiles = [SiPixelAliMilleFileExtractor.outputBinaryFile.value()]
39 SiPixelAliPedeAlignmentProducer.algoConfig.binaryFile = ''
40 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
41  #process.BrokenLinesBzeroTrajectoryFactory
42  BrokenLinesTrajectoryFactory
43  )
44 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.pedeCommand = 'pede'
45 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.method = 'inversion 5 0.8'
46 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.options = cms.vstring(
47  #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
48  'entries 500',
49  'chisqcut 30.0 4.5', #,
50  'threads 1 1' #,
51  #'outlierdownweighting 3','dwfractioncut 0.1'
52  #'outlierdownweighting 5','dwfractioncut 0.2'
53  )
54 SiPixelAliPedeAlignmentProducer.algoConfig.minNumHits = 10
55 SiPixelAliPedeAlignmentProducer.saveToDB = True
56 
57 
58 
59 ALCAHARVESTSiPixelAli = cms.Sequence(SiPixelAliMilleFileExtractor*
60  SiPixelAliPedeAlignmentProducer)