Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # configuration to model pileup for initial physics phase
0004 #from SimGeneral.MixingModule.mixObjects_cfi import theMixObjects#, run2_GEM_2017, premix_stage1
0005 from SimGeneral.MixingModule.mixPoolSource_cfi import *
0006 #from SimGeneral.MixingModule.digitizers_cfi import theDigitizers
0007 
0008 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'])
0009 
0010 mix = cms.EDProducer("MixingModule",
0011     skipSignal = cms.bool(True),
0012 
0013     digitizers = cms.PSet(),#theDigitizers),
0014     LabelPlayback = cms.string(''),
0015     maxBunch = cms.int32(0),
0016     minBunch = cms.int32(0), ## in terms of 25 nsec
0017     bunchspace = cms.int32(1), ##ns
0018     mixProdStep1 = cms.bool(False),
0019     mixProdStep2 = cms.bool(False),
0020 
0021     playback = cms.untracked.bool(False),
0022     useCurrentProcessOnly = cms.bool(False),
0023 
0024     input = cms.SecSource("EmbeddedRootSource",
0025         nbPileupEvents = cms.PSet(
0026             averageNumber = cms.double(1.0)
0027         ),
0028         type = cms.string('fixed'),
0029                           sequential = cms.untracked.bool(False),
0030         fileNames = FileNames
0031     ),
0032     
0033     mixObjects = cms.PSet(
0034 
0035 #   theMixObjects
0036 
0037         mixHepMC = cms.PSet(
0038            input = cms.VInputTag(
0039             cms.InputTag("generatorSmeared","",cms.InputTag.skipCurrentProcess()),
0040             cms.InputTag("generator","unsmeared",cms.InputTag.skipCurrentProcess()),
0041             cms.InputTag("generator","",cms.InputTag.skipCurrentProcess())
0042             ),
0043 
0044             makeCrossingFrame = cms.untracked.bool(True),
0045             type = cms.string('HepMCProduct')
0046             )
0047         )
0048 )
0049 
0050 '''
0051 #mix.digitizers.castor.hitsProducer = cms.InputTag("g4SimHits","CastorFI",cms.InputTag.skipCurrentProcess())
0052 #mix.digitizers.puVtx.vtxTag = cms.InputTag("generatorSmeared","",cms.InputTag.skipCurrentProcess())
0053 #mix.digitizers.puVtx.vtxFallbackTag = cms.InputTag("generator","",cms.InputTag.skipCurrentProcess())
0054 
0055 mix.mixObjects.mixCH.input = cms.VInputTag(
0056         #cms.InputTag("g4SimHits","CaloHitsTk"), cms.InputTag("g4SimHits","CastorBU"), cms.InputTag("g4SimHits","CastorPL"), cms.InputTag("g4SimHits","CastorTU"), 
0057             cms.InputTag("g4SimHits","CastorFI",cms.InputTag.skipCurrentProcess()),
0058             cms.InputTag("g4SimHits","EcalHitsEB",cms.InputTag.skipCurrentProcess()), 
0059         cms.InputTag("g4SimHits","EcalHitsEE",cms.InputTag.skipCurrentProcess()), 
0060         cms.InputTag("g4SimHits","EcalHitsES",cms.InputTag.skipCurrentProcess()),
0061             #cms.InputTag("g4SimHits","EcalTBH4BeamHits"), cms.InputTag("g4SimHits","HcalTB06BeamHits"),
0062             cms.InputTag("g4SimHits","HcalHits",cms.InputTag.skipCurrentProcess()),
0063             cms.InputTag("g4SimHits","ZDCHITS",cms.InputTag.skipCurrentProcess())
0064         )
0065 
0066 mix.mixObjects.mixTracks.input = cms.VInputTag(
0067         cms.InputTag("g4SimHits","",cms.InputTag.skipCurrentProcess())               
0068         )
0069 
0070 mix.mixObjects.mixVertices.input = cms.VInputTag(
0071                 cms.InputTag("g4SimHits","",cms.InputTag.skipCurrentProcess())
0072                 )
0073 
0074 mix.mixObjects.mixSH.input = cms.VInputTag(
0075                 #cms.InputTag("g4SimHits","BSCHits"), cms.InputTag("g4SimHits","BCM1FHits"), cms.InputTag("g4SimHits","PLTHits"), cms.InputTag("g4SimHits","FP420SI"),
0076             cms.InputTag("g4SimHits","MuonCSCHits",cms.InputTag.skipCurrentProcess()), 
0077         cms.InputTag("g4SimHits","MuonDTHits",cms.InputTag.skipCurrentProcess()), 
0078         cms.InputTag("g4SimHits","MuonRPCHits",cms.InputTag.skipCurrentProcess()),
0079         #cms.InputTag("g4SimHits","TotemHitsRP"), cms.InputTag("g4SimHits","TotemHitsT1"), cms.InputTag("g4SimHits","TotemHitsT2Gem"),
0080             cms.InputTag("g4SimHits","TrackerHitsPixelBarrelHighTof",cms.InputTag.skipCurrentProcess()), 
0081         cms.InputTag("g4SimHits","TrackerHitsPixelBarrelLowTof",cms.InputTag.skipCurrentProcess()),
0082             cms.InputTag("g4SimHits","TrackerHitsPixelEndcapHighTof",cms.InputTag.skipCurrentProcess()), 
0083         cms.InputTag("g4SimHits","TrackerHitsPixelEndcapLowTof",cms.InputTag.skipCurrentProcess()), 
0084         cms.InputTag("g4SimHits","TrackerHitsTECHighTof",cms.InputTag.skipCurrentProcess()), 
0085         cms.InputTag("g4SimHits","TrackerHitsTECLowTof",cms.InputTag.skipCurrentProcess()), 
0086         cms.InputTag("g4SimHits","TrackerHitsTIBHighTof",cms.InputTag.skipCurrentProcess()),
0087             cms.InputTag("g4SimHits","TrackerHitsTIBLowTof",cms.InputTag.skipCurrentProcess()), 
0088         cms.InputTag("g4SimHits","TrackerHitsTIDHighTof",cms.InputTag.skipCurrentProcess()), 
0089         cms.InputTag("g4SimHits","TrackerHitsTIDLowTof",cms.InputTag.skipCurrentProcess()), 
0090         cms.InputTag("g4SimHits","TrackerHitsTOBHighTof",cms.InputTag.skipCurrentProcess()), 
0091         cms.InputTag("g4SimHits","TrackerHitsTOBLowTof",cms.InputTag.skipCurrentProcess())
0092         )
0093 
0094 mix.mixObjects.mixHepMC.input = cms.VInputTag(
0095                cms.InputTag("generatorSmeared","",cms.InputTag.skipCurrentProcess()),
0096                cms.InputTag("generator","unsmeared",cms.InputTag.skipCurrentProcess()),
0097                cms.InputTag("generator","",cms.InputTag.skipCurrentProcess())
0098                )
0099 
0100 mix.mixObjects.mixHepMC.makeCrossingFrame = True
0101 
0102 '''
0103 
0104 mixGen = cms.Sequence(mix)