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 MinBias 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 MinBias 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 
0043 # All interesting events.
0044 process.hltHighLevelDev3 = process.hltHighLevelDev.clone(andOr = True)
0045 process.hltHighLevelDev3.HLTPaths = (
0046    'HLT_BTagIP_Jet50U',                
0047    'HLT_BTagMu_Jet10U',                
0048    'HLT_DiJetAve15U_8E29',             
0049    'HLT_DiJetAve30U_8E29',             
0050    'HLT_DoubleEle5_SW_L1R',            
0051    'HLT_DoubleLooseIsoTau15',          
0052    'HLT_DoubleMu0',                    
0053    'HLT_DoubleMu3',                    
0054    'HLT_DoublePhoton10_L1R',           
0055    'HLT_DoublePhoton5_Jpsi_L1R',       
0056    'HLT_DoublePhoton5_Upsilon_L1R',    
0057    'HLT_DoublePhoton5_eeRes_L1R',      
0058    'HLT_EgammaSuperClusterOnly_L1R',   
0059    'HLT_Ele10_LW_EleId_L1R',           
0060    'HLT_Ele10_LW_L1R',                 
0061    'HLT_Ele15_LW_L1R',                 
0062    'HLT_Ele15_SC10_LW_L1R',            
0063    'HLT_Ele15_SiStrip_L1R',            
0064    'HLT_Ele20_LW_L1R',                 
0065    'HLT_FwdJet20U',                    
0066    'HLT_HT100U',                       
0067    'HLT_HighMultiplicityBSC',          
0068    'HLT_IsoMu3',                       
0069    'HLT_IsoTrackHB_8E29',              
0070    'HLT_IsoTrackHE_8E29',              
0071    'HLT_Jet15U',                       
0072    'HLT_Jet30U',                       
0073    'HLT_Jet50U',                       
0074    'HLT_L1DoubleEG5',                  
0075    'HLT_L1DoubleMuOpen',               
0076    'HLT_L1Jet6U',                      
0077    'HLT_L1MET20',                      
0078    'HLT_L1Mu',                         
0079    'HLT_L1Mu14_L1ETM30',               
0080    'HLT_L1Mu14_L1SingleEG10',          
0081    'HLT_L1Mu14_L1SingleJet6U',         
0082    'HLT_L1Mu20',                       
0083    'HLT_L1MuOpen',                     
0084    'HLT_L1SingleEG5',                  
0085    'HLT_L1SingleEG8',                  
0086    'HLT_L1SingleForJet',               
0087    'HLT_L2Mu11',                       
0088    'HLT_L2Mu9',                        
0089    'HLT_MET100',                       
0090    'HLT_MET45',                        
0091    'HLT_Mu3',                          
0092    'HLT_Mu5',                          
0093    'HLT_Mu9',                          
0094    'HLT_Photon10_L1R',                 
0095    'HLT_Photon15_L1R',                 
0096    'HLT_Photon15_LooseEcalIso_L1R',    
0097    'HLT_Photon15_TrackIso_L1R',        
0098    'HLT_Photon20_L1R',                 
0099    'HLT_Photon30_L1R_8E29',            
0100    'HLT_QuadJet15U',                   
0101    'HLT_SingleLooseIsoTau20',          
0102    'HLT_StoppedHSCP_8E29'
0103     )
0104 
0105 process.hltHighLevelDev3.andOr = True # True = OR, False = AND
0106 process.hltHighLevelDev3.throw = False # throw exception on unknown path names
0107 process.hltHighLevelDev3.HLTPathsPrescales  = cms.vuint32(
0108    1,   #'HLT_BTagIP_Jet50U',                
0109    1,   #'HLT_BTagMu_Jet10U',                
0110    1,   #'HLT_DiJetAve15U_8E29',             
0111    1,   #'HLT_DiJetAve30U_8E29',             
0112    1,   #'HLT_DoubleEle5_SW_L1R',            
0113    1,   #'HLT_DoubleLooseIsoTau15',          
0114    1,   #'HLT_DoubleMu0',                    
0115    1,   #'HLT_DoubleMu3',                    
0116    1,   #'HLT_DoublePhoton10_L1R',           
0117    1,   #'HLT_DoublePhoton5_Jpsi_L1R',       
0118    1,   #'HLT_DoublePhoton5_Upsilon_L1R',    
0119    1,   #'HLT_DoublePhoton5_eeRes_L1R',      
0120    1,   #'HLT_EgammaSuperClusterOnly_L1R',   
0121    1,   #'HLT_Ele10_LW_EleId_L1R',           
0122    1,   #'HLT_Ele10_LW_L1R',                 
0123    1,   #'HLT_Ele15_LW_L1R',                 
0124    1,   #'HLT_Ele15_SC10_LW_L1R',            
0125    1,   #'HLT_Ele15_SiStrip_L1R',            
0126    1,   #'HLT_Ele20_LW_L1R',                 
0127    1,   #'HLT_FwdJet20U',                    
0128    1,   #'HLT_HT100U',                       
0129    1,   #'HLT_HighMultiplicityBSC',          
0130    1,   #'HLT_IsoMu3',                       
0131    1,   #'HLT_IsoTrackHB_8E29',              
0132    1,   #'HLT_IsoTrackHE_8E29',              
0133    1,   #'HLT_Jet15U',                       
0134    1,   #'HLT_Jet30U',                       
0135    1,   #'HLT_Jet50U',                       
0136    1,   #'HLT_L1DoubleEG5',                  
0137    1,   #'HLT_L1DoubleMuOpen',               
0138    1,   #'HLT_L1Jet6U',                      
0139    1,   #'HLT_L1MET20',                      
0140    1,   #'HLT_L1Mu',                         
0141    1,   #'HLT_L1Mu14_L1ETM30',               
0142    1,   #'HLT_L1Mu14_L1SingleEG10',          
0143    1,   #'HLT_L1Mu14_L1SingleJet6U',         
0144    1,   #'HLT_L1Mu20',                       
0145    1,   #'HLT_L1MuOpen',                     
0146    1,   #'HLT_L1SingleEG5',                  
0147    1,   #'HLT_L1SingleEG8',                  
0148    1,   #'HLT_L1SingleForJet',               
0149    1,   #'HLT_L2Mu11',                       
0150    1,   #'HLT_L2Mu9',                        
0151    1,   #'HLT_MET100',                       
0152    1,   #'HLT_MET45',                        
0153    1,   #'HLT_Mu3',                          
0154    1,   #'HLT_Mu5',                          
0155    1,   #'HLT_Mu9',                          
0156    1,   #'HLT_Photon10_L1R',                 
0157    1,   #'HLT_Photon15_L1R',                 
0158    1,   #'HLT_Photon15_LooseEcalIso_L1R',    
0159    1,   #'HLT_Photon15_TrackIso_L1R',        
0160    1,   #'HLT_Photon20_L1R',                 
0161    1,   #'HLT_Photon30_L1R_8E29',            
0162    1,   #'HLT_QuadJet15U',                   
0163    1,   #'HLT_SingleLooseIsoTau20',          
0164    1    #'HLT_StoppedHSCP_8E29'
0165     )
0166 process.hltHighLevelDev3.HLTOverallPrescale = cms.uint32 (1)
0167 
0168 process.configurationMetadata = cms.untracked.PSet(
0169     version = cms.untracked.string('$Revision: 1.1 $'),
0170     annotation = cms.untracked.string('skim'),
0171     name = cms.untracked.string('skim')
0172 )
0173 process.maxEvents = cms.untracked.PSet(
0174     input = cms.untracked.int32(100)
0175 )
0176 process.options = cms.untracked.PSet(
0177     Rethrow = cms.untracked.vstring('ProductNotFound')
0178 )
0179 # Input source
0180 process.source = cms.Source("PoolSource",
0181     fileNames = cms.untracked.vstring(
0182 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/16B938A8-7DDD-DE11-873D-003048D37514.root',
0183 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/20334064-77DD-DE11-9592-001D09F2AF96.root',
0184 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/56193FC8-7FDD-DE11-BAFD-003048D373AE.root',
0185 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/68BC42A8-82DD-DE11-8AB2-001D09F282F5.root',
0186 '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/060/E62B7FEF-75DD-DE11-8BB3-00304879FA4A.root',
0187 #        '/store/data/BeamCommissioning09/ZeroBias/RAW/v1/000/123/056/1A460C9A-6DDD-DE11-8FF9-001617C3B6DC.root',
0188 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/F0B85C46-DCDD-DE11-8312-001D09F2423B.root',
0189 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/F082C441-DCDD-DE11-8DC2-001D09F248F8.root',
0190 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/DC7CCE42-DCDD-DE11-B2C6-001D09F2A465.root',
0191 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/BC946243-DCDD-DE11-8B8D-001D09F28F11.root',
0192 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/B200ED47-DCDD-DE11-B9F6-001D09F24FEC.root',
0193 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/A439AA41-DCDD-DE11-A4A5-001D09F28D54.root',
0194 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/A0A4F142-DCDD-DE11-AE97-0019B9F730D2.root',
0195 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/90D99042-DCDD-DE11-A086-001D09F2462D.root',
0196 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/8A566245-DCDD-DE11-B3E5-001D09F2841C.root',
0197 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/88E4C942-DCDD-DE11-88CC-001D09F24FBA.root',
0198 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/7A1D3F43-DCDD-DE11-97E2-001D09F295FB.root',
0199 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/70323F42-DCDD-DE11-8411-001D09F2514F.root',
0200 #        '/store/data/BeamCommissioning09/MinimumBias/RAW/v1/000/123/140/62B9CB46-DCDD-DE11-B517-001D09F241B9.root'
0201 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_4_PhysDecl.root',
0202 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_3.root',
0203 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_4.root',
0204 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_5.root',
0205 #    'file:/data/rossin/CMS/store/mc/Summer09/MinBias/GEN-SIM-RAW/STARTUP3X_V8D_900GeV-v1/outputA_6.root'
0206     )
0207 )
0208 
0209 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*", "drop L1GlobalTriggerObjectMapRecord_hltL1GtObjectMap__HLT")
0210 
0211 # All minbias with PhysicsDeclared
0212 process.output1 = cms.OutputModule("PoolOutputModule",
0213                                    splitLevel = cms.untracked.int32(0),
0214                                    outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0215                                    fileName = cms.untracked.string('SD_AllMinBias_900GeV_PhysDecl.root'),
0216                                    dataset = cms.untracked.PSet(
0217                                       dataTier = cms.untracked.string('RAW-RECO'),
0218                                       filterName = cms.untracked.string('SD_AllMinBias')
0219                                       ),
0220                                    SelectEvents = cms.untracked.PSet(
0221                                       SelectEvents = cms.vstring('skim1')
0222                                       )
0223 )
0224 
0225 # 10% of minbias with PhysicsDeclared + all the interesting events
0226 process.output2 = cms.OutputModule("PoolOutputModule",
0227                                    splitLevel = cms.untracked.int32(0),
0228                                    outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0229                                    fileName = cms.untracked.string('SD_InterestingEvents_MinBias10_900GeV_PhysDecl.root'),
0230                                    dataset = cms.untracked.PSet(
0231                                       dataTier = cms.untracked.string('RAW-RECO'),
0232                                       filterName = cms.untracked.string('SD_InterestingEvents_MinBias10')
0233                                       ),
0234                                    SelectEvents = cms.untracked.PSet(
0235                                       SelectEvents = cms.vstring('skim2','skim3')
0236                                       )
0237 )
0238 
0239 # All the interesting events
0240 process.output3 = cms.OutputModule("PoolOutputModule",
0241                                    splitLevel = cms.untracked.int32(0),
0242                                    outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0243                                    fileName = cms.untracked.string('SD_InterestingEvent.root'),
0244                                    dataset = cms.untracked.PSet(
0245                                       dataTier = cms.untracked.string('RAW-RECO'),
0246                                       filterName = cms.untracked.string('SD_InterestingEvents')
0247                                       ),
0248                                    SelectEvents = cms.untracked.PSet(
0249                                       SelectEvents = cms.vstring('skim3')
0250                                       )
0251 )
0252 
0253 # the usage of trigger bits for selection is explained here:
0254 ## https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideEDMPathsAndTriggerBits#Selecting_Pass_for_Some_Trigger 
0255 
0256 process.skim1 = cms.Path(process.hltHighLevelDev)
0257 process.skim2 = cms.Path(process.hltHighLevelDev2)
0258 process.skim3 = cms.Path(process.hltHighLevelDev+process.hltHighLevelDev3)
0259 
0260 
0261 process.out_step = cms.EndPath(process.output1+process.output2+process.output3)
0262 
0263 process.schedule = cms.Schedule(process.skim1,process.skim2,process.skim3)
0264 process.schedule.append(process.out_step)