CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DPGAnalysis/Skims/python/CSC_BeamHalo_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("SKIM")
00004 
00005 process.configurationMetadata = cms.untracked.PSet(
00006     version = cms.untracked.string('$Revision: 1.4 $'),
00007     name = cms.untracked.string('$Source: /local/reps/CMSSW/CMSSW/DPGAnalysis/Skims/python/CSC_BeamHalo_cfg.py,v $'),
00008     annotation = cms.untracked.string('CRAFT CSCSkim skim')
00009 )
00010 
00011 #
00012 #
00013 # This is for testing purposes.
00014 #
00015 #
00016 process.source = cms.Source("PoolSource",
00017                             fileNames = cms.untracked.vstring('/store/data/BeamCommissioning09/Cosmics/RECO/v2/000/123/151/5831FFE1-1CDE-DE11-AE90-001D09F2906A.root'),
00018                             secondaryFileNames = cms.untracked.vstring('/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/123/151/2C0CB595-0EDE-DE11-921B-0030487C6062.root')
00019 )
00020 
00021 process.maxEvents = cms.untracked.PSet(
00022     input = cms.untracked.int32(1000)
00023 )
00024 
00025 
00026 #------------------------------------------
00027 # Load standard sequences.
00028 #------------------------------------------
00029 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
00030 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
00031 
00032 
00033 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00034 process.GlobalTag.globaltag = 'GR09_P_V6::All' 
00035 
00036 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
00037 process.load("Configuration/StandardSequences/ReconstructionCosmics_cff")
00038 
00039 #------------------------------------------
00040 # parameters for the CSCSkim module
00041 #------------------------------------------
00042 process.load("DPGAnalysis/Skims/CSCSkim_cfi")
00043 
00044 
00045 #set to minimum activity
00046 process.cscSkim.minimumSegments = 1
00047 process.cscSkim.minimumHitChambers = 1
00048 
00049 # this is for filtering on HLT path
00050 process.hltBeamHalo = cms.EDFilter("HLTHighLevel",
00051      TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
00052      HLTPaths = cms.vstring('HLT_CSCBeamHalo','HLT_CSCBeamHaloOverlapRing1','HLT_CSCBeamHaloOverlapRing','HLT_CSCBeamHaloRing2or3'), # provide list of HLT paths (or patterns) you want
00053      eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
00054      andOr = cms.bool(True),             # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
00055      throw = cms.bool(False),    # throw exception on unknown path names
00056      saveTags = cms.bool(False)
00057  )
00058 
00059 #### the path
00060 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
00061 
00062 process.options = cms.untracked.PSet(
00063  wantSummary = cms.untracked.bool(True)
00064 )
00065 
00066 
00067 #### output 
00068 process.outputSkim = cms.OutputModule("PoolOutputModule",
00069     outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
00070     fileName = cms.untracked.string("cscskimEvents.root"),
00071     dataset = cms.untracked.PSet(
00072       dataTier = cms.untracked.string('RAW-RECO'),
00073       filterName = cms.untracked.string('CSCSkim_BeamHalo')
00074     ),
00075     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cscHaloSkim'))
00076 )
00077 
00078 process.outpath = cms.EndPath(process.outputSkim)
00079 
00080 
00081 
00082 
00083