Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-13 03:23:09

0001 ###
0002 # Python file templates for condor jobs
0003 ###
0004 
0005 conditionsFileHeader="""
0006 import FWCore.ParameterSet.Config as cms
0007 from CalibTracker.Configuration.Common.PoolDBESSource_cfi import poolDBESSource
0008 def applyConditions(process):
0009     pass
0010 """
0011 
0012 conditionsTemplate="""
0013     process.my{record}Conditions = poolDBESSource.clone(
0014     connect = cms.string('{source}'),
0015     toGet = cms.VPSet(cms.PSet(record = cms.string('{record}'),
0016                             tag = cms.string('{tag}')
0017                             )
0018                     )
0019     )
0020     process.prefer_my{record}Conditions = cms.ESPrefer("PoolDBESSource", "my{record}Conditions")
0021 """
0022 
0023 # this is only used for MC samples as the file lists for data samples are created with an external script
0024 fileListTemplate="""
0025 import FWCore.ParameterSet.Config as cms
0026 
0027 readFiles = cms.untracked.vstring()
0028 source = cms.Source ("PoolSource",fileNames = readFiles)
0029 
0030 readFiles.extend( [
0031 {files}
0032 ])
0033 
0034 
0035 """