Skip to content

Commit a50f04d

Browse files
move some histograms as optional plots + code-format
1 parent bc4a903 commit a50f04d

File tree

3 files changed

+278
-229
lines changed

3 files changed

+278
-229
lines changed

Validation/MtdValidation/plugins/MtdTracksValidation.cc

Lines changed: 40 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class MtdTracksValidation : public DQMEDAnalyzer {
267267
MonitorElement* meTrackResEtlLowEta_;
268268
MonitorElement* meTrackResEtlHighEta_;
269269
MonitorElement* meTrackResEtlvsEta_;
270-
270+
271271
MonitorElement* meTrackMatchedTPPtTotLV_;
272272
MonitorElement* meTrackMatchedTPEtaTotLV_;
273273
MonitorElement* meExtraPtMtd_;
@@ -1418,12 +1418,16 @@ void MtdTracksValidation::analyze(const edm::Event& iEvent, const edm::EventSetu
14181418
meTrackPullTot_->Fill(pullT);
14191419
meTrackResTotvsMVAQual_->Fill(mtdQualMVA[trackref], dT);
14201420
meTrackPullTotvsMVAQual_->Fill(mtdQualMVA[trackref], pullT);
1421-
if ( isETL ){
1422-
meTrackResEtl_->Fill(dT);
1423-
meTrackResEtlvsEta_->Fill(std::abs(trackGen.eta()), dT);
1424-
if (std::abs(trackGen.eta()) < 2.1 ) meTrackResEtlLowEta_->Fill(dT); // reduced coverage 1.7 disks option
1425-
if (std::abs(trackGen.eta()) >= 2.1 ) meTrackResEtlHighEta_->Fill(dT); // full coverage 1.7 disks option
1426-
}
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+
}
14271431
}
14281432
} // time res and time pull
14291433
} // TP matching
@@ -2620,25 +2624,36 @@ void MtdTracksValidation::bookHistograms(DQMStore::IBooker& ibook, edm::Run cons
26202624
5.,
26212625
"s");
26222626

2623-
meTrackResEtl_ = ibook.book1D(
2624-
"TrackResEtl", "t_{rec} - t_{sim} for LV associated tracks matched to TP (ETL); t_{rec} - t_{sim} [ns] ", 120, -0.15, 0.15);
2625-
meTrackResEtlLowEta_ = ibook.book1D(
2626-
"TrackResEtlLowEta", "t_{rec} - t_{sim} for LV associated tracks matched to TP (ETL, low eta); t_{rec} - t_{sim} [ns] ", 120, -0.15, 0.15);
2627-
2628-
meTrackResEtlHighEta_ = ibook.book1D(
2629-
"TrackResEtlHighEta", "t_{rec} - t_{sim} for LV associated tracks matched to TP (ETL, high eta); t_{rec} - t_{sim} [ns] ", 120, -0.15, 0.15);
2630-
2631-
meTrackResEtlvsEta_ = ibook.bookProfile(
2632-
"TrackResEtlvsEta",
2633-
"t_{rec} - t_{sim} for LV associated tracks matched to TP vs eta; eta; t_{rec} - t_{sim} [ns] ",
2634-
30,
2635-
1.5,
2636-
3.0,
2637-
-0.15,
2638-
0.15,
2639-
"s");
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+
}
26402656

2641-
26422657
meExtraPhiAtBTL_ = ibook.book1D(
26432658
"ExtraPhiAtBTL", "Phi at BTL surface of extrapolated tracks associated to LV; phi [deg]", 720, -180., 180.);
26442659
meExtraPhiAtBTLmatched_ =

0 commit comments

Comments
 (0)