CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DPGAnalysis/Skims/python/TPGSkims_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.configurationMetadata = cms.untracked.PSet(
00006     version = cms.untracked.string('$Revision: 1.1 $'),
00007     name = cms.untracked.string('$Source' ),
00008     annotation = cms.untracked.string('TPG skim')
00009 )
00010 
00011 #
00012 #
00013 # This is for testing purposes.
00014 #
00015 #
00016 process.source = cms.Source("PoolSource",
00017                             fileNames = cms.untracked.vstring(
00018 # run 136066 lumi~500
00019 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
00020                            secondaryFileNames = cms.untracked.vstring(
00021 '/store/data/Run2010A/MinimumBias/RAW/v1/000/136/066/38D48BED-3C66-DF11-88A5-001D09F27003.root')
00022 )
00023 
00024 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*", "drop L1GlobalTriggerObjectMapRecord_hltL1GtObjectMap__HLT")
00025 
00026 process.maxEvents = cms.untracked.PSet(
00027     input = cms.untracked.int32(500)
00028 )
00029 
00030 
00031 #------------------------------------------
00032 # Load standard sequences.
00033 #------------------------------------------
00034 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
00035 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
00036 
00037 
00038 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00039 process.GlobalTag.globaltag = 'GR10_P_V6::All' 
00040 
00041 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
00042 process.load("Configuration/StandardSequences/Reconstruction_cff")
00043 process.load('Configuration/EventContent/EventContent_cff')
00044 
00045 #drop collections created on the fly
00046 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
00047 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
00048 
00049 #
00050 #  Load common sequences
00051 #
00052 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
00053 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
00054 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
00055 
00056 ##################################TPG Skims############################################
00057 
00058 
00059 process.load('DPGAnalysis/Skims/singleMuonSkim_cff')
00060 process.load('DPGAnalysis/Skims/singleElectronSkim_cff')
00061 process.load('DPGAnalysis/Skims/muonTagProbeFilters_cff')
00062 process.load('DPGAnalysis/Skims/electronTagProbeFilters_cff')
00063 process.load('DPGAnalysis/Skims/singlePhotonSkim_cff')
00064 process.load('DPGAnalysis/Skims/jetSkim_cff')
00065 process.load('DPGAnalysis/Skims/METSkim_cff')
00066 process.load('DPGAnalysis/Skims/singlePfTauSkim_cff')
00067 
00068 #process.singleMuPt20SkimPath=cms.Path(process.singleMuPt20RecoQualitySeq)
00069 #process.singleMuPt15SkimPath=cms.Path(process.singleMuPt15RecoQualitySeq)
00070 #process.singleMuPt10SkimPath=cms.Path(process.singleMuPt10RecoQualitySeq)
00071 process.singleMuPt5SkimPath=cms.Path(process.singleMuPt5RecoQualitySeq)
00072 #process.singleElectronPt20SkimPath=cms.Path(process.singleElectronPt20RecoQualitySeq)
00073 #process.singleElectronPt15SkimPath=cms.Path(process.singleElectronPt15RecoQualitySeq)
00074 #process.singleElectronPt10SkimPath=cms.Path(process.singleElectronPt10RecoQualitySeq)
00075 process.singleElectronPt5SkimPath=cms.Path(process.singleElectronPt5RecoQualitySeq)
00076 #process.singlePhotonPt20SkimPath=cms.Path(process.singlePhotonPt20QualitySeq)
00077 #process.singlePhotonPt15SkimPath=cms.Path(process.singlePhotonPt15QualitySeq)
00078 #process.singlePhotonPt10SkimPath=cms.Path(process.singlePhotonPt10QualitySeq)
00079 process.singlePhotonPt5SkimPath=cms.Path(process.singlePhotonPt5QualitySeq)
00080 #process.muonZMMSkimPath=cms.Path(process.muonZMMRecoQualitySeq)
00081 process.muonJPsiMMSkimPath=cms.Path(process.muonJPsiMMRecoQualitySeq)
00082 #process.electronZEESkimPath=cms.Path(process.electronZEERecoQualitySeq)
00083 process.jetSkimPath=cms.Path(process.jetRecoQualitySeq)
00084 #process.METSkimPath=cms.Path(process.METQualitySeq)
00085 process.singlePfTauPt15SkimPath=cms.Path(process.singlePfTauPt15QualitySeq) 
00086 
00087 process.outTPGSkim = cms.OutputModule("PoolOutputModule",
00088     outputCommands = process.FEVTHLTALLEventContent.outputCommands,
00089     fileName = cms.untracked.string("/tmp/azzi/TPGSkim.root"),
00090     dataset = cms.untracked.PSet(
00091       dataTier = cms.untracked.string('USER'),
00092       filterName = cms.untracked.string('TPGSkim')
00093     ),
00094     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
00095                                                                  #'singleMuPt20SkimPath',
00096                                                                  #'singleMuPt15SkimPath',
00097                                                                  #'singleMuPt10SkimPath',
00098                                                                  'singleMuPt5SkimPath',
00099                                                                  #'singleElectronPt20SkimPath',
00100                                                                  #'singleElectronPt15SkimPath',
00101                                                                  #'singleElectronPt10SkimPath',
00102                                                                  'singleElectronPt5SkimPath',
00103                                                                  #'singlePhotonPt20SkimPath',
00104                                                                  #'singlePhotonPt15SkimPath',
00105                                                                  #'singlePhotonPt10SkimPath',
00106                                                                  'singlePhotonPt5SkimPath',
00107                                                                  #'muonZMMSkimPath',
00108                                                                  'muonJPsiMMSkimPath',
00109                                                                  #'electronZEESkimPath',
00110                                                                  'jetSkimPath',
00111                                                                  #'METSkimPath',
00112                                                                  'singlePfTauPt15SkimPath'))
00113 )
00114 
00115 
00116 ###########################################################################
00117 
00118 
00119 process.options = cms.untracked.PSet(
00120  wantSummary = cms.untracked.bool(True)
00121 )
00122 
00123 process.outpath = cms.EndPath(process.outTPGSkim)
00124