CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HiMixEmbGEN_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#, run2_GEM_2017, premix_stage1
6 #from SimGeneral.MixingModule.digitizers_cfi import theDigitizers
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 mix = cms.EDProducer("MixingModule",
11  skipSignal = cms.bool(True),
12 
13  digitizers = cms.PSet(),#theDigitizers),
14  LabelPlayback = cms.string(''),
15  maxBunch = cms.int32(0),
16  minBunch = cms.int32(0), ## in terms of 25 nsec
17  bunchspace = cms.int32(1), ##ns
18  mixProdStep1 = cms.bool(False),
19  mixProdStep2 = cms.bool(False),
20 
21  playback = cms.untracked.bool(False),
22  useCurrentProcessOnly = cms.bool(False),
23 
24  input = cms.SecSource("EmbeddedRootSource",
25  nbPileupEvents = cms.PSet(
26  averageNumber = cms.double(1.0)
27  ),
28  type = cms.string('fixed'),
29  sequential = cms.untracked.bool(False),
30  fileNames = FileNames
31  ),
32 
33  mixObjects = cms.PSet(
34 
35 # theMixObjects
36 
37  mixHepMC = cms.PSet(
38  input = cms.VInputTag(
39  cms.InputTag("generatorSmeared","",cms.InputTag.skipCurrentProcess()),
40  cms.InputTag("generator","unsmeared",cms.InputTag.skipCurrentProcess()),
41  cms.InputTag("generator","",cms.InputTag.skipCurrentProcess())
42  ),
43 
44  makeCrossingFrame = cms.untracked.bool(True),
45  type = cms.string('HepMCProduct')
46  )
47  )
48 )
49 
50 '''
51 #mix.digitizers.castor.hitsProducer = cms.InputTag("g4SimHits","CastorFI",cms.InputTag.skipCurrentProcess())
52 #mix.digitizers.puVtx.vtxTag = cms.InputTag("generatorSmeared","",cms.InputTag.skipCurrentProcess())
53 #mix.digitizers.puVtx.vtxFallbackTag = cms.InputTag("generator","",cms.InputTag.skipCurrentProcess())
54 
55 mix.mixObjects.mixCH.input = cms.VInputTag(
56  #cms.InputTag("g4SimHits","CaloHitsTk"), cms.InputTag("g4SimHits","CastorBU"), cms.InputTag("g4SimHits","CastorPL"), cms.InputTag("g4SimHits","CastorTU"),
57  cms.InputTag("g4SimHits","CastorFI",cms.InputTag.skipCurrentProcess()),
58  cms.InputTag("g4SimHits","EcalHitsEB",cms.InputTag.skipCurrentProcess()),
59  cms.InputTag("g4SimHits","EcalHitsEE",cms.InputTag.skipCurrentProcess()),
60  cms.InputTag("g4SimHits","EcalHitsES",cms.InputTag.skipCurrentProcess()),
61  #cms.InputTag("g4SimHits","EcalTBH4BeamHits"), cms.InputTag("g4SimHits","HcalTB06BeamHits"),
62  cms.InputTag("g4SimHits","HcalHits",cms.InputTag.skipCurrentProcess()),
63  cms.InputTag("g4SimHits","ZDCHITS",cms.InputTag.skipCurrentProcess())
64  )
65 
66 mix.mixObjects.mixTracks.input = cms.VInputTag(
67  cms.InputTag("g4SimHits","",cms.InputTag.skipCurrentProcess())
68  )
69 
70 mix.mixObjects.mixVertices.input = cms.VInputTag(
71  cms.InputTag("g4SimHits","",cms.InputTag.skipCurrentProcess())
72  )
73 
74 mix.mixObjects.mixSH.input = cms.VInputTag(
75  #cms.InputTag("g4SimHits","BSCHits"), cms.InputTag("g4SimHits","BCM1FHits"), cms.InputTag("g4SimHits","PLTHits"), cms.InputTag("g4SimHits","FP420SI"),
76  cms.InputTag("g4SimHits","MuonCSCHits",cms.InputTag.skipCurrentProcess()),
77  cms.InputTag("g4SimHits","MuonDTHits",cms.InputTag.skipCurrentProcess()),
78  cms.InputTag("g4SimHits","MuonRPCHits",cms.InputTag.skipCurrentProcess()),
79  #cms.InputTag("g4SimHits","TotemHitsRP"), cms.InputTag("g4SimHits","TotemHitsT1"), cms.InputTag("g4SimHits","TotemHitsT2Gem"),
80  cms.InputTag("g4SimHits","TrackerHitsPixelBarrelHighTof",cms.InputTag.skipCurrentProcess()),
81  cms.InputTag("g4SimHits","TrackerHitsPixelBarrelLowTof",cms.InputTag.skipCurrentProcess()),
82  cms.InputTag("g4SimHits","TrackerHitsPixelEndcapHighTof",cms.InputTag.skipCurrentProcess()),
83  cms.InputTag("g4SimHits","TrackerHitsPixelEndcapLowTof",cms.InputTag.skipCurrentProcess()),
84  cms.InputTag("g4SimHits","TrackerHitsTECHighTof",cms.InputTag.skipCurrentProcess()),
85  cms.InputTag("g4SimHits","TrackerHitsTECLowTof",cms.InputTag.skipCurrentProcess()),
86  cms.InputTag("g4SimHits","TrackerHitsTIBHighTof",cms.InputTag.skipCurrentProcess()),
87  cms.InputTag("g4SimHits","TrackerHitsTIBLowTof",cms.InputTag.skipCurrentProcess()),
88  cms.InputTag("g4SimHits","TrackerHitsTIDHighTof",cms.InputTag.skipCurrentProcess()),
89  cms.InputTag("g4SimHits","TrackerHitsTIDLowTof",cms.InputTag.skipCurrentProcess()),
90  cms.InputTag("g4SimHits","TrackerHitsTOBHighTof",cms.InputTag.skipCurrentProcess()),
91  cms.InputTag("g4SimHits","TrackerHitsTOBLowTof",cms.InputTag.skipCurrentProcess())
92  )
93 
94 mix.mixObjects.mixHepMC.input = cms.VInputTag(
95  cms.InputTag("generatorSmeared","",cms.InputTag.skipCurrentProcess()),
96  cms.InputTag("generator","unsmeared",cms.InputTag.skipCurrentProcess()),
97  cms.InputTag("generator","",cms.InputTag.skipCurrentProcess())
98  )
99 
100 mix.mixObjects.mixHepMC.makeCrossingFrame = True
101 
102 '''
103 
104 mixGen = cms.Sequence(mix)