1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("CALIB")
# process.MessageLogger = cms.Service("MessageLogger",
# cout = cms.untracked.PSet(
# threshold = cms.untracked.string('INFO')
# ),
# destinations = cms.untracked.vstring('cout')
# )
process.source = cms.Source("PoolSource",
# replace 'myfile.root' with the source file you want to use
fileNames = cms.untracked.vstring(
# 'file:/afs/cern.ch/user/d/demattia/scratch0/TeVEE.root'
'file:/afs/cern.ch/user/d/demattia/scratch0/photon_163796_162_155685227.root'
)
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
#-------------------------------------------------
# Calibration
#-------------------------------------------------
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = 'GR_R_42_V14::All'
# process.poolDBESSource = cms.ESSource("PoolDBESSource",
# BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
# DBParameters = cms.PSet(
# messageLevel = cms.untracked.int32(0),
# authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
# ),
# timetype = cms.untracked.string('runnumber'),
# connect = cms.string('oracle://cms_orcon_prod/cms_cond_31x_run_info'),
# toGet = cms.VPSet(
# cms.PSet(
# record = cms.string('RunInfoRcd'),
# tag = cms.string('runinfo_start_31X_hlt')
# ),
# )
# )
# process.es_prefer = cms.ESPrefer("PoolDBESSource", "poolDBESSource")
# Include masking #
process.siStripQualityESProducer.ListOfRecordToMerge=cms.VPSet(
cms.PSet(record=cms.string('SiStripDetCablingRcd'),tag=cms.string(''))
, cms.PSet(record=cms.string('SiStripBadChannelRcd'),tag=cms.string(''))
#, cms.PSet(record=cms.string('SiStripBadModuleRcd' ),tag=cms.string(''))
, cms.PSet(record=cms.string('RunInfoRcd'),tag=cms.string(''))
)
process.siStripQualityESProducer.ReduceGranularity = cms.bool(False)
# True means all the debug output from adding the RunInfo (default is False)
process.siStripQualityESProducer.PrintDebugOutput = cms.bool(True)
# "True" means that the RunInfo is used even if all the feds are off (including other subdetectors).
# This means that if the RunInfo was filled with a fake empty object we will still set the full tracker as bad.
# With "False", instead, in that case the RunInfo information is discarded.
# Default is "False".
process.siStripQualityESProducer.UseEmptyRunInfo = cms.bool(False)
#-------------------------------------------------
# Services for the TkHistoMap
#-------------------------------------------------
process.load("Configuration.Geometry.GeometryExtended2017_cff")
process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
process.TrackerTopologyEP = cms.ESProducer("TrackerTopologyEP")
process.load("DQM.SiStripCommon.TkHistoMap_cff")
#-------------------------------------------------
process.stat = cms.EDAnalyzer("TrackHitPositions",
dataLabel = cms.untracked.string(""),
SaveTkHistoMap = cms.untracked.bool(True),
TkMapFileName = cms.untracked.string("TkMapBadComponents.pdf"), #available filetypes: .pdf .png .jpg .svg
PtCut = cms.double(100)
)
process.p = cms.Path(process.stat)
|