CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TreeWriterForEcalCorrection_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 process = cms.Process("ANA")
3 
4 process.load("FWCore.MessageService.MessageLogger_cfi")
5 process.MessageLogger.cerr.FwkReport.reportEvery = 10000
6 process.MessageLogger.cerr.default.limit = 100000000
7 
8 
9 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
10 
11 from python.fastFileList import filelist
12 #from python.fullFileList import filelist
13 
14 process.source = cms.Source("PoolSource",
15  fileNames = cms.untracked.vstring(
16  #'/store/user/kiesel/SingleElectronGun_E80_fast/SingleElectronGun_E80_fast/a88c9ccbd07595a7d33ae9d4d6a917a0/out_2_1_X2L.root',
17  #'/store/user/kiesel/SingleElectronGun_E80_full/SingleElectronGun_E80_full/1d73d2566f2f721e3a7146e7729d743b/out_48_1_kkW.root'
18  filelist
19  )
20 )
21 
22 outFileName = "out_tree.root"
23 
24 # guess the output name from the 1. input name
25 fn0 = process.source.fileNames[0]
26 if "full" in fn0 or "Full" in fn0:
27  outFileName = "full_tree.root"
28 if "fast" in fn0 or "Fast" in fn0:
29  outFileName = "fast_tree.root"
30 
31 process.TFileService = cms.Service("TFileService",
32  fileName = cms.string( outFileName )
33 )
34 
35 process.load("Configuration.StandardSequences.Analysis_cff")
36 
37 process.treeWriterForEcalCorrection = cms.EDAnalyzer('TreeWriterForEcalCorrection')
38 process.p = cms.Path( process.treeWriterForEcalCorrection )
39