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.runAtPCL = True
38 SiPixelAliPedeAlignmentProducer.algoConfig.mergeBinaryFiles = [SiPixelAliMilleFileExtractor.outputBinaryFile.value()]
39 SiPixelAliPedeAlignmentProducer.algoConfig.binaryFile = ''
40 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
41  BrokenLinesBzeroTrajectoryFactory # For 0T collisions
42  )
43 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory.MomentumEstimate = 5 #for 0T Collisions
44 
45 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.pedeCommand = 'pede'
46 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.method = 'inversion 5 0.8'
47 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.options = cms.vstring(
48  #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
49  'entries 500',
50  'chisqcut 30.0 4.5', #,
51  'threads 1 1' #,
52  #'outlierdownweighting 3','dwfractioncut 0.1'
53  #'outlierdownweighting 5','dwfractioncut 0.2'
54  )
55 SiPixelAliPedeAlignmentProducer.algoConfig.minNumHits = 10
56 SiPixelAliPedeAlignmentProducer.saveToDB = True
57 
58 
59 
60 ALCAHARVESTSiPixelAli = cms.Sequence(SiPixelAliMilleFileExtractor*
61  SiPixelAliPedeAlignmentProducer)