Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("RPCSeed")
0004 
0005 #process.load("FWCore.MessageService.MessageLogger_cfi")
0006 
0007 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0008 
0009 process.source = cms.Source("PoolSource",
0010     # replace 'myfile.root' with the source file you want to use
0011 fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/user/h/hyteng/rpcseed/MCSource/muongun_MC31XV2_1pair_Pt5.0Gev_Eta0.root')
0012 #fileNames = cms.untracked.vstring('file:muongun.root')
0013 )
0014 
0015 # MuonRecoGeometryRecord could be used when include following es_module
0016 process.load("Geometry.MuonCommonData.muonIdealGeometryXML_cfi");
0017 #process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi");
0018 process.load("Geometry.CSCGeometry.cscGeometry_cfi");
0019 process.load("Geometry.DTGeometry.dtGeometry_cfi");
0020 process.load("Geometry.RPCGeometry.rpcGeometry_cfi");
0021 process.load("CalibMuon.Configuration.Muon_FakeAlignment_cff");
0022 
0023 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi");
0024 process.load("RecoMuon.DetLayers.muonDetLayerGeometry_cfi");
0025 
0026 # MagneticField.Engine.volumeBasedMagneticField_cfi is obsolete
0027 #process.load("MagneticField.Engine.volumeBasedMagneticField_cfi");
0028 process.load("Configuration.StandardSequences.MagneticField_cff");
0029 
0030 process.myRPCSeed = cms.EDProducer('RPCSeedGenerator', 
0031         RangeofLayersinBarrel = cms.vuint32(5),
0032         RangeofLayersinEndcap = cms.vuint32(3),
0033         isCosmic = cms.bool(False),
0034         isSpecialLayers = cms.bool(False), 
0035         isMixBarrelwithEndcap = cms.bool(False),
0036         LayersinBarrel = cms.vuint32(1,1,1,1,0,1),
0037         LayersinEndcap = cms.vuint32(1,1,1,1,1,1),
0038         constrainedLayersinBarrel = cms.vuint32(1,1,1,1,0,0),
0039         RPCRecHitsLabel = cms.InputTag("rpcRecHits"),
0040         BxRange = cms.uint32(0),
0041         ClusterSet = cms.vint32(),
0042         MaxDeltaPhi = cms.double(3.14159265359/6),
0043         MaxRSD = cms.double(60.0),
0044         deltaRThreshold = cms.double(3.0),
0045         ZError = cms.double(130.0),
0046         MinDeltaPhi = cms.double(0.01),
0047         AlgorithmType = cms.uint32(3),
0048         autoAlgorithmChoose = cms.bool(False),
0049         MagnecticFieldThreshold = cms.double(0.3),
0050         stepLength = cms.double(1),
0051         sampleCount = cms.uint32(20),
0052         ShareRecHitsNumberThreshold = cms.uint32(1),
0053         isCheckcandidateOverlap = cms.bool(False),
0054         isCheckgoodOverlap = cms.bool(True)
0055 )
0056 
0057 process.content = cms.PSet( 
0058             outputCommands = cms.untracked.vstring('keep *_*_*_RPCSeed',
0059             'keep *_rpcRecHits_*_*',
0060             'keep *_source_*_*',
0061             'keep SimTracks_g4SimHits_*_*',
0062             'keep *_g4SimHits_MuonRPCHits_*',
0063             'keep *_simMuonRPCDigis_RPCDigiSimLink_*')
0064         )
0065 process.out = cms.OutputModule("PoolOutputModule",
0066 #process.content, 
0067         fileName = cms.untracked.string('/tmp/hyteng/muonseed.root')
0068 )
0069 
0070   
0071 process.p = cms.Path(process.myRPCSeed)
0072 
0073 process.e = cms.EndPath(process.out)