CMS 3D CMS Logo

CSC_BeamHalo_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("SKIM")
4 
5 process.configurationMetadata = cms.untracked.PSet(
6  version = cms.untracked.string('$Revision: 1.3 $'),
7  name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/CSC_BeamHalo_cfg.py,v $'),
8  annotation = cms.untracked.string('CRAFT CSCSkim skim')
9 )
10 
11 #
12 #
13 # This is for testing purposes.
14 #
15 #
16 process.source = cms.Source("PoolSource",
17  fileNames = cms.untracked.vstring('/store/data/BeamCommissioning09/Cosmics/RECO/v2/000/123/151/5831FFE1-1CDE-DE11-AE90-001D09F2906A.root'),
18  secondaryFileNames = cms.untracked.vstring('/store/data/BeamCommissioning09/Cosmics/RAW/v1/000/123/151/2C0CB595-0EDE-DE11-921B-0030487C6062.root')
19 )
20 
21 process.maxEvents = cms.untracked.PSet(
22  input = cms.untracked.int32(1000)
23 )
24 
25 
26 #------------------------------------------
27 # Load standard sequences.
28 #------------------------------------------
29 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
30 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
31 
32 
33 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
34 process.GlobalTag.globaltag = 'GR09_P_V6::All'
35 
36 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
37 process.load("Configuration/StandardSequences/ReconstructionCosmics_cff")
38 
39 #------------------------------------------
40 # parameters for the CSCSkim module
41 #------------------------------------------
42 process.load("DPGAnalysis/Skims/CSCSkim_cfi")
43 
44 
45 #set to minimum activity
46 process.cscSkim.minimumSegments = 1
47 process.cscSkim.minimumHitChambers = 1
48 
49 # this is for filtering on HLT path
50 process.hltBeamHalo = cms.EDFilter("HLTHighLevel",
51  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
52  HLTPaths = cms.vstring('HLT_CSCBeamHalo','HLT_CSCBeamHaloOverlapRing1','HLT_CSCBeamHaloOverlapRing','HLT_CSCBeamHaloRing2or3'), # provide list of HLT paths (or patterns) you want
53  eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
54  andOr = cms.bool(True), # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
55  throw = cms.bool(False), # throw exception on unknown path names
56  saveTags = cms.bool(False)
57  )
58 
59 
60 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
61 
62 process.options = cms.untracked.PSet(
63  wantSummary = cms.untracked.bool(True)
64 )
65 
66 
67 
68 process.outputSkim = cms.OutputModule("PoolOutputModule",
69  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
70  fileName = cms.untracked.string("cscskimEvents.root"),
71  dataset = cms.untracked.PSet(
72  dataTier = cms.untracked.string('RAW-RECO'),
73  filterName = cms.untracked.string('CSCSkim_BeamHalo')
74  ),
75  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cscHaloSkim'))
76 )
77 
78 process.outpath = cms.EndPath(process.outputSkim)
79 
80 
81 
82 
83