CMS 3D CMS Logo

Functions
customizeSiStripAPVDynamicGainSimulation Namespace Reference

Functions

def activateSiStripAPVDynamicGain (process)
 

Function Documentation

def customizeSiStripAPVDynamicGainSimulation.activateSiStripAPVDynamicGain (   process)

Definition at line 6 of file customizeSiStripAPVDynamicGainSimulation.py.

References edm.print().

7 
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
14 
15  if not hasattr(process.GlobalTag,'toGet'):
16  process.GlobalTag.toGet=cms.VPSet()
17 
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'))
21  )
22  )
23  return process
24 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66