Пример #1
0
phase2_hgcalV9.toModify(
    caloParticles,
    simHitCollections=dict(
        hgc={2: cms.InputTag('g4SimHits', 'HGCHitsHEback')}),
)

# Uncommented the following block before part 2 as per Maria's instruction
from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose

phase2_hfnose.toModify(
    caloParticles,
    simHitCollections=dict(hgc=caloParticles.simHitCollections.hgc +
                           [cms.InputTag('g4SimHits', 'HFNoseHits')],
                           hcal=cms.VInputTag(
                               cms.InputTag('g4SimHits', 'HcalHits'))))

from Configuration.ProcessModifiers.run3_ecalclustering_cff import run3_ecalclustering

run3_ecalclustering.toModify(
    caloParticles,
    simHitCollections=cms.PSet(
        ecal=cms.VInputTag(cms.InputTag('g4SimHits', 'EcalHitsEE'),
                           cms.InputTag('g4SimHits', 'EcalHitsEB'),
                           cms.InputTag('g4SimHits', 'EcalHitsES'))))

from Configuration.Eras.Modifier_fastSim_cff import fastSim

fastSim.toReplaceWith(caloParticles,
                      cms.PSet())  # don't allow this to run in fastsim
Пример #2
0
(premix_stage2 & phase2_timing_layer).toModify(theDigitizers,
    fastTimingLayer = dict(
        barrelDigitizer = dict(premixStage1 = True),
        endcapDigitizer = dict(premixStage1 = True)
    )
)

from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
phase2_tracker.toModify(theDigitizers,
                        strip = None)

theDigitizersValid = cms.PSet(theDigitizers)
theDigitizers.mergedtruth.select.signalOnlyTP = True

from Configuration.ProcessModifiers.run3_ecalclustering_cff import run3_ecalclustering
run3_ecalclustering.toModify( theDigitizersValid, 
                              calotruth = cms.PSet( caloParticles ) )

phase2_timing.toModify( theDigitizersValid.mergedtruth,
                        createInitialVertexCollection = cms.bool(True) )

from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
def _customizePremixStage1(mod):
    # To avoid this if-else structure we'd need an "_InverseModifier"
    # to customize pixel/strip for everything else than fastSim.
    if hasattr(mod, "pixel"):
        if hasattr(mod.pixel, "AlgorithmCommon"):
            mod.pixel.AlgorithmCommon.makeDigiSimLinks = True
        else:
            mod.pixel.makeDigiSimLinks = True
    if hasattr(mod, "strip"):
        mod.strip.makeDigiSimLinks = True