fix undefined method

Fix undefined method in FairTestDetectorHit.h