CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customizePU Namespace Reference

Functions

def customise
 

Function Documentation

def customizePU.customise (   process)

Definition at line 5 of file customizePU.py.

References reco.return().

5 
6 def customise(process):
7 
8 
9  print "Add "
10  print "process.local = cms.PSet() # for local running "
11  if hasattr(process,"local"):
12  print "#########################################################"
13  print " local run!"
14  print "#########################################################"
15  print
16  print
17  print
18 
19  base="file:/scratch/scratch0/tfruboes/DATA_tmp/RelValMinBias/CMSSW_4_2_0_pre4-MC_42_V1-v1/GEN-SIM-DIGI-RAW-HLTDEBUG/"
20  process.mix.input.fileNames = cms.untracked.vstring(
21  base+'4C824492-2639-E011-9506-001A928116F0.root',
22  base+'9ED6309B-C238-E011-A1D6-003048678ADA.root',
23  base+'487A3591-CA38-E011-92A8-00248C0BE013.root',
24  base+'0E5A4D31-BD38-E011-93B7-0026189437F2.root')
25 
26 
27 
28  process.mix.input.nbPileupEvents.probFunctionVariable = cms.vint32()
29  process.mix.input.nbPileupEvents.probValue = cms.vdouble()
30  #print dir(process.mix.input.nbPileupEvents.probValue)
31  for i in range(0,51):
32  process.mix.input.nbPileupEvents.probFunctionVariable.append(i)
33  val=0.25
34  if i == 0 or i==9 or i==19 or i==29:
35  #val=1
36  #if i==0:
37  process.mix.input.nbPileupEvents.probValue.append(val)
38  else:
39  process.mix.input.nbPileupEvents.probValue.append(0.)
40 
41  return(process)
def customise
Definition: customizePU.py:5
return(e1-e2)*(e1-e2)+dp *dp