Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tunable PUMax in PrimaryVertexMonitor and Finer d_xy DQM Tracking Plots #44669

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions DQMOffline/RecoB/plugins/PrimaryVertexMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ void PrimaryVertexMonitor::bookHistograms(DQMStore::IBooker& iBooker, edm::Run c
iBooker.setCurrentFolder(dqmLabel);

// xPos = iBooker.book1D ("xPos","x Coordinate" ,100, -0.1, 0.1);

nbvtx = iBooker.book1D("vtxNbr", "Reconstructed Vertices in Event", 80, -0.5, 79.5);
nbgvtx = iBooker.book1D("goodvtxNbr", "Reconstructed Good Vertices in Event", 80, -0.5, 79.5);
auto maxPU = conf_.getParameter<double>("PUMax");
nbvtx = iBooker.book1D("vtxNbr", "Reconstructed Vertices in Event", maxPU, -0.5, maxPU - 0.5);
nbgvtx = iBooker.book1D("goodvtxNbr", "Reconstructed Good Vertices in Event", maxPU, -0.5, maxPU - 0.5);

// to be configured each year...
auto vposx = conf_.getParameter<double>("Xpos");
Expand Down Expand Up @@ -144,8 +144,8 @@ void PrimaryVertexMonitor::bookHistograms(DQMStore::IBooker& iBooker, edm::Run c
bsSigmaZ = iBooker.book1D("bsSigmaZ", "BeamSpot sigmaZ", 100, 0., 10.);
bsDxdz = iBooker.book1D("bsDxdz", "BeamSpot dxdz", 100, -0.0003, 0.0003);
bsDydz = iBooker.book1D("bsDydz", "BeamSpot dydz", 100, -0.0003, 0.0003);
bsBeamWidthX = iBooker.book1D("bsBeamWidthX", "BeamSpot BeamWidthX", 100, 0., 100.);
bsBeamWidthY = iBooker.book1D("bsBeamWidthY", "BeamSpot BeamWidthY", 100, 0., 100.);
bsBeamWidthX = iBooker.book1D("bsBeamWidthX", "BeamSpot BeamWidthX", 500, 0., 15.);
bsBeamWidthY = iBooker.book1D("bsBeamWidthY", "BeamSpot BeamWidthY", 500, 0., 15.);
bsType = iBooker.book1D("bsType", "BeamSpot type", 4, -1.5, 2.5);
bsType->setBinLabel(1, "Unknown");
bsType->setBinLabel(2, "Fake");
Expand Down
7 changes: 4 additions & 3 deletions DQMOffline/RecoB/python/PrimaryVertexMonitor_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@
EtaBin = cms.int32(26),
EtaBin2D = cms.int32(8),
EtaMax = cms.double(2.5),
EtaMin = cms.double(-2.5)
EtaMin = cms.double(-2.5),
PUMax = cms.double(80.0),
)

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

Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
maxPhi = cms.double(3.1416),
nintPhi = cms.int32(36),
#
minDxy = cms.double(-25),
maxDxy = cms.double(25),
nintDxy = cms.int32(100),
minDxy = cms.double(-20),
maxDxy = cms.double(20),
nintDxy = cms.int32(500),
#
minDz = cms.double(-30),
maxDz = cms.double(30),
Expand Down