CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuPDSkim_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.7 $'),
7  name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/MuPDSkim_cfg.py,v $'),
8  annotation = cms.untracked.string('Mu skim')
9 )
10 
11 #
12 #
13 # This is for testing purposes.
14 #
15 #
16 ##run143960
17 process.source = cms.Source("PoolSource",
18  fileNames = cms.untracked.vstring('/store/data/Run2010A/Mu/RECO/v4/000/144/114/9C954151-32B4-DF11-BB88-001D09F27003.root',
19  '/store/data/Run2010A/Mu/RECO/v4/000/144/114/5C9CA515-20B4-DF11-9D62-0030487A3DE0.root',
20  '/store/data/Run2010A/Mu/RECO/v4/000/144/114/00CA69A9-1EB4-DF11-B869-0030487CD6D2.root'),
21  secondaryFileNames = cms.untracked.vstring('/store/data/Run2010A/Mu/RAW/v1/000/144/114/70E434AF-04B4-DF11-B178-0030487CD718.root',
22  '/store/data/Run2010A/Mu/RAW/v1/000/144/114/C25ACF12-F3B3-DF11-8BB6-0030487CD700.root',
23  '/store/data/Run2010A/Mu/RAW/v1/000/144/114/643C84A4-F1B3-DF11-8809-003048F0258C.root')
24  )
25 
26 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
27 
28 process.maxEvents = cms.untracked.PSet(
29  input = cms.untracked.int32(1000)
30  )
31 
32 
33 #------------------------------------------
34 # Load standard sequences.
35 #------------------------------------------
36 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
37 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
38 
39 
40 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
41 process.GlobalTag.globaltag = 'GR_R_38X_V13::All'
42 
43 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
44 process.load("Configuration/StandardSequences/Reconstruction_cff")
45 process.load('Configuration/EventContent/EventContent_cff')
46 
47 #drop collections created on the fly
48 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
49 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
50 #
51 # Load common sequences
52 #
53 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
54 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
55 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
56 
57 #################################WZFilter############################################
58 
59 process.load("DPGAnalysis.Skims.WZMuSkim_cff")
60 
61 process.ZMuSkimPath = cms.Path(process.diMuonSelSeq)
62 process.WtcMetSkimPath = cms.Path(process.tcMetWMuNuSeq)
63 process.WpfMetSkimPath = cms.Path(process.pfMetWMuNuSeq)
64 
65 
66 process.SKIMStreamWZMu = cms.OutputModule("PoolOutputModule",
67  # splitLevel = cms.untracked.int32(0),
68  outputCommands = process.FEVTEventContent.outputCommands,
69  fileName = cms.untracked.string('/tmp/azzi/WZMuStream.root'),
70  dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
71  filterName = cms.untracked.string('WZMuFilter')),
72  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('ZMuSkimPath',
73  'WtcMetSkimPath',
74  'WpfMetSkimPath')
75  ))
76 
77 
78 #################################logerrorharvester############################################
79 
80 process.load("FWCore.Modules.logErrorFilter_cfi")
82 
83 process.gtEvmDigis = gtEvmDigis.clone()
84 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
85  L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
86  AllowedBeamMode = cms.vuint32(11),
87  saveTags = cms.bool(False)
88  )
89 
90 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
91 
92 process.outlogerr = cms.OutputModule("PoolOutputModule",
93  outputCommands = process.FEVTEventContent.outputCommands,
94  fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
95  dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
96  filterName = cms.untracked.string('Skim_logerror')),
97  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring("logerrorpath")
98  ))
99 
100 #======================
101 ######################################TPG Performance SKIMS#####################################
102 
103 process.load('DPGAnalysis/Skims/singleMuonSkim_cff')
104 process.load('DPGAnalysis/Skims/singleElectronSkim_cff')
105 process.load('DPGAnalysis/Skims/muonTagProbeFilters_cff')
106 process.load('DPGAnalysis/Skims/electronTagProbeFilters_cff')
107 process.load('DPGAnalysis/Skims/singlePhotonSkim_cff')
108 process.load('DPGAnalysis/Skims/jetSkim_cff')
109 process.load('DPGAnalysis/Skims/METSkim_cff')
110 process.load('DPGAnalysis/Skims/singlePfTauSkim_cff')
111 
112 #process.singleMuPt20SkimPath=cms.Path(process.singleMuPt20RecoQualitySeq)
113 #process.singleMuPt15SkimPath=cms.Path(process.singleMuPt15RecoQualitySeq)
114 #process.singleMuPt10SkimPath=cms.Path(process.singleMuPt10RecoQualitySeq)
115 process.singleMuPt5SkimPath=cms.Path(process.singleMuPt5RecoQualitySeq)
116 #process.singleElectronPt20SkimPath=cms.Path(process.singleElectronPt20RecoQualitySeq)
117 #process.singleElectronPt15SkimPath=cms.Path(process.singleElectronPt15RecoQualitySeq)
118 #process.singleElectronPt10SkimPath=cms.Path(process.singleElectronPt10RecoQualitySeq)
119 process.singleElectronPt5SkimPath=cms.Path(process.singleElectronPt5RecoQualitySeq)
120 #process.singlePhotonPt20SkimPath=cms.Path(process.singlePhotonPt20QualitySeq)
121 #process.singlePhotonPt15SkimPath=cms.Path(process.singlePhotonPt15QualitySeq)
122 #process.singlePhotonPt10SkimPath=cms.Path(process.singlePhotonPt10QualitySeq)
123 process.singlePhotonPt5SkimPath=cms.Path(process.singlePhotonPt5QualitySeq)
124 #process.muonZMMSkimPath=cms.Path(process.muonZMMRecoQualitySeq)
125 process.muonJPsiMMSkimPath=cms.Path(process.muonJPsiMMRecoQualitySeq)
126 #process.electronZEESkimPath=cms.Path(process.electronZEERecoQualitySeq)
127 process.jetSkimPath=cms.Path(process.jetRecoQualitySeq)
128 #process.METSkimPath=cms.Path(process.METQualitySeq)
129 process.singlePfTauPt15SkimPath=cms.Path(process.singlePfTauPt15QualitySeq)
130 
131 process.outTPGSkim = cms.OutputModule("PoolOutputModule",
132  outputCommands = process.FEVTHLTALLEventContent.outputCommands,
133  fileName = cms.untracked.string("/tmp/azzi/TPGSkim.root"),
134  dataset = cms.untracked.PSet(
135  dataTier = cms.untracked.string('USER'),
136  filterName = cms.untracked.string('TPGSkim')
137  ),
138  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
139  #'singleMuPt20SkimPath',
140  #'singleMuPt15SkimPath',
141  #'singleMuPt10SkimPath',
142  'singleMuPt5SkimPath',
143  #'singleElectronPt20SkimPath',
144  #'singleElectronPt15SkimPath',
145  #'singleElectronPt10SkimPath',
146  'singleElectronPt5SkimPath',
147  #'singlePhotonPt20SkimPath',
148  #'singlePhotonPt15SkimPath',
149  #'singlePhotonPt10SkimPath',
150  'singlePhotonPt5SkimPath',
151  #'muonZMMSkimPath',
152  'muonJPsiMMSkimPath',
153  #'electronZEESkimPath',
154  'jetSkimPath',
155  #'METSkimPath',
156  'singlePfTauPt15SkimPath'))
157 )
158 
159 
160 ###########################################################################
161 
162 process.options = cms.untracked.PSet(
163  wantSummary = cms.untracked.bool(True)
164 )
165 
166 process.outpath = cms.EndPath(process.outlogerr+process.SKIMStreamWZMu+process.outTPGSkim)