Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:49

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("writeGBRForests")
0004 
0005 process.maxEvents = cms.untracked.PSet(            
0006     input = cms.untracked.int32(1) # CV: needs to be set to 1 so that GBRForestWriter::analyze method gets called exactly once         
0007 )
0008 
0009 process.source = cms.Source("EmptySource")
0010 
0011 process.load('Configuration/StandardSequences/Services_cff')
0012 
0013 process.gbrForestWriter = cms.EDAnalyzer("GBRForestWriter",
0014     jobs = cms.VPSet(
0015         cms.PSet(
0016             inputFileName = cms.FileInPath('RecoMET/METPUSubtraction/data/gbrmet_53_Dec2012.root'),
0017             inputFileType = cms.string("GBRForest"),
0018             gbrForestName = cms.string("U1Correction"),
0019             outputFileType = cms.string("SQLLite"),                                      
0020             outputRecord = cms.string("mvaPFMET_53_Dec2012_U")
0021         ),
0022         cms.PSet(
0023             inputFileName = cms.FileInPath('RecoMET/METPUSubtraction/data/gbrmetphi_53_Dec2012.root'),
0024             inputFileType = cms.string("GBRForest"),            
0025             gbrForestName = cms.string("PhiCorrection"),
0026             outputFileType = cms.string("SQLLite"),                                      
0027             outputRecord = cms.string("mvaPFMET_53_Dec2012_DPhi")
0028         ),
0029         cms.PSet(
0030             inputFileName = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru1cov_53_Dec2012.root'),
0031             inputFileType = cms.string("GBRForest"),                                       
0032             gbrForestName = cms.string("CovU1"),
0033             outputFileType = cms.string("SQLLite"),                                     
0034             outputRecord = cms.string("mvaPFMET_53_Dec2012_CovU1")
0035         ),
0036         cms.PSet(
0037             inputFileName = cms.FileInPath('RecoMET/METPUSubtraction/data/gbru2cov_53_Dec2012.root'),
0038             inputFileType = cms.string("GBRForest"),                                       
0039             gbrForestName = cms.string("CovU2"),
0040             outputFileType = cms.string("SQLLite"), 
0041             outputRecord = cms.string("mvaPFMET_53_Dec2012_CovU2")
0042         )                                             
0043     )
0044 )
0045 
0046 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0047 process.CondDBCommon.connect = 'sqlite_file:../data/mvaPFMEt_53_Dec2012.db'
0048 
0049 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0050     process.CondDBCommon,
0051     timetype = cms.untracked.string('runnumber'),
0052     toPut = cms.VPSet(
0053         cms.PSet(
0054             record = cms.string('mvaPFMET_53_Dec2012_U'),
0055             tag = cms.string('mvaPFMET_53_Dec2012_U')
0056         ),
0057         cms.PSet(
0058             record = cms.string('mvaPFMET_53_Dec2012_DPhi'),
0059             tag = cms.string('mvaPFMET_53_Dec2012_DPhi')
0060         ),
0061         cms.PSet(
0062             record = cms.string('mvaPFMET_53_Dec2012_CovU1'),
0063             tag = cms.string('mvaPFMET_53_Dec2012_CovU1')
0064         ),
0065         cms.PSet(
0066             record = cms.string('mvaPFMET_53_Dec2012_CovU2'),
0067             tag = cms.string('mvaPFMET_53_Dec2012_CovU2')
0068         )
0069     )
0070 )
0071 
0072 process.p = cms.Path(process.gbrForestWriter)