CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mixHitsAndTracksWithPU_cfi.py
Go to the documentation of this file.
2 
3 simEcalUnsuppressedDigis = cms.EDAlias(
4  mix = 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 
11 simHcalUnsuppressedDigis = cms.EDAlias(
12  mix = cms.VPSet(
13  cms.PSet(type = cms.string('HBHEDataFramesSorted')),
14  cms.PSet(type = cms.string('HFDataFramesSorted')),
15  cms.PSet(type = cms.string('HODataFramesSorted')),
16  cms.PSet(type = cms.string('HcalUpgradeDataFramesSorted')),
17  cms.PSet(type = cms.string('ZDCDataFramesSorted'))
18  )
19  )
20 
21 generalTracks = cms.EDAlias(
22  mix = cms.VPSet( cms.PSet(type=cms.string('recoTracks'),
23  fromProductInstance = cms.string('generalTracks'),
24  toProductInstance = cms.string('') ),
25  cms.PSet(type=cms.string('recoTrackExtras'),
26  fromProductInstance = cms.string('generalTracks'),
27  toProductInstance = cms.string('') ),
28  cms.PSet(type=cms.string('TrackingRecHitsOwned'),
29  fromProductInstance = cms.string('generalTracks'),
30  toProductInstance = cms.string('') ) )
31  )
32 
35 ecal_digi_parameters =SimCalorimetry.EcalSimProducers.ecalDigiParameters_cff.ecal_digi_parameters.clone()
36 ecal_digi_parameters.hitsProducer = cms.string('famosSimHits')
37 
38 ecalDigitizer = cms.PSet(ecal_digi_parameters,####FastSim,
39  apd_sim_parameters,
40  ecal_electronics_sim,
41  ecal_cosmics_sim,
42  ecal_sim_parameter_map,
43  ecal_notCont_sim,
44  es_electronics_sim,
45  accumulatorType = cms.string("EcalDigiProducer"),
46  makeDigiSimLinks = cms.untracked.bool(False)
47  )
48 
50 hcalSimBlockFastSim = SimCalorimetry.HcalSimProducers.hcalUnsuppressedDigis_cfi.hcalSimBlock.clone()
51 hcalSimBlockFastSim.hitsProducer = cms.string('famosSimHits')
52 hcalDigitizer = cms.PSet(
53  hcalSimBlockFastSim,
54  accumulatorType = cms.string("HcalDigiProducer"),
55  makeDigiSimLinks = cms.untracked.bool(False))
56 
58 
60 
61 mix = cms.EDProducer("MixingModule",
62  digitizers = cms.PSet(ecal = cms.PSet(ecalDigitizer),
63  hcal = cms.PSet(hcalDigitizer),
64  tracker = cms.PSet(trackAccumulator)),
65  LabelPlayback = cms.string(''),
66  maxBunch = cms.int32(0),
67  minBunch = cms.int32(0), ## in terms of 25nsec
68 
69  bunchspace = cms.int32(250), ##ns
70  mixProdStep1 = cms.bool(False),
71  mixProdStep2 = cms.bool(False),
72 
73  #checktof = cms.bool(False),
74  playback = cms.untracked.bool(False),
75  useCurrentProcessOnly = cms.bool(False),
76 
77  input = cms.SecSource("PoolSource",
78  nbPileupEvents = cms.PSet(
79  probFunctionVariable = cms.vint32(0,1), # dummy value, it is replaced by the cfi that imports this file
80  probValue = cms.vdouble(1,0), # dummy value, it is replaced by the cfi that imports this file
81  histoFileName = cms.untracked.string('histProbFunction.root'),
82  ),
83  type = cms.string('probFunction'),
84  sequential = cms.untracked.bool(False),
85  manage_OOT = cms.untracked.bool(False), ## manage out-of-time pileup
86  ## setting this to True means that the out-of-time pileup
87  ## will have a different distribution than in-time, given
88  ## by what is described on the next line:
89 ## OOT_type = cms.untracked.string('Poisson'), ## generate OOT with a Poisson matching the number chosen for in-time
90  #OOT_type = cms.untracked.string('fixed'), ## generate OOT with a fixed distribution
91  #intFixed_OOT = cms.untracked.int32(2),
92  fileNames = cms.untracked.vstring('root://eoscms//eos/cms/store/user/federica/FastSim/MinBias_620/MinBias_8TeV_cfi_GEN_SIM_RECO.root'),
93  #fileNames = cms.untracked.vstring('root://eoscms//eos/cms/store/user/federica/FastSim/MinBias_620/SingleNuE10_cfi_py_GEN_SIM_RECO.root'),
94  #fileNames = cms.untracked.vstring('root://eoscms//eos/cms/store/user/federica/FastSim/MinBias_620/SingleMuPt10_cfi_py_GEN_SIM_RECO_50evt.root'),
95  #fileNames = cms.untracked.vstring('root://eoscms//eos/cms/store/relval/CMSSW_7_0_0_pre1/RelValProdMinBias/AODSIM/PRE_ST62_V8-v1/00000/CCA02E69-520F-E311-96CA-003048678BB2.root'), # from FullSim
96  #### fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/g/giamman/public/mixing/MinBias_GENSIMRECO.root')
97  ),
98  mixObjects = cms.PSet(
99  mixSH = cms.PSet(
100  mixSimHits
101  ),
102  mixVertices = cms.PSet(
103  mixSimVertices
104  ),
105  mixCH = cms.PSet(
106  mixCaloHits
107  ),
108  mixMuonTracks = cms.PSet(
109  mixMuonSimTracks
110  ),
111  mixTracks = cms.PSet(
112  mixSimTracks
113  ),
114  mixHepMC = cms.PSet(
115  mixHepMCProducts
116  ),
117  mixRecoTracks = cms.PSet(
118  mixReconstructedTracks
119  )
120  )
121 )