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("SKIM")
0004 
0005 process.source = cms.Source("PoolSource",
0006                             fileNames = cms.untracked.vstring(
0007 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/D266D139-D871-DE11-A709-001D09F28F0C.root',
0008 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/CA27788D-E871-DE11-8B46-001D09F276CF.root',
0009 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/AC5633B2-D471-DE11-9B3A-001D09F252F3.root',
0010 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/9CD957E7-D071-DE11-B6AE-001D09F252F3.root',
0011 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/94BF68F7-D171-DE11-902B-000423D986A8.root',
0012 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/7838FE1E-C771-DE11-9FD5-000423D98950.root',
0013 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/56632803-DD71-DE11-BAF5-000423D9870C.root',
0014 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/42A67CB9-E971-DE11-AA86-001D09F252F3.root',
0015 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/407225D3-D071-DE11-809B-001D09F297EF.root',
0016 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/3E5E1CF0-D271-DE11-AC2B-000423D94700.root',
0017 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/2C57E916-D071-DE11-AF0E-001D09F24E39.root',
0018 '/store/data/Commissioning09/Cosmics/RECO/v5/000/105/755/228896A5-E571-DE11-A60B-001D09F2AF96.root')
0019 
0020 )                            
0021 
0022 process.configurationMetadata = cms.untracked.PSet(
0023     version = cms.untracked.string('$Revision: 1.3 $'),
0024     name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/PtMinSelector_cfg.py,v $'),
0025     annotation = cms.untracked.string('CRAFT Muon Pt 50 skim')
0026 )
0027 
0028 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1000))
0029 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
0030 
0031 
0032 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0033 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0034 
0035 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0036 process.GlobalTag.globaltag = 'GR09_31X_V3P::All' 
0037 
0038 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0039 
0040 
0041 
0042 process.cosmictrackfinderP5PtFilter = cms.EDFilter("PtMinTrackSelector",
0043                                                    src = cms.InputTag("cosmictrackfinderP5"),
0044                                                    ptMin= cms.double(50.0),
0045                                                    filter = cms.bool(True)
0046                                                    )
0047 
0048 process.globalCosmicMuonsPtFilter = cms.EDFilter("PtMinTrackSelector",
0049                                                  src = cms.InputTag("globalCosmicMuons"),
0050                                                  ptMin= cms.double(50.0),
0051                                                  filter = cms.bool(True)
0052                                                  )
0053 
0054 
0055 process.globalCosmicMuons1LegPtFilter = cms.EDFilter("PtMinTrackSelector",
0056                                                      src = cms.InputTag("globalCosmicMuons1Leg"),
0057                                                      ptMin= cms.double(50.0),
0058                                                      filter = cms.bool(True)
0059                                                      )
0060 
0061 process.ctfWithMaterialTracksP5PtFilter = cms.EDFilter("PtMinTrackSelector",
0062                                                        src = cms.InputTag("ctfWithMaterialTracksP5"),
0063                                                        ptMin= cms.double(50.0),
0064                                                        filter = cms.bool(True)
0065                                                        )
0066 process.cosmicMuons1LegPtFilter = cms.EDFilter("PtMinTrackSelector",
0067                                                src = cms.InputTag("cosmicMuons1Leg"),
0068                                                ptMin= cms.double(50.0),
0069                                                filter = cms.bool(True)
0070                                                )
0071 
0072 
0073 process.cosmictrackfinderP5Path = cms.Path(process.cosmictrackfinderP5PtFilter)
0074 process.globalCosmicMuonsPath = cms.Path(process.globalCosmicMuonsPtFilter)
0075 process.globalCosmicMuons1LegPath = cms.Path(process.globalCosmicMuons1LegPtFilter)
0076 process.ctfWithMaterialTracksP5Path = cms.Path(process.ctfWithMaterialTracksP5PtFilter)
0077 process.cosmicMuons1LegPath = cms.Path(process.cosmicMuons1LegPtFilter)
0078 
0079 
0080 
0081 process.out = cms.OutputModule("PoolOutputModule",
0082                                outputCommands = cms.untracked.vstring('keep *',
0083                                'drop *_cosmictrackfinderP5PtFilter_*_*',
0084                                'drop *_globalCosmicMuonsPtFilter_*_*',
0085                                'drop *_globalCosmicMuons1LegPtFilter_*_*',
0086                                'drop *_ctfWithMaterialTracksP5PtFilter_*_*',
0087                                'drop *_cosmicMuons1LegPtFilter_*_*',
0088                                'drop *_MEtoEDMConverter_*_*' 
0089                                ),
0090                                SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cosmictrackfinderP5Path',
0091                                                                                             'globalCosmicMuonsPath',
0092                                                                                             'globalCosmicMuons1LegPath',
0093                                                                                             'ctfWithMaterialTracksP5Path',
0094                                                                                             'cosmicMuons1LegPath')),                               
0095                                dataset = cms.untracked.PSet(
0096                              dataTier = cms.untracked.string('RECO'),
0097                                          filterName = cms.untracked.string('MuonPt50')),
0098                                fileName = cms.untracked.string('/tmp/malgeri/PtMinSelector.root')
0099                                )
0100 
0101 process.this_is_the_end = cms.EndPath(process.out)