Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
import FWCore.ParameterSet.Config as cms

##
## Do not filter out the first 20 LS when
## running the PCL alignment in the RelVal case
##

def doNotFilterLS(process):
    if hasattr(process,'LSNumberFilter'):
        process.LSNumberFilter.minLS = 1
    return process

##
## Required 10 instead of 500 hits per structure
## when running the HG PCL alignment in the RelVal case
##

def lowerHitsPerStructure(process):
    if hasattr(process,'SiPixelAliPedeAlignmentProducerHG'):
        process.SiPixelAliPedeAlignmentProducerHG.algoConfig.pedeSteerer.options = cms.vstring(
            'entries 10',
            'chisqcut  30.0  4.5',
            'threads 1 1',
            'closeandreopen'
        )
    if hasattr(process,'SiPixelAliPedeAlignmentProducerHGCombined'):
        process.SiPixelAliPedeAlignmentProducerHGCombined.algoConfig.pedeSteerer.options = cms.vstring(
            'entries 10',
            'chisqcut  30.0  4.5',
            'threads 1 1',
            'closeandreopen',
            'skipemptycons'
        )
    return process