We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6545257 + 1cec7c3 commit 7af1486Copy full SHA for 7af1486
Alignment/OfflineValidation/plugins/GeneralPurposeTrackAnalyzer.cc
@@ -710,9 +710,12 @@ class GeneralPurposeTrackAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchR
710
hd0PV->Fill(100);
711
hdzPV->Fill(100);
712
713
- hd0vsphi->Fill(track->phi(), -track->dxy());
714
- hd0vseta->Fill(track->eta(), -track->dxy());
715
- hd0vspt->Fill(track->pt(), -track->dxy());
+ // gotta protect the case in which it's not comsics, but the handle is invalid! (HLT)
+ if (isCosmics_) {
+ hd0vsphi->Fill(track->phi(), -track->dxy());
716
+ hd0vseta->Fill(track->eta(), -track->dxy());
717
+ hd0vspt->Fill(track->pt(), -track->dxy());
718
+ }
719
}
720
721
if (DEBUG) {
0 commit comments