test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
updateIntercali_hlt.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import FWCore.ParameterSet.VarParsing as VarParsing
3 
4 process = cms.Process("ProcessOne")
5 
7 options.register( "password"
8  , "myToto"
9  , VarParsing.VarParsing.multiplicity.singleton
10  , VarParsing.VarParsing.varType.string
11  , "the password"
12  )
13 options.parseArguments()
14 
15 
16 process.MessageLogger = cms.Service("MessageLogger",
17  debugModules = cms.untracked.vstring('*'),
18  cout = cms.untracked.PSet(
19  threshold = cms.untracked.string('DEBUG')
20  ),
21  destinations = cms.untracked.vstring('cout')
22 )
23 
24 process.source = cms.Source("EmptyIOVSource",
25  lastValue = cms.uint64(100000000000),
26  timetype = cms.string('runnumber'),
27  firstValue = cms.uint64(100000000000),
28  interval = cms.uint64(1)
29 )
30 
31 process.load("CondCore.CondDB.CondDB_cfi")
32 
33 process.CondDB.DBParameters.authenticationPath = ''
34 
35 #process.CondDB.connect = 'sqlite_file:EcalIntercalibConstants_V1_hlt.db'
36 process.CondDB.connect = 'oracle://cms_orcon_prod/CMS_CONDITIONS'
37 
38 
39 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
40  process.CondDB,
41 # logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
42  logconnect = cms.untracked.string('sqlite_file:log.db'),
43  toPut = cms.VPSet(cms.PSet(
44  record = cms.string('EcalIntercalibConstantsRcd'),
45  tag = cms.string('EcalIntercalibConstants_V1_hlt')
46  ))
47 )
48 
49 process.Test1 = cms.EDAnalyzer("ExTestEcalIntercalibAnalyzer",
50  record = cms.string('EcalIntercalibConstantsRcd'),
51  loggingOn= cms.untracked.bool(True),
52  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
53  SinceAppendMode=cms.bool(True),
54  Source=cms.PSet(
55  FileLowField = cms.string('/data/O2O/Ecal/TPG/Intercalib_Boff.xml'),
56  FileHighField = cms.string('/data/O2O/Ecal/TPG/Intercalib_Bon.xml'),
57 # FileLowField = cms.string('/afs/cern.ch/work/d/depasse/cmssw/CMSSW_8_0_1/src/CondTools/Ecal/python/Intercalib_hlt_current_BOFF.xml'),
58 # FileHighField = cms.string('/afs/cern.ch/work/d/depasse/cmssw/CMSSW_8_0_1/src/CondTools/Ecal/python/Intercalib_hlt_current_BON.xml'),
59  Value_Bon = cms.untracked.double(0.76724),
60  firstRun = cms.string('207149'),
61  lastRun = cms.string('10000000'),
62  OnlineDBSID = cms.string('cms_omds_lb'),
63 # OnlineDBSID = cms.string('cms_orcon_adg'), test on lxplus
64  OnlineDBUser = cms.string('cms_ecal_r'),
65  OnlineDBPassword = cms.string( options.password ),
66  LocationSource = cms.string('P5'),
67  Location = cms.string('P5_Co'),
68  GenTag = cms.string('GLOBAL'),
69  RunType = cms.string('COSMICS')
70  )
71 )
72 
73 process.p = cms.Path(process.Test1)