00001 import FWCore.ParameterSet.Config as cms 00002 00003 from SimGeneral.MixingModule.mixObjects_cfi import * 00004 eventEmbeddingSourceParameters = cms.PSet( 00005 nbPileupEvents = cms.PSet( 00006 averageNumber = cms.double(1.0) 00007 ), 00008 seed = cms.int32(325), 00009 type = cms.string('fixed') 00010 ) 00011 eventEmbeddingMixParameters = cms.PSet( 00012 LabelPlayback = cms.string(''), 00013 maxBunch = cms.int32(0), 00014 minBunch = cms.int32(0), 00015 Label = cms.string(''), 00016 bunchspace = cms.int32(125), 00017 checktof = cms.untracked.bool(False) 00018 ) 00019 simEventEmbeddingMixParameters = cms.PSet( 00020 eventEmbeddingMixParameters, 00021 mixObjects = cms.PSet( 00022 mixCH = cms.PSet( 00023 mixCaloHits 00024 ), 00025 mixTracks = cms.PSet( 00026 mixSimTracks 00027 ), 00028 mixVertices = cms.PSet( 00029 mixSimVertices 00030 ), 00031 mixSH = cms.PSet( 00032 mixSimHits 00033 ), 00034 mixHepMC = cms.PSet( 00035 mixHepMCProducts 00036 ) 00037 ) 00038 ) 00039 genEventEmbeddingMixParameters = cms.PSet( 00040 eventEmbeddingMixParameters, 00041 mixObjects = cms.PSet( 00042 mySet = cms.PSet( 00043 input = cms.VInputTag(cms.InputTag("source"), cms.InputTag("secsource")), 00044 type = cms.string('HepMCProduct') 00045 ) 00046 ) 00047 ) 00048 00049 mixSim = cms.EDProducer("MixingModule", 00050 simEventEmbeddingMixParameters, 00051 input = cms.SecSource("PoolRASource", 00052 eventEmbeddingSourceParameters, 00053 fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms/store/cmshi/mc/sim/hydjet_sim_x2_c10_d20080425/hydjet_sim_x2_c10_d20080425_r000002.root') 00054 ) 00055 ) 00056 00057 00058 mixGen = cms.EDProducer("MixingModule", 00059 genEventEmbeddingMixParameters, 00060 input = cms.SecSource("PoolRASource", 00061 eventEmbeddingSourceParameters, 00062 fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/cms/store/cmshi/mc/sim/hydjet_sim_x2_c10_d20080425/hydjet_sim_x2_c10_d20080425_r000002.root') 00063 ) 00064 ) 00065