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