CMS 3D CMS Logo

Functions
Mixing Namespace Reference

Functions

def addMixingScenario (label, dict)
 
def defineMixing (dict)
 
def printMe ()
 full sim section More...
 

Function Documentation

def Mixing.addMixingScenario (   label,
  dict 
)

Definition at line 5 of file Mixing.py.

References edm.print().

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 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
def addMixingScenario(label, dict)
Definition: Mixing.py:5
def Mixing.defineMixing (   dict)

Definition at line 182 of file Mixing.py.

Referenced by ConfigBuilder.ConfigBuilder.addStandardSequences().

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

full sim section

Definition at line 175 of file Mixing.py.

References edm.print().

175 def printMe():
176  global Mixing
177  keys = sorted(Mixing.keys())
178  fskeys=[]
179  for key in keys:
180  print('addMixingScenario("%s",%s)'%(key,repr(Mixing[key])))
181 
def printMe()
full sim section
Definition: Mixing.py:175
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65