test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.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,000000',
22  'TrackerTOBHalfBarrel,000000',
23  'TrackerTIDEndcap,000000',
24  'TrackerTECEndcap,000000'
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  BrokenLinesBzeroTrajectoryFactory # For 0T collisions
41  )
42 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory.MomentumEstimate = 5 #for 0T Collisions
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)