Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:46

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.3 $'),
0007     name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/EGMonitorPDSkim_cfg.py,v $'),
0008     annotation = cms.untracked.string('Combined EGMonitor 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_*_*")
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(1000)
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 = 'GR_R_36X_V12B::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 #  Load common sequences
0050 #
0051 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
0052 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
0053 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
0054 
0055 
0056 ##################################filter_rechit for ECAL############################################
0057 process.load("DPGAnalysis.Skims.filterRecHits_cfi")
0058 
0059 process.ecalrechitfilter = cms.Path(process.recHitEnergyFilter)
0060 
0061 
0062 process.ecalrechitfilter_out = cms.OutputModule("PoolOutputModule",
0063     fileName = cms.untracked.string('/tmp/azzi/ecalrechitfilter.root'),
0064     outputCommands = process.FEVTEventContent.outputCommands,
0065     dataset = cms.untracked.PSet(
0066               dataTier = cms.untracked.string('RAW-RECO'),
0067               filterName = cms.untracked.string('ECALRECHIT')),
0068     SelectEvents = cms.untracked.PSet(
0069         SelectEvents = cms.vstring('ecalrechitfilter')
0070     )
0071 )
0072 
0073 ####################################################################################
0074 ######################################TPG Performance SKIMS#####################################
0075 
0076 process.load('DPGAnalysis/Skims/singleMuonSkim_cff')
0077 process.load('DPGAnalysis/Skims/singleElectronSkim_cff')
0078 process.load('DPGAnalysis/Skims/muonTagProbeFilters_cff')
0079 process.load('DPGAnalysis/Skims/electronTagProbeFilters_cff')
0080 process.load('DPGAnalysis/Skims/singlePhotonSkim_cff')
0081 process.load('DPGAnalysis/Skims/jetSkim_cff')
0082 process.load('DPGAnalysis/Skims/METSkim_cff')
0083 process.load('DPGAnalysis/Skims/singlePfTauSkim_cff')
0084 
0085 #process.singleMuPt20SkimPath=cms.Path(process.singleMuPt20RecoQualitySeq)
0086 #process.singleMuPt15SkimPath=cms.Path(process.singleMuPt15RecoQualitySeq)
0087 #process.singleMuPt10SkimPath=cms.Path(process.singleMuPt10RecoQualitySeq)
0088 process.singleMuPt5SkimPath=cms.Path(process.singleMuPt5RecoQualitySeq)
0089 #process.singleElectronPt20SkimPath=cms.Path(process.singleElectronPt20RecoQualitySeq)
0090 #process.singleElectronPt15SkimPath=cms.Path(process.singleElectronPt15RecoQualitySeq)
0091 #process.singleElectronPt10SkimPath=cms.Path(process.singleElectronPt10RecoQualitySeq)
0092 process.singleElectronPt5SkimPath=cms.Path(process.singleElectronPt5RecoQualitySeq)
0093 #process.singlePhotonPt20SkimPath=cms.Path(process.singlePhotonPt20QualitySeq)
0094 #process.singlePhotonPt15SkimPath=cms.Path(process.singlePhotonPt15QualitySeq)
0095 #process.singlePhotonPt10SkimPath=cms.Path(process.singlePhotonPt10QualitySeq)
0096 process.singlePhotonPt5SkimPath=cms.Path(process.singlePhotonPt5QualitySeq)
0097 #process.muonZMMSkimPath=cms.Path(process.muonZMMRecoQualitySeq)
0098 process.muonJPsiMMSkimPath=cms.Path(process.muonJPsiMMRecoQualitySeq)
0099 #process.electronZEESkimPath=cms.Path(process.electronZEERecoQualitySeq)
0100 process.jetSkimPath=cms.Path(process.jetRecoQualitySeq)
0101 #process.METSkimPath=cms.Path(process.METQualitySeq)
0102 process.singlePfTauPt15SkimPath=cms.Path(process.singlePfTauPt15QualitySeq) 
0103 process.outTPGSkim = cms.OutputModule("PoolOutputModule",
0104     outputCommands = process.FEVTHLTALLEventContent.outputCommands,
0105     fileName = cms.untracked.string("/tmp/azzi/TPGSkim.root"),
0106     dataset = cms.untracked.PSet(
0107       dataTier = cms.untracked.string('USER'),
0108       filterName = cms.untracked.string('TPGSkim')
0109     ),
0110     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
0111                                                                  #'singleMuPt20SkimPath',
0112                                                                  #'singleMuPt15SkimPath',
0113                                                                  #'singleMuPt10SkimPath',
0114                                                                  'singleMuPt5SkimPath',
0115                                                                  #'singleElectronPt20SkimPath',
0116                                                                  #'singleElectronPt15SkimPath',
0117                                                                  #'singleElectronPt10SkimPath',
0118                                                                  'singleElectronPt5SkimPath',
0119                                                                  #'singlePhotonPt20SkimPath',
0120                                                                  #'singlePhotonPt15SkimPath',
0121                                                                  #'singlePhotonPt10SkimPath',
0122                                                                  'singlePhotonPt5SkimPath',
0123                                                                  #'muonZMMSkimPath',
0124                                                                  'muonJPsiMMSkimPath',
0125                                                                  #'electronZEESkimPath',
0126                                                                  'jetSkimPath',
0127                                                                  #'METSkimPath',
0128                                                                  'singlePfTauPt15SkimPath'))
0129 )
0130 
0131 
0132 ###########################################################################
0133 
0134 #################################logerrorharvester############################################
0135 process.load("FWCore.Modules.logErrorFilter_cfi")
0136 from Configuration.StandardSequences.RawToDigi_Data_cff import gtEvmDigis
0137 
0138 process.gtEvmDigis = gtEvmDigis.clone()
0139 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
0140                                   L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
0141                                   AllowedBeamMode = cms.vuint32(11),
0142                                   saveTags = cms.bool(False)
0143                                   )
0144 
0145 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
0146 
0147 process.outlogerr = cms.OutputModule("PoolOutputModule",
0148                                outputCommands =  process.FEVTEventContent.outputCommands,
0149                                fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
0150                                dataset = cms.untracked.PSet(
0151                                   dataTier = cms.untracked.string('RAW-RECO'),
0152                                   filterName = cms.untracked.string('Skim_logerror')),
0153                                
0154                                SelectEvents = cms.untracked.PSet(
0155     SelectEvents = cms.vstring("logerrorpath")
0156     ))
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.ecalrechitfilter_out+process.outTPGSkim+process.outlogerr)