CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EGPDSkim_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.4 $'),
7  name = cms.untracked.string('$Source: /cvs/CMSSW/CMSSW/DPGAnalysis/Skims/python/EGPDSkim_cfg.py,v $'),
8  annotation = cms.untracked.string('EGamma 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(
19  '/store/data/Run2010A/EG/RECO/v4/000/143/960/84DEE17A-44B1-DF11-B844-001D09F29849.root'
20  ),
21  secondaryFileNames = cms.untracked.vstring(
22 '/store/data/Run2010A/EG/RAW/v1/000/143/960/C40C9318-0FB1-DF11-A974-0030487CBD0A.root')
23  )
24 
25 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
26 
27 process.maxEvents = cms.untracked.PSet(
28  input = cms.untracked.int32(1000)
29  )
30 
31 
32 #------------------------------------------
33 # Load standard sequences.
34 #------------------------------------------
35 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
36 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
37 
38 
39 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
40 process.GlobalTag.globaltag = 'GR10_P_V8::All'
41 
42 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
43 process.load("Configuration/StandardSequences/Reconstruction_cff")
44 process.load('Configuration/EventContent/EventContent_cff')
45 
46 #drop collections created on the fly
47 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
48 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
49 #
50 # Load common sequences
51 #
52 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
53 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
54 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
55 
56 #################################WZFilter############################################
57 
58 process.hltFilter = cms.EDFilter("HLTHighLevel",
59  TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
60  HLTPaths = cms.vstring(
61  # "HLT_Photon15_L1R",
62  # "HLT_Photon15_Cleaned_L1R",
63  # "HLT_Photon20_Cleaned_L1R",
64  "HLT_Ele15_LW_L1R",
65  "HLT_Ele15_SW_L1R",
66  "HLT_Ele15_SW_CaloEleId_L1R",
67  "HLT_Ele17_SW_CaloEleId_L1R",
68  "HLT_Ele17_SW_L1R",
69  "HLT_Ele17_SW_TightEleId_L1R",
70  "HLT_Ele17_SW_TightCaloEleId_SC8HE_L1R"
71  ),
72  eventSetupPathsKey = cms.string(''),
73  andOr = cms.bool(True),
74  throw = cms.bool(False),
75  saveTags = cms.bool(False)
76  )
77 
78 process.load("DPGAnalysis/Skims/WZinterestingEventFilter_cfi")
79 
80 process.WZfilter = cms.Path(process.hltFilter*process.WZInterestingEventSelector)
81 
82 # Output definition
83 process.outWZfilter = cms.OutputModule("PoolOutputModule",
84  # splitLevel = cms.untracked.int32(0),
85  outputCommands = process.FEVTEventContent.outputCommands,
86  fileName = cms.untracked.string('/tmp/azzi/EGMWZ_filter.root'),
87  dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
88  filterName = cms.untracked.string('EGMWZFilter')),
89  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('WZfilter')
90  ))
91 
92 
93 #################################logerrorharvester############################################
94 
95 process.load("FWCore.Modules.logErrorFilter_cfi")
97 
98 process.gtEvmDigis = gtEvmDigis.clone()
99 process.stableBeam = cms.EDFilter("HLTBeamModeFilter",
100  L1GtEvmReadoutRecordTag = cms.InputTag("gtEvmDigis"),
101  AllowedBeamMode = cms.vuint32(11),
102  saveTags = cms.bool(False)
103  )
104 
105 process.logerrorpath=cms.Path(process.gtEvmDigis+process.stableBeam+process.logErrorFilter)
106 
107 process.outlogerr = cms.OutputModule("PoolOutputModule",
108  outputCommands = process.FEVTEventContent.outputCommands,
109  fileName = cms.untracked.string('/tmp/azzi/logerror_filter.root'),
110  dataset = cms.untracked.PSet(dataTier = cms.untracked.string('RAW-RECO'),
111  filterName = cms.untracked.string('Skim_logerror')),
112  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring("logerrorpath")
113  ))
114 
115 #======================
116 
117 process.options = cms.untracked.PSet(
118  wantSummary = cms.untracked.bool(True)
119 )
120 
121 process.outpath = cms.EndPath(process.outlogerr+process.outWZfilter)