Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:15

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/CSC_BeamHalo_cfg.py,v $'),
0008     annotation = cms.untracked.string('CRAFT CSCSkim skim')
0009 )
0010 
0011 #
0012 #
0013 # This is for testing purposes.
0014 #
0015 #
0016 process.source = cms.Source("PoolSource",
0017                             fileNames = cms.untracked.vstring('/store/data/BeamCommissioning09/Cosmics/RECO/v2/000/123/151/5831FFE1-1CDE-DE11-AE90-001D09F2906A.root'),
0018                             secondaryFileNames = cms.untracked.vstring('/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/123/151/2C0CB595-0EDE-DE11-921B-0030487C6062.root')
0019 )
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(1000)
0023 )
0024 
0025 
0026 #------------------------------------------
0027 # Load standard sequences.
0028 #------------------------------------------
0029 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0030 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
0031 
0032 
0033 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0034 process.GlobalTag.globaltag = 'GR09_P_V6::All' 
0035 
0036 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
0037 process.load("Configuration/StandardSequences/ReconstructionCosmics_cff")
0038 
0039 #------------------------------------------
0040 # parameters for the CSCSkim module
0041 #------------------------------------------
0042 process.load("DPGAnalysis/Skims/CSCSkim_cfi")
0043 
0044 
0045 #set to minimum activity
0046 process.cscSkim.minimumSegments = 1
0047 process.cscSkim.minimumHitChambers = 1
0048 
0049 # this is for filtering on HLT path
0050 process.hltBeamHalo = cms.EDFilter("HLTHighLevel",
0051      TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
0052      HLTPaths = cms.vstring('HLT_CSCBeamHalo','HLT_CSCBeamHaloOverlapRing1','HLT_CSCBeamHaloOverlapRing','HLT_CSCBeamHaloRing2or3'), # provide list of HLT paths (or patterns) you want
0053      eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
0054      andOr = cms.bool(True),             # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
0055      throw = cms.bool(False),    # throw exception on unknown path names
0056      saveTags = cms.bool(False)
0057  )
0058 
0059 #### the path
0060 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
0061 
0062 process.options = cms.untracked.PSet(
0063  wantSummary = cms.untracked.bool(True)
0064 )
0065 
0066 
0067 #### output 
0068 process.outputSkim = cms.OutputModule("PoolOutputModule",
0069     outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0070     fileName = cms.untracked.string("cscskimEvents.root"),
0071     dataset = cms.untracked.PSet(
0072       dataTier = cms.untracked.string('RAW-RECO'),
0073       filterName = cms.untracked.string('CSCSkim_BeamHalo')
0074     ),
0075     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cscHaloSkim'))
0076 )
0077 
0078 process.outpath = cms.EndPath(process.outputSkim)
0079 
0080 
0081 
0082 
0083