From 2c905022004b98f9d81d1e38b8c5d8a4d240d779 Mon Sep 17 00:00:00 2001 From: Bill Li Date: Tue, 12 Jan 2021 14:45:31 -0500 Subject: [PATCH 1/2] Bug fix for getting the extrapolated track --- libraries/DSelector/DChargedTrackHypothesis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/DSelector/DChargedTrackHypothesis.h b/libraries/DSelector/DChargedTrackHypothesis.h index 87d2e47..fc56fa3 100644 --- a/libraries/DSelector/DChargedTrackHypothesis.h +++ b/libraries/DSelector/DChargedTrackHypothesis.h @@ -581,7 +581,7 @@ inline Int_t DChargedTrackHypothesis::Get_Track_NumPhotons_DIRC(void) const inline Float_t DChargedTrackHypothesis::Get_Track_ExtrapolatedX_DIRC(void) const { if(dBranch_Track_ExtrapolatedX_DIRC) - return ((Int_t*)dBranch_Track_ExtrapolatedX_DIRC->GetAddress())[dMeasuredArrayIndex]; + return ((Float_t*)dBranch_Track_ExtrapolatedX_DIRC->GetAddress())[dMeasuredArrayIndex]; else return 0; } @@ -589,7 +589,7 @@ inline Float_t DChargedTrackHypothesis::Get_Track_ExtrapolatedX_DIRC(void) const inline Float_t DChargedTrackHypothesis::Get_Track_ExtrapolatedY_DIRC(void) const { if(dBranch_Track_ExtrapolatedY_DIRC) - return ((Int_t*)dBranch_Track_ExtrapolatedY_DIRC->GetAddress())[dMeasuredArrayIndex]; + return ((Float_t*)dBranch_Track_ExtrapolatedY_DIRC->GetAddress())[dMeasuredArrayIndex]; else return 0; } From 0d479d1c2c014e761c180f946fe1cb33d665254f Mon Sep 17 00:00:00 2001 From: Bill Li Date: Tue, 12 Jan 2021 14:56:34 -0500 Subject: [PATCH 2/2] Fixing bug for DIRC track extraplation --- libraries/DSelector/DChargedTrackHypothesis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/DSelector/DChargedTrackHypothesis.h b/libraries/DSelector/DChargedTrackHypothesis.h index fc56fa3..c98afab 100644 --- a/libraries/DSelector/DChargedTrackHypothesis.h +++ b/libraries/DSelector/DChargedTrackHypothesis.h @@ -573,7 +573,7 @@ inline Float_t DChargedTrackHypothesis::Get_TrackFCAL_DOCA(void) const inline Int_t DChargedTrackHypothesis::Get_Track_NumPhotons_DIRC(void) const { if(dBranch_Track_NumPhotons_DIRC) - return ((Int_t*)dBranch_Track_NumPhotons_DIRC->GetAddress())[dMeasuredArrayIndex]; + return ((Int_t*)dBranch_Track_NumPhotons_DIRC->GetAddress())[dMeasuredArrayIndex]; else return 0; } @@ -581,7 +581,7 @@ inline Int_t DChargedTrackHypothesis::Get_Track_NumPhotons_DIRC(void) const inline Float_t DChargedTrackHypothesis::Get_Track_ExtrapolatedX_DIRC(void) const { if(dBranch_Track_ExtrapolatedX_DIRC) - return ((Float_t*)dBranch_Track_ExtrapolatedX_DIRC->GetAddress())[dMeasuredArrayIndex]; + return ((Float_t*)dBranch_Track_ExtrapolatedX_DIRC->GetAddress())[dMeasuredArrayIndex]; else return 0; }