CMS 3D CMS Logo

Functions

customizePU Namespace Reference

Functions

def customise

Function Documentation

def customizePU::customise (   process)

Definition at line 5 of file customizePU.py.

00006                       :
00007 
00008 
00009   print "Add "
00010   print "process.local = cms.PSet() # for local running "
00011   if hasattr(process,"local"):
00012     print "#########################################################"
00013     print "  local run!"
00014     print "#########################################################"
00015     print
00016     print
00017     print
00018     
00019     base="file:/scratch/scratch0/tfruboes/DATA_tmp/RelValMinBias/CMSSW_4_2_0_pre4-MC_42_V1-v1/GEN-SIM-DIGI-RAW-HLTDEBUG/"
00020     process.mix.input.fileNames = cms.untracked.vstring(
00021                                        base+'4C824492-2639-E011-9506-001A928116F0.root', 
00022                                        base+'9ED6309B-C238-E011-A1D6-003048678ADA.root', 
00023                                        base+'487A3591-CA38-E011-92A8-00248C0BE013.root', 
00024                                        base+'0E5A4D31-BD38-E011-93B7-0026189437F2.root')
00025 
00026 
00027 
00028   process.mix.input.nbPileupEvents.probFunctionVariable = cms.vint32()
00029   process.mix.input.nbPileupEvents.probValue = cms.vdouble()
00030   #print dir(process.mix.input.nbPileupEvents.probValue)
00031   for i in range(0,51):
00032     process.mix.input.nbPileupEvents.probFunctionVariable.append(i)
00033     val=0.25
00034     if i == 0 or i==9 or i==19 or i==29:
00035     #val=1
00036     #if i==0:
00037       process.mix.input.nbPileupEvents.probValue.append(val)
00038     else:
00039       process.mix.input.nbPileupEvents.probValue.append(0.)
00040 
00041   return(process)