Skip to content

Commit 4b1fa7e

Browse files
committed
Very last change?
1 parent 73a30f6 commit 4b1fa7e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

AtReconstruction/AtFitter/AtFitter.cxx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ ClassImp(EventFit::AtFitter);
88
void EventFit::AtFitter::FitEvent(AtTrackingEvent *trackingEvent, AtPatternEvent *patternEvent,
99
AtFitMetadata *fitMetadata, AtRawEvent *rawEvent, AtEvent *event)
1010
{
11+
// Check for nullptr.
12+
if (trackingEvent == nullptr) {
13+
LOG(error) << " Tracking event is nullptr! The fitter can not fit this event. Maybe the tracking event is not "
14+
"being constructed properly in the fitter task.";
15+
return;
16+
}
17+
18+
if (patternEvent == nullptr) {
19+
LOG(error) << " Pattern event is nullptr! The fitter can not fit this event.";
20+
return;
21+
}
22+
1123
// Extract the candidate AtTracks.
1224
std::vector<AtTrack> tracks = patternEvent->GetTrackCand();
1325

0 commit comments

Comments
 (0)