CMS 3D CMS Logo

PtMinSelector_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("SKIM")
00004 
00005 process.source = cms.Source("PoolSource",
00006                             fileNames = cms.untracked.vstring(
00007 '/store/data/Commissioning08/Cosmics/RECO/CRAFT_ALL_V9_225-v1/0002/0A12CE23-D7F9-DD11-819E-00E081348D21.root'
00008     )
00009 )                            
00010 
00011 process.configurationMetadata = cms.untracked.PSet(
00012     version = cms.untracked.string('$Revision: 1.3 $'),
00013     name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/PtMinSelector_cfg.py,v $'),
00014     annotation = cms.untracked.string('CRAFT Muon Pt 50 skim')
00015 )
00016 
00017 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
00018 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
00019 
00020 
00021 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00022 process.GlobalTag.globaltag = 'CRAFT_ALL_V9::All' 
00023 process.prefer("GlobalTag")
00024 
00025 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
00026 
00027 
00028 
00029 process.cosmictrackfinderP5PtFilter = cms.EDFilter("PtMinTrackSelector",
00030                                                    src = cms.InputTag("cosmictrackfinderP5"),
00031                                                    ptMin= cms.double(50.0),
00032                                                    filter = cms.bool(True)
00033                                                    )
00034 
00035 process.globalCosmicMuonsPtFilter = cms.EDFilter("PtMinTrackSelector",
00036                                                  src = cms.InputTag("globalCosmicMuons"),
00037                                                  ptMin= cms.double(50.0),
00038                                                  filter = cms.bool(True)
00039                                                  )
00040 
00041 
00042 process.globalCosmicMuons1LegPtFilter = cms.EDFilter("PtMinTrackSelector",
00043                                                      src = cms.InputTag("globalCosmicMuons1Leg"),
00044                                                      ptMin= cms.double(50.0),
00045                                                      filter = cms.bool(True)
00046                                                      )
00047 
00048 process.ctfWithMaterialTracksP5PtFilter = cms.EDFilter("PtMinTrackSelector",
00049                                                        src = cms.InputTag("ctfWithMaterialTracksP5"),
00050                                                        ptMin= cms.double(50.0),
00051                                                        filter = cms.bool(True)
00052                                                        )
00053 process.cosmicMuons1LegPtFilter = cms.EDFilter("PtMinTrackSelector",
00054                                                src = cms.InputTag("cosmicMuons1Leg"),
00055                                                ptMin= cms.double(50.0),
00056                                                filter = cms.bool(True)
00057                                                )
00058 
00059 
00060 process.cosmictrackfinderP5Path = cms.Path(process.cosmictrackfinderP5PtFilter)
00061 process.globalCosmicMuonsPath = cms.Path(process.globalCosmicMuonsPtFilter)
00062 process.globalCosmicMuons1LegPath = cms.Path(process.globalCosmicMuons1LegPtFilter)
00063 process.ctfWithMaterialTracksP5Path = cms.Path(process.ctfWithMaterialTracksP5PtFilter)
00064 process.cosmicMuons1LegPath = cms.Path(process.cosmicMuons1LegPtFilter)
00065 
00066 
00067 
00068 process.out = cms.OutputModule("PoolOutputModule",
00069                                outputCommands = cms.untracked.vstring('keep *',
00070                                'drop *_cosmictrackfinderP5PtFilter_*_*',
00071                                'drop *_globalCosmicMuonsPtFilter_*_*',
00072                                'drop *_globalCosmicMuons1LegPtFilter_*_*',
00073                                'drop *_ctfWithMaterialTracksP5PtFilter_*_*',
00074                                'drop *_cosmicMuons1LegPtFilter_*_*',
00075                                'drop *_MEtoEDMConverter_*_*' 
00076                                ),
00077                                SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cosmictrackfinderP5Path',
00078                                                                                             'globalCosmicMuonsPath',
00079                                                                                             'globalCosmicMuons1LegPath',
00080                                                                                             'ctfWithMaterialTracksP5Path',
00081                                                                                             'cosmicMuons1LegPath')),                               
00082                                dataset = cms.untracked.PSet(
00083                                          dataTier = cms.untracked.string('RECO'),
00084                                          filterName = cms.untracked.string('MuonPt50')),
00085                                fileName = cms.untracked.string('PtMinSelector.root')
00086                                )
00087 
00088 process.this_is_the_end = cms.EndPath(process.out)

Generated on Tue Jun 9 17:32:30 2009 for CMSSW by  doxygen 1.5.4