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 # import of standard configurations
0006 process.load('Configuration/StandardSequences/Services_cff')
0007 process.load('FWCore/MessageService/MessageLogger_cfi')
0008 process.load('Configuration/EventContent/EventContent_cff')
0009 
0010 # module to select events based on HLT Trigger bits
0011 process.load('HLTrigger/HLTfilters/hltHighLevelDev_cfi')
0012 
0013 # Loading "hltHighLevelDev_cfi" defines an EDFilter called hltHighLevelDev
0014 # now we can configure it 
0015 
0016 # All events from Zero PD
0017 process.hltHighLevelDev.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT")
0018 process.hltHighLevelDev.HLTPaths = (
0019    'HLT_PhysicsDeclared',
0020     )
0021 
0022 process.hltHighLevelDev.andOr = True # True = OR, False = AND
0023 process.hltHighLevelDev.throw = False # throw exception on unknown path names
0024 process.hltHighLevelDev.HLTPathsPrescales  = cms.vuint32(
0025    1,    #'HLT_PhysicsDeclared',
0026     )
0027 process.hltHighLevelDev.HLTOverallPrescale = cms.uint32 (1)
0028 
0029 # All events from Zero PD, prescaled by a factor 10
0030 process.hltHighLevelDev2 = process.hltHighLevelDev.clone(andOr = True)
0031 process.hltHighLevelDev2.HLTPaths = (
0032    'HLT_PhysicsDeclared',
0033     )
0034 
0035 process.hltHighLevelDev2.andOr = True # True = OR, False = AND
0036 process.hltHighLevelDev2.throw = False # throw exception on unknown path names
0037 process.hltHighLevelDev2.HLTPathsPrescales  = cms.vuint32(
0038    1,    #'HLT_PhysicsDeclared',
0039     )
0040 process.hltHighLevelDev2.HLTOverallPrescale = cms.uint32 (10)
0041 
0042 process.configurationMetadata = cms.untracked.PSet(
0043     version = cms.untracked.string('$Revision: 1.1 $'),
0044     annotation = cms.untracked.string('skim'),
0045     name = cms.untracked.string('skim')
0046 )
0047 process.maxEvents = cms.untracked.PSet(
0048     input = cms.untracked.int32(100)
0049 )
0050 process.options = cms.untracked.PSet(
0051     Rethrow = cms.untracked.vstring('ProductNotFound')
0052 )
0053 # Input source
0054 process.source = cms.Source("PoolSource",
0055     fileNames = cms.untracked.vstring(
0056 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/16B938A8-7DDD-DE11-873D-003048D37514.root',
0057 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/20334064-77DD-DE11-9592-001D09F2AF96.root',
0058 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/56193FC8-7FDD-DE11-BAFD-003048D373AE.root',
0059 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/68BC42A8-82DD-DE11-8AB2-001D09F282F5.root',
0060 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/E62B7FEF-75DD-DE11-8BB3-00304879FA4A.root',
0061 #        '/store/data/BeamCommissioning09/ZeroBias/RAW/v1/000/123/056/1A460C9A-6DDD-DE11-8FF9-001617C3B6DC.root',
0062 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/F0B85C46-DCDD-DE11-8312-001D09F2423B.root',
0063 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/F082C441-DCDD-DE11-8DC2-001D09F248F8.root',
0064 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/DC7CCE42-DCDD-DE11-B2C6-001D09F2A465.root',
0065 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/BC946243-DCDD-DE11-8B8D-001D09F28F11.root',
0066 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/B200ED47-DCDD-DE11-B9F6-001D09F24FEC.root',
0067 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/A439AA41-DCDD-DE11-A4A5-001D09F28D54.root',
0068 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/A0A4F142-DCDD-DE11-AE97-0019B9F730D2.root',
0069 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/90D99042-DCDD-DE11-A086-001D09F2462D.root',
0070 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/8A566245-DCDD-DE11-B3E5-001D09F2841C.root',
0071 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/88E4C942-DCDD-DE11-88CC-001D09F24FBA.root',
0072 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/7A1D3F43-DCDD-DE11-97E2-001D09F295FB.root',
0073 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/70323F42-DCDD-DE11-8411-001D09F2514F.root',
0074 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/62B9CB46-DCDD-DE11-B517-001D09F241B9.root'
0075 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_4_PhysDecl.root',
0076 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_3.root',
0077 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_4.root',
0078 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_5.root',
0079 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_6.root'
0080     )
0081 )
0082 
0083 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*", "drop L1GlobalTriggerObjectMapRecord_hltL1GtObjectMap__HLT")
0084 
0085 # All zerobias with PhysicsDeclared
0086 process.output1 = cms.OutputModule("PoolOutputModule",
0087                                    splitLevel = cms.untracked.int32(0),
0088                                    outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0089                                    fileName = cms.untracked.string('SD_AllZeroBias_900GeV_PhysDecl.root'),
0090                                    dataset = cms.untracked.PSet(
0091                                       dataTier = cms.untracked.string('RAW-RECO'),
0092                                       filterName = cms.untracked.string('SD_AllZeroBias')
0093                                       ),
0094                                    SelectEvents = cms.untracked.PSet(
0095                                       SelectEvents = cms.vstring('skim1')
0096                                       )
0097 )
0098 
0099 # 10% of zerobias with PhysicsDeclared
0100 process.output2 = cms.OutputModule("PoolOutputModule",
0101                                    splitLevel = cms.untracked.int32(0),
0102                                    outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0103                                    fileName = cms.untracked.string('SD_ZeroBias10_900GeV_PhysDecl.root'),
0104                                    dataset = cms.untracked.PSet(
0105                                       dataTier = cms.untracked.string('RAW-RECO'),
0106                                       filterName = cms.untracked.string('SD_ZeroBias10')
0107                                       ),
0108                                    SelectEvents = cms.untracked.PSet(
0109                                       SelectEvents = cms.vstring('skim2')
0110                                       )
0111 )
0112 
0113 # the usage of trigger bits for selection is explained here:
0114 ## https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideEDMPathsAndTriggerBits#Selecting_Pass_for_Some_Trigger 
0115 
0116 process.skim1 = cms.Path(process.hltHighLevelDev)
0117 process.skim2 = cms.Path(process.hltHighLevelDev2)
0118 
0119 
0120 process.out_step = cms.EndPath(process.output1+process.output2)
0121 
0122 process.schedule = cms.Schedule(process.skim1,process.skim2)
0123 process.schedule.append(process.out_step)