CMS 3D CMS Logo

Functions | Variables
Mixing Namespace Reference

Functions

def addMixingScenario (label, dict)
 
def defineMixing (dict)
 
def printMe ()
 

Variables

 Mixing
 
 MixingDefaultKey
 full sim section More...
 

Function Documentation

◆ addMixingScenario()

def Mixing.addMixingScenario (   label,
  dict 
)

Definition at line 5 of file Mixing.py.

5 def addMixingScenario(label,dict):
6  global Mixing
7  if label in Mixing:
8  print('duplicated definition of',label)
9  else:
10  #try:
11  # m=__import__(dict['file'])
12  #except:
13  # raise Exception('no file'+dict['file']+'to be loaded')
14  Mixing[label]=dict
15 

References edm.print().

◆ defineMixing()

def Mixing.defineMixing (   dict)

Definition at line 186 of file Mixing.py.

186 def defineMixing(dict):
187  commands=[]
188  if 'N' in dict:
189  commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],))
190  dict.pop('N')
191  if 'BX' in dict:
192  commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],))
193  dict.pop('BX')
194  if 'B' in dict:
195  commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],))
196  commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],))
197  dict.pop('B')
198  if 'F' in dict:
199  commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F'])))
200  dict.pop('F')
201  return commands

Referenced by ConfigBuilder.ConfigBuilder.addStandardSequences().

◆ printMe()

def Mixing.printMe ( )

Definition at line 179 of file Mixing.py.

179 def printMe():
180  global Mixing
181  keys = sorted(Mixing.keys())
182  fskeys=[]
183  for key in keys:
184  print('addMixingScenario("%s",%s)'%(key,repr(Mixing[key])))
185 

References edm.print().

Variable Documentation

◆ Mixing

Mixing.Mixing

Definition at line 2 of file Mixing.py.

◆ MixingDefaultKey

Mixing.MixingDefaultKey

full sim section

Definition at line 177 of file Mixing.py.

Mixing.printMe
def printMe()
Definition: Mixing.py:179
Mixing.addMixingScenario
def addMixingScenario(label, dict)
Definition: Mixing.py:5
Mixing.defineMixing
def defineMixing(dict)
Definition: Mixing.py:186
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66