Пример #1
0
def ageHcal(process,lumi):
    process=aging.ageHcal(process,lumi)
    return process
Пример #2
0
def ageHcal(process, lumi):
    process = aging.ageHcal(process, lumi)
    return process
# customisation of the process.

# Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.combinedCustoms
from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2017, cust_2019

#call to customisation function cust_20YEAR imported from SLHCUpgradeSimulations.Configuration.combinedCustoms
if cfgyear == 17:
    process = cust_2017(process)
elif cfgyear == 19:
    process = cust_2019(process)

# Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.aging
from SLHCUpgradeSimulations.Configuration.aging import ageHcal, ageEcal, turn_off_HE_aging

#call to customisation functions
process = ageHcal(process, LUMIDRK)
process = ageEcal(process, LUMIDRK)

if YEAR == 21:
    process = turn_off_HE_aging(process)

#ECAL customizations
if not hasattr(process.GlobalTag, 'toGet'):
    process.GlobalTag.toGet = cms.VPSet()

#globaltag conditions
if LUMIDRK == 100:
    process.GlobalTag.toGet.extend([
        cms.PSet(record=cms.string("EcalTPGLinearizationConstRcd"),
                 tag=cms.string(
                     "EcalTPGLinearizationConst_TLLUMIDRK_ILINSTLUMI_v1_mc"),