CMS 3D CMS Logo

EcalLaser_express_popcon.py
Go to the documentation of this file.
1 from CondCore.Utilities.popcon2dropbox_job_conf import options, psetForRecord, setup_popcon
2 import CondTools.Ecal.db_credentials as auth
3 
4 recordName = "EcalLaserAPDPNRatiosRcd"
5 tagTimeType = "timestamp"
6 
7 process = setup_popcon( recordName, tagTimeType )
8 
9 process.MessageLogger = cms.Service("MessageLogger",
10  debugModules = cms.untracked.vstring('*'),
11  destinations = cms.untracked.vstring('cout')
12 )
13 
14 process.essource = cms.ESSource("PoolDBESSource",
15  connect = cms.string( str(options.destinationDatabase)),
16  DumpStat=cms.untracked.bool(True),
17  toGet = cms.VPSet( psetForRecord( recordName ) )
18 )
19 
20 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
21 
22 process.conf_o2o = cms.EDAnalyzer("ExTestEcalLaserAnalyzer",
23  SinceAppendMode = cms.bool(True),
24  record = cms.string( recordName ),
25  loggingOn = cms.untracked.bool(True),
26  Source = cms.PSet(
27  # maxtime is mandatory
28  # it can be expressed either as an absolute time with format YYYY-MM-DD HH24:MI:SS
29  # or as a relative time w.r.t. now, using -N, where N is expressed in units of hours
30  maxtime = cms.string("-1"),
31  sequences = cms.string("20"),
32  OnlineDBUser = cms.string(db_user),
33  # debug must be False for production
34  debug = cms.bool(False),
35  # if fake is True, no insertion in the db is performed
36  fake = cms.bool(False),
37  OnlineDBPassword = cms.string(db_pwd),
38  OnlineDBSID = cms.string(db_service)
39  ),
40  targetDBConnectionString = cms.untracked.string(str(options.destinationDatabase))
41 )
42 
43 process.p = cms.Path(process.conf_o2o)
44 
def setup_popcon(recordName, tagTimeType)