CMS 3D CMS Logo

AlcaSiPixelAliHarvesterHG_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 SiPixelAliMilleFileExtractorHG = cms.EDAnalyzer("MillePedeFileExtractor",
4  fileBlobInputTag = cms.InputTag("SiPixelAliMillePedeFileConverterHG",''),
5  fileDir = cms.string('HGalignment/'),
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('pedeBinaryHG%04d.dat'))
11 
13 from Alignment.CommonAlignmentProducer.AlignmentProducerAsAnalyzer_cff import AlignmentProducer
15 
16 SiPixelAliPedeAlignmentProducerHG = AlignmentProducer.clone(
17  ParameterBuilder = dict(
18  Selector = cms.PSet(
19  alignParams = cms.vstring(
20  "TrackerP1PXBLadder,111111",
21  "TrackerP1PXECPanel,111111",
22  )
23  )
24  ),
25  doMisalignmentScenario = False,
26  checkDbAlignmentValidity = False,
27  applyDbAlignment = True,
28  tjTkAssociationMapTag = 'TrackRefitter2',
29  saveToDB = True,
30  trackerAlignmentRcdName = "TrackerAlignmentHGRcd"
31 )
32 
33 SiPixelAliPedeAlignmentProducerHG.algoConfig = MillePedeAlignmentAlgorithm.clone(
34  mode = 'pede',
35  runAtPCL = True,
36  mergeBinaryFiles = [SiPixelAliMilleFileExtractorHG.outputBinaryFile.value()],
37  binaryFile = '',
38  TrajectoryFactory = cms.PSet(BrokenLinesTrajectoryFactory),
39  minNumHits = 10,
40  fileDir = 'HGalignment/',
41  pedeSteerer = dict(
42  pedeCommand = 'pede',
43  method = 'inversion 5 0.8',
44  options = [
45  #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
46  'entries 500',
47  'chisqcut 30.0 4.5',
48  'threads 1 1',
49  'closeandreopen',
50  'skipemptycons'
51  #'outlierdownweighting 3','dwfractioncut 0.1'
52  #'outlierdownweighting 5','dwfractioncut 0.2'
53  ],
54  fileDir = 'HGalignment/',
55  runDir = 'HGalignment/',
56  steerFile = 'pedeSteerHG',
57  pedeDump = 'pedeHG.dump'
58  ),
59  pedeReader = dict(
60  fileDir = 'HGalignment/'
61  ),
62  MillePedeFileReader = dict(
63  fileDir = "HGalignment/",
64  isHG = True
65  )
66 )
67 
68 SiPixelAliDQMModuleHG = SiPixelAliDQMModule.clone()
69 SiPixelAliDQMModuleHG.outputFolder = "AlCaReco/SiPixelAliHG"
70 SiPixelAliDQMModuleHG.MillePedeFileReader.fileDir = "HGalignment/"
71 SiPixelAliDQMModuleHG.MillePedeFileReader.isHG = True
72 
73 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
74 dqmEnvSiPixelAliHG = DQMEDHarvester('DQMHarvestingMetadata',
75  subSystemFolder = cms.untracked.string('AlCaReco'))
76 
77 ALCAHARVESTSiPixelAliHG = cms.Sequence(SiPixelAliMilleFileExtractorHG*
78  SiPixelAliPedeAlignmentProducerHG*
79  SiPixelAliDQMModuleHG*
80  dqmEnvSiPixelAliHG)