CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
makeTFileFromDB.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.VarParsing as VarParsing
2 
3 ivars = VarParsing.VarParsing('standard')
4 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'
5 
6 ivars.output = 'bambu.root'
7 ivars.maxEvents = -1
8 
9 ivars.parseArguments()
10 
11 import FWCore.ParameterSet.Config as cms
12 
13 process = cms.Process('DUMMY')
14 
15 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
16 process.GlobalTag.globaltag = 'MC_38Y_V13::All'
17 
18 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(13))
19 process.source = cms.Source("EmptyIOVSource",
20  timetype = cms.string("runnumber"),
21  firstValue = cms.uint64(1),
22  lastValue = cms.uint64(3),
23  interval = cms.uint64(3)
24  )
25 
26 process.TFileService = cms.Service('TFileService',
27  fileName = cms.string('centralityfile.root')
28  )
29 
30 process.HeavyIonGlobalParameters = cms.PSet(
31  centralityVariable = cms.string("HFhits"),
32  nonDefaultGlauberModel = cms.string("AMPT_2760GeV"),
33  centralitySrc = cms.InputTag("hiCentrality")
34  )
35 
36 process.makeCentralityTableTFile = cms.EDAnalyzer('CentralityTableProducer',
37  isMC = cms.untracked.bool(True),
38  makeDBFromTFile = cms.untracked.bool(False),
39  makeTFileFromDB = cms.untracked.bool(True)
40  )
41 
42 process.step = cms.Path(process.makeCentralityTableTFile)
43 
44 
45 
46 
47