From 3a2588ab4d875117f1a53c8da47a9554a98dc94f Mon Sep 17 00:00:00 2001 From: rtysonCLAS12 Date: Tue, 21 Nov 2023 16:16:46 -0500 Subject: [PATCH] Small changes to how path and time are set for neutrals --- Clas12Banks/region_fdet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Clas12Banks/region_fdet.h b/Clas12Banks/region_fdet.h index 67a8834..32bc8cc 100644 --- a/Clas12Banks/region_fdet.h +++ b/Clas12Banks/region_fdet.h @@ -51,7 +51,7 @@ namespace clas12 { double getTime() final{ - if(_ptof>-1){ + if(_ptof>-1 && par()->getCharge()!=0){ _scint->setIndex(_ptof); return _scint->getTime(); } @@ -59,7 +59,7 @@ namespace clas12 { return _cal->getTime(); } double getPath() final{ - if(_ptof>-1){ + if(_ptof>-1 && par()->getCharge()!=0){ _scint->setIndex(_ptof); return _scint->getPath(); }