Functions | |
def | addMixingScenario |
def | defineMixing |
def | printMe |
Variables | |
dictionary | Mixing = {} |
string | MixingDefaultKey = '2012_Summer_50ns_PoissonOOTPU' |
full sim section | |
string | MixingFSDefaultKey = '2012_Summer_inTimeOnly' |
def Mixing::addMixingScenario | ( | label, | |
dict | |||
) |
def Mixing::defineMixing | ( | dict, | |
FS = False |
|||
) |
Definition at line 151 of file Mixing.py.
00152 : 00153 commands=[] 00154 if 'N' in dict: 00155 if FS: 00156 commands.append('process.famosPileUp.PileUpSimulator.averageNumber = cms.double(%f)'%(dict['N'],)) 00157 else: 00158 commands.append('process.mix.input.nbPileupEvents.averageNumber = cms.double(%f)'%(dict['N'],)) 00159 dict.pop('N') 00160 if 'BX' in dict: 00161 commands.append('process.mix.bunchspace = cms.int32(%d)'%(dict['BX'],)) 00162 dict.pop('BX') 00163 if 'B' in dict: 00164 commands.append('process.mix.minBunch = cms.int32(%d)'%(dict['B'][0],)) 00165 commands.append('process.mix.maxBunch = cms.int32(%d)'%(dict['B'][1],)) 00166 dict.pop('B') 00167 if 'F' in dict: 00168 commands.append('process.mix.input.fileNames = cms.untracked.vstring(%s)'%(repr(dict['F']))) 00169 dict.pop('F') 00170 return commands
def Mixing::printMe | ( | ) |
Definition at line 136 of file Mixing.py.
00137 : 00138 global Mixing 00139 keys = Mixing.keys() 00140 keys.sort() 00141 fskeys=[] 00142 for key in keys: 00143 if '_FS' in key: 00144 fskeys.append(key) 00145 else: 00146 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00147 00148 for key in fskeys: 00149 print 'addMixingScenario("%s",%s)'%(key,repr(Mixing[key])) 00150
dictionary Mixing::Mixing = {} |
string Mixing::MixingDefaultKey = '2012_Summer_50ns_PoissonOOTPU' |
string Mixing::MixingFSDefaultKey = '2012_Summer_inTimeOnly' |