1 import FWCore.ParameterSet.Config
as cms
2 process = cms.Process(
"ANA")
4 process.load(
"FWCore.MessageService.MessageLogger_cfi")
5 process.MessageLogger.cerr.FwkReport.reportEvery = 10000
6 process.MessageLogger.cerr.default.limit = 100000000
9 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
11 from python.fastFileList
import filelist
14 process.source = cms.Source(
"PoolSource",
15 fileNames = cms.untracked.vstring(
22 outFileName =
"out_tree.root"
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"
31 process.TFileService = cms.Service(
"TFileService",
32 fileName = cms.string( outFileName )
35 process.load(
"Configuration.StandardSequences.Analysis_cff")
37 process.treeWriterForEcalCorrection = cms.EDAnalyzer(
'TreeWriterForEcalCorrection')
38 process.p = cms.Path( process.treeWriterForEcalCorrection )