CMS 3D CMS Logo

EGMonitorPDSkim_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/EGMonitorPDSkim_cfg.py,v $'),
8  annotation = cms.untracked.string('Combined EGMonitor skim')
9 )
10 
11 #
12 #
13 # This is for testing purposes.
14 #
15 #
16 process.source = cms.Source("PoolSource",
17  fileNames = cms.untracked.vstring(
18 # run 136066 lumi~500
19 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
20  secondaryFileNames = cms.untracked.vstring(
21 '/store/data/Run2010A/MinimumBias/RAW/v1/000/136/066/38D48BED-3C66-DF11-88A5-001D09F27003.root')
22 )
23 
24 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
25 
26 process.maxEvents = cms.untracked.PSet(
27  input = cms.untracked.int32(1000)
28 )
29 
30 
31 #------------------------------------------
32 # Load standard sequences.
33 #------------------------------------------
34 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
35 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
36 
37 
38 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
39 process.GlobalTag.globaltag = 'GR_R_36X_V12B::All'
40 
41 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
42 process.load("Configuration/StandardSequences/Reconstruction_cff")
43 process.load('Configuration/EventContent/EventContent_cff')
44 
45 #drop collections created on the fly
46 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
47 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
48 #
49 # Load common sequences
50 #
51 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
52 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
53 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
54 
55 
56 
57 process.load("DPGAnalysis.Skims.filterRecHits_cfi")
58 
59 process.ecalrechitfilter = cms.Path(process.recHitEnergyFilter)
60 
61 
62 process.ecalrechitfilter_out = cms.OutputModule("PoolOutputModule",
63  fileName = cms.untracked.string('/tmp/azzi/ecalrechitfilter.root'),
64  outputCommands = process.FEVTEventContent.outputCommands,
65  dataset = cms.untracked.PSet(
66  dataTier = cms.untracked.string('RAW-RECO'),
67  filterName = cms.untracked.string('ECALRECHIT')),
68  SelectEvents = cms.untracked.PSet(
69  SelectEvents = cms.vstring('ecalrechitfilter')
70  )
71 )
72 
73 
75 
76 process.load('DPGAnalysis/Skims/singleMuonSkim_cff')
77 process.load('DPGAnalysis/Skims/singleElectronSkim_cff')
78 process.load('DPGAnalysis/Skims/muonTagProbeFilters_cff')
79 process.load('DPGAnalysis/Skims/electronTagProbeFilters_cff')
80 process.load('DPGAnalysis/Skims/singlePhotonSkim_cff')
81 process.load('DPGAnalysis/Skims/jetSkim_cff')
82 process.load('DPGAnalysis/Skims/METSkim_cff')
83 process.load('DPGAnalysis/Skims/singlePfTauSkim_cff')
84 
85 #process.singleMuPt20SkimPath=cms.Path(process.singleMuPt20RecoQualitySeq)
86 #process.singleMuPt15SkimPath=cms.Path(process.singleMuPt15RecoQualitySeq)
87 #process.singleMuPt10SkimPath=cms.Path(process.singleMuPt10RecoQualitySeq)
88 process.singleMuPt5SkimPath=cms.Path(process.singleMuPt5RecoQualitySeq)
89 #process.singleElectronPt20SkimPath=cms.Path(process.singleElectronPt20RecoQualitySeq)
90 #process.singleElectronPt15SkimPath=cms.Path(process.singleElectronPt15RecoQualitySeq)
91 #process.singleElectronPt10SkimPath=cms.Path(process.singleElectronPt10RecoQualitySeq)
92 process.singleElectronPt5SkimPath=cms.Path(process.singleElectronPt5RecoQualitySeq)
93 #process.singlePhotonPt20SkimPath=cms.Path(process.singlePhotonPt20QualitySeq)
94 #process.singlePhotonPt15SkimPath=cms.Path(process.singlePhotonPt15QualitySeq)
95 #process.singlePhotonPt10SkimPath=cms.Path(process.singlePhotonPt10QualitySeq)
96 process.singlePhotonPt5SkimPath=cms.Path(process.singlePhotonPt5QualitySeq)
97 #process.muonZMMSkimPath=cms.Path(process.muonZMMRecoQualitySeq)
98 process.muonJPsiMMSkimPath=cms.Path(process.muonJPsiMMRecoQualitySeq)
99 #process.electronZEESkimPath=cms.Path(process.electronZEERecoQualitySeq)
100 process.jetSkimPath=cms.Path(process.jetRecoQualitySeq)
101 #process.METSkimPath=cms.Path(process.METQualitySeq)
102 process.singlePfTauPt15SkimPath=cms.Path(process.singlePfTauPt15QualitySeq)
103 process.outTPGSkim = cms.OutputModule("PoolOutputModule",
104  outputCommands = process.FEVTHLTALLEventContent.outputCommands,
105  fileName = cms.untracked.string("/tmp/azzi/TPGSkim.root"),
106  dataset = cms.untracked.PSet(
107  dataTier = cms.untracked.string('USER'),
108  filterName = cms.untracked.string('TPGSkim')
109  ),
110  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
111  #'singleMuPt20SkimPath',
112  #'singleMuPt15SkimPath',
113  #'singleMuPt10SkimPath',
114  'singleMuPt5SkimPath',
115  #'singleElectronPt20SkimPath',
116  #'singleElectronPt15SkimPath',
117  #'singleElectronPt10SkimPath',
118  'singleElectronPt5SkimPath',
119  #'singlePhotonPt20SkimPath',
120  #'singlePhotonPt15SkimPath',
121  #'singlePhotonPt10SkimPath',
122  'singlePhotonPt5SkimPath',
123  #'muonZMMSkimPath',
124  'muonJPsiMMSkimPath',
125  #'electronZEESkimPath',
126  'jetSkimPath',
127  #'METSkimPath',
128  'singlePfTauPt15SkimPath'))
129 )
130 
131 
132 
133 
134 
135 process.load("FWCore.Modules.logErrorFilter_cfi")
137 
138 process.gtEvmDigis = gtEvmDigis.clone()
139 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
140  L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
141  AllowedBeamMode = cms.vuint32(11),
142  saveTags = cms.bool(False)
143  )
144 
145 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
146 
147 process.outlogerr = cms.OutputModule("PoolOutputModule",
148  outputCommands = process.FEVTEventContent.outputCommands,
149  fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
150  dataset = cms.untracked.PSet(
151  dataTier = cms.untracked.string('RAW-RECO'),
152  filterName = cms.untracked.string('Skim_logerror')),
153 
154  SelectEvents = cms.untracked.PSet(
155  SelectEvents = cms.vstring("logerrorpath")
156  ))
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.ecalrechitfilter_out+process.outTPGSkim+process.outlogerr)
RawToDigi_Data_cff