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 SiPixelAliPedeAlignmentProducer.ParameterBuilder.Selector = cms.PSet(
0017     alignParams = cms.vstring(
0018         "PixelHalfBarrels,111111",
0019         "PXECHalfCylinders,111111",
0020         )
0021     )
0022 
0023 SiPixelAliPedeAlignmentProducer.doMisalignmentScenario = False #True
0024 
0025 
0026 SiPixelAliPedeAlignmentProducer.checkDbAlignmentValidity = False
0027 SiPixelAliPedeAlignmentProducer.applyDbAlignment = True
0028 SiPixelAliPedeAlignmentProducer.tjTkAssociationMapTag = 'TrackRefitter2'
0029 
0030 SiPixelAliPedeAlignmentProducer.algoConfig = MillePedeAlignmentAlgorithm
0031 SiPixelAliPedeAlignmentProducer.algoConfig.mode = 'pede'
0032 SiPixelAliPedeAlignmentProducer.algoConfig.runAtPCL = True
0033 SiPixelAliPedeAlignmentProducer.algoConfig.mergeBinaryFiles = [SiPixelAliMilleFileExtractor.outputBinaryFile.value()]
0034 SiPixelAliPedeAlignmentProducer.algoConfig.binaryFile = ''
0035 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory = cms.PSet(
0036       BrokenLinesBzeroTrajectoryFactory # For 0T collisions
0037       )
0038 SiPixelAliPedeAlignmentProducer.algoConfig.TrajectoryFactory.MomentumEstimate = 5 #for 0T Collisions      
0039       
0040 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.pedeCommand = 'pede'
0041 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.method = 'inversion  5  0.8'
0042 SiPixelAliPedeAlignmentProducer.algoConfig.pedeSteerer.options = cms.vstring(
0043     #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
0044      'entries 500',
0045      'chisqcut  30.0  4.5',
0046      'threads 1 1',
0047      'closeandreopen'
0048      #'outlierdownweighting 3','dwfractioncut 0.1'
0049      #'outlierdownweighting 5','dwfractioncut 0.2'
0050     )
0051 SiPixelAliPedeAlignmentProducer.algoConfig.minNumHits = 10
0052 SiPixelAliPedeAlignmentProducer.saveToDB = True
0053 
0054 
0055 
0056 ALCAHARVESTSiPixelAli = cms.Sequence(SiPixelAliMilleFileExtractor*
0057                                      SiPixelAliPedeAlignmentProducer)