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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
import FWCore.ParameterSet.Config as cms

# parameters for HIPAlignmentAlgorithm
HIPAlignmentAlgorithm = cms.PSet(
    algoName = cms.string('HIPAlignmentAlgorithm'),
    debug = cms.bool(False),
    verbosity = cms.bool(False),
    checkDbAlignmentValidity=cms.bool(False),

    isCollision = cms.bool(True),
    UsePreSelection = cms.bool(False),

    multiIOV=cms.bool(False),
    IOVrange=cms.vuint32(1,99999999),

    minRelParameterError = cms.double(0),
    maxRelParameterError = cms.double(-1), # -1 for no cut
    minimumNumberOfHits = cms.int32(1),
    maxAllowedHitPull = cms.double(-1), # -1 for no cut

    applyCutsPerComponent = cms.bool(False), # Overrides settings above for the specified detectors
    cutsPerComponent = cms.VPSet(
        cms.PSet(
            Selector = cms.PSet(
                alignParams = cms.vstring(
                    "AllAlignables,000000" # Obligatory second string
                ) # can use "selected" for the already-specified alignables
            ),
            # Parameter cuts
            minRelParError = cms.double(0),
            maxRelParError = cms.double(-1), # -1 for no cut
            # Hit cuts
            minNHits = cms.int32(0),
            maxHitPull = cms.double(-1), # -1 for no cut
            applyPixelProbCut = cms.bool(False),
            usePixelProbXYOrProbQ = cms.bool(False), # Uses or instead of and when applying the min-max cuts
            minPixelProbXY = cms.double(0),
            maxPixelProbXY = cms.double(1),
            minPixelProbQ = cms.double(0),
            maxPixelProbQ = cms.double(1),
        )
    ),

    # APE settings
    applyAPE = cms.bool(False),
    apeParam = cms.VPSet(
        cms.PSet(
            Selector = cms.PSet(
                alignParams = cms.vstring(
                    "AllAlignables,000000"
                ) # can use "selected" for the already-specified alignables
            ),
            function = cms.string('linear'), ## linear, step or exponential
            apeRPar = cms.vdouble(0, 0, 0), # cm
            apeSPar = cms.vdouble(0, 0, 0), # mrad
        )
    ),

    # Re-weighting
    DataGroup=cms.int32(-2),
    UseReweighting = cms.bool(False),
    Weight = cms.double(1),
    UniformEta = cms.bool(False),
    UniformEtaFormula = cms.string("1"),
    ReweightPerAlignable = cms.bool(False),

    # Impact angle cut
    CLAngleCut = cms.double(1.571), # upper bound on collision track impact angle, default -no cut
    CSAngleCut = cms.double(0),  # lower bound on cosmics track impact angle, default -no cut

    # Chisquare scan
    setScanDet = cms.vdouble(0,0,0), # detector ID (1=all det), start,step

    # File paths and names
    outpath = cms.string('./'),
    collectorActive = cms.bool(False),
    collectorNJobs = cms.int32(0),
    collectorPath = cms.string(''),
    uvarFile = cms.string('IOUserVariables.root'),
    alignedFile = cms.string('IOAlignedPositions.root'),
    misalignedFile = cms.string('IOMisalignedPositions.root'),
    trueFile = cms.string('IOTruePositions.root'),
    parameterFile = cms.string('IOAlignmentParameters.root'),
    iterationFile = cms.string('IOIteration.root'),
    outfile2 = cms.string('HIPAlignmentAlignables.root'),

    monitorConfig = cms.PSet(
        outfile = cms.string('HIPAlignmentEvents.root'),
        maxEventsPerJob = cms.int32(-1),
        fillTrackMonitoring = cms.bool(False),
        maxTracks = cms.int32(100),
        fillTrackHitMonitoring = cms.bool(False),
        maxHits = cms.int32(10000), # Not per track, just total
    ),

    surveyResiduals = cms.untracked.vstring(), ## no survey constraint
    surveyFile = cms.string('HIPSurveyResiduals.root'),
)