CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DPGAnalysis/Skims/python/RPCNoise_example.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("USER")
00004 
00005 process.load("Configuration/StandardSequences/Geometry_cff")
00006 process.load("Configuration/StandardSequences/MagneticField_38T_cff")
00007 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00008 process.GlobalTag.globaltag = 'CRUZET4_V5P::All'
00009 process.prefer("GlobalTag")
00010 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
00011 process.load("Configuration/StandardSequences/ReconstructionCosmics_cff")
00012 
00013 process.source = cms.Source("PoolSource",
00014     fileNames = cms.untracked.vstring(
00015        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00718365-02A6-DD11-86BC-000423D98E54.root',
00016        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00725EB9-22A6-DD11-8EC1-001617DC1F70.root',
00017        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00A93B38-26A6-DD11-8676-000423D98F98.root',
00018        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00EB701D-24A6-DD11-9AA1-001617E30D38.root',
00019        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/00FC7A6B-E3A5-DD11-A4D1-001617DF785A.root',
00020        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0239F671-DCA5-DD11-9268-000423D98844.root',
00021        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02450760-F4A5-DD11-B709-000423D6BA18.root',
00022        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0260B87A-49A6-DD11-9731-000423D992A4.root',
00023        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02914A0F-29A6-DD11-BD17-000423D985B0.root',
00024        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02C0EAC4-62A6-DD11-868F-000423D6CA02.root',
00025        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02CD99AF-1BA6-DD11-B71E-000423D992DC.root',
00026        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02F1E96F-50A6-DD11-938D-0019DB29C614.root',
00027        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/02FA5CED-56A6-DD11-8F63-001617E30D52.root',
00028        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/044D708C-5EA6-DD11-BFA5-0030487D0D3A.root',
00029        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0457B4E8-13A6-DD11-816E-000423D98920.root',
00030        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/046760F2-0CA6-DD11-B377-000423D94A20.root',
00031        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/04766D63-5CA6-DD11-B07D-000423D98834.root',
00032        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/047C6309-29A6-DD11-AC8E-000423D6B42C.root',
00033        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/04861900-22A6-DD11-90DA-000423D944F8.root',
00034        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/04B99356-5AA6-DD11-950F-0030487A3C9A.root',
00035        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/06192894-3FA6-DD11-9A2B-000423D990CC.root',
00036        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/062D36C0-3CA6-DD11-BB50-001617C3B69C.root',
00037        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/066D62D5-56A6-DD11-970B-001617C3B6CC.root',
00038        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0681071B-5DA6-DD11-A9A1-000423D99660.root',
00039        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0684A267-09A6-DD11-B4FA-000423D98B5C.root',
00040        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/06AB249F-46A6-DD11-96C1-000423D99CEE.root',
00041        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/06BFD55E-1CA6-DD11-AC5A-001D09F2915A.root',
00042        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/08003087-DEA5-DD11-A4EE-000423D98B5C.root',
00043        '/store/data/Commissioning08/Cosmics/RAW/v1/000/068/021/0866B1DE-FEA5-DD11-8F9F-0030487C6062.root'
00044       )
00045 )
00046 process.maxEvents = cms.untracked.PSet(
00047     input = cms.untracked.int32(3000)
00048 )
00049 
00050 #### output module
00051 process.load("Configuration.EventContent.EventContentCosmics_cff")
00052 process.FEVT = cms.OutputModule("PoolOutputModule",
00053     process.FEVTEventContent,
00054     dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW')),
00055     fileName = cms.untracked.string("RPCNoise_test.root"),
00056     SelectEvents = cms.untracked.PSet(
00057        SelectEvents = cms.vstring('noiseEvents')
00058        )
00059 )
00060 process.FEVT.outputCommands.append('keep *_*_*_*')
00061 process.FEVT.outputCommands.append('keep FEDRawDataCollection_*_*_*')
00062 process.FEVT.outputCommands.append('keep *_muonCSCDigis_*_*')
00063 process.FEVT.outputCommands.append('keep *_muonDTDigis_*_*')
00064 process.FEVT.outputCommands.append('keep *_muonRPCDigis_*_*')
00065 process.FEVT.outputCommands.append('keep *_rpcRecHits_*_*')
00066 
00067 
00068 #============================================================
00069 # the filter
00070 #============================================================
00071 process.check = cms.EDFilter(
00072     "RPCNoise",
00073     fillHistograms = cms.untracked.bool(True),
00074     histogramFileName = cms.untracked.string('histos_test.root'),
00075     nRPCHitsCut  = cms.untracked.int32(40),
00076     nCSCWiresCut  = cms.untracked.int32(10),
00077     nCSCStripsCut  = cms.untracked.int32(50),
00078     nDTDigisCut  = cms.untracked.int32(40)
00079 )
00080 
00081 #process.noiseEvents = cms.Path(process.muonCSCDigis *
00082 #                               process.muonRPCDigis *
00083 #                               process.rpcRecHits *
00084 #                               process.check)
00085 
00086 
00087 process.muondigis = cms.Sequence(process.csctfDigis+process.dttfDigis+process.gctDigis+process.gtDigis+
00088                                  process.gtEvmDigis+
00089                                  process.muonCSCDigis+process.muonDTDigis+process.muonRPCDigis)
00090 
00091 process.noiseEvents = cms.Path(process.muondigis *
00092                                process.muonlocalreco *
00093                                process.check)
00094 
00095 process.outpath = cms.EndPath(process.FEVT)