Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0006 #process.GlobalTag.globaltag = 'STARTHI53_LV1'
0007 from Configuration.AlCa.GlobalTag import GlobalTag
0008 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc_HIon', '')
0009 
0010 process.GlobalTag.toGet.extend([
0011     cms.PSet(record = cms.string("HeavyIonRcd"),
0012         tag = cms.string("CentralityTable_HFtowers200_Glauber2010A_v5315x01_offline"),
0013         connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
0014         label = cms.untracked.string("HFtowers")
0015     ),
0016 ])
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019         input = cms.untracked.int32(100),
0020         )
0021 
0022 process.source = cms.Source("PoolSource",
0023     fileNames = cms.untracked.vstring('file:/tmp/azsigmon/hiReco_DIGI_L1_DIGI2RAW_RAW2DIGI_L1Reco_RECO_101_1_dNN.root'),
0024     )
0025 
0026 process.load("RecoHI.HiCentralityAlgos.CentralityBin_cfi")
0027 
0028 process.load("RecoHI.HiCentralityAlgos.CentralityFilter_cfi")
0029 process.centralityFilter.selectedBins = cms.vint32(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)
0030 
0031 process.output = cms.OutputModule( "PoolOutputModule",
0032     fileName = cms.untracked.string( "test_filter.root" ),
0033     outputCommands = cms.untracked.vstring(
0034       'drop *',
0035       'keep recoCentrality_*_*_*',
0036       'keep *_centralityBin_*_*',
0037     ),
0038     SelectEvents = cms.untracked.PSet(
0039     SelectEvents = cms.vstring('p'),
0040     ),
0041 )
0042 
0043 process.p = cms.Path(process.centralityBin * process.centralityFilter)
0044 process.out = cms.EndPath(process.output)