CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DPGAnalysis/Skims/python/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/Commissioning09/Cosmics/RECO/v5/000/105/755/D266D139-D871-DE11-A709-001D09F28F0C.root',
00008 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/CA27788D-E871-DE11-8B46-001D09F276CF.root',
00009 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/AC5633B2-D471-DE11-9B3A-001D09F252F3.root',
00010 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/9CD957E7-D071-DE11-B6AE-001D09F252F3.root',
00011 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/94BF68F7-D171-DE11-902B-000423D986A8.root',
00012 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/7838FE1E-C771-DE11-9FD5-000423D98950.root',
00013 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/56632803-DD71-DE11-BAF5-000423D9870C.root',
00014 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/42A67CB9-E971-DE11-AA86-001D09F252F3.root',
00015 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/407225D3-D071-DE11-809B-001D09F297EF.root',
00016 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/3E5E1CF0-D271-DE11-AC2B-000423D94700.root',
00017 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/2C57E916-D071-DE11-AF0E-001D09F24E39.root',
00018 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/228896A5-E571-DE11-A60B-001D09F2AF96.root')
00019 
00020 )                            
00021 
00022 process.configurationMetadata = cms.untracked.PSet(
00023     version = cms.untracked.string('$Revision: 1.4 $'),
00024     name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/PtMinSelector_cfg.py,v $'),
00025     annotation = cms.untracked.string('CRAFT Muon Pt 50 skim')
00026 )
00027 
00028 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1000))
00029 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
00030 
00031 
00032 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
00033 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
00034 
00035 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00036 process.GlobalTag.globaltag = 'GR09_31X_V3P::All' 
00037 
00038 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
00039 
00040 
00041 
00042 process.cosmictrackfinderP5PtFilter = cms.EDFilter("PtMinTrackSelector",
00043                                                    src = cms.InputTag("cosmictrackfinderP5"),
00044                                                    ptMin= cms.double(50.0),
00045                                                    filter = cms.bool(True)
00046                                                    )
00047 
00048 process.globalCosmicMuonsPtFilter = cms.EDFilter("PtMinTrackSelector",
00049                                                  src = cms.InputTag("globalCosmicMuons"),
00050                                                  ptMin= cms.double(50.0),
00051                                                  filter = cms.bool(True)
00052                                                  )
00053 
00054 
00055 process.globalCosmicMuons1LegPtFilter = cms.EDFilter("PtMinTrackSelector",
00056                                                      src = cms.InputTag("globalCosmicMuons1Leg"),
00057                                                      ptMin= cms.double(50.0),
00058                                                      filter = cms.bool(True)
00059                                                      )
00060 
00061 process.ctfWithMaterialTracksP5PtFilter = cms.EDFilter("PtMinTrackSelector",
00062                                                        src = cms.InputTag("ctfWithMaterialTracksP5"),
00063                                                        ptMin= cms.double(50.0),
00064                                                        filter = cms.bool(True)
00065                                                        )
00066 process.cosmicMuons1LegPtFilter = cms.EDFilter("PtMinTrackSelector",
00067                                                src = cms.InputTag("cosmicMuons1Leg"),
00068                                                ptMin= cms.double(50.0),
00069                                                filter = cms.bool(True)
00070                                                )
00071 
00072 
00073 process.cosmictrackfinderP5Path = cms.Path(process.cosmictrackfinderP5PtFilter)
00074 process.globalCosmicMuonsPath = cms.Path(process.globalCosmicMuonsPtFilter)
00075 process.globalCosmicMuons1LegPath = cms.Path(process.globalCosmicMuons1LegPtFilter)
00076 process.ctfWithMaterialTracksP5Path = cms.Path(process.ctfWithMaterialTracksP5PtFilter)
00077 process.cosmicMuons1LegPath = cms.Path(process.cosmicMuons1LegPtFilter)
00078 
00079 
00080 
00081 process.out = cms.OutputModule("PoolOutputModule",
00082                                outputCommands = cms.untracked.vstring('keep *',
00083                                'drop *_cosmictrackfinderP5PtFilter_*_*',
00084                                'drop *_globalCosmicMuonsPtFilter_*_*',
00085                                'drop *_globalCosmicMuons1LegPtFilter_*_*',
00086                                'drop *_ctfWithMaterialTracksP5PtFilter_*_*',
00087                                'drop *_cosmicMuons1LegPtFilter_*_*',
00088                                'drop *_MEtoEDMConverter_*_*' 
00089                                ),
00090                                SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cosmictrackfinderP5Path',
00091                                                                                             'globalCosmicMuonsPath',
00092                                                                                             'globalCosmicMuons1LegPath',
00093                                                                                             'ctfWithMaterialTracksP5Path',
00094                                                                                             'cosmicMuons1LegPath')),                               
00095                                dataset = cms.untracked.PSet(
00096                                          dataTier = cms.untracked.string('RECO'),
00097                                          filterName = cms.untracked.string('MuonPt50')),
00098                                fileName = cms.untracked.string('/tmp/malgeri/PtMinSelector.root')
00099                                )
00100 
00101 process.this_is_the_end = cms.EndPath(process.out)