test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dbwrite_o2o_template.py
Go to the documentation of this file.
2 
3 process = cms.Process("TEST")
4 
5 process.MessageLogger=cms.Service("MessageLogger",
6  destinations=cms.untracked.vstring("cout"),
7  cout=cms.untracked.PSet(
8  threshold=cms.untracked.string("INFO")
9  )
10 )
11 
12 process.load("CondCore.DBCommon.CondDBCommon_cfi")
13 process.CondDBCommon.connect = cms.string('CONNECT_STRING')
14 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('POOL_AUTH_PATH')
15 
16 process.source = cms.Source("EmptyIOVSource",
17  timetype = cms.string('runnumber'),
18  firstValue = cms.uint64(1),
19  lastValue = cms.uint64(1),
20  interval = cms.uint64(1)
21 )
22 
23 process.es_omds = cms.ESSource("HcalOmdsCalibrations",
24  input = cms.VPSet(cms.PSet(
25  object = cms.string('CONDITION_TYPE'),
26  tag = cms.string('OMDS_CONDITION_TAG'),
27  version = cms.string('fakeversion'),
28  subversion = cms.int32(1),
29  iov_begin = cms.int32(OMDS_IOV),
30  accessor = cms.string('OMDS_ACCESSOR_STRING'),
31  query = cms.string('''
32  OMDS_QUERY
33  ''')
34  ))
35 )
36 
37 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
38  process.CondDBCommon,
39  timetype = cms.untracked.string('runnumber'),
40  logconnect= cms.untracked.string('POOL_LOGCONNECT'),
41  toPut = cms.VPSet(cms.PSet(
42  record = cms.string('POOL_RECORD'),
43  tag = cms.string('POOL_OUTPUT_TAG')
44  ))
45 )
46 
47 process.mytest = cms.EDAnalyzer("HcalCONDITION_TYPEPopConAnalyzer",
48  record = cms.string('POOL_RECORD'),
49  loggingOn= cms.untracked.bool(True),
50  SinceAppendMode=cms.bool(True),
51  Source=cms.PSet(
52 # firstSince=cms.untracked.double(300)
53  IOVRun=cms.untracked.uint32(POOL_IOV)
54  )
55 )
56 
57 process.p = cms.Path(process.mytest)