CMS 3D CMS Logo

EBAlignmentPopConBTransitionAnalyzer_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from CondCore.CondDB.CondDB_cfi import *
3 import CondTools.Ecal.conddb_init as conddb_init
4 
5 process = cms.Process("EBAlignmentPopulator")
6 
7 #LogDebug output is enabled: remember the USER_CXXFLAGS="-DEDM_ML_DEBUG" compilation flag to see it.
8 process.MessageLogger = cms.Service("MessageLogger",
9  destinations = cms.untracked.vstring("cout"),
10  debugModules = cms.untracked.vstring("*"),
11  cout = cms.untracked.PSet(threshold = cms.untracked.string("DEBUG"))
12  )
13 
14 process.source = cms.Source("EmptyIOVSource",
15  lastValue = cms.uint64(conddb_init.options.runNumber),
16  timetype = cms.string('runnumber'),
17  firstValue = cms.uint64(conddb_init.options.runNumber),
18  interval = cms.uint64(1)
19 )
20 
21 CondDBConnection = CondDB.clone(connect = cms.string(conddb_init.options.destinationDatabase))
22 
23 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
24  CondDBConnection,
25  toPut = cms.VPSet(cms.PSet(record = cms.string("EBAlignmentRcd"),
26  tag = cms.string(conddb_init.options.destinationTag)
27  )
28  )
29  )
30 
31 process.popConEBAlignment = cms.EDAnalyzer("EcalAlignmentPopConBTransitionAnalyzer",
32  SinceAppendMode = cms.bool(True),
33  record = cms.string("EBAlignmentRcd"),
34  Source = cms.PSet(BTransition = cms.PSet(CondDBConnection, #We write and read from the same DB
35  runNumber = cms.uint64(conddb_init.options.runNumber),
36  tagForRunInfo = cms.string(conddb_init.options.tagForRunInfo),
37  tagForBOff = cms.string(conddb_init.options.tagForBOff),
38  tagForBOn = cms.string(conddb_init.options.tagForBOn),
39  currentThreshold = cms.untracked.double(conddb_init.options.currentThreshold)
40  )
41  ),
42  loggingOn = cms.untracked.bool(True),
43  targetDBConnectionString = cms.untracked.string("")
44  )
45 
46 process.p = cms.Path(process.popConEBAlignment)