Skip to content

Commit 51cb405

Browse files
committed
fix include and casting
1 parent 23efc75 commit 51cb405

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ALICE3/Core/FastTracker.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <TObject.h>
2323

2424
#include <fstream>
25+
#include <map>
2526
#include <string>
2627
#include <vector>
2728

@@ -325,7 +326,7 @@ void FastTracker::AddGenericDetector(std::string filename, o2::ccdb::BasicCCDBMa
325326
LOG(fatal) << "Cannot open dead phi regions file " << deadPhiRegions;
326327
return;
327328
}
328-
TGraph* g = (TGraph*)infile.Get(infile.GetListOfKeys()->At(0)->GetName());
329+
TGraph* g = reinterpret_cast<TGraph*>(infile.Get(infile.GetListOfKeys()->At(0)->GetName()));
329330
infile.Close();
330331
addedLayer->setDeadPhiRegions(g);
331332
}

0 commit comments

Comments
 (0)