Skip to content

Commit 4c1904d

Browse files
committed
replace reinterpret_cast
1 parent e040241 commit 4c1904d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PWGCF/Flow/Tasks/pidFlowPtCorr.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ struct PidFlowPtCorr {
553553

554554
// init fFCPID
555555
// note that need to add c22pure and c32pure
556-
TObjArray* oba4PID = reinterpret_cast<TObjArray*>(oba4Ch->Clone());
556+
TObjArray* oba4PID = dynamic_cast<TObjArray*>(oba4Ch->Clone());
557557
oba4PID->Add(new TNamed("c22pure", "c22pure"));
558558
oba4PID->Add(new TNamed("c32pure", "c32pure"));
559559
oba4PID->Add(new TNamed("covV2PtPID", "covV2PtPID"));

0 commit comments

Comments
 (0)