CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mixHitsWithPU_cfi.py
Go to the documentation of this file.
2 
3 simEcalUnsuppressedDigis = cms.EDAlias(
4  mixSimCaloHits = cms.VPSet(
5  cms.PSet(type = cms.string('EBDigiCollection')),
6  cms.PSet(type = cms.string('EEDigiCollection')),
7  cms.PSet(type = cms.string('ESDigiCollection'))
8  )
9  )
10 simHcalUnsuppressedDigis = cms.EDAlias(
11  mixSimCaloHits = cms.VPSet(
12  cms.PSet(type = cms.string('HBHEDataFramesSorted')),
13  cms.PSet(type = cms.string('HFDataFramesSorted')),
14  cms.PSet(type = cms.string('HODataFramesSorted')),
15  cms.PSet(type = cms.string('ZDCDataFramesSorted'))
16  )
17  )
18 
19 g4SimHits = cms.EDAlias(
20  famosSimHits = cms.VPSet( cms.PSet(type = cms.string('PCaloHits')),
21  cms.PSet(type = cms.string('PSimHits')),
22  cms.PSet(type = cms.string('SimTracks')),
23  cms.PSet(type = cms.string('SimVertexs'))
24  #mergedtruth = cms.PSet(trackingParticles)),
25  #mergedtruthMuon = cms.PSet(trackingParticlesMuons)), ### comment out for the moment
26  ),
27  MuonSimHits = cms.VPSet( cms.PSet(type = cms.string('PSimHits'))
28  ),
29  g4SimHits = cms.VPSet( cms.PSet(type = cms.string('PCaloHits'),
30  fromProductInstance = cms.string(''),
31  toProductInstance = cms.string('refined')) )
32  )
33 
34 
35 
38 #simEcalUnsuppressedDigis.hitsProducer = cms.string('g4SimHits')
39 #ecal_digi_parameters.hitsProducer = cms.string('g4SimHits')
40 #ecalDigitizer.hitsProducer = cms.string('g4SimHits')
41 
43 hcalSimBlockFastSim = SimCalorimetry.HcalSimProducers.hcalUnsuppressedDigis_cfi.hcalSimBlock.clone()
44 #hcalSimBlockFastSim.hitsProducer = cms.string('g4SimHits')
45 hcalDigitizer = cms.PSet(
46  hcalSimBlockFastSim,
47  accumulatorType = cms.string("HcalDigiProducer"),
48  makeDigiSimLinks = cms.untracked.bool(False))
49 
51 
52 mixSimCaloHits = cms.EDProducer("MixingModule",
53  digitizers = cms.PSet(ecal = cms.PSet(ecalDigitizer),
54  hcal = cms.PSet(hcalDigitizer)),
55  LabelPlayback = cms.string(''),
56  maxBunch = cms.int32(0),
57  minBunch = cms.int32(0),
58  bunchspace = cms.int32(25),
59  checktof = cms.bool(False),
60  playback = cms.untracked.bool(False),
61  mixProdStep1 = cms.bool(False),
62  mixProdStep2 = cms.bool(False),
63  input = cms.SecSource("PoolSource",
64  type = cms.string('probFunction'),
65  nbPileupEvents = cms.PSet(
66  probFunctionVariable = cms.vint32(),
67  probValue = cms.vdouble(),
68  histoFileName = cms.untracked.string('histProbFunction.root'),
69  ),
70  sequential = cms.untracked.bool(False),
71  manage_OOT = cms.untracked.bool(False), ## manage out-of-time pileup
72  ## setting this to True means that the out-of-time pileup
73  ## will have a different distribution than in-time, given
74  ## by what is described on the next line:
75  OOT_type = cms.untracked.string('None'), ## generate OOT with a Poisson matching the number chosen for in-time
76  #OOT_type = cms.untracked.string('fixed'), ## generate OOT with a fixed distribution
77  #intFixed_OOT = cms.untracked.int32(2),
78 # fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/g/giamman/public/MinBias_8TeV_forPileup.root'), # to be substituted with a (future) relval!!!!
79  fileNames = cms.untracked.vstring('/store/relval/CMSSW_6_2_0_pre3-START61_V11/RelValProdMinBias/GEN-SIM-RAW/v1/00000/4E330A0D-BA82-E211-9A0A-003048F23D68.root','/store/relval/CMSSW_6_2_0_pre3-START61_V11/RelValProdMinBias/GEN-SIM-RAW/v1/00000/DEFF70AE-B982-E211-9C0F-003048F1C4B6.root'), # from FullSim
80  ),
81  mixObjects = cms.PSet(
82  mixSH = cms.PSet(
83  mixSimHits
84  ),
85  mixVertices = cms.PSet(
86  mixSimVertices
87  ),
88  mixCH = cms.PSet(
89  mixCaloHits
90  ),
91  mixMuonTracks = cms.PSet(
92  mixMuonSimTracks
93  ),
94  mixTracks = cms.PSet(
95  mixSimTracks
96  ),
97  mixHepMC = cms.PSet(
98  mixHepMCProducts
99  )
100  )
101 )