CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
testEcalTimeCalib.py
Go to the documentation of this file.
1 #
2 #
3 # Read from xml and insert into database using
4 # PopCon
5 #
6 # This is a template, generate real test using
7 #
8 # sed 's/EcalGainRatios/your-record/g' testTemplate.py > testyourrecord.py
9 #
10 # Stefano Argiro', $Id: testEcalGainRatios.py,v 1.1 2008/11/14 15:46:03 argiro Exp $
11 #
12 #
13 
14 import FWCore.ParameterSet.Config as cms
15 
16 process = cms.Process("TEST")
17 
18 process.MessageLogger = cms.Service("MessageLogger",
19  cerr = cms.untracked.PSet(
20  enable = cms.untracked.bool(False)
21  ),
22  cout = cms.untracked.PSet(
23  enable = cms.untracked.bool(True)
24  )
25 )
26 process.load("CondCore.CondDB.CondDB_cfi")
27 
28 process.CondDB.connect = cms.string('sqlite_file:EcalTimeCalibConstants.db')
29 
30 
31 process.source = cms.Source("EmptyIOVSource",
32  timetype = cms.string('runnumber'),
33  firstValue = cms.uint64(1),
34  lastValue = cms.uint64(1),
35  interval = cms.uint64(1)
36 )
37 
38 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
39  process.CondDB,
40  timetype = cms.untracked.string('runnumber'),
41  toPut = cms.VPSet(cms.PSet(
42  record = cms.string('EcalTimeCalibConstantsRcd'),
43  tag = cms.string('EcalTimeCalibConstants')
44  )),
45  logconnect= cms.untracked.string('sqlite_file:logtestEcalTimeCalib.db')
46 )
47 
48 process.mytest = cms.EDAnalyzer("EcalTimeCalibConstantsAnalyzer",
49  record = cms.string('EcalTimeCalibConstantsRcd'),
50  loggingOn= cms.untracked.bool(True),
51  SinceAppendMode=cms.bool(True),
52  Source=cms.PSet(
53  xmlFile = cms.untracked.string('EcalTimeCalibConstants.xml'),
54  since = cms.untracked.int64(1)
55  )
56 )
57 
58 process.p = cms.Path(process.mytest)
59 
60 
61 
62