8 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'strip'):
9 print(
"activating SiStrip APV Dynamic Gain simulation")
10 process.mix.digitizers.strip.includeAPVSimulation =
True 11 if hasattr(process,
"mixData")
and hasattr(process.mixData,
"workers")
and hasattr(process.mixData.workers,
"strip"):
12 print(
"activating SiStrip APV Dynamic Gain simulation (premixing)")
13 process.mixData.workers.strip.includeAPVSimulation =
True 15 if not hasattr(process.GlobalTag,
'toGet'):
16 process.GlobalTag.toGet=cms.VPSet()
18 process.GlobalTag.toGet.extend(cms.VPSet(cms.PSet(record = cms.string(
'SiStripApvSimulationParametersRcd'),
19 tag = cms.string(
'SiStripApvSimulationParameters_2016preVFP_v1'),
20 connect = cms.string(
'frontier://FrontierPrep/CMS_CONDITIONS'))
24 S & print(S &os, JobReport::InputFile const &f)
def activateSiStripAPVDynamicGain(process)