File indexing completed on 2024-04-06 11:58:31
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("DumpFileToDB")
0004
0005 process.load("CondCore.CondDB.CondDB_cfi")
0006
0007 process.source = cms.Source("EmptySource",
0008 numberEventsInRun = cms.untracked.uint32(1),
0009 firstRun = cms.untracked.uint32(300000)
0010 )
0011
0012 process.maxEvents = cms.untracked.PSet(
0013 input = cms.untracked.int32(1)
0014 )
0015
0016
0017 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0018 process.GlobalTag.globaltag = "GR10_P_V5::All"
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0040 process.CondDB,
0041 toPut = cms.VPSet(cms.PSet(record = cms.string("DTTtrigRcd"),
0042 tag = cms.string("ttrig"))))
0043
0044 process.PoolDBOutputService.connect = cms.string("sqlite_file:ttrignew.db")
0045
0046 process.dumpToDB = cms.EDFilter("DumpFileToDB",
0047 differentialMode = cms.untracked.bool(True),
0048 calibFileConfig = cms.untracked.PSet(calibConstFileName = cms.untracked.string("ttrig_prompt.txt"),
0049 calibConstGranularity = cms.untracked.string('bySL'),
0050 nFields = cms.untracked.int32(5)
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064 ),
0065
0066
0067
0068
0069
0070
0071 dbToDump = cms.untracked.string('TTrigDB'))
0072
0073
0074 process.p = cms.Path(process.dumpToDB)
0075
0076