Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 SiPixelAliMilleFileExtractorHG = cms.EDAnalyzer("MillePedeFileExtractor",
0004     fileBlobInputTag = cms.InputTag("SiPixelAliMillePedeFileConverterHG",''),
0005     fileDir = cms.string('HGalignment/'),
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('pedeBinaryHG%04d.dat'))
0011 
0012 from Alignment.MillePedeAlignmentAlgorithm.MillePedeAlignmentAlgorithm_cfi import *
0013 from Alignment.CommonAlignmentProducer.AlignmentProducerAsAnalyzer_cff import AlignmentProducer
0014 from Alignment.MillePedeAlignmentAlgorithm.MillePedeDQMModule_cff import *
0015 
0016 SiPixelAliPedeAlignmentProducerHG = AlignmentProducer.clone(
0017     ParameterBuilder = dict(
0018         Selector = cms.PSet(
0019             alignParams = cms.vstring(
0020                 "TrackerP1PXBLadder,111111",
0021                 "TrackerP1PXECPanel,111111",
0022             )
0023         )
0024     ),
0025     doMisalignmentScenario = False,
0026     checkDbAlignmentValidity = False,
0027     applyDbAlignment = True,
0028     tjTkAssociationMapTag = 'TrackRefitter2',
0029     saveToDB = True,
0030     trackerAlignmentRcdName = "TrackerAlignmentHGRcd"
0031 )
0032 
0033 SiPixelAliPedeAlignmentProducerHG.algoConfig = MillePedeAlignmentAlgorithm.clone(
0034     mode = 'pede',
0035     runAtPCL = True,
0036     mergeBinaryFiles = [SiPixelAliMilleFileExtractorHG.outputBinaryFile.value()],
0037     binaryFile = '',
0038     TrajectoryFactory = cms.PSet(BrokenLinesTrajectoryFactory),
0039     minNumHits = 10,
0040     fileDir = 'HGalignment/',
0041     pedeSteerer = dict(
0042         pedeCommand = 'pede',
0043         method = 'inversion  5  0.8',
0044         options = [
0045             #'regularisation 1.0 0.05', # non-stated pre-sigma 50 mrad or 500 mum
0046             'entries 500',
0047             'chisqcut  30.0  4.5',
0048             'threads 1 1',
0049             'closeandreopen',
0050             'skipemptycons' 
0051             #'outlierdownweighting 3','dwfractioncut 0.1'
0052             #'outlierdownweighting 5','dwfractioncut 0.2'
0053         ],
0054         fileDir = 'HGalignment/',
0055         runDir = 'HGalignment/',
0056         steerFile = 'pedeSteerHG',
0057         pedeDump = 'pedeHG.dump'
0058     ),
0059     pedeReader = dict(
0060         fileDir = 'HGalignment/'
0061     ),
0062     MillePedeFileReader = dict(
0063         fileDir = "HGalignment/",
0064         isHG = True
0065     )
0066 )
0067 
0068 SiPixelAliDQMModuleHG = SiPixelAliDQMModule.clone()
0069 SiPixelAliDQMModuleHG.outputFolder = "AlCaReco/SiPixelAliHG"
0070 SiPixelAliDQMModuleHG.MillePedeFileReader.fileDir = "HGalignment/"
0071 SiPixelAliDQMModuleHG.MillePedeFileReader.isHG = True
0072 
0073 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0074 dqmEnvSiPixelAliHG = DQMEDHarvester('DQMHarvestingMetadata',
0075                                     subSystemFolder = cms.untracked.string('AlCaReco'))
0076 
0077 ALCAHARVESTSiPixelAliHG = cms.Sequence(SiPixelAliMilleFileExtractorHG*
0078                                        SiPixelAliPedeAlignmentProducerHG*
0079                                        SiPixelAliDQMModuleHG*
0080                                        dqmEnvSiPixelAliHG)