CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mix_fromDB_cfi.py
Go to the documentation of this file.
2 
3 # here we define part of the configuration of MixingModule
4 # the rest, notably:
5 # "input","bunchspace","minBunch","maxBunch"
6 # is to be retrieved from database
7 # see: https://twiki.cern.ch/twiki/bin/viewauth/CMS/PdmVRunDependentMC
8 
9 # configuration to model pileup for initial physics phase
12 
13 mix = cms.EDProducer("MixingModule",
14 
15  # this is where you activate reading from DB of: "input","bunchspace","minBunch","maxBunch"
16  readDB = cms.bool(True),
17 
18  LabelPlayback = cms.string(''),
19 
20  maxBunch = cms.int32(314159), ## these three parameters are needed at instantiation time, BUT the actual value will NOT be used
21  minBunch = cms.int32(-314159), ## actual values will be retrieved from database
22  bunchspace = cms.int32(314159), ## [ditto]
23 
24  mixProdStep1 = cms.bool(False),
25  mixProdStep2 = cms.bool(False),
26 
27  playback = cms.untracked.bool(False),
28  useCurrentProcessOnly = cms.bool(False),
29 
30  input = cms.SecSource("PoolSource",
31  type = cms.string('readDB'),
32  sequential = cms.untracked.bool(False),
33  fileNames = FileNames
34  ),
35 
36  mixObjects = cms.PSet(
37  mixCH = cms.PSet(
38  mixCaloHits
39  ),
40  mixTracks = cms.PSet(
41  mixSimTracks
42  ),
43  mixVertices = cms.PSet(
44  mixSimVertices
45  ),
46  mixSH = cms.PSet(
47  mixSimHits
48  ),
49  mixHepMC = cms.PSet(
50  mixHepMCProducts
51  )
52  )
53 )
54 
55 
56 
57 if mix.readDB == cms.bool(True):
58  print ' '
59  print 'MixingModule will be configured from db; this is mix.readDB : ',mix.readDB
60 else :
61  print ' '
62  print 'MixingModule is NOT going to be configured from db; this is mix.readDB : ',mix.readDB