CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSC_BeamHalo_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("SKIM")
4 
5 process.configurationMetadata = cms.untracked.PSet(
6  version = cms.untracked.string('$Revision: 1.2 $'),
7  name = cms.untracked.string('$Source: /cvs_server/repositories/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  )
57 
58 #### the path
59 process.cscHaloSkim = cms.Path(process.hltBeamHalo+process.cscSkim)
60 
61 process.options = cms.untracked.PSet(
62  wantSummary = cms.untracked.bool(True)
63 )
64 
65 
66 #### output
67 process.outputSkim = cms.OutputModule("PoolOutputModule",
68  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
69  fileName = cms.untracked.string("cscskimEvents.root"),
70  dataset = cms.untracked.PSet(
71  dataTier = cms.untracked.string('RAW-RECO'),
72  filterName = cms.untracked.string('CSCSkim_BeamHalo')
73  ),
74  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('cscHaloSkim'))
75 )
76 
77 process.outpath = cms.EndPath(process.outputSkim)
78 
79 
80 
81 
82