CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/RecoHI/HiCentralityAlgos/tools/makeTFileFromDB.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.VarParsing as VarParsing
00002 
00003 ivars = VarParsing.VarParsing('standard')
00004 ivars.files = 'dcache:/pnfs/cmsaf.mit.edu/t2bat/cms/store/user/yetkin/sim/CMSSW_3_3_5/Pythia_MinBias_D6T_900GeV_d20091208/Vertex1207/Pythia_MinBias_D6T_900GeV_d20091208_000005.root'
00005 
00006 ivars.output = 'bambu.root'
00007 ivars.maxEvents = -1
00008 
00009 ivars.parseArguments()
00010 
00011 import FWCore.ParameterSet.Config as cms
00012 
00013 process = cms.Process('DUMMY')
00014 
00015 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
00016 process.GlobalTag.globaltag = 'MC_38Y_V13::All'
00017 
00018 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(13))
00019 process.source = cms.Source("EmptyIOVSource",
00020                             timetype = cms.string("runnumber"),
00021                             firstValue = cms.uint64(1),
00022                             lastValue = cms.uint64(3),
00023                             interval = cms.uint64(3)
00024                             )
00025 
00026 process.TFileService = cms.Service('TFileService',
00027                                    fileName = cms.string('centralityfile.root')
00028                                    )
00029 
00030 process.HeavyIonGlobalParameters = cms.PSet(
00031        centralityVariable = cms.string("HFhits"),
00032           nonDefaultGlauberModel = cms.string("AMPT_2760GeV"),
00033           centralitySrc = cms.InputTag("hiCentrality")
00034           )
00035 
00036 process.makeCentralityTableTFile = cms.EDAnalyzer('CentralityTableProducer',
00037                                                   isMC = cms.untracked.bool(True),
00038                                                   makeDBFromTFile = cms.untracked.bool(False),
00039                                                   makeTFileFromDB = cms.untracked.bool(True)
00040                                                   )
00041 
00042 process.step  = cms.Path(process.makeCentralityTableTFile)
00043     
00044 
00045 
00046 
00047