We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73a30f6 commit 4b1fa7eCopy full SHA for 4b1fa7e
1 file changed
AtReconstruction/AtFitter/AtFitter.cxx
@@ -8,6 +8,18 @@ ClassImp(EventFit::AtFitter);
8
void EventFit::AtFitter::FitEvent(AtTrackingEvent *trackingEvent, AtPatternEvent *patternEvent,
9
AtFitMetadata *fitMetadata, AtRawEvent *rawEvent, AtEvent *event)
10
{
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
21
22
23
// Extract the candidate AtTracks.
24
std::vector<AtTrack> tracks = patternEvent->GetTrackCand();
25
0 commit comments