Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("USER")
0004 
0005 process.load("Configuration/StandardSequences/Geometry_cff")
0006 process.load("Configuration/StandardSequences/MagneticField_38T_cff")
0007 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0008 process.GlobalTag.globaltag = 'CRUZET4_V5P::All'
0009 process.prefer("GlobalTag")
0010 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0011 process.load("Configuration/StandardSequences/ReconstructionCosmics_cff")
0012 
0013 process.source = cms.Source("PoolSource",
0014     fileNames = cms.untracked.vstring(
0015        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00718365-02A6-DD11-86BC-000423D98E54.root',
0016        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00725EB9-22A6-DD11-8EC1-001617DC1F70.root',
0017        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00A93B38-26A6-DD11-8676-000423D98F98.root',
0018        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00EB701D-24A6-DD11-9AA1-001617E30D38.root',
0019        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00FC7A6B-E3A5-DD11-A4D1-001617DF785A.root',
0020        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0239F671-DCA5-DD11-9268-000423D98844.root',
0021        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02450760-F4A5-DD11-B709-000423D6BA18.root',
0022        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0260B87A-49A6-DD11-9731-000423D992A4.root',
0023        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02914A0F-29A6-DD11-BD17-000423D985B0.root',
0024        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02C0EAC4-62A6-DD11-868F-000423D6CA02.root',
0025        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02CD99AF-1BA6-DD11-B71E-000423D992DC.root',
0026        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02F1E96F-50A6-DD11-938D-0019DB29C614.root',
0027        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02FA5CED-56A6-DD11-8F63-001617E30D52.root',
0028        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/044D708C-5EA6-DD11-BFA5-0030487D0D3A.root',
0029        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0457B4E8-13A6-DD11-816E-000423D98920.root',
0030        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/046760F2-0CA6-DD11-B377-000423D94A20.root',
0031        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/04766D63-5CA6-DD11-B07D-000423D98834.root',
0032        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/047C6309-29A6-DD11-AC8E-000423D6B42C.root',
0033        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/04861900-22A6-DD11-90DA-000423D944F8.root',
0034        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/04B99356-5AA6-DD11-950F-0030487A3C9A.root',
0035        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/06192894-3FA6-DD11-9A2B-000423D990CC.root',
0036        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/062D36C0-3CA6-DD11-BB50-001617C3B69C.root',
0037        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/066D62D5-56A6-DD11-970B-001617C3B6CC.root',
0038        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0681071B-5DA6-DD11-A9A1-000423D99660.root',
0039        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0684A267-09A6-DD11-B4FA-000423D98B5C.root',
0040        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/06AB249F-46A6-DD11-96C1-000423D99CEE.root',
0041        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/06BFD55E-1CA6-DD11-AC5A-001D09F2915A.root',
0042        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/08003087-DEA5-DD11-A4EE-000423D98B5C.root',
0043        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0866B1DE-FEA5-DD11-8F9F-0030487C6062.root'
0044       )
0045 )
0046 process.maxEvents = cms.untracked.PSet(
0047     input = cms.untracked.int32(3000)
0048 )
0049 
0050 #### output module
0051 process.load("Configuration.EventContent.EventContentCosmics_cff")
0052 process.FEVT = cms.OutputModule("PoolOutputModule",
0053     process.FEVTEventContent,
0054     dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW')),
0055     fileName = cms.untracked.string("RPCNoise_test.root"),
0056     SelectEvents = cms.untracked.PSet(
0057        SelectEvents = cms.vstring('noiseEvents')
0058        )
0059 )
0060 process.FEVT.outputCommands.append('keep *_*_*_*')
0061 process.FEVT.outputCommands.append('keep FEDRawDataCollection_*_*_*')
0062 process.FEVT.outputCommands.append('keep *_muonCSCDigis_*_*')
0063 process.FEVT.outputCommands.append('keep *_muonDTDigis_*_*')
0064 process.FEVT.outputCommands.append('keep *_muonRPCDigis_*_*')
0065 process.FEVT.outputCommands.append('keep *_rpcRecHits_*_*')
0066 
0067 
0068 #============================================================
0069 # the filter
0070 #============================================================
0071 process.check = cms.EDFilter(
0072     "RPCNoise",
0073     fillHistograms = cms.untracked.bool(True),
0074     histogramFileName = cms.untracked.string('histos_test.root'),
0075     nRPCHitsCut  = cms.untracked.int32(40),
0076     nCSCWiresCut  = cms.untracked.int32(10),
0077     nCSCStripsCut  = cms.untracked.int32(50),
0078     nDTDigisCut  = cms.untracked.int32(40)
0079 )
0080 
0081 #process.noiseEvents = cms.Path(process.muonCSCDigis *
0082 #                               process.muonRPCDigis *
0083 #                               process.rpcRecHits *
0084 #                               process.check)
0085 
0086 
0087 process.muondigis = cms.Sequence(process.csctfDigis+process.dttfDigis+process.gctDigis+process.gtDigis+
0088                                  process.gtEvmDigis+
0089                                  process.muonCSCDigis+process.muonDTDigis+process.muonRPCDigis)
0090 
0091 process.noiseEvents = cms.Path(process.muondigis *
0092                                process.muonlocalreco *
0093                                process.check)
0094 
0095 process.outpath = cms.EndPath(process.FEVT)