Skip to content
Snippets Groups Projects

warning fixes in AnalysisTree

Merged Sergey Gorbunov requested to merge se.gorbunov/cbmroot:warningsAnalysis into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -265,7 +265,7 @@ void CbmFsdHitsConverter::ProcessData(CbmEvent* event)
hit.SetField(storedIndex, i_bestMatchedGTrack_);
if ((bestMatchedIndex >= 0) && (bestChi2 > fsdgtrack_minChi2_) && (bestChi2 < fsdgtrack_maxChi2_)) {
const auto trackIndex = event ? event->GetIndex(ECbmDataType::kGlobalTrack, bestMatchedIndex) : bestMatchedIndex;
const Int_t trackIndex = event ? event->GetIndex(ECbmDataType::kGlobalTrack, bestMatchedIndex) : bestMatchedIndex;
if (trackIndex > cbm_global_tracks_->GetEntriesFast()) {
LOG(error) << "Trying to access element " << trackIndex << " which is out ot the global track array of size"
<< cbm_global_tracks_->GetEntriesFast();
Loading