Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:43

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 process = cms.Process("makeSD")
0005 
0006 process.configurationMetadata = cms.untracked.PSet(
0007     version = cms.untracked.string('$Revision: 1.1 $'),
0008     annotation = cms.untracked.string('Onia central skim'),
0009     name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/Skimming/test/CSmaker_Onia_PDMu_1e29_reprocess370patch2_cfg.py,v $')
0010 )
0011 
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32(10000)
0015 )
0016 
0017 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0018 process.load("Configuration.StandardSequences.GeometryExtended_cff")
0019 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0020 process.load('Configuration.EventContent.EventContent_cff')
0021 process.GlobalTag.globaltag = "GR_R_37X_V6B::All"  
0022 
0023 
0024 process.source = cms.Source("PoolSource",
0025     fileNames = cms.untracked.vstring(
0026         '/store/data/Commissioning10/MinimumBias/RAW-RECO/v8/000/132/601/F85204EE-EB40-DF11-8F71-001A64789D1C.root'
0027         ),
0028                             secondaryFileNames = cms.untracked.vstring(
0029         '/store/data/Commissioning09/Cosmics/RAW/v3/000/105/755/F6887FD0-9371-DE11-B69E-00304879FBB2.root'
0030         )
0031 )
0032 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0033 
0034 import HLTrigger.HLTfilters.hltHighLevelDev_cfi
0035 
0036 ### Onia skim CS
0037 process.goodMuons = cms.EDFilter("MuonRefSelector",
0038     src = cms.InputTag("muons"),
0039     cut = cms.string("isGlobalMuon || (isTrackerMuon && numberOfMatches('SegmentAndTrackArbitration')>0)"),
0040 )
0041 process.diMuons = cms.EDProducer("CandViewShallowCloneCombiner",
0042     decay       = cms.string("goodMuons goodMuons"),
0043     checkCharge = cms.bool(False),
0044     cut         = cms.string("mass > 2"),
0045 )
0046 process.diMuonFilter = cms.EDFilter("CandViewCountFilter",
0047     src       = cms.InputTag("diMuons"),
0048     minNumber = cms.uint32(1),
0049 )
0050 process.Skim_diMuons = cms.Path(
0051     process.goodMuons    *
0052     process.diMuons      *
0053     process.diMuonFilter
0054 )
0055 
0056 
0057 
0058 process.outputCsOnia = cms.OutputModule("PoolOutputModule",
0059                                         dataset = cms.untracked.PSet(
0060         dataTier = cms.untracked.string('RAW-RECO'),
0061         filterName = cms.untracked.string('CS_Onia')),
0062                                         SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('Skim_diMuons')),                                        
0063                                         outputCommands = process.FEVTEventContent.outputCommands,
0064                                         fileName = cms.untracked.string('CS_Onia_1e29.root')
0065                                         )
0066 
0067 
0068 process.this_is_the_end = cms.EndPath(process.outputCsOnia)