Skip to content

Commit 333fe5f

Browse files
authored
Merge pull request #49155 from martinamalberti/test_EtlValid
MTD Validation: add optional histograms for ETL
2 parents 4a7cb3c + e61b24b commit 333fe5f

File tree

3 files changed

+456
-1
lines changed

3 files changed

+456
-1
lines changed

Validation/MtdValidation/plugins/MtdTracksValidation.cc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ class MtdTracksValidation : public DQMEDAnalyzer {
263263
MonitorElement* meTrackResTotvsMVAQual_;
264264
MonitorElement* meTrackPullTotvsMVAQual_;
265265

266+
MonitorElement* meTrackResEtl_;
267+
MonitorElement* meTrackResEtlLowEta_;
268+
MonitorElement* meTrackResEtlHighEta_;
269+
MonitorElement* meTrackResEtlvsEta_;
270+
266271
MonitorElement* meTrackMatchedTPPtTotLV_;
267272
MonitorElement* meTrackMatchedTPEtaTotLV_;
268273
MonitorElement* meExtraPtMtd_;
@@ -1413,6 +1418,16 @@ void MtdTracksValidation::analyze(const edm::Event& iEvent, const edm::EventSetu
14131418
meTrackPullTot_->Fill(pullT);
14141419
meTrackResTotvsMVAQual_->Fill(mtdQualMVA[trackref], dT);
14151420
meTrackPullTotvsMVAQual_->Fill(mtdQualMVA[trackref], pullT);
1421+
if (optionalPlots_) {
1422+
if (isETL) {
1423+
meTrackResEtl_->Fill(dT);
1424+
meTrackResEtlvsEta_->Fill(std::abs(trackGen.eta()), dT);
1425+
if (std::abs(trackGen.eta()) < 2.1)
1426+
meTrackResEtlLowEta_->Fill(dT); // reduced coverage 1.7 disks option
1427+
if (std::abs(trackGen.eta()) >= 2.1)
1428+
meTrackResEtlHighEta_->Fill(dT); // full coverage 1.7 disks option
1429+
}
1430+
}
14161431
}
14171432
} // time res and time pull
14181433
} // TP matching
@@ -2609,6 +2624,36 @@ void MtdTracksValidation::bookHistograms(DQMStore::IBooker& ibook, edm::Run cons
26092624
5.,
26102625
"s");
26112626

2627+
if (optionalPlots_) {
2628+
meTrackResEtl_ =
2629+
ibook.book1D("TrackResEtl",
2630+
"t_{rec} - t_{sim} for LV associated tracks matched to TP (ETL); t_{rec} - t_{sim} [ns] ",
2631+
120,
2632+
-0.15,
2633+
0.15);
2634+
meTrackResEtlLowEta_ =
2635+
ibook.book1D("TrackResEtlLowEta",
2636+
"t_{rec} - t_{sim} for LV associated tracks matched to TP (ETL, low eta); t_{rec} - t_{sim} [ns] ",
2637+
120,
2638+
-0.15,
2639+
0.15);
2640+
meTrackResEtlHighEta_ = ibook.book1D(
2641+
"TrackResEtlHighEta",
2642+
"t_{rec} - t_{sim} for LV associated tracks matched to TP (ETL, high eta); t_{rec} - t_{sim} [ns] ",
2643+
120,
2644+
-0.15,
2645+
0.15);
2646+
meTrackResEtlvsEta_ = ibook.bookProfile(
2647+
"TrackResEtlvsEta",
2648+
"t_{rec} - t_{sim} for LV associated tracks matched to TP vs eta; eta; t_{rec} - t_{sim} [ns] ",
2649+
30,
2650+
1.5,
2651+
3.0,
2652+
-0.15,
2653+
0.15,
2654+
"s");
2655+
}
2656+
26122657
meExtraPhiAtBTL_ = ibook.book1D(
26132658
"ExtraPhiAtBTL", "Phi at BTL surface of extrapolated tracks associated to LV; phi [deg]", 720, -180., 180.);
26142659
meExtraPhiAtBTLmatched_ =

0 commit comments

Comments
 (0)