CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customizePU.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 import FWCore.ParameterSet.Config as cms
3 
4 
5 def customise(process):
6 
7 
8  print "Add "
9  print "process.local = cms.PSet() # for local running "
10  if hasattr(process,"local"):
11  print "#########################################################"
12  print " local run!"
13  print "#########################################################"
14  print
15  print
16  print
17 
18  base="file:/scratch/scratch0/tfruboes/DATA_tmp/RelValMinBias/CMSSW_4_2_0_pre4-MC_42_V1-v1/GEN-SIM-DIGI-RAW-HLTDEBUG/"
19  process.mix.input.fileNames = cms.untracked.vstring(
20  base+'4C824492-2639-E011-9506-001A928116F0.root',
21  base+'9ED6309B-C238-E011-A1D6-003048678ADA.root',
22  base+'487A3591-CA38-E011-92A8-00248C0BE013.root',
23  base+'0E5A4D31-BD38-E011-93B7-0026189437F2.root')
24 
25 
26 
27  process.mix.input.nbPileupEvents.probFunctionVariable = cms.vint32()
28  process.mix.input.nbPileupEvents.probValue = cms.vdouble()
29  #print dir(process.mix.input.nbPileupEvents.probValue)
30  for i in range(0,51):
31  process.mix.input.nbPileupEvents.probFunctionVariable.append(i)
32  val=0.25
33  if i == 0 or i==9 or i==19 or i==29:
34  #val=1
35  #if i==0:
36  process.mix.input.nbPileupEvents.probValue.append(val)
37  else:
38  process.mix.input.nbPileupEvents.probValue.append(0.)
39 
40  return(process)
return((rh^lh)&mask)
def customise
Definition: customizePU.py:5