CMS 3D CMS Logo

logErrorSkim_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.1 $'),
7  name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/logErrorSkim_cfg.py,v $'),
8  annotation = cms.untracked.string('LogError 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 = 'GR10_P_V8::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 process.load("FWCore.Modules.logErrorFilter_cfi")
58 
59 process.gtEvmDigis = gtEvmDigis.clone()
60 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
61  L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
62  AllowedBeamMode = cms.vuint32(11),
63  saveTags = cms.bool(False)
64  )
65 
66 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
67 
68 process.outlogerr = cms.OutputModule("PoolOutputModule",
69  outputCommands = process.FEVTEventContent.outputCommands,
70  fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
71  dataset = cms.untracked.PSet(
72  dataTier = cms.untracked.string('RAW-RECO'),
73  filterName = cms.untracked.string('Skim_logerror')),
74 
75  SelectEvents = cms.untracked.PSet(
76  SelectEvents = cms.vstring("logerrorpath")
77  ))
78 
79 process.options = cms.untracked.PSet(
80  wantSummary = cms.untracked.bool(True)
81 )
82 
83 process.outpath = cms.EndPath(process.outlogerr)
RawToDigi_Data_cff