Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:48

0001 import FWCore.ParameterSet.Config as cms
0002 import copy
0003 
0004 SiPixelAliMilleFileExtractor = cms.EDAnalyzer("MillePedeFileExtractor",
0005     fileBlobInputTag = cms.InputTag("SiPixelAliMillePedeFileConverter",''),
0006     # File names the Extractor will use to write the fileblobs in the root
0007     # file as real binary files to disk, so that the pede step can read them.
0008     # This includes the formatting directive "%04d" which will be expanded to
0009     # 0000, 0001, 0002,...
0010     outputBinaryFile = cms.string('pedeBinary%04d.dat'))
0011 
0012 from Alignment.MillePedeAlignmentAlgorithm.MillePedeAlignmentAlgorithm_cfi import *
0013 from Alignment.CommonAlignmentProducer.AlignmentProducerAsAnalyzer_cff import AlignmentProducer
0014 SiPixelAliPedeAlignmentProducer = copy.deepcopy(AlignmentProducer)
0015 
0016 from Alignment.MillePedeAlignmentAlgorithm.MillePedeDQMModule_cff import *
0017 
0018 
0019 SiPixelAliPedeAlignmentProducer.ParameterBuilder.Selector = cms.PSet(
0020     alignParams = cms.vstring(
0021         "PixelHalfBarrels,111111",
0022         "PXECHalfCylinders,111111",
0023         )
0024     )
0025 
0026 SiPixelAliPedeAlignmentProducer.doMisalignmentScenario = False #True
0027 
0028 SiPixelAliPedeAlignmentProducer.checkDbAlignmentValidity = False
0029 SiPixelAliPedeAlignmentProducer.applyDbAlignment = True
0030 SiPixelAliPedeAlignmentProducer.tjTkAssociationMapTag = 'TrackRefitter2'
0031 
0032 SiPixelAliPedeAlignmentProducer.algoConfig = MillePedeAlignmentAlgorithm
0033 SiPixelAliPedeAlignmentProducer.algoConfig.mode = 'pede'
0034 SiPixelAliPedeAlignmentProducer.algoConfig.runAtPCL = True
0035 SiPixelAliPedeAlignmentProducer.algoConfig.mergeBinaryFiles = [SiPixelAliMilleFileExtractor.outputBinaryFile.value()]
0036 SiPixelAliPedeAlignmentProducer.algoConfig.binaryFile = ''
0037 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
0038       #process.BrokenLinesBzeroTrajectoryFactory
0039       BrokenLinesTrajectoryFactory
0040       )
0041 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.pedeCommand = 'pede'
0042 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.method = 'inversion  5  0.8'
0043 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.options = cms.vstring(
0044     #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
0045      'entries 500',
0046      'chisqcut  30.0  4.5',
0047      'threads 1 1',
0048      'closeandreopen'
0049      #'outlierdownweighting 3','dwfractioncut 0.1'
0050      #'outlierdownweighting 5','dwfractioncut 0.2'
0051     )
0052 SiPixelAliPedeAlignmentProducer.algoConfig.minNumHits = 10
0053 SiPixelAliPedeAlignmentProducer.saveToDB = True
0054 
0055 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0056 dqmEnvSiPixelAli = DQMEDHarvester('DQMHarvestingMetadata',
0057                                   subSystemFolder = cms.untracked.string('AlCaReco'),  
0058                                   )
0059 
0060 ALCAHARVESTSiPixelAli = cms.Sequence(SiPixelAliMilleFileExtractor*
0061                                      SiPixelAliPedeAlignmentProducer*
0062                                      SiPixelAliDQMModule*
0063                                      dqmEnvSiPixelAli)