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.configurationMetadata = cms.untracked.PSet(
0006     version = cms.untracked.string('$Revision: 1.1 $'),
0007     name = cms.untracked.string('$Source' ),
0008     annotation = cms.untracked.string('TPG skim')
0009 )
0010 
0011 #
0012 #
0013 # This is for testing purposes.
0014 #
0015 #
0016 process.source = cms.Source("PoolSource",
0017                             fileNames = cms.untracked.vstring(
0018 # run 136066 lumi~500
0019 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
0020                            secondaryFileNames = cms.untracked.vstring(
0021 '/store/data/Run2010A/MinimumBias/RAW/v1/000/136/066/38D48BED-3C66-DF11-88A5-001D09F27003.root')
0022 )
0023 
0024 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*", "drop L1GlobalTriggerObjectMapRecord_hltL1GtObjectMap__HLT")
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(500)
0028 )
0029 
0030 
0031 #------------------------------------------
0032 # Load standard sequences.
0033 #------------------------------------------
0034 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0035 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0036 
0037 
0038 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0039 process.GlobalTag.globaltag = 'GR10_P_V6::All' 
0040 
0041 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0042 process.load("Configuration/StandardSequences/Reconstruction_cff")
0043 process.load('Configuration/EventContent/EventContent_cff')
0044 
0045 #drop collections created on the fly
0046 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
0047 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
0048 
0049 #
0050 #  Load common sequences
0051 #
0052 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
0053 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0054 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0055 
0056 ##################################TPG Skims############################################
0057 
0058 
0059 process.load('DPGAnalysis/Skims/singleMuonSkim_cff')
0060 process.load('DPGAnalysis/Skims/singleElectronSkim_cff')
0061 process.load('DPGAnalysis/Skims/muonTagProbeFilters_cff')
0062 process.load('DPGAnalysis/Skims/electronTagProbeFilters_cff')
0063 process.load('DPGAnalysis/Skims/singlePhotonSkim_cff')
0064 process.load('DPGAnalysis/Skims/jetSkim_cff')
0065 process.load('DPGAnalysis/Skims/METSkim_cff')
0066 process.load('DPGAnalysis/Skims/singlePfTauSkim_cff')
0067 
0068 #process.singleMuPt20SkimPath=cms.Path(process.singleMuPt20RecoQualitySeq)
0069 #process.singleMuPt15SkimPath=cms.Path(process.singleMuPt15RecoQualitySeq)
0070 #process.singleMuPt10SkimPath=cms.Path(process.singleMuPt10RecoQualitySeq)
0071 process.singleMuPt5SkimPath=cms.Path(process.singleMuPt5RecoQualitySeq)
0072 #process.singleElectronPt20SkimPath=cms.Path(process.singleElectronPt20RecoQualitySeq)
0073 #process.singleElectronPt15SkimPath=cms.Path(process.singleElectronPt15RecoQualitySeq)
0074 #process.singleElectronPt10SkimPath=cms.Path(process.singleElectronPt10RecoQualitySeq)
0075 process.singleElectronPt5SkimPath=cms.Path(process.singleElectronPt5RecoQualitySeq)
0076 #process.singlePhotonPt20SkimPath=cms.Path(process.singlePhotonPt20QualitySeq)
0077 #process.singlePhotonPt15SkimPath=cms.Path(process.singlePhotonPt15QualitySeq)
0078 #process.singlePhotonPt10SkimPath=cms.Path(process.singlePhotonPt10QualitySeq)
0079 process.singlePhotonPt5SkimPath=cms.Path(process.singlePhotonPt5QualitySeq)
0080 #process.muonZMMSkimPath=cms.Path(process.muonZMMRecoQualitySeq)
0081 process.muonJPsiMMSkimPath=cms.Path(process.muonJPsiMMRecoQualitySeq)
0082 #process.electronZEESkimPath=cms.Path(process.electronZEERecoQualitySeq)
0083 process.jetSkimPath=cms.Path(process.jetRecoQualitySeq)
0084 #process.METSkimPath=cms.Path(process.METQualitySeq)
0085 process.singlePfTauPt15SkimPath=cms.Path(process.singlePfTauPt15QualitySeq) 
0086 
0087 process.outTPGSkim = cms.OutputModule("PoolOutputModule",
0088     outputCommands = process.FEVTHLTALLEventContent.outputCommands,
0089     fileName = cms.untracked.string("/tmp/azzi/TPGSkim.root"),
0090     dataset = cms.untracked.PSet(
0091       dataTier = cms.untracked.string('USER'),
0092       filterName = cms.untracked.string('TPGSkim')
0093     ),
0094     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
0095                                                                  #'singleMuPt20SkimPath',
0096                                                                  #'singleMuPt15SkimPath',
0097                                                                  #'singleMuPt10SkimPath',
0098                                                                  'singleMuPt5SkimPath',
0099                                                                  #'singleElectronPt20SkimPath',
0100                                                                  #'singleElectronPt15SkimPath',
0101                                                                  #'singleElectronPt10SkimPath',
0102                                                                  'singleElectronPt5SkimPath',
0103                                                                  #'singlePhotonPt20SkimPath',
0104                                                                  #'singlePhotonPt15SkimPath',
0105                                                                  #'singlePhotonPt10SkimPath',
0106                                                                  'singlePhotonPt5SkimPath',
0107                                                                  #'muonZMMSkimPath',
0108                                                                  'muonJPsiMMSkimPath',
0109                                                                  #'electronZEESkimPath',
0110                                                                  'jetSkimPath',
0111                                                                  #'METSkimPath',
0112                                                                  'singlePfTauPt15SkimPath'))
0113 )
0114 
0115 
0116 ###########################################################################
0117 
0118 
0119 process.options = cms.untracked.PSet(
0120  wantSummary = cms.untracked.bool(True)
0121 )
0122 
0123 process.outpath = cms.EndPath(process.outTPGSkim)
0124