CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TemplateCfg21X_Quality_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("CONDOBJMON")
4 #-------------------------------------------------
5 
6 #-------------------------------------------------
7 # DQM
8 #-------------------------------------------------
9 process.load("DQM.SiStripMonitorSummary.SiStripMonitorCondDataOffline_cfi")
10 process.CondDataMonitoring.OutputMEsInRootFile = cms.bool(True)
11 process.CondDataMonitoring.MonitorSiStripPedestal =cms.bool(False)
12 process.CondDataMonitoring.MonitorSiStripNoise =cms.bool(False)
13 process.CondDataMonitoring.MonitorSiStripQuality =cms.bool(True)
14 process.CondDataMonitoring.MonitorSiStripCabling =cms.bool(False)
15 process.CondDataMonitoring.MonitorSiStripLowThreshold =cms.bool(False)
16 process.CondDataMonitoring.MonitorSiStripHighThreshold =cms.bool(False)
17 process.CondDataMonitoring.MonitorSiStripApvGain =cms.bool(False)
18 process.CondDataMonitoring.MonitorSiStripLorentzAngle =cms.bool(False)
19 
20 ## SI STRIP MONITOR TRACK:
21 process.load("DQM.SiStripCommon.TkHistoMap_cfi");
22 
23 process.source = cms.Source("EmptyIOVSource",
24  lastValue = cms.uint64(insert_runnumber),
25  timetype = cms.string('runnumber'),
26  firstValue = cms.uint64(insert_runnumber),
27  interval = cms.uint64(1)
28 )
29 
30 process.maxEvents = cms.untracked.PSet(
31  input = cms.untracked.int32(1)
32 )
33 
34 process.MessageLogger = cms.Service("MessageLogger",
35  debugModules = cms.untracked.vstring('SiStripMonitorCondData'),
36  cout = cms.untracked.PSet(
37  threshold = cms.untracked.string('Error')
38  ),
39  destinations = cms.untracked.vstring('error.log',
40  'cout')
41 )
42 
43 process.qTester = cms.EDFilter("QualityTester",
44  qtList = cms.untracked.FileInPath('DQM/SiStripMonitorSummary/data/insert_QtestsFileName'),
45  QualityTestPrescaler = cms.untracked.int32(1),
46  getQualityTestsFromFile = cms.untracked.bool(True)
47 )
48 
49 process.DQMStore = cms.Service("DQMStore",
50  referenceFileName = cms.untracked.string(''),
51  verbose = cms.untracked.int32(1)
52 )
53 
54 import CalibTracker.Configuration.Common.PoolDBESSource_cfi
55 siStripCond = CalibTracker.Configuration.Common.PoolDBESSource_cfi.poolDBESSource.clone()
56 
57 sistripconn = cms.ESProducer("SiStripConnectivity")
58 
59 siStripCond.toGet = cms.VPSet(
60  cms.PSet(
61  record = cms.string('SiStripFedCablingRcd'),
62  tag = cms.string('insert_FedCablingTag')
63  ),
64  cms.PSet(
65  record = cms.string('SiStripNoisesRcd'),
66  tag = cms.string('insert_NoiseTag')
67  ),
68  cms.PSet(
69  record = cms.string('SiStripPedestalsRcd'),
70  tag = cms.string('insert_PedestalTag')
71  ),
72  cms.PSet(
73  record = cms.string('SiStripApvGainRcd'),
74  tag = cms.string('SiStripGain_Ideal_21X')
75  ),
76  cms.PSet(
77  record = cms.string('SiStripLorentzAngleRcd'),
78  tag = cms.string('SiStripLorentzAngle_Ideal_21X')
79  ),
80  cms.PSet(
81  record = cms.string('SiStripThresholdRcd'),
82  tag = cms.string('insert_ThresholdTag')
83  ))
84 
85 
86 
87 siStripCond.connect = 'frontier://cmsfrontier.cern.ch:8000/FrontierProd/insertAccount'
88 
89 process.a = cms.ESSource("PoolDBESSource",
90  appendToDataLabel = cms.string('test'),
91  toGet = cms.VPSet(cms.PSet(
92  record = cms.string('SiStripBadFiberRcd'),
93 ## record = cms.string('SiStripDetCablingRcd'),
94  tag = cms.string('insert_DB_Tag')
95  )
96  ),
97  DBParameters = cms.PSet(
98  authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
99  ),
100  timetype = cms.string('runnumber'),
101  connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/insertAccount'),
102  BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService')
103 )
104 
105 process.MySSQ = cms.ESProducer("SiStripQualityESProducer",
106  appendToDataLabel = cms.string(''),
107  ReduceGranularity = cms.bool(True),
108  ThresholdForReducedGranularity = cms.double(0.3),
109  ListOfRecordToMerge = cms.VPSet(cms.PSet(
110  record = cms.string('SiStripBadFiberRcd'),
111 ## record = cms.string('SiStripDetCablingRcd'),
112 ## record = cms.string('SiStripBadChannelRcd'),
113  tag = cms.string('test')
114  ))
115 )
116 
117 #process.MySSQPrefer = cms.ESPrefer("PoolDBESSource","a")
118 
119 
120  #-------------------------------------------------
121  ## Scheduling
122  #-------------------------------------------------
123 
124 process.p = cms.Path(process.CondDataMonitoring*process.qTester)
125 ####process.p = cms.Path(process.CondDataMonitoring)
126 
127 
128 
129 
130 
131 
132