File tree Expand file tree Collapse file tree
DataFormats/Detectors/GlobalTracking/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1276,12 +1276,12 @@ const o2::tpc::ClusterNativeAccess& RecoContainer::getTPCClusters() const
12761276
12771277gsl::span<const o2::trd::Tracklet64> RecoContainer::getTRDTracklets () const
12781278{
1279- return inputsTRD->mTracklets ;
1279+ return inputsTRD ? inputsTRD ->mTracklets : gsl::span< const o2::trd::Tracklet64>() ;
12801280}
12811281
12821282gsl::span<const o2::trd::CalibratedTracklet> RecoContainer::getTRDCalibratedTracklets () const
12831283{
1284- return inputsTRD->mSpacePoints ;
1284+ return inputsTRD ? inputsTRD ->mSpacePoints : gsl::span< const o2::trd::CalibratedTracklet>() ;
12851285}
12861286
12871287gsl::span<const o2::trd::TriggerRecord> RecoContainer::getTRDTriggerRecords () const
@@ -1300,12 +1300,12 @@ gsl::span<const o2::trd::TriggerRecord> RecoContainer::getTRDTriggerRecords() co
13001300
13011301const o2::dataformats::MCTruthContainer<o2::MCCompLabel>* RecoContainer::getTRDTrackletsMCLabels () const
13021302{
1303- return inputsTRD->mTrackletLabels .get ();
1303+ return inputsTRD ? inputsTRD ->mTrackletLabels .get () : nullptr ;
13041304}
13051305
13061306const o2::dataformats::ConstMCTruthContainerView<o2::MCCompLabel>* RecoContainer::getTPCClustersMCLabels () const
13071307{
1308- return inputsTPCclusters->clusterIndex .clustersMCTruth ;
1308+ return inputsTRD ? inputsTPCclusters->clusterIndex .clustersMCTruth : nullptr ;
13091309}
13101310
13111311// __________________________________________________________
You can’t perform that action at this time.
0 commit comments