test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripBadComponentsDQMServiceTemplate_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("PWRITE")
4 
5 #########################
6 # message logger
7 #########################
8 
9 process.MessageLogger = cms.Service("MessageLogger",
10 destinations = cms.untracked.vstring('cout', 'readFromFile_RUNNUMBER'),
11 readFromFile_RUNNUMBER = cms.untracked.PSet(
12  threshold = cms.untracked.string('DEBUG')),
13 debugModules = cms.untracked.vstring('*')
14 )
15 
16 
17 #########################
18 # maxEvents ...
19 #########################
20 
21 process.maxEvents = cms.untracked.PSet(
22  input = cms.untracked.int32(1))
23 
24 process.source = cms.Source("EmptySource",
25  timetype = cms.string("runnumber"),
26  firstRun = cms.untracked.uint32(1),
27  lastRun = cms.untracked.uint32(1),
28  interval = cms.uint32(1)
29 )
30 
31 #########################
32 # DQM services
33 #########################
34 process.load("DQMServices.Core.DQM_cfg")
35 #from DQMServices.Core.DQM_cfg import *
36 
37 
38 ########################
39 # DB parameters
40 ########################
41 
42 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
43 #connect = cms.string("sqlite_file:historicDQM.db"),
44 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
45 connect = cms.string("oracle://cms_orcon_prod/CMS_COND_31X_STRIP"),
46 timetype = cms.untracked.string("runnumber"),
47 DBParameters = cms.PSet(
48  authenticationPath = cms.untracked.string("/nfshome0/popcondev/conddb"),
49  messageLevel = cms.untracked.int32(1)
50 ),
51 toPut = cms.VPSet(
52  cms.PSet(
53  record = cms.string("SiStripBadStripRcd"),
54  tag = cms.string("SiStripBadStrip_FromOnlineDQM_V2")
55  )
56 ),
57 logconnect = cms.untracked.string("oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG")
58 )
59 
60 
61 ########################
62 # POPCON Application
63 ########################
64 process.siStripPopConBadComponentsDQM = cms.OutputModule("SiStripPopConBadComponentsDQM",
65 record = cms.string("SiStripBadStripRcd"),
66 loggingOn = cms.untracked.bool(True),
67 SinceAppendMode = cms.bool(True),
68 Source = cms.PSet(
69  since = cms.untracked.uint32(RUNNUMBER),
70  debug = cms.untracked.bool(False))
71 )
72 
73 
74 ##########################
75 # BadComponentsDQMService
76 ##########################
77 
78 process.SiStripBadComponentsDQMService = cms.Service("SiStripBadComponentsDQMService",
79  RunNb = cms.uint32(RUNNUMBER),
80  accessDQMFile = cms.bool(True),
81  FILE_NAME = cms.untracked.string("FILENAME"),
82  ME_DIR = cms.untracked.string("Run RUNNUMBER"),
83  histoList = cms.VPSet()
84  )
85 
86 # Schedule
87 
88 process.p = cms.Path(process.siStripPopConBadComponentsDQM)
89 process.asciiPrint = cms.OutputModule("AsciiOutputModule")
90 process.ep = cms.EndPath(process.asciiPrint)
91 
92 
93 
94 
95