Functions | |
def | addMixingScenario |
def | defineMixing |
def | printMe |
full sim section | |
Variables | |
dictionary | Mixing = {} |
def Mixing::addMixingScenario | ( | label, | |
dict | |||
) |
def Mixing::defineMixing | ( | dict, | |
FS = False |
|||
) |
Definition at line 100 of file Mixing.py.
00101 : 00102 commands=[] 00103 if 'N' in dict: 00104 if FS: 00105 commands.append('process.famosPileUp.PileUpSimulator.averageNumber = cms.double(%f)'%(dict['N'],)) 00106 else: 00107 commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],)) 00108 dict.pop('N') 00109 if 'BX' in dict: 00110 commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],)) 00111 dict.pop('BX') 00112 if 'B' in dict: 00113 commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],)) 00114 commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],)) 00115 dict.pop('B') 00116 if 'F' in dict: 00117 commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F']))) 00118 dict.pop('F') 00119 return commands
def Mixing::printMe | ( | ) |
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})
Definition at line 85 of file Mixing.py.
00086 : 00087 global Mixing 00088 keys = Mixing.keys() 00089 keys.sort() 00090 fskeys=[] 00091 for key in keys: 00092 if '_FS' in key: 00093 fskeys.append(key) 00094 else: 00095 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00096 00097 for key in fskeys: 00098 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00099
dictionary Mixing::Mixing = {} |