CMS 3D CMS Logo

AlcaSiPixelAliHarvesterHGCombined_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 SiPixelAliMilleFileExtractorHGMinBias = cms.EDAnalyzer("MillePedeFileExtractor",
4  fileBlobInputTag = cms.InputTag("SiPixelAliMillePedeFileConverterHG",''),
5  fileDir = cms.string('HGCombinedAlignment/'),
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('pedeBinaryHGMinBias%04d.dat'))
11 
12 SiPixelAliMilleFileExtractorHGZMuMu = cms.EDAnalyzer("MillePedeFileExtractor",
13  fileBlobInputTag = cms.InputTag("SiPixelAliMillePedeFileConverterHGDimuon",''),
14  fileDir = cms.string('HGCombinedAlignment/'),
15  # File names the Extractor will use to write the fileblobs in the root
16  # file as real binary files to disk, so that the pede step can read them.
17  # This includes the formatting directive "%04d" which will be expanded to
18  # 0000, 0001, 0002,...
19  outputBinaryFile = cms.string('pedeBinaryHGDiMuon%04d.dat'))
20 
22 from Alignment.CommonAlignmentProducer.AlignmentProducerAsAnalyzer_cff import AlignmentProducer
24 
25 SiPixelAliPedeAlignmentProducerHGCombined = AlignmentProducer.clone(
26  ParameterBuilder = dict(
27  Selector = cms.PSet(
28  alignParams = cms.vstring(
29  "TrackerP1PXBLadder,111111",
30  "TrackerP1PXECPanel,111111",
31  )
32  )
33  ),
34  doMisalignmentScenario = False,
35  checkDbAlignmentValidity = False,
36  applyDbAlignment = True,
37  tjTkAssociationMapTag = 'TrackRefitter2',
38  saveToDB = True,
39  trackerAlignmentRcdName = "TrackerAlignmentHGCombinedRcd"
40 )
41 
42 SiPixelAliPedeAlignmentProducerHGCombined.algoConfig = MillePedeAlignmentAlgorithm.clone(
43  mode = 'pede',
44  runAtPCL = True,
45  #mergeBinaryFiles = [SiPixelAliMilleFileExtractorHGMinBias.outputBinaryFile.value()],
46  #mergeBinaryFiles = [SiPixelAliMilleFileExtractorHGZMuMu.outputBinaryFile.value()],
47  mergeBinaryFiles = ['pedeBinaryHGMinBias%04d.dat','pedeBinaryHGDiMuon%04d.dat -- 10.0'],
48  binaryFile = '',
49  TrajectoryFactory = cms.PSet(BrokenLinesTrajectoryFactory),
50  minNumHits = 10,
51  fileDir = 'HGCombinedAlignment/',
52  pedeSteerer = dict(
53  pedeCommand = 'pede',
54  method = 'inversion 5 0.8',
55  options = [
56  #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
57  'entries 500',
58  'chisqcut 30.0 4.5',
59  'threads 1 1',
60  'closeandreopen',
61  'skipemptycons'
62  #'outlierdownweighting 3','dwfractioncut 0.1'
63  #'outlierdownweighting 5','dwfractioncut 0.2'
64  ],
65  fileDir = 'HGCombinedAlignment/',
66  runDir = 'HGCombinedAlignment/',
67  steerFile = 'pedeSteerHGCombined',
68  pedeDump = 'pedeHGCombined.dump'
69  ),
70  pedeReader = dict(
71  fileDir = 'HGCombinedAlignment/'
72  ),
73  MillePedeFileReader = dict(
74  fileDir = "HGCombinedAlignment/",
75  isHG = True
76  )
77 )
78 
79 SiPixelAliDQMModuleHGCombined = SiPixelAliDQMModule.clone()
80 SiPixelAliDQMModuleHGCombined.outputFolder = "AlCaReco/SiPixelAliHGCombined"
81 SiPixelAliDQMModuleHGCombined.MillePedeFileReader.fileDir = "HGCombinedAlignment/"
82 SiPixelAliDQMModuleHGCombined.MillePedeFileReader.isHG = True
83 
84 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
85 dqmEnvSiPixelAliHGCombined = DQMEDHarvester('DQMHarvestingMetadata',
86  subSystemFolder = cms.untracked.string('AlCaReco'))
87 
88 ALCAHARVESTSiPixelAliHGCombined = cms.Sequence(SiPixelAliMilleFileExtractorHGMinBias*
89  SiPixelAliMilleFileExtractorHGZMuMu*
90  SiPixelAliPedeAlignmentProducerHGCombined*
91  SiPixelAliDQMModuleHGCombined*
92  dqmEnvSiPixelAliHGCombined)