CMS 3D CMS Logo

Functions | Variables

Mixing Namespace Reference

Functions

def addMixingScenario
def defineMixing
def printMe

Variables

dictionary Mixing = {}
string MixingDefaultKey = 'NoPileUp'
 full sim section

Function Documentation

def Mixing::addMixingScenario (   label,
  dict 
)

Definition at line 4 of file Mixing.py.

00005                                  :
00006     global Mixing
00007     if label in Mixing:
00008         print 'duplicated definition of',label
00009     else:
00010         #try:
00011         #    m=__import__(dict['file'])
00012         #except:
00013         #    raise Exception('no file'+dict['file']+'to be loaded')
00014         Mixing[label]=dict

def Mixing::defineMixing (   dict,
  FS = False 
)

Definition at line 111 of file Mixing.py.

00112                                :
00113     commands=[]
00114     if 'N' in dict:
00115         if FS:
00116             commands.append('process.famosPileUp.PileUpSimulator.averageNumber = cms.double(%f)'%(dict['N'],))
00117         else:
00118             commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],))
00119         dict.pop('N')
00120     if 'BX' in dict:
00121         commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],))
00122         dict.pop('BX')
00123     if 'B' in dict:
00124         commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],))
00125         commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],))
00126         dict.pop('B')
00127     if 'F' in dict:
00128         commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F'])))
00129         dict.pop('F')
00130     return commands
def Mixing::printMe ( )

Definition at line 96 of file Mixing.py.

00097              :
00098     global Mixing
00099     keys = Mixing.keys()
00100     keys.sort()
00101     fskeys=[]
00102     for key in keys:
00103         if '_FS' in key:
00104             fskeys.append(key)
00105         else:
00106             print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key]))
00107 
00108     for key in fskeys:
00109         print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key]))
00110 


Variable Documentation

dictionary Mixing::Mixing = {}

Definition at line 1 of file Mixing.py.

string Mixing::MixingDefaultKey = 'NoPileUp'

full sim section

fastsim section addMixingScenario("FS_NoPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 0}) addMixingScenario("FS_156BxLumiPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 2}) addMixingScenario("FS_HighLumiPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 20}) addMixingScenario("FS_InitialPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 3.8}) addMixingScenario("FS_LowLumiPileUp",{'file': 'FastSimulation.PileUpProducer.PileUpSimulator_cff', 'N': 7.1}) slch section

Definition at line 94 of file Mixing.py.