Skip to content

Commit

Permalink
add maps for relative difference between old and new Lorentz Angle
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Feb 2, 2022
1 parent 2e02258 commit 246ef92
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct SiPixelLorentzAngleCalibrationHistograms {
MonitorMap h_drift_depth_;
MonitorMap h_mean_;

// track monitoring
dqm::reco::MonitorElement* h_tracks_;
dqm::reco::MonitorElement* h_trackEta_;
dqm::reco::MonitorElement* h_trackPhi_;
Expand All @@ -47,6 +48,7 @@ struct SiPixelLorentzAngleCalibrationHistograms {

// ouput LA maps
std::vector<dqm::reco::MonitorElement*> h2_byLayerLA_;
std::vector<dqm::reco::MonitorElement*> h2_byLayerDiff_;
};

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,17 @@ void SiPixelLorentzAnglePCLHarvester::dqmEndJob(DQMStore::IBooker& iBooker, DQMS
hists.nLadders_[i],
0.5,
hists.nLadders_[i] + 0.5));

repName = "h2_byLayerDiff_%i";
repText = "BPix Layer %i #Delta#mu_{H}/#mu_{H};module number;ladder number;#Delta#mu_{H}/#mu_{H} [%%]";
hists.h2_byLayerDiff_.emplace_back(iBooker.book2D(fmt::sprintf(repName, i + 1),
fmt::sprintf(repText, i + 1),
hists.nModules_[i],
0.5,
hists.nModules_[i] + 0.5,
hists.nLadders_[i],
0.5,
hists.nLadders_[i] + 0.5));
}

// clang-format off
Expand Down Expand Up @@ -494,6 +505,10 @@ void SiPixelLorentzAnglePCLHarvester::dqmEndJob(DQMStore::IBooker& iBooker, DQMS
const auto& ladder = theTrackerTopology->pxbLadder(id);
const auto& module = theTrackerTopology->pxbModule(id);
hists.h2_byLayerLA_[layer - 1]->setBinContent(module, ladder, value);

float deltaMuHoverMuH =
(currentLorentzAngle->getLorentzAngle(id) - value) / currentLorentzAngle->getLorentzAngle(id);
hists.h2_byLayerDiff_[layer - 1]->setBinContent(module, ladder, deltaMuHoverMuH * 100.f);
}
}

Expand Down

0 comments on commit 246ef92

Please sign in to comment.