1 import FWCore.ParameterSet.Config
as cms
4 process = cms.Process(
"StripsO2O")
6 process.MessageLogger = cms.Service(
"MessageLogger",
7 debugModules = cms.untracked.vstring(
"*" ),
8 cout = cms.untracked.PSet( threshold = cms.untracked.string(
"DEBUG" ) ),
9 destinations = cms.untracked.vstring(
"cout" )
12 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( 1 ) )
14 process.source = cms.Source(
"EmptySource",
15 numberEventsInRun = cms.untracked.uint32(1),
16 firstRun = cms.untracked.uint32(1)
20 process.load(
"OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
21 process.SiStripConfigDb.UsingDb =
True 22 process.SiStripConfigDb.TNS_ADMIN = os.environ[
"TNS_ADMIN"]
23 process.SiStripConfigDb.Partitions = cms.untracked.PSet(
27 if 'CONFDB' not in os.environ:
28 import CondCore.Utilities.credentials
as auth
29 user, _, passwd = auth.get_credentials(
'cms_omds_adg/cms_trk_r')
30 process.SiStripConfigDb.ConfDb =
'{user}/{passwd}@{path}'.
format(user=user, passwd=passwd, path=
'cms_omds_adg')
32 process.load(
"OnlineDB.SiStripO2O.SiStripO2OCalibrationFactors_cfi")
33 process.SiStripCondObjBuilderFromDb = cms.Service(
"SiStripCondObjBuilderFromDb",
34 process.SiStripO2OCalibrationFactors
36 process.SiStripCondObjBuilderFromDb.UseFED =
True 37 process.SiStripCondObjBuilderFromDb.UseFEC =
True 38 process.SiStripCondObjBuilderFromDb.UseAnalysis = _USEANALYSIS_
39 process.SiStripCondObjBuilderFromDb.SiStripDetInfoFile = cms.FileInPath(
"CalibTracker/SiStripCommon/data/SiStripDetInfo.dat")
40 process.SiStripCondObjBuilderFromDb.SkippedDevices = cms.untracked.VPSet(
43 process.SiStripCondObjBuilderFromDb.WhitelistedDevices = cms.untracked.VPSet(
47 process.load(
"CondCore.CondDB.CondDB_cfi")
48 process.siStripO2O = cms.EDAnalyzer(
"_ANALYZER_",
50 configMapDatabase=cms.string(
"_HASHMAPDB_"),
51 conditionDatabase=cms.string(
"_CONDDB_"),
52 condDbFile=cms.string(
"_DBFILE_"),
53 cfgMapDbFile=cms.string(
"_MAPDBFILE_"),
54 targetTag=cms.string(
"_TARGETTAG_"),
55 since=cms.uint32(_RUNNUMBER_)
58 process.p = cms.Path(process.siStripO2O)