CMS 3D CMS Logo

config_costom.py
Go to the documentation of this file.
1 import os
2 import FWCore.ParameterSet.Config as cms
3 
4 
5 process = cms.Process('TauDQMOffline')
6 
7 process.load("FWCore.MessageLogger.MessageLogger_cfi")
8 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
9 
10 
11 # import of standard configurations
13 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
14 process.load('Configuration.StandardSequences.MagneticField_cff')
15 process.load('Configuration.StandardSequences.Reconstruction_cff')
16 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
17 process.load('Configuration.StandardSequences.Services_cff')
18 process.load('Configuration.EventContent.EventContent_cff')
19 
20 
21 process.GlobalTag.globaltag = '94X_dataRun2_ReReco_EOY17_v6'
22 
23 #process.load("DQMServices.Components.DQMStoreStats_cfi")
24 #process.load('DQMOffline.Configuration.DQMOffline_cff')
25 
26 
27 readFiles = cms.untracked.vstring()
28 secFiles = cms.untracked.vstring()
29 process.source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
30 
31 readFiles.extend( [
32  '/store/data/Run2017D/Tau/MINIAOD/31Mar2018-v1/00000/02FE19AF-3837-E811-B3FF-44A842B4520B.root'
33  ] );
34 
35 process.maxEvents = cms.untracked.PSet(
36  input = cms.untracked.int32( -1 )
37 )
38 
39 process.load('Validation.RecoTau.RecoTauValidation_cff')
40 #process.load('Validation.RecoTau.DQMSequences_cfi')
41 #process.load('Validation.RecoTau.RecoTauValidationMiniAOD_cfi')
42 
43 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
44 
45 
46 process.DQMoutput = cms.OutputModule("DQMRootOutputModule",
47  dataset = cms.untracked.PSet(
48  dataTier = cms.untracked.string('DQMIO'),
49  filterName = cms.untracked.string('')
50  ),
51  fileName = cms.untracked.string('RECO_RAW2DIGI_L1Reco_RECO_EI_PAT_DQM_inDQM.root'),
52  outputCommands = process.DQMEventContent.outputCommands,
53  splitLevel = cms.untracked.int32(0)
54 )
55 
56 
57 #Setup FWK for multithreaded
58 process.options.numberOfThreads=cms.untracked.uint32(8)
59 process.options.numberOfStreams=cms.untracked.uint32(0)
60 
61 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
62 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
64 
def customiseLogErrorHarvesterUsingOutputCommands(process)