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