Functions | |
def | addMixingScenario |
def | defineMixing |
def | printMe |
Variables | |
dictionary | Mixing = {} |
string | MixingDefaultKey = 'NoPileUp' |
full sim section |
def Mixing::addMixingScenario | ( | label, | |
dict | |||
) |
def Mixing::defineMixing | ( | dict, | |
FS = False |
|||
) |
Definition at line 131 of file Mixing.py.
00132 : 00133 commands=[] 00134 if 'N' in dict: 00135 if FS: 00136 commands.append('process.famosPileUp.PileUpSimulator.averageNumber = cms.double(%f)'%(dict['N'],)) 00137 else: 00138 commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],)) 00139 dict.pop('N') 00140 if 'BX' in dict: 00141 commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],)) 00142 dict.pop('BX') 00143 if 'B' in dict: 00144 commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],)) 00145 commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],)) 00146 dict.pop('B') 00147 if 'F' in dict: 00148 commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F']))) 00149 dict.pop('F') 00150 return commands
def Mixing::printMe | ( | ) |
Definition at line 116 of file Mixing.py.
00117 : 00118 global Mixing 00119 keys = Mixing.keys() 00120 keys.sort() 00121 fskeys=[] 00122 for key in keys: 00123 if '_FS' in key: 00124 fskeys.append(key) 00125 else: 00126 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00127 00128 for key in fskeys: 00129 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00130
dictionary Mixing::Mixing = {} |
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}) slhc section