CMS 3D CMS Logo

SiStripO2O_cfg_template.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import os
3 
4 process = cms.Process("StripsO2O")
5 
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" )
10  )
11 
12 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( 1 ) )
13 
14 process.source = cms.Source( "EmptySource",
15  numberEventsInRun = cms.untracked.uint32(1),
16  firstRun = cms.untracked.uint32(1)
17  )
18 
19 
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(
24 _CFGLINES_
25 )
26 
27 process.SiStripDetInfoFileReader = cms.Service("SiStripDetInfoFileReader")
28 
29 process.load("OnlineDB.SiStripO2O.SiStripO2OCalibrationFactors_cfi")
30 process.SiStripCondObjBuilderFromDb = cms.Service( "SiStripCondObjBuilderFromDb",
31  process.SiStripO2OCalibrationFactors
32  )
33 process.SiStripCondObjBuilderFromDb.UseFED = True
34 process.SiStripCondObjBuilderFromDb.UseFEC = True
35 process.SiStripCondObjBuilderFromDb.UseAnalysis = _USEANALYSIS_
36 process.SiStripCondObjBuilderFromDb.SkippedDevices = cms.untracked.VPSet(
37 _SKIPPED_
38 )
39 process.SiStripCondObjBuilderFromDb.WhitelistedDevices = cms.untracked.VPSet(
40 _WHITELISTED_
41 )
42 
43 process.load("CondCore.CondDB.CondDB_cfi")
44 process.siStripO2O = cms.EDAnalyzer( "_ANALYZER_",
45  process.CondDB,
46  configMapDatabase=cms.string("_HASHMAPDB_"),
47  conditionDatabase=cms.string("_CONDDB_"),
48  condDbFile=cms.string("_DBFILE_"),
49  cfgMapDbFile=cms.string("_MAPDBFILE_"),
50  targetTag=cms.string("_TARGETTAG_"),
51  since=cms.uint32(_RUNNUMBER_)
52  )
53 
54 process.p = cms.Path(process.siStripO2O)