CMS 3D CMS Logo

mix_fromDB_cfi.py
Go to the documentation of this file.
1 from __future__ import print_function
2 import FWCore.ParameterSet.Config as cms
3 
4 # here we define part of the configuration of MixingModule
5 # the rest, notably:
6 # "input","bunchspace","minBunch","maxBunch"
7 # is to be retrieved from database
8 # see: https://twiki.cern.ch/twiki/bin/viewauth/CMS/PdmVRunDependentMC
9 
10 # configuration to model pileup for initial physics phase
11 from SimGeneral.MixingModule.mixObjects_cfi import theMixObjects
14 
15 mix = cms.EDProducer("MixingModule",
16 
17  # this is where you activate reading from DB of: "input","bunchspace","minBunch","maxBunch"
18  readDB = cms.bool(True),
19 
20  digitizers = cms.PSet(theDigitizers),
21  LabelPlayback = cms.string(''),
22  maxBunch = cms.int32(314159),
23  minBunch = cms.int32(-314159),
24 
25  bunchspace = cms.int32(314159),
26  mixProdStep1 = cms.bool(False),
27  mixProdStep2 = cms.bool(False),
28 
29  playback = cms.untracked.bool(False),
30  useCurrentProcessOnly = cms.bool(False),
31 
32  input = cms.SecSource("EmbeddedRootSource",
33  type = cms.string('readDB'),
34  sequential = cms.untracked.bool(False),
35  fileNames = FileNames
36  ),
37 
38  mixObjects = cms.PSet(theMixObjects)
39  #mixObjects = cms.PSet(
40  # mixCH = cms.PSet(
41  # mixCaloHits
42  # ),
43  # mixTracks = cms.PSet(
44  # mixSimTracks
45  # ),
46  # mixVertices = cms.PSet(
47  # mixSimVertices
48  # ),
49  # mixSH = cms.PSet(
50  # mixSimHits
51  # ),
52  # mixHepMC = cms.PSet(
53  # mixHepMCProducts
54  # )
55  #)
56 )
57 
58 
59 
60 if mix.readDB == cms.bool(True):
61  print(' ')
62  print('MixingModule will be configured from db; this is mix.readDB : ',mix.readDB)
63 else :
64  print(' ')
65  print('MixingModule is NOT going to be configured from db; this is mix.readDB : ',mix.readDB)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47