CMS 3D CMS Logo

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