Skip to content

Commit 4f7fbc0

Browse files
author
AdrianoDee
committed
Fixes for Dxy and PrimaryVertices plots
1 parent 1234e95 commit 4f7fbc0

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

DQMOffline/RecoB/plugins/PrimaryVertexMonitor.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ void PrimaryVertexMonitor::bookHistograms(DQMStore::IBooker& iBooker, edm::Run c
6262
iBooker.setCurrentFolder(dqmLabel);
6363

6464
// xPos = iBooker.book1D ("xPos","x Coordinate" ,100, -0.1, 0.1);
65-
66-
nbvtx = iBooker.book1D("vtxNbr", "Reconstructed Vertices in Event", 80, -0.5, 79.5);
67-
nbgvtx = iBooker.book1D("goodvtxNbr", "Reconstructed Good Vertices in Event", 80, -0.5, 79.5);
65+
auto maxPU = conf_.getParameter<double>("PUMax");
66+
nbvtx = iBooker.book1D("vtxNbr", "Reconstructed Vertices in Event", maxPU, -0.5, maxPU - 0.5);
67+
nbgvtx = iBooker.book1D("goodvtxNbr", "Reconstructed Good Vertices in Event", maxPU, -0.5, maxPU - 0.5);
6868

6969
// to be configured each year...
7070
auto vposx = conf_.getParameter<double>("Xpos");
@@ -144,8 +144,8 @@ void PrimaryVertexMonitor::bookHistograms(DQMStore::IBooker& iBooker, edm::Run c
144144
bsSigmaZ = iBooker.book1D("bsSigmaZ", "BeamSpot sigmaZ", 100, 0., 10.);
145145
bsDxdz = iBooker.book1D("bsDxdz", "BeamSpot dxdz", 100, -0.0003, 0.0003);
146146
bsDydz = iBooker.book1D("bsDydz", "BeamSpot dydz", 100, -0.0003, 0.0003);
147-
bsBeamWidthX = iBooker.book1D("bsBeamWidthX", "BeamSpot BeamWidthX", 100, 0., 100.);
148-
bsBeamWidthY = iBooker.book1D("bsBeamWidthY", "BeamSpot BeamWidthY", 100, 0., 100.);
147+
bsBeamWidthX = iBooker.book1D("bsBeamWidthX", "BeamSpot BeamWidthX", 500, 0., 15.);
148+
bsBeamWidthY = iBooker.book1D("bsBeamWidthY", "BeamSpot BeamWidthY", 500, 0., 15.);
149149
bsType = iBooker.book1D("bsType", "BeamSpot type", 4, -1.5, 2.5);
150150
bsType->setBinLabel(1, "Unknown");
151151
bsType->setBinLabel(2, "Fake");

DQMOffline/RecoB/python/PrimaryVertexMonitor_cff.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@
2626
EtaBin = cms.int32(26),
2727
EtaBin2D = cms.int32(8),
2828
EtaMax = cms.double(2.5),
29-
EtaMin = cms.double(-2.5)
29+
EtaMin = cms.double(-2.5),
30+
PUMax = cms.double(80.0),
3031
)
3132

3233
# same as above, should be in sync with cut used in Vertex finder...
3334
from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
3435
from Configuration.Eras.Modifier_run3_common_cff import run3_common
3536
from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
3637
phase1Pixel.toModify(pvMonitor, EtaBin=28, EtaMin=-2.7, EtaMax=2.7)
37-
run3_common.toModify(pvMonitor, Xpos = 0.15, Ypos=-0.15) #recentering since initial Run3 beamspot is at (0.17,-0.18) cm
38-
phase2_tracker.toModify(pvMonitor, EtaBin=41, EtaBin2D=9, EtaMin=-4.0, EtaMax=4.0)
38+
run3_common.toModify(pvMonitor, Xpos = 0.15, Ypos=-0.15, PUMax = 150 ) #recentering since initial Run3 beamspot is at (0.17,-0.18) cm
39+
phase2_tracker.toModify(pvMonitor, EtaBin=41, EtaBin2D=9, EtaMin=-4.0, EtaMax=4.0, PUMax = 250)
3940

Validation/RecoTrack/python/MTVHistoProducerAlgoForTrackerBlock_cfi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
maxPhi = cms.double(3.1416),
5050
nintPhi = cms.int32(36),
5151
#
52-
minDxy = cms.double(-25),
53-
maxDxy = cms.double(25),
54-
nintDxy = cms.int32(100),
52+
minDxy = cms.double(-20),
53+
maxDxy = cms.double(20),
54+
nintDxy = cms.int32(500),
5555
#
5656
minDz = cms.double(-30),
5757
maxDz = cms.double(30),

0 commit comments

Comments
 (0)