Skip to content
Snippets Groups Projects
Commit 63eb442b authored by Sergey Gorbunov's avatar Sergey Gorbunov Committed by Sergey Gorbunov
Browse files

warning fixes in AnalysisTree

parent 184d0d84
No related branches found
No related tags found
1 merge request!1586warning fixes in AnalysisTree
Pipeline #26608 failed
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment