forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#23589 from ggovi/lhcinfo-o2o-1-10_2_X
Changes for LHCInfo O2O
- Loading branch information
Showing
7 changed files
with
854 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import socket | ||
import FWCore.ParameterSet.Config as cms | ||
import FWCore.ParameterSet.VarParsing as VarParsing | ||
process = cms.Process("LHCInfoPopulator") | ||
from CondCore.CondDB.CondDB_cfi import * | ||
#process.load("CondCore.DBCommon.CondDBCommon_cfi") | ||
#process.CondDBCommon.connect = 'sqlite_file:lhcinfo_pop_test.db' | ||
#process.CondDBCommon.DBParameters.authenticationPath = '.' | ||
#process.CondDBCommon.DBParameters.messageLevel=cms.untracked.int32(1) | ||
|
||
sourceConnection = 'oracle://cms_omds_adg/CMS_RUNINFO_R' | ||
if socket.getfqdn().find('.cms') != -1: | ||
sourceConnection = 'oracle://cms_omds_lb/CMS_RUNINFO_R' | ||
|
||
options = VarParsing.VarParsing() | ||
options.register( 'destinationConnection' | ||
, 'sqlite_file:lhcinfo_pop_test.db' #default value | ||
, VarParsing.VarParsing.multiplicity.singleton | ||
, VarParsing.VarParsing.varType.string | ||
, "Connection string to the DB where payloads will be possibly written." | ||
) | ||
options.register( 'targetConnection' | ||
, '' #default value | ||
, VarParsing.VarParsing.multiplicity.singleton | ||
, VarParsing.VarParsing.varType.string | ||
, """Connection string to the target DB: | ||
if not empty (default), this provides the latest IOV and payloads to compare; | ||
it is the DB where payloads should be finally uploaded.""" | ||
) | ||
options.register( 'tag' | ||
, 'LHCInfo_PopCon_test' | ||
, VarParsing.VarParsing.multiplicity.singleton | ||
, VarParsing.VarParsing.varType.string | ||
, "Tag written in destinationConnection and finally appended in targetConnection." | ||
) | ||
options.register( 'messageLevel' | ||
, 0 #default value | ||
, VarParsing.VarParsing.multiplicity.singleton | ||
, VarParsing.VarParsing.varType.int | ||
, "Message level; default to 0" | ||
) | ||
options.parseArguments() | ||
|
||
CondDBConnection = CondDB.clone( connect = cms.string( options.destinationConnection ) ) | ||
CondDBConnection.DBParameters.messageLevel = cms.untracked.int32( options.messageLevel ) | ||
|
||
process.MessageLogger = cms.Service("MessageLogger", | ||
cout = cms.untracked.PSet(threshold = cms.untracked.string('INFO')), | ||
destinations = cms.untracked.vstring('cout') | ||
) | ||
|
||
process.source = cms.Source("EmptyIOVSource", | ||
lastValue = cms.uint64(1), | ||
timetype = cms.string('runnumber'), | ||
firstValue = cms.uint64(1), | ||
interval = cms.uint64(1) | ||
) | ||
|
||
process.PoolDBOutputService = cms.Service("PoolDBOutputService", | ||
CondDBConnection, | ||
timetype = cms.untracked.string('timestamp'), | ||
toPut = cms.VPSet(cms.PSet(record = cms.string('LHCInfoRcd'), | ||
tag = cms.string( options.tag ) | ||
) | ||
) | ||
) | ||
|
||
process.Test1 = cms.EDAnalyzer("LHCInfoPopConAnalyzer", | ||
SinceAppendMode = cms.bool(True), | ||
record = cms.string('LHCInfoRcd'), | ||
name = cms.untracked.string('LHCInfo'), | ||
Source = cms.PSet(fill = cms.untracked.uint32(6417), | ||
startTime = cms.untracked.string('2018-05-31 00:00:00.000'), | ||
#endTime = cms.untracked.string('2018-05-31 20:13:59.000'), | ||
samplingInterval = cms.untracked.uint32( 600 ), | ||
endFill = cms.untracked.bool(True), | ||
connectionString = cms.untracked.string("oracle://cms_orcon_adg/CMS_RUNTIME_LOGGER"), | ||
ecalConnectionString = cms.untracked.string("oracle://cms_orcon_adg/CMS_DCS_ENV_PVSS_COND"), | ||
DIPSchema = cms.untracked.string("CMS_BEAM_COND"), | ||
debug=cms.untracked.bool(False) | ||
), | ||
loggingOn = cms.untracked.bool(True), | ||
IsDestDbCheckedInQueryLog = cms.untracked.bool(False) | ||
) | ||
|
||
process.p = cms.Path(process.Test1) |
Oops, something went wrong.