CMS 3D CMS Logo

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  destinations=cms.untracked.vstring("cout"),
20  cout=cms.untracked.PSet(
21  )
22 )
23 process.load("CondCore.CondDB.CondDB_cfi")
24 
25 process.CondDB.connect = cms.string('sqlite_file:EcalTimeCalibConstants.db')
26 
27 
28 process.source = cms.Source("EmptyIOVSource",
29  timetype = cms.string('runnumber'),
30  firstValue = cms.uint64(1),
31  lastValue = cms.uint64(1),
32  interval = cms.uint64(1)
33 )
34 
35 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
36  process.CondDB,
37  timetype = cms.untracked.string('runnumber'),
38  toPut = cms.VPSet(cms.PSet(
39  record = cms.string('EcalTimeCalibConstantsRcd'),
40  tag = cms.string('EcalTimeCalibConstants')
41  )),
42  logconnect= cms.untracked.string('sqlite_file:logtestEcalTimeCalib.db')
43 )
44 
45 process.mytest = cms.EDAnalyzer("EcalTimeCalibConstantsAnalyzer",
46  record = cms.string('EcalTimeCalibConstantsRcd'),
47  loggingOn= cms.untracked.bool(True),
48  SinceAppendMode=cms.bool(True),
49  Source=cms.PSet(
50  xmlFile = cms.untracked.string('EcalTimeCalibConstants.xml'),
51  since = cms.untracked.int64(1)
52  )
53 )
54 
55 process.p = cms.Path(process.mytest)
56 
57 
58 
59