Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-20 22:43:17

0001 import FWCore.ParameterSet.Config as cms
0002 import os
0003 
0004 process = cms.Process("StripsO2O")
0005 
0006 process.MessageLogger = cms.Service( "MessageLogger",
0007                                      debugModules = cms.untracked.vstring( "*" ),
0008                                      cout = cms.untracked.PSet( threshold = cms.untracked.string( "DEBUG" ) ),
0009                                      destinations = cms.untracked.vstring( "cout" )
0010                                      )
0011 
0012 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( 1 ) )
0013 
0014 process.source = cms.Source( "EmptySource",
0015                              numberEventsInRun = cms.untracked.uint32(1),
0016                              firstRun = cms.untracked.uint32(1)
0017                              )
0018 
0019 
0020 process.load("OnlineDB.SiStripConfigDb.SiStripConfigDb_cfi")
0021 process.SiStripConfigDb.UsingDb = True
0022 process.SiStripConfigDb.TNS_ADMIN = os.environ["TNS_ADMIN"]
0023 process.SiStripConfigDb.Partitions = cms.untracked.PSet(
0024 _CFGLINES_
0025 )
0026 
0027 if 'CONFDB' not in os.environ:
0028     import CondCore.Utilities.credentials as auth
0029     user, _, passwd = auth.get_credentials('cms_omds_adg/cms_trk_r')
0030     process.SiStripConfigDb.ConfDb = '{user}/{passwd}@{path}'.format(user=user, passwd=passwd, path='cms_omds_adg')
0031 
0032 process.load("OnlineDB.SiStripO2O.SiStripO2OCalibrationFactors_cfi")
0033 process.SiStripCondObjBuilderFromDb = cms.Service( "SiStripCondObjBuilderFromDb",
0034                                                    process.SiStripO2OCalibrationFactors
0035                                                    )
0036 process.SiStripCondObjBuilderFromDb.UseFED = True
0037 process.SiStripCondObjBuilderFromDb.UseFEC = True
0038 process.SiStripCondObjBuilderFromDb.UseAnalysis = _USEANALYSIS_
0039 process.SiStripCondObjBuilderFromDb.SiStripDetInfoFile = cms.FileInPath("CalibTracker/SiStripCommon/data/SiStripDetInfo.dat")
0040 process.SiStripCondObjBuilderFromDb.SkippedDevices = cms.untracked.VPSet(
0041 _SKIPPED_
0042 )
0043 process.SiStripCondObjBuilderFromDb.WhitelistedDevices = cms.untracked.VPSet(
0044 _WHITELISTED_
0045 )
0046 
0047 process.load("CondCore.CondDB.CondDB_cfi")
0048 process.siStripO2O = cms.EDAnalyzer( "_ANALYZER_",
0049                                      process.CondDB,
0050                                      configMapDatabase=cms.string("_HASHMAPDB_"),
0051                                      conditionDatabase=cms.string("_CONDDB_"),
0052                                      condDbFile=cms.string("_DBFILE_"),
0053                                      cfgMapDbFile=cms.string("_MAPDBFILE_"),
0054                                      targetTag=cms.string("_TARGETTAG_"),
0055                                      since=cms.uint32(_RUNNUMBER_)
0056                                      )
0057 
0058 process.p = cms.Path(process.siStripO2O)