CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiEventMixing_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # configuration to model pileup for initial physics phase
4 from SimGeneral.MixingModule.mixObjects_cfi import theMixObjects
7 
8 FileNames = cms.untracked.vstring(['/store/relval/CMSSW_7_2_0_pre7/RelValQCD_Pt_80_120_13/GEN-SIM/PRE_LS172_V11-v1/00000/16547ECB-9C4B-E411-A815-0025905964BC.root', '/store/relval/CMSSW_7_2_0_pre7/RelValQCD_Pt_80_120_13/GEN-SIM/PRE_LS172_V11-v1/00000/86C3C326-9F4B-E411-903D-0025905A48EC.root', '/store/relval/CMSSW_7_2_0_pre7/RelValQCD_Pt_80_120_13/GEN-SIM/PRE_LS172_V11-v1/00000/C48D8223-9F4B-E411-BC37-0026189438DC.root', '/store/relval/CMSSW_7_2_0_pre7/RelValQCD_Pt_80_120_13/GEN-SIM/PRE_LS172_V11-v1/00000/D070AB62-9D4B-E411-9766-002618FDA207.root'])
9 
10 mixGen = cms.EDProducer("MixingModule",
11  digitizers = cms.PSet(),
12  LabelPlayback = cms.string(''),
13  maxBunch = cms.int32(0),
14  minBunch = cms.int32(0), ## in terms of 25 nsec
15  bunchspace = cms.int32(1), ##ns
16  mixProdStep1 = cms.bool(False),
17  mixProdStep2 = cms.bool(False),
18 
19  playback = cms.untracked.bool(False),
20  useCurrentProcessOnly = cms.bool(False),
21 
22  input = cms.SecSource("EmbeddedRootSource",
23  nbPileupEvents = cms.PSet(
24  averageNumber = cms.double(1.0)
25  ),
26  type = cms.string('fixed'),
27  sequential = cms.untracked.bool(False),
28  fileNames = FileNames
29  ),
30 
31  mixObjects = cms.PSet(
32  mixHepMC = cms.PSet(
33  input = cms.VInputTag(cms.InputTag("generatorSmeared","",cms.InputTag.skipCurrentProcess()),cms.InputTag("generator","unsmeared"),cms.InputTag("generator","",cms.InputTag.skipCurrentProcess())),
34  makeCrossingFrame = cms.untracked.bool(True),
35  type = cms.string('HepMCProduct')
36  )
37  ),
38 )
39 
40 # How to??
41 #for a in self.aliases: delattr(self, a)
42 # here??
43 
44 mix = cms.EDProducer("MixingModule",
45  digitizers = cms.PSet(theDigitizers),
46  LabelPlayback = cms.string('mixGen'),
47  maxBunch = cms.int32(0),
48  minBunch = cms.int32(0), ## in terms of 25 nsec
49 
50  bunchspace = cms.int32(1), ##ns
51  mixProdStep1 = cms.bool(False),
52  mixProdStep2 = cms.bool(False),
53 
54  playback = cms.untracked.bool(True),
55  useCurrentProcessOnly = cms.bool(False),
56 
57  input = cms.SecSource("EmbeddedRootSource",
58  nbPileupEvents = cms.PSet(
59  averageNumber = cms.double(1.0)
60  ),
61  type = cms.string('fixed'),
62  sequential = cms.untracked.bool(False),
63  fileNames = FileNames
64  ),
65  mixObjects = cms.PSet(theMixObjects)
66 )
67 
68 mixVal = mixGen.clone(playback = cms.untracked.bool(True),LabelPlayback = cms.string('mixGen'))
69