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
|
import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
from DQM.SiPixelPhase1Common.HistogramManager_cfi import *
DefaultHistoDebug = DefaultHisto.clone(
topFolderName = "PixelPhase1/Debug"
)
SiPixelPhase1GeometryDebugDetId = DefaultHistoDebug.clone(
name = "debug_detid",
title = "Location of DetIds",
xlabel = "DetId",
dimensions = 1,
specs = VPSet(
StandardSpecification2DProfile,
StandardSpecificationPixelmapProfile,
)
)
SiPixelPhase1GeometryDebugLadderBlade = DefaultHistoDebug.clone(
name = "debug_ladderblade",
title = "Location of Ladders/Blades",
xlabel = "offline Ladder/Blade #",
dimensions = 1,
specs = VPSet(
StandardSpecification2DProfile,
StandardSpecificationPixelmapProfile,
)
)
SiPixelPhase1GeometryDebugROC = DefaultHistoDebug.clone(
name = "debug_roc",
title = "Location of ROCs",
xlabel = "ROC#",
dimensions = 1,
specs = VPSet(
# TODO: make this per ROC!
StandardSpecification2DProfile,
StandardSpecificationPixelmapProfile,
Specification()
.groupBy("PXBarrel/PXLayer/PXModuleName/SignedLadderCoord/SignedModuleCoord")
.groupBy("PXBarrel/PXLayer/PXModuleName/SignedLadderCoord", "EXTEND_X")
.groupBy("PXBarrel/PXLayer/PXModuleName/", "EXTEND_Y")
.reduce("MEAN")
.save(),
)
)
SiPixelPhase1GeometryDebugFED = DefaultHistoDebug.clone(
name = "debug_fed",
title = "Location of FEDs",
xlabel = "FED#",
dimensions = 1,
specs = VPSet(
StandardSpecification2DProfile,
StandardSpecificationPixelmapProfile,
)
)
SiPixelPhase1GeometryDebugConf = cms.VPSet(
SiPixelPhase1GeometryDebugDetId,
SiPixelPhase1GeometryDebugLadderBlade,
SiPixelPhase1GeometryDebugROC,
SiPixelPhase1GeometryDebugFED,
)
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
SiPixelPhase1GeometryDebugAnalyzer = DQMEDAnalyzer('SiPixelPhase1GeometryDebug',
histograms = SiPixelPhase1GeometryDebugConf,
geometry = SiPixelPhase1Geometry
)
SiPixelPhase1GeometryDebugHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
histograms = SiPixelPhase1GeometryDebugConf,
geometry = SiPixelPhase1Geometry
)
|