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.7 $'),
0007     name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/MuPDSkim_cfg.py,v $'),
0008     annotation = cms.untracked.string('Mu skim')
0009 )
0010 
0011 #
0012 #
0013 # This is for testing purposes.
0014 #
0015 #
0016 ##run143960
0017 process.source = cms.Source("PoolSource",
0018                            fileNames = cms.untracked.vstring('/store/data/Run2010A/Mu/RECO/v4/000/144/114/9C954151-32B4-DF11-BB88-001D09F27003.root',
0019                                                              '/store/data/Run2010A/Mu/RECO/v4/000/144/114/5C9CA515-20B4-DF11-9D62-0030487A3DE0.root',
0020                                                              '/store/data/Run2010A/Mu/RECO/v4/000/144/114/00CA69A9-1EB4-DF11-B869-0030487CD6D2.root'),
0021                            secondaryFileNames = cms.untracked.vstring('/store/data/Run2010A/Mu/RAW/v1/000/144/114/70E434AF-04B4-DF11-B178-0030487CD718.root',
0022                                                                       '/store/data/Run2010A/Mu/RAW/v1/000/144/114/C25ACF12-F3B3-DF11-8BB6-0030487CD700.root',
0023                                                                       '/store/data/Run2010A/Mu/RAW/v1/000/144/114/643C84A4-F1B3-DF11-8809-003048F0258C.root')
0024    )
0025 
0026 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32(1000)
0030     )
0031 
0032 
0033 #------------------------------------------
0034 # Load standard sequences.
0035 #------------------------------------------
0036 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0037 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0038 
0039 
0040 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0041 process.GlobalTag.globaltag = 'GR_R_38X_V13::All'
0042 
0043 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0044 process.load("Configuration/StandardSequences/Reconstruction_cff")
0045 process.load('Configuration/EventContent/EventContent_cff')
0046 
0047 #drop collections created on the fly
0048 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
0049 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
0050 #
0051 #  Load common sequences
0052 #
0053 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
0054 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0055 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0056 
0057 #################################WZFilter############################################
0058 
0059 process.load("DPGAnalysis.Skims.WZMuSkim_cff")
0060 
0061 process.ZMuSkimPath      = cms.Path(process.diMuonSelSeq)
0062 process.WtcMetSkimPath   = cms.Path(process.tcMetWMuNuSeq)
0063 process.WpfMetSkimPath   = cms.Path(process.pfMetWMuNuSeq)
0064 
0065 
0066 process.SKIMStreamWZMu = cms.OutputModule("PoolOutputModule",
0067                                           # splitLevel = cms.untracked.int32(0),
0068                                           outputCommands = process.FEVTEventContent.outputCommands,
0069                                           fileName = cms.untracked.string('/tmp/azzi/WZMuStream.root'),
0070                                           dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
0071                                                                        filterName = cms.untracked.string('WZMuFilter')),
0072                                           SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('ZMuSkimPath',
0073                                                                                                        'WtcMetSkimPath',
0074                                                                                                        'WpfMetSkimPath')
0075                                                                             ))
0076 
0077 
0078 #################################logerrorharvester############################################
0079 
0080 process.load("FWCore.Modules.logErrorFilter_cfi")
0081 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
0082 
0083 process.gtEvmDigis = gtEvmDigis.clone()
0084 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
0085                                   L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
0086                                   AllowedBeamMode = cms.vuint32(11),
0087                                   saveTags = cms.bool(False)
0088                                   )
0089 
0090 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
0091 
0092 process.outlogerr = cms.OutputModule("PoolOutputModule",
0093                                      outputCommands =  process.FEVTEventContent.outputCommands,
0094                                      fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
0095                                      dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
0096                                                                   filterName = cms.untracked.string('Skim_logerror')),
0097                                      SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring("logerrorpath")
0098                                                                        ))
0099 
0100 #======================
0101 ######################################TPG Performance SKIMS#####################################
0102 
0103 process.load('DPGAnalysis/Skims/singleMuonSkim_cff')
0104 process.load('DPGAnalysis/Skims/singleElectronSkim_cff')
0105 process.load('DPGAnalysis/Skims/muonTagProbeFilters_cff')
0106 process.load('DPGAnalysis/Skims/electronTagProbeFilters_cff')
0107 process.load('DPGAnalysis/Skims/singlePhotonSkim_cff')
0108 process.load('DPGAnalysis/Skims/jetSkim_cff')
0109 process.load('DPGAnalysis/Skims/METSkim_cff')
0110 process.load('DPGAnalysis/Skims/singlePfTauSkim_cff')
0111 
0112 #process.singleMuPt20SkimPath=cms.Path(process.singleMuPt20RecoQualitySeq)
0113 #process.singleMuPt15SkimPath=cms.Path(process.singleMuPt15RecoQualitySeq)
0114 #process.singleMuPt10SkimPath=cms.Path(process.singleMuPt10RecoQualitySeq)
0115 process.singleMuPt5SkimPath=cms.Path(process.singleMuPt5RecoQualitySeq)
0116 #process.singleElectronPt20SkimPath=cms.Path(process.singleElectronPt20RecoQualitySeq)
0117 #process.singleElectronPt15SkimPath=cms.Path(process.singleElectronPt15RecoQualitySeq)
0118 #process.singleElectronPt10SkimPath=cms.Path(process.singleElectronPt10RecoQualitySeq)
0119 process.singleElectronPt5SkimPath=cms.Path(process.singleElectronPt5RecoQualitySeq)
0120 #process.singlePhotonPt20SkimPath=cms.Path(process.singlePhotonPt20QualitySeq)
0121 #process.singlePhotonPt15SkimPath=cms.Path(process.singlePhotonPt15QualitySeq)
0122 #process.singlePhotonPt10SkimPath=cms.Path(process.singlePhotonPt10QualitySeq)
0123 process.singlePhotonPt5SkimPath=cms.Path(process.singlePhotonPt5QualitySeq)
0124 #process.muonZMMSkimPath=cms.Path(process.muonZMMRecoQualitySeq)
0125 process.muonJPsiMMSkimPath=cms.Path(process.muonJPsiMMRecoQualitySeq)
0126 #process.electronZEESkimPath=cms.Path(process.electronZEERecoQualitySeq)
0127 process.jetSkimPath=cms.Path(process.jetRecoQualitySeq)
0128 #process.METSkimPath=cms.Path(process.METQualitySeq)
0129 process.singlePfTauPt15SkimPath=cms.Path(process.singlePfTauPt15QualitySeq) 
0130 
0131 process.outTPGSkim = cms.OutputModule("PoolOutputModule",
0132     outputCommands = process.FEVTHLTALLEventContent.outputCommands,
0133     fileName = cms.untracked.string("/tmp/azzi/TPGSkim.root"),
0134     dataset = cms.untracked.PSet(
0135       dataTier = cms.untracked.string('USER'),
0136       filterName = cms.untracked.string('TPGSkim')
0137     ),
0138     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
0139                                                                  #'singleMuPt20SkimPath',
0140                                                                  #'singleMuPt15SkimPath',
0141                                                                  #'singleMuPt10SkimPath',
0142                                                                  'singleMuPt5SkimPath',
0143                                                                  #'singleElectronPt20SkimPath',
0144                                                                  #'singleElectronPt15SkimPath',
0145                                                                  #'singleElectronPt10SkimPath',
0146                                                                  'singleElectronPt5SkimPath',
0147                                                                  #'singlePhotonPt20SkimPath',
0148                                                                  #'singlePhotonPt15SkimPath',
0149                                                                  #'singlePhotonPt10SkimPath',
0150                                                                  'singlePhotonPt5SkimPath',
0151                                                                  #'muonZMMSkimPath',
0152                                                                  'muonJPsiMMSkimPath',
0153                                                                  #'electronZEESkimPath',
0154                                                                  'jetSkimPath',
0155                                                                  #'METSkimPath',
0156                                                                  'singlePfTauPt15SkimPath'))
0157 )
0158 
0159 
0160 ###########################################################################
0161 
0162 process.options = cms.untracked.PSet(
0163  wantSummary = cms.untracked.bool(True)
0164 )
0165 
0166 process.outpath = cms.EndPath(process.outlogerr+process.SKIMStreamWZMu+process.outTPGSkim)