예제 #1
0
                1: dict(logWeightDenominator=_thresholdsHEphase1)
            }),
    ),
)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(
    particleFlowClusterHBHE,
    seedFinder=dict(thresholdsByDetector={
        0: dict(seedingThreshold=_seedingThresholdsHBphase1)
    }),
    initialClusteringStep=dict(
        thresholdsByDetector={0: dict(
            gatheringThreshold=_thresholdsHBphase1)}),
    pfClusterBuilder=dict(
        recHitEnergyNorms={0: dict(recHitEnergyNorm=_thresholdsHBphase1)},
        positionCalc=dict(logWeightDenominatorByDetector={
            0: dict(logWeightDenominator=_thresholdsHBphase1)
        }),
        allCellsPositionCalc=dict(
            logWeightDenominatorByDetector={
                0: dict(logWeightDenominator=_thresholdsHBphase1)
            }),
    ),
)

# HCALonly WF
particleFlowClusterHBHEOnly = particleFlowClusterHBHE.clone(
    recHitsSource="particleFlowRecHitHBHEOnly")
예제 #2
0
                                                hcalGPUComparisonTask)

from Configuration.ProcessModifiers.gpuValidationHcal_cff import gpuValidationHcal
gpuValidationHcal.toReplaceWith(hcalOnlyOfflineSourceSequence,
                                hcalOnlyOfflineSourceSequenceGPU)

from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(hcalGPUComparisonTask,
                        tagHBHE_ref="hbheprereco@cpu",
                        tagHBHE_target="hbheprereco@cuda")
run2_HCAL_2018.toModify(recHitTask, tagHBHE="hbheprereco")

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
### reverting the reco tag setting that inherited from run2
run3_HB.toModify(hcalGPUComparisonTask,
                 tagHBHE_ref="hbhereco@cpu",
                 tagHBHE_target="hbhereco@cuda")
run3_HB.toModify(recHitTask, tagHBHE="hbhereco")
_phase1_hcalOnlyOfflineSourceSequence = hcalOnlyOfflineSourceSequence.copy()
_phase1_hcalOnlyOfflineSourceSequence.replace(recHitPreRecoTask, recHitTask)
run3_HB.toReplaceWith(hcalOnlyOfflineSourceSequence,
                      _phase1_hcalOnlyOfflineSourceSequence)

from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
_phase2_hcalOfflineSourceSequence = hcalOfflineSourceSequence.copyAndExclude(
    [tpTask, rawTask])
phase2_hcal.toReplaceWith(hcalOfflineSourceSequence,
                          _phase2_hcalOfflineSourceSequence)
phase2_hcal.toModify(digiTask,
                     tagHBHE="simHcalDigis:HBHEQIE11DigiCollection",
                     tagHO="simHcalDigis",
예제 #3
0
    ))

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(
    particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2018)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(
    particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2018)

# offline 2018 -- collapsed
run2_HECollapse_2018 = cms.Modifier()
run2_HECollapse_2018.toModify(
    particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2017)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(
    particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2019)

# offline phase2 restore what has been studied in the TDR
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(
    particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetectorPhase2)
예제 #4
0
        # Apply legacy HB- energy correction?
        applyLegacyHBMCorrection=cms.bool(True)),

    # Reconstruction algorithm configuration data to fetch from DB, if any
    algoConfigClass=cms.string(""),

    # Turn rechit status bit setters on/off
    setNegativeFlagsQIE8=cms.bool(True),
    setNegativeFlagsQIE11=cms.bool(False),
    setNoiseFlagsQIE8=cms.bool(True),
    setNoiseFlagsQIE11=cms.bool(False),
    setPulseShapeFlagsQIE8=cms.bool(True),
    setPulseShapeFlagsQIE11=cms.bool(False),
    setLegacyFlagsQIE8=cms.bool(True),
    setLegacyFlagsQIE11=cms.bool(False),

    # Parameter sets configuring rechit status bit setters
    flagParametersQIE8=cms.PSet(hbheStatusFlag.qie8Config),
    flagParametersQIE11=cms.PSet(),
    pulseShapeParametersQIE8=cms.PSet(pulseShapeFlag.qie8Parameters),
    pulseShapeParametersQIE11=cms.PSet())

# Disable the "triangle peak fit" and the corresponding HBHETriangleNoise flag
hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal=True)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(hbheprereco, algorithm=dict(applyLegacyHBMCorrection=False))
        'GainWidths', 'MCParams', 'RecoParams', 'RespCorrs', 'QIEData',
        'QIETypes', 'Gains', 'Pedestals', 'PedestalWidths', 'ChannelQuality',
        'ZSThresholds', 'TimeCorrs', 'LUTCorrs', 'LutMetadata',
        'L1TriggerObjects', 'PFCorrs', 'ElectronicsMap', 'FrontEndMap',
        'CovarianceMatrices', 'SiPMParameters', 'SiPMCharacteristics',
        'TPChannelParameters', 'TPParameters', 'FlagHFDigiTimeParams'),
    GainWidthsForTrigPrims=cms.bool(True))

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB

run2_HCAL_2017.toModify(es_hardcode, useLayer0Weight=cms.bool(True))
run2_HF_2017.toModify(es_hardcode, useHFUpgrade=cms.bool(True))
run2_HE_2017.toModify(es_hardcode,
                      useHEUpgrade=cms.bool(True),
                      HEreCalibCutoff=cms.double(100.0))
run2_HEPlan1_2017.toModify(es_hardcode,
                           testHEPlan1=cms.bool(True),
                           useHEUpgrade=cms.bool(False),
                           HEreCalibCutoff=cms.double(20.0))
run3_HB.toModify(es_hardcode,
                 useHBUpgrade=cms.bool(True),
                 HBreCalibCutoff=cms.double(100.0))

from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal

phase2_hgcal.toModify(es_hardcode, killHE=cms.bool(True))
_toGet_noEmap = _toGet[:]
_toGet_noEmap.remove('ElectronicsMap')


from Configuration.Eras.Modifier_hcalHardcodeConditions_cff import hcalHardcodeConditions
hcalHardcodeConditions.toModify( es_hardcode,
    toGet = cms.untracked.vstring(_toGet),
    GainWidthsForTrigPrims = cms.bool(True) 
)

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB

run2_HCAL_2017.toModify( es_hardcode, useLayer0Weight = cms.bool(True), useIeta18depth1 = cms.bool(False) )
run2_HF_2017.toModify( es_hardcode, useHFUpgrade = cms.bool(True) )
run2_HE_2017.toModify( es_hardcode, useHEUpgrade = cms.bool(True), HEreCalibCutoff = cms.double(100.0) )
run2_HEPlan1_2017.toModify( es_hardcode, testHEPlan1 = cms.bool(True), useHEUpgrade = cms.bool(False), HEreCalibCutoff = cms.double(20.0) )

run2_HCAL_2018.toModify( es_hardcode, useLayer0Weight = cms.bool(True), useIeta18depth1 = cms.bool(False) )
run3_HB.toModify( es_hardcode, useHBUpgrade = cms.bool(True), HBreCalibCutoff = cms.double(100.0) )
# now that we have an emap
run3_HB.toModify( es_hardcode, toGet = cms.untracked.vstring(_toGet_noEmap),  )

from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
phase2_hgcal.toModify( es_hardcode, killHE = cms.bool(True) )
                            
예제 #7
0
    upgradeHF = cms.bool(False),
    upgradeHB = cms.bool(False),
    upgradeHE = cms.bool(False),

    # parameters = cms.untracked.PSet(
    #     FGVersionHBHE=cms.uint32(0),
    #     TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
    #     ADCThreshold=cms.uint32(0),
    #     FGThreshold=cms.uint32(12)
    # ),

    #vdouble weights = { -1, -1, 1, 1} //low lumi algo
    # Input digi label (_must_ be without zero-suppression!)
    inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
                               cms.InputTag('simHcalUnsuppressedDigis')),
    inputUpgradeLabel = cms.VInputTag(
        cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
        cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
    InputTagFEDRaw = cms.InputTag("rawDataCollector"),
    RunZS = cms.bool(False),
    FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
    PeakFinderAlgorithm = cms.int32(2),

    HFTPScaleShift = hfTPScaleShift,
)

run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=cms.bool(True))
run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHF=cms.bool(True))
run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=cms.bool(True))
예제 #8
0

run2_25ns_specific.toModify(hcalRecAlgos, _modName)

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017


def _modName(algos):
    HcalRemoveAddSevLevel.RemoveFlag(algos, "HFDigiTime")


run2_HCAL_2017.toModify(hcalRecAlgos, _modName)

#--- NB: MC and data get back in sync for >= Run3  ------------------------
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB


def _modName(algos):
    HcalRemoveAddSevLevel.AddFlag(algos, "HBHENegativeNoise", 8)


run3_HB.toModify(hcalRecAlgos, _modName)

CSCHaloData.ExpectedBX = cms.int32(3)

from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFCHSL1FastL2L3ResidualCorrectorTask, ak4PFCHSL1FastL2L3ResidualCorrectorTask

from JetMETCorrections.Configuration.JetCorrectors_cff import ak4PFCHSResidualCorrector, ak4PFCHSL1FastL2L3ResidualCorrector
jetCorrectorsForRecoTask.replace(ak4PFCHSL1FastL2L3CorrectorTask,
                                 ak4PFCHSL1FastL2L3ResidualCorrectorTask)
interestingEgammaIsoDetIds = cms.Sequence(interestingEgammaIsoDetIdsTask)

_pp_on_AA_interestingEgammaIsoDetIdsTask = interestingEgammaIsoDetIdsTask.copy(
)
_pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotGamIsoDetIdEB)
_pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotGamIsoDetIdEE)
_pp_on_AA_interestingEgammaIsoDetIdsTask.remove(
    interestingOotEgammaIsoHCALDetId)
_pp_on_AA_interestingEgammaIsoDetIdsTask.remove(interestingOotEgammaIsoESDetId)

from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toReplaceWith(interestingEgammaIsoDetIdsTask,
                       _pp_on_AA_interestingEgammaIsoDetIdsTask)

from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
egamma_lowPt_exclusive.toModify(
    interestingGedEgammaIsoESDetId,
    minSCEt=1.0,  #default 500
    minEleEt=1.0,  #default 20
    minPhoEt=1.0  #default 20
)
egamma_lowPt_exclusive.toModify(
    interestingGedEgammaIsoHCALDetId,
    minSCEt=1.0,  #default 20
    minEleEt=1.0,  #default 20
    minPhoEt=1.0  #default 20
)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(interestingEgammaIsoHCALSel, minEnergyHB=0.1)
예제 #10
0
    positionReCalc = cms.PSet(),
    energyCorrector = cms.PSet()
)

#####

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
(run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowClusterHBHE,
    seedFinder = dict(thresholdsByDetector = {1 : dict(seedingThreshold = _seedingThresholdsHEphase1) } ),
    initialClusteringStep = dict(thresholdsByDetector = {1 : dict(gatheringThreshold = _thresholdsHEphase1) } ),
    pfClusterBuilder = dict(
        recHitEnergyNorms = {1 : dict(recHitEnergyNorm = _thresholdsHEphase1) },
        positionCalc = dict(logWeightDenominatorByDetector = {1 : dict(logWeightDenominator = _thresholdsHEphase1) } ),
        allCellsPositionCalc = dict(logWeightDenominatorByDetector = {1 : dict(logWeightDenominator = _thresholdsHEphase1) } ),
    ),
)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowClusterHBHE,
    seedFinder = dict(thresholdsByDetector = {0 : dict(seedingThreshold = _seedingThresholdsHBphase1) } ),
    initialClusteringStep = dict(thresholdsByDetector = {0 : dict(gatheringThreshold = _thresholdsHBphase1) } ),
    pfClusterBuilder = dict(
        recHitEnergyNorms = {0 : dict(recHitEnergyNorm = _thresholdsHBphase1) },
        positionCalc = dict(logWeightDenominatorByDetector = {0 : dict(logWeightDenominator = _thresholdsHBphase1) } ),
        allCellsPositionCalc = dict(logWeightDenominatorByDetector = {0 : dict(logWeightDenominator = _thresholdsHBphase1) } ),
    ),
)
예제 #11
0
    Plot_TP_ver = cms.bool(False)
)

from Configuration.Eras.Modifier_fastSim_cff import fastSim
fastSim.toModify(hcaldigisAnalyzer, simHits = "fastSimProducer:HcalHits")

from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
premix_stage2.toModify(hcaldigisAnalyzer,
    dataTPs = "DMHcalTriggerPrimitiveDigis",
)

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
(run2_HCAL_2017 & ~fastSim).toModify(hcaldigisAnalyzer,
    TestNumber    = cms.bool(True)
)

from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
run2_HEPlan1_2017.toModify(hcaldigisAnalyzer,
    hep17 = cms.bool(True)
)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(hcaldigisAnalyzer,
    HEPhase1 = cms.bool(True)
)
    
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(hcaldigisAnalyzer,
    HBPhase1 = cms.bool(True)
)
예제 #12
0
                        cms.PSet(
                            depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
                            threshold = _thresholdsHE,
                            detectorEnum = cms.int32(2)
                            )
                        )
                  ),
                  cms.PSet(
                      name = cms.string("PFRecHitQTestHCALChannel"),
                      maxSeverities      = cms.vint32(11),
                      cleaningThresholds = cms.vdouble(0.0),
                      flags              = cms.vstring('Standard')
                  )
             )
           ),
    )
)

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
(run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowRecHitHBHE,
    producers = {0 : dict(qualityTests = {0 : dict(cuts = {1 : dict(threshold = _thresholdsHEphase1) } ) } ) },
)

# offline 2021
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowRecHitHBHE,
    producers = {0 : dict(qualityTests = {0 : dict(cuts = {0 : dict(threshold = _thresholdsHBphase1) } ) } ) },
)
logWeightDenominatorByDetectorPhase2 = cms.VPSet(
    cms.PSet( detector = cms.string("HCAL_BARREL1"),
              depths = cms.vint32(1, 2, 3, 4),
              logWeightDenominator = _thresholdsHB,
              ),
    cms.PSet( detector = cms.string("HCAL_ENDCAP"),
              depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
              logWeightDenominator = _thresholdsHE,
              )
    )

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)

# offline 2018 -- collapsed
run2_HECollapse_2018 =  cms.Modifier()
run2_HECollapse_2018.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2017)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2019)

# offline phase2 restore what has been studied in the TDR
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetectorPhase2)
run2_HE_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder, recHitEnergyNorms = recHitEnergyNorms2018)
run2_HE_2018.toModify(particleFlowClusterHBHE.seedFinder, thresholdsByDetector = seedFinderThresholdsByDetector2018)
run2_HE_2018.toModify(particleFlowClusterHBHE.initialClusteringStep, thresholdsByDetector = initialClusteringStepThresholdsByDetector2018)
run2_HE_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder.positionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)
run2_HE_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2018)

# offline 2018 -- collapsed
run2_HECollapse_2018 =  cms.Modifier()
run2_HECollapse_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder, recHitEnergyNorms = recHitEnergyNorms2017)
run2_HECollapse_2018.toModify(particleFlowClusterHBHE.seedFinder, thresholdsByDetector = seedFinderThresholdsByDetector2017)
run2_HECollapse_2018.toModify(particleFlowClusterHBHE.initialClusteringStep, thresholdsByDetector = initialClusteringStepThresholdsByDetector2017)
run2_HECollapse_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder.positionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2017)
run2_HECollapse_2018.toModify(particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2017)


# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowClusterHBHE.pfClusterBuilder, recHitEnergyNorms = recHitEnergyNorms2019)
run3_HB.toModify(particleFlowClusterHBHE.seedFinder, thresholdsByDetector = seedFinderThresholdsByDetector2019)
run3_HB.toModify(particleFlowClusterHBHE.initialClusteringStep, thresholdsByDetector = initialClusteringStepThresholdsByDetector2019)
run3_HB.toModify(particleFlowClusterHBHE.pfClusterBuilder.positionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2019)
run3_HB.toModify(particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetector2019)

# offline phase2 restore what has been studied in the TDR
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(particleFlowClusterHBHE.pfClusterBuilder, recHitEnergyNorms = recHitEnergyNormsPhase2)
phase2_hcal.toModify(particleFlowClusterHBHE.seedFinder, thresholdsByDetector = seedFinderThresholdsByDetectorPhase2)
phase2_hcal.toModify(particleFlowClusterHBHE.initialClusteringStep, thresholdsByDetector = initialClusteringStepThresholdsByDetectorPhase2)
phase2_hcal.toModify(particleFlowClusterHBHE.pfClusterBuilder.positionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetectorPhase2)
phase2_hcal.toModify(particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc, logWeightDenominatorByDetector= logWeightDenominatorByDetectorPhase2)
예제 #15
0
                             siPMCode=cms.int32(1)),
                     hf1=dict(samplingFactor=cms.double(0.67)),
                     hf2=dict(samplingFactor=cms.double(0.67)))

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
run2_HE_2017.toModify(hcalSimParameters,
                      he=dict(
                          photoelectronsToAnalog=cms.vdouble([57.5] * 14),
                          doSiPMSmearing=cms.bool(True),
                          sipmTau=cms.double(10.),
                      ))

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(hcalSimParameters,
                 hb=dict(
                     photoelectronsToAnalog=cms.vdouble([57.5] * 16),
                     doSiPMSmearing=cms.bool(True),
                     sipmTau=cms.double(10.),
                 ))

_newFactors = cms.vdouble(
    210.55, 197.93, 186.12, 189.64, 189.63, 189.96, 190.03, 190.11, 190.18,
    190.25, 190.32, 190.40, 190.47, 190.54, 190.61, 190.69, 190.83, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94)
예제 #16
0
                              binOfMaximum=cms.int32(4)))
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(
    hcalSimParameters,
    he=dict(
        readoutFrameSize=cms.int32(8),
        binOfMaximum=cms.int32(4),
        threshold_currentTDC=cms.double(
            149.6)  #2.34)#9.35)#4.675)#9.35)#18.7)#37.4)
    ))

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(
    hcalSimParameters,
    hb=dict(
        doSiPMSmearing=cms.bool(True),
        threshold_currentTDC=cms.double(149.6),  #18.7, 37.4, 56.1, 74.8
        sipmTau=cms.double(10.),
    ))

_newFactors = cms.vdouble(
    210.55, 197.93, 186.12, 189.64, 189.63, 189.96, 190.03, 190.11, 190.18,
    190.25, 190.32, 190.40, 190.47, 190.54, 190.61, 190.69, 190.83, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94)
예제 #17
0
# specify hcal upgrade phase - 0, 1, 2	
	HcalPhase = cms.int32(0)
    
)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(calotowermaker, 
                      HcalPhase = cms.int32(1),
                      HESThreshold1 = cms.double(0.1),
                      HESThreshold  = cms.double(0.2),
                      HEDThreshold1 = cms.double(0.1),
                      HEDThreshold  = cms.double(0.2)
)

# needed to handle inner/outer assignment
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
run2_HECollapse_2018.toModify(calotowermaker,
    HcalPhase = cms.int32(0),
    HESThreshold1 = cms.double(0.8),
    HESThreshold  = cms.double(0.8),
    HEDThreshold1 = cms.double(0.8),
    HEDThreshold  = cms.double(0.8)
)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(calotowermaker,
    HBThreshold1 = cms.double(0.1),
    HBThreshold2 = cms.double(0.2),
    HBThreshold = cms.double(0.3),
)
예제 #18
0
    LSConfig=LSParameter,
    upgradeHF=cms.bool(False),
    upgradeHB=cms.bool(False),
    upgradeHE=cms.bool(False),

    # parameters = cms.untracked.PSet(
    #     FGVersionHBHE=cms.uint32(0),
    #     TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
    #     ADCThreshold=cms.uint32(0),
    #     FGThreshold=cms.uint32(12)
    # ),

    #vdouble weights = { -1, -1, 1, 1} //low lumi algo
    # Input digi label (_must_ be without zero-suppression!)
    inputLabel=cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
                             cms.InputTag('simHcalUnsuppressedDigis')),
    inputUpgradeLabel=cms.VInputTag(
        cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
        cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
    InputTagFEDRaw=cms.InputTag("rawDataCollector"),
    RunZS=cms.bool(False),
    FrontEndFormatError=cms.bool(
        False),  # Front End Format Error, for real data only
    PeakFinderAlgorithm=cms.int32(2),
    HFTPScaleShift=hfTPScaleShift,
)

run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=cms.bool(True))
run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHF=cms.bool(True))
run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=cms.bool(True))
예제 #19
0
)
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify( hcalSimParameters,
    he = dict(
               readoutFrameSize = cms.int32(8), 
               binOfMaximum     = cms.int32(4),
               threshold_currentTDC = cms.double(18.7)
              )
)


from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify( hcalSimParameters,
    hb = dict(
        doSiPMSmearing = cms.bool(True),
        threshold_currentTDC = cms.double(18.7),
        sipmTau = cms.double(10.),
    )
)

from Configuration.Eras.Modifier_run3_common_cff import run3_common
run3_common.toModify( hcalSimParameters, 
    hb = dict(
               readoutFrameSize = cms.int32(10), 
               binOfMaximum     = cms.int32(6)
              ),
    he = dict(
               readoutFrameSize = cms.int32(10), 
               binOfMaximum     = cms.int32(6)
              ),
    hf1 = dict( samplingFactor = 0.35,
예제 #20
0
                          logWeightDenominator = _thresholdsHB,
                          ),
                cms.PSet( detector = cms.string("HCAL_ENDCAP"),
                          depths = cms.vint32(1, 2, 3, 4, 5, 6, 7),
                          logWeightDenominator = _thresholdsHE,
                          )
                ),
               minAllowedNormalization = cms.double(1e-9)
           )
       ),
       positionReCalc = cms.PSet(),
       energyCorrector = cms.PSet()
)

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
(run2_HE_2018 & ~run2_HECollapse_2018).toModify(particleFlowClusterHCAL,
    pfClusterBuilder = dict(
        allCellsPositionCalc = dict(logWeightDenominatorByDetector = {1 : dict(logWeightDenominator = _thresholdsHEphase1) } ),
    ),
)

# offline 2021
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowClusterHCAL,
    pfClusterBuilder = dict(
        allCellsPositionCalc = dict(logWeightDenominatorByDetector = {0 : dict(logWeightDenominator = _thresholdsHBphase1) } ),
    ),
)
예제 #21
0
    #     FGVersionHBHE=cms.uint32(0),
    #     TDCMask=cms.uint64(0xFFFFFFFFFFFFFFFF),
    #     ADCThreshold=cms.uint32(0),
    #     FGThreshold=cms.uint32(12)
    # ),

    #vdouble weights = { -1, -1, 1, 1} //low lumi algo
    # Input digi label (_must_ be without zero-suppression!)
    inputLabel = cms.VInputTag(cms.InputTag('simHcalUnsuppressedDigis'),
                               cms.InputTag('simHcalUnsuppressedDigis')),
    inputUpgradeLabel = cms.VInputTag(
        cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
        cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
    InputTagFEDRaw = cms.InputTag("rawDataCollector"),
    RunZS = cms.bool(False),
    FrontEndFormatError = cms.bool(False), # Front End Format Error, for real data only
    PeakFinderAlgorithm = cms.int32(2),

    tpScales = tpScales,
)

run2_HE_2017.toModify(simHcalTriggerPrimitiveDigis, upgradeHE=cms.bool(True))
run2_HF_2017.toModify(simHcalTriggerPrimitiveDigis, 
                      upgradeHF=cms.bool(True),
                      numberOfSamplesHF = cms.int32(2),
                      numberOfPresamplesHF = cms.int32(1)
)
run2_HF_2017.toModify(tpScales.HF, NCTShift=cms.int32(2))
run3_HB.toModify(simHcalTriggerPrimitiveDigis, upgradeHB=cms.bool(True))
run3_HB.toModify(tpScales.HBHE, LSBQIE11Overlap=cms.double(1/16.))
예제 #22
0
    DLPHIN_pb_SF = cms.string(DLPHIN_pb_folder + "DLPHIN_MAHI_ratio.root"),
    DLPHIN_print = cms.bool(False),
    DLPHIN_scale = cms.bool(True),
    DLPHIN_save = cms.bool(True),

>>>>>>> 85de9a76fcdc071977a5797d5627a07cdf90ff0e
    # Parameter sets configuring rechit status bit setters
    flagParametersQIE8 = cms.PSet(
        hbheStatusFlag.qie8Config
    ),
    flagParametersQIE11 = cms.PSet(),

    pulseShapeParametersQIE8 = cms.PSet(
        pulseShapeFlag.qie8Parameters
    ),
    pulseShapeParametersQIE11 = cms.PSet()
)

# Disable the "triangle peak fit" and the corresponding HBHETriangleNoise flag
hbheprereco.pulseShapeParametersQIE8.TrianglePeakTS = cms.uint32(10000)

from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
<<<<<<< HEAD
run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal = True)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(hbheprereco, algorithm = dict(applyLegacyHBMCorrection = False))
=======
run2_HE_2017.toModify(hbheprereco, saveEffectivePedestal = cms.bool(True))
>>>>>>> 85de9a76fcdc071977a5797d5627a07cdf90ff0e
예제 #23
0
    # flag to allow/disallow missing inputs
    AllowMissingInputs=cms.bool(False),

    # specify hcal upgrade phase - 0, 1, 2
    HcalPhase=cms.int32(0))

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(calotowermaker,
                      HcalPhase=cms.int32(1),
                      HESThreshold1=cms.double(0.1),
                      HESThreshold=cms.double(0.2),
                      HEDThreshold1=cms.double(0.1),
                      HEDThreshold=cms.double(0.2))

# needed to handle inner/outer assignment
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
run2_HECollapse_2018.toModify(calotowermaker,
                              HcalPhase=cms.int32(0),
                              HESThreshold1=cms.double(0.8),
                              HESThreshold=cms.double(0.8),
                              HEDThreshold1=cms.double(0.8),
                              HEDThreshold=cms.double(0.8))

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(
    calotowermaker,
    HBThreshold1=cms.double(0.1),
    HBThreshold2=cms.double(0.2),
    HBThreshold=cms.double(0.3),
)
예제 #24
0
import FWCore.ParameterSet.Config as cms

from RecoJets.JetProducers.ak4CaloJets_cfi import ak4CaloJets as _ak4CaloJets
from RecoHI.HiJetAlgos.HiRecoJets_cff import akPu4CaloJets as _akPu4CaloJets
from RecoLocalCalo.CaloTowersCreator.calotowermaker_cfi import calotowermaker
caloTowerForTrk = calotowermaker.clone(hbheInput='hbheprereco',
                                       missingHcalRescaleFactorForEcal=1.0)

ak4CaloJetsForTrk = _ak4CaloJets.clone(
    srcPVs='firstStepPrimaryVerticesUnsorted', src='caloTowerForTrk')

from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toReplaceWith(
    ak4CaloJetsForTrk,
    _akPu4CaloJets.clone(srcPVs='firstStepPrimaryVerticesUnsorted',
                         src='caloTowerForTrk'))

from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
trackingLowPU.toModify(ak4CaloJetsForTrk, srcPVs="pixelVertices")

caloJetsForTrkTask = cms.Task(caloTowerForTrk, ak4CaloJetsForTrk)
caloJetsForTrk = cms.Sequence(caloJetsForTrkTask)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(caloTowerForTrk, hbheInput="hbhereco")

from Configuration.Eras.Modifier_pf_badHcalMitigationOff_cff import pf_badHcalMitigationOff
pf_badHcalMitigationOff.toModify(caloTowerForTrk,
                                 missingHcalRescaleFactorForEcal=0.0)
                ),
                cms.PSet(
                    detector=cms.string("HCAL_ENDCAP"),
                    depths=cms.vint32(1, 2, 3, 4, 5, 6, 7),
                    logWeightDenominator=_thresholdsHE,
                )),
            minAllowedNormalization=cms.double(1e-9))),
    positionReCalc=cms.PSet(),
    energyCorrector=cms.PSet())

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
(run2_HE_2018 & ~run2_HECollapse_2018).toModify(
    particleFlowClusterHCAL,
    pfClusterBuilder=dict(allCellsPositionCalc=dict(
        logWeightDenominatorByDetector={
            1: dict(logWeightDenominator=_thresholdsHEphase1)
        }), ),
)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(
    particleFlowClusterHCAL,
    pfClusterBuilder=dict(allCellsPositionCalc=dict(
        logWeightDenominatorByDetector={
            0: dict(logWeightDenominator=_thresholdsHBphase1)
        }), ),
)
예제 #26
0
    # specify hcal upgrade phase - 0, 1, 2
    HcalPhase=cms.int32(0))

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018

run2_HE_2018.toModify(calotowermaker,
                      HcalPhase=1,
                      HESThreshold1=0.1,
                      HESThreshold=0.2,
                      HEDThreshold1=0.1,
                      HEDThreshold=0.2)

# needed to handle inner/outer assignment
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018

run2_HECollapse_2018.toModify(calotowermaker,
                              HcalPhase=0,
                              HESThreshold1=0.8,
                              HESThreshold=0.8,
                              HEDThreshold1=0.8,
                              HEDThreshold=0.8)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB

run3_HB.toModify(
    calotowermaker,
    HBThreshold1=0.1,
    HBThreshold2=0.2,
    HBThreshold=0.3,
)
_toGet_noEmap = _toGet[:]
_toGet_noEmap.remove('ElectronicsMap')


from Configuration.Eras.Modifier_hcalHardcodeConditions_cff import hcalHardcodeConditions
hcalHardcodeConditions.toModify( es_hardcode,
    toGet = cms.untracked.vstring(_toGet),
    GainWidthsForTrigPrims = cms.bool(True) 
)

from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
from Configuration.Eras.Modifier_run2_HE_2017_cff import run2_HE_2017
from Configuration.Eras.Modifier_run2_HEPlan1_2017_cff import run2_HEPlan1_2017
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal

run2_HCAL_2017.toModify( es_hardcode, useLayer0Weight = cms.bool(True) )
run2_HF_2017.toModify( es_hardcode, useHFUpgrade = cms.bool(True) )
run2_HE_2017.toModify( es_hardcode, useHEUpgrade = cms.bool(True), HEreCalibCutoff = cms.double(100.0) )
run2_HEPlan1_2017.toModify( es_hardcode, testHEPlan1 = cms.bool(True), useHEUpgrade = cms.bool(False), HEreCalibCutoff = cms.double(20.0) )
run3_HB.toModify( es_hardcode, useHBUpgrade = cms.bool(True), HBreCalibCutoff = cms.double(100.0) )

# now that we have an emap
phase2_hcal.toModify( es_hardcode, toGet = cms.untracked.vstring(_toGet_noEmap) )

from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
phase2_hgcal.toModify( es_hardcode, killHE = cms.bool(True) )
                            
예제 #28
0
run2_HECollapse_2018.toModify(
    particleFlowClusterHBHE.seedFinder,
    thresholdsByDetector=seedFinderThresholdsByDetector2017)
run2_HECollapse_2018.toModify(
    particleFlowClusterHBHE.initialClusteringStep,
    thresholdsByDetector=initialClusteringStepThresholdsByDetector2017)
run2_HECollapse_2018.toModify(
    particleFlowClusterHBHE.pfClusterBuilder.positionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2017)
run2_HECollapse_2018.toModify(
    particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2017)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowClusterHBHE.pfClusterBuilder,
                 recHitEnergyNorms=recHitEnergyNorms2019)
run3_HB.toModify(particleFlowClusterHBHE.seedFinder,
                 thresholdsByDetector=seedFinderThresholdsByDetector2019)
run3_HB.toModify(
    particleFlowClusterHBHE.initialClusteringStep,
    thresholdsByDetector=initialClusteringStepThresholdsByDetector2019)
run3_HB.toModify(
    particleFlowClusterHBHE.pfClusterBuilder.positionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2019)
run3_HB.toModify(
    particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc,
    logWeightDenominatorByDetector=logWeightDenominatorByDetector2019)

# offline phase2 restore what has been studied in the TDR
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(particleFlowClusterHBHE.pfClusterBuilder,
from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
run2_HF_2017.toModify( hcalSimParameters,
    hf1 = dict(
               readoutFrameSize = cms.int32(3), 
               binOfMaximum     = cms.int32(2)
              ),
    hf2 = dict(
               readoutFrameSize = cms.int32(3), 
               binOfMaximum     = cms.int32(2)
              )
)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify( hcalSimParameters,
    hb = dict(
        doSiPMSmearing = cms.bool(True),
        sipmTau = cms.double(10.),
    )
)

_newFactors = cms.vdouble(
    210.55, 197.93, 186.12, 189.64, 189.63,
    189.96, 190.03, 190.11, 190.18, 190.25,
    190.32, 190.40, 190.47, 190.54, 190.61,
    190.69, 190.83, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94,
    190.94, 190.94, 190.94, 190.94, 190.94,
예제 #30
0
    cms.PSet(
        depth=cms.vint32(1, 2, 3, 4),
        threshold = _thresholdsHB,
        detectorEnum = cms.int32(1)
        ),
    cms.PSet(
        depth=cms.vint32(1, 2, 3, 4, 5, 6, 7),
        threshold = _thresholdsHE,
        detectorEnum = cms.int32(2)
        )
    )

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
run2_HCAL_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2018)

from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
run2_HE_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2018)

# offline 2018 -- collapsed
run2_HECollapse_2018 =  cms.Modifier()
run2_HECollapse_2018.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2017)

# offline 2019
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cuts2019)

# offline phase2 restore what has been studied in the TDR
from Configuration.Eras.Modifier_phase2_hcal_cff import phase2_hcal
phase2_hcal.toModify(particleFlowRecHitHBHE.producers[0].qualityTests[0], cuts = cutsPhase2)
예제 #31
0
                     cms.PSet(name=cms.string("PFRecHitQTestHCALChannel"),
                              maxSeverities=cms.vint32(11),
                              cleaningThresholds=cms.vdouble(0.0),
                              flags=cms.vstring('Standard')))), ))

# offline 2018 -- uncollapsed
from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
from Configuration.ProcessModifiers.run2_HECollapse_2018_cff import run2_HECollapse_2018
(run2_HE_2018 & ~run2_HECollapse_2018).toModify(
    particleFlowRecHitHBHE,
    producers={
        0:
        dict(qualityTests={
            0: dict(cuts={1: dict(threshold=_thresholdsHEphase1)})
        })
    },
)

# offline 2021
from Configuration.Eras.Modifier_run3_HB_cff import run3_HB

run3_HB.toModify(
    particleFlowRecHitHBHE,
    producers={
        0:
        dict(qualityTests={
            0: dict(cuts={0: dict(threshold=_thresholdsHBphase1)})
        })
    },
)
예제 #32
0
import FWCore.ParameterSet.Config as cms

from RecoJets.JetProducers.ak4CaloJets_cfi import ak4CaloJets as _ak4CaloJets
from RecoHI.HiJetAlgos.HiRecoJets_cff import akPu4CaloJets as _akPu4CaloJets
from RecoLocalCalo.CaloTowersCreator.calotowermaker_cfi import calotowermaker
caloTowerForTrk = calotowermaker.clone(hbheInput=cms.InputTag('hbheprereco'))
ak4CaloJetsForTrk = _ak4CaloJets.clone(
    srcPVs=cms.InputTag('firstStepPrimaryVerticesUnsorted'),
    src=cms.InputTag('caloTowerForTrk'))
from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
pp_on_AA_2018.toReplaceWith(
    ak4CaloJetsForTrk,
    _akPu4CaloJets.clone(
        srcPVs=cms.InputTag('firstStepPrimaryVerticesUnsorted'),
        src=cms.InputTag('caloTowerForTrk')))
from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
trackingLowPU.toModify(ak4CaloJetsForTrk, srcPVs="pixelVertices")

caloJetsForTrkTask = cms.Task(caloTowerForTrk, ak4CaloJetsForTrk)
caloJetsForTrk = cms.Sequence(caloJetsForTrkTask)

from Configuration.Eras.Modifier_pf_badHcalMitigation_cff import pf_badHcalMitigation
pf_badHcalMitigation.toModify(caloTowerForTrk,
                              missingHcalRescaleFactorForEcal=1.0)

from Configuration.Eras.Modifier_run3_HB_cff import run3_HB
run3_HB.toModify(caloTowerForTrk, hbheInput=cms.InputTag("hbhereco"))