CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalO2O_laser_online_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("ProcessOne")
4 process.load("CondCore.DBCommon.CondDBCommon_cfi")
5 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
6 #
7 # Choose the output database
8 #
9 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_311X_ECAL_LAS'
10 process.CondDBCommon.connect = 'sqlite_file:DB.db'
11 
12 process.MessageLogger = cms.Service("MessageLogger",
13  debugModules = cms.untracked.vstring('*'),
14  destinations = cms.untracked.vstring('cout')
15  )
16 
17 process.source = cms.Source("EmptyIOVSource",
18  firstValue = cms.uint64(1),
19  lastValue = cms.uint64(1),
20  timetype = cms.string('runnumber'),
21  interval = cms.uint64(1)
22  )
23 
24 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
25  process.CondDBCommon,
26  timetype = cms.untracked.string('timestamp'),
27  toGet = cms.VPSet(cms.PSet(
28  record = cms.string('EcalLaserAPDPNRatiosRcd'),
29  tag = cms.string('EcalLaserAPDPNRatios_v4_online')
30  ))
31  )
32 
33 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
34  process.CondDBCommon,
35  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
36  timetype = cms.untracked.string('timestamp'),
37  toPut = cms.VPSet(cms.PSet(
38  record = cms.string('EcalLaserAPDPNRatiosRcd'),
39  tag = cms.string('EcalLaserAPDPNRatios_v4_online')
40  ))
41  )
42 #
43 # Be sure to comment the following line while testing
44 #
45 #logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
46 
47 process.Test1 = cms.EDAnalyzer("ExTestEcalLaserAnalyzer",
48  SinceAppendMode = cms.bool(True),
49  record = cms.string('EcalLaserAPDPNRatiosRcd'),
50  loggingOn = cms.untracked.bool(True),
51  Source = cms.PSet(
52  # maxtime is mandatory
53  # it can be expressed either as an absolute time with format YYYY-MM-DD HH24:MI:SS
54  # or as a relative time w.r.t. now, using -N, where N is expressed in units
55  # of hours
56  maxtime = cms.string("-40"),
57  # maxtime = cms.string("2011-12-12 23:59:59"),
58  sequences = cms.string("16"),
59  OnlineDBUser = cms.string('CMS_ECAL_LASER_COND'),
60  # debug must be False for production
61  debug = cms.bool(True),
62  # if fake is True, no insertion in the db is performed
63  fake = cms.bool(True),
64  OnlineDBPassword = cms.string('XXXX'),
65  OnlineDBSID = cms.string('CMS_OMDS_LB')
66  )
67 )
68 
69 process.p = cms.Path(process.Test1)
70 
71